]> git.ipfire.org Git - thirdparty/glibc.git/blame_incremental - ChangeLog
sotruss: fix argument parsing
[thirdparty/glibc.git] / ChangeLog
... / ...
CommitLineData
12012-11-26 Andreas Schwab <schwab@linux-m68k.org>
2
3 * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
4
52012-11-24 Adam Conrad <adconrad@0c3.net>
6
7 * configure.in: Autodetect C++ header directories.
8 * configure: Regenerated.
9
102012-11-23 Mike Frysinger <vapier@gentoo.org>
11
12 * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
13
142012-11-23 Andreas Schwab <schwab@linux-m68k.org>
15
16 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17
182012-11-22 Joseph Myers <joseph@codesourcery.com>
19
20 * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
21 LDBL_MANT_DIG == 106]: Disable some tests.
22 (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23 Likewise.
24 (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
25 Likewise.
26
27 [BZ #14871]
28 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
29 input for small inputs. Return +/- pi/2 for large inputs.
30 * math/libm-test.inc (atan_test): Add more tests.
31
32 * sysdeps/generic/unwind-dw2-fde-glibc.c
33 (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
34 __attribute__ ((unused)).
35
36 [BZ #14645]
37 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
38 x * y if x and y are nonzero and z is zero.
39
40 [BZ #14811]
41 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
42 nonzero exponents with absolute value below 0x1p-117 to +/-
43 0x1p-117.
44
45 [BZ #14869]
46 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
47 up arguments below 2**-450, not just those below 2**-500.
48 * math/libm-test.inc (hypot_test): Add another test.
49
50 [BZ #14868]
51 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
52 Return a+b for ratio over 2**120, not 2**60.
53 * math/libm-test.inc (hypot_test): Add another test.
54
55 * math/libm-test.inc (clog_test): Use
56 UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
57 (clog10_test): Likewise.
58
59 [BZ #6778]
60 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
61
622012-11-22 Andreas Schwab <schwab@suse.de>
63
64 * sysdeps/i386/fpu/libm-test-ulps: Update.
65
662012-11-22 Pino Toscano <toscano.pino@tiscali.it>
67
68 * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
69 printf output with newline.
70
712012-11-21 H.J. Lu <hongjiu.lu@intel.com>
72
73 [BZ #14865]
74 * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
75 * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
76 -z nodlopen, -z initfirst and -z execstack support.
77 * configure: Regenerated.
78
79 * elf/elf.h (DF_1_NODIRECT): New macro.
80 (DF_1_IGNMULDEF): Likewise.
81 (DF_1_NOKSYMS): Likewise.
82 (DF_1_NOHDR): Likewise.
83 (DF_1_EDITED): Likewise.
84 (DF_1_NORELOC): Likewise.
85 (DF_1_SYMINTPOSE): Likewise.
86 (DF_1_GLOBAUDIT): Likewise.
87 (DF_1_SINGLETON): Likewise.
88 * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
89 DT_1_SUPPORTED_MASK bits.
90 * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
91
922012-11-20 Carlos O'Donell <carlos_odonell@mentor.com>
93
94 * sysdeps/unix/make-syscalls.sh: Document prefixes.
95
962012-11-20 Thomas Schwinge <thomas@codesourcery.com>
97
98 * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
99 macro.
100
101 * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
102 (sendmmsg): Move declarations...
103 * socket/sys/socket.h: ... here.
104 * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
105 !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
106 include it from...
107 * socket/recvmmsg.c: ... this new file.
108 * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
109 (sendmmsg): Rename to __sendmmsg, create weak alias and make
110 definition of __sendmmsg hidden.
111 * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
112 [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
113 Move ENOSYS stub into and include it from...
114 * socket/sendmmsg.c: ... this new file.
115 * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
116 (sysdep_routines): Move recvmmsg and sendmmsg...
117 * socket/Makefile (routines): ... here.
118 * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
119 (GLIBC_PRIVATE): Add __sendmmsg.
120 * include/sys/socket.h (__sendmmsg): Add declarations.
121 * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
122 sendmmsg.
123
1242012-11-20 Joseph Myers <joseph@codesourcery.com>
125
126 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
127 variable I1 with __attribute__ ((unused)).
128 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
129
1302012-11-19 Joseph Myers <joseph@codesourcery.com>
131
132 * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
133 DUMMY variables with __attribute__ ((unused)).
134
135 * bits/byteswap.h: Include <bits/types.h>.
136 (__bswap_64): Use __uint64_t instead of unsigned long long int.
137
1382012-11-19 Pino Toscano <toscano.pino@tiscali.it>
139
140 * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
141 string_t. Do not manually set errno.
142 (__ptsname_r): Change the type of PEERNAME to string_t, and check its
143 length with __strnlen. Make sure to both set errno and return it on
144 failure.
145
1462012-11-19 David S. Miller <davem@davemloft.net>
147
148 With help from Joseph Myers.
149 * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
150 very large arguments properly.
151 * math/libm-test.inc (atan_test): New tests.
152 (atan2_test): New tests.
153 * sysdeps/sparc/fpu/libm-test-ulps: Update.
154 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
155
1562012-11-19 Joseph Myers <joseph@codesourcery.com>
157
158 [BZ #14856]
159 * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
160 Define to 3.
161
162 * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
163 [POSIX] (EADDRNOTAVAIL): Likewise.
164 [POSIX] (EAFNOSUPPORT): Likewise.
165 [POSIX] (EALREADY): Likewise.
166 [POSIX] (ECONNABORTED): Likewise.
167 [POSIX] (ECONNREFUSED): Likewise.
168 [POSIX] (ECONNRESET): Likewise.
169 [POSIX] (EDESTADDRREQ): Likewise.
170 [POSIX] (EDQUOT): Likewise.
171 [POSIX] (EHOSTUNREACH): Likewise.
172 [POSIX] (EIDRM): Likewise.
173 [POSIX] (EISCONN): Likewise.
174 [POSIX] (ELOOP): Likewise.
175 [POSIX] (EMULTIHOP): Likewise.
176 [POSIX] (ENETDOWN): Likewise.
177 [POSIX] (ENETUNREACH): Likewise.
178 [POSIX] (ENOBUFS): Likewise.
179 [POSIX] (ENODATA): Likewise.
180 [POSIX] (ENOLINK): Likewise.
181 [POSIX] (ENOMSG): Likewise.
182 [POSIX] (ENOPROTOOPT): Likewise.
183 [POSIX] (ENOSR): Likewise.
184 [POSIX] (ENOSTR): Likewise.
185 [POSIX] (ENOTCONN): Likewise.
186 [POSIX] (ENOTSOCK): Likewise.
187 [POSIX] (EOPNOTSUPP): Likewise.
188 [POSIX] (EOVERFLOW): Likewise.
189 [POSIX] (EPROTO): Likewise.
190 [POSIX] (EPROTONOSUPPORT): Likewise.
191 [POSIX] (EPROTOTYPE): Likewise.
192 [POSIX] (ESTALE): Likewise.
193 [POSIX] (ETIME): Likewise.
194 [POSIX] (ETXTBSY): Likewise.
195 [POSIX] (EWOULDBLOCK): Likewise.
196 [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
197 * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
198 [POSIX] (SEEK_CUR): Likewise.
199 [POSIX] (SEEK_END): Likewise.
200 [POSIX || UNIX98] (mode_t): Do not require.
201 [POSIX] (off_t): Likewise.
202 [POSIX] (pid_t): Likewise.
203 [POSIX] (sys/stat.h): Do not allow header.
204 [POSIX] (unistd.h): Likewise.
205 [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
206 [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
207 [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
208 * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
209 require.
210 * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
211 sigevent): Specify elements.
212 [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
213 entry.
214 [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
215 [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
216
217 * conform/data/cpio.h-data [POSIX]: Disable whole file.
218 * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
219 * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
220 (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
221 [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
222 [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
223 [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
224 [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
225 [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
226 [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
227 [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
228 [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
229 [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
230 [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
231 Likewise.
232 [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
233 Likewise.
234 [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
235 Likewise.
236 [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
237 Likewise.
238 [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
239 [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
240 [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
241 [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
242 [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
243 Specify lower bound on value.
244 [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
245 [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
246 [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
247 [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
248 [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
249 [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
250 [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
251 [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
252 value.
253 [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
254 as optional.
255 [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
256 [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
257 [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
258 [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
259 [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
260 [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
261 [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
262 [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
263 [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
264 [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
265 [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
266 [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
267 [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
268 [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
269 [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
270 [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
271 entry.
272 [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
273 optional.
274 [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
275 [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
276 [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
277 [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
278 [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
279 [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
280 Likewise.
281 [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
282 [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
283 [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
284 [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
285 [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise. Give
286 value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
287 [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
288 as optional.
289 [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
290 [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
291 [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
292 [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
293 Likewise. Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
294 [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
295 specify as optional.
296 [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
297 [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
298 [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
299 [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
300 [POSIX || XPG3] (NL_ARGMAX): Do not allow.
301 [XPG3] (NL_LANGMAX): Likewise.
302 [POSIX || XPG3] (NL_MSGMAX): Likewise.
303 [POSIX || XPG3] (NL_NMAX): Likewise.
304 [POSIX || XPG3] (NL_SETMAX): Likewise.
305 [POSIX || XPG3] (NL_TEXTMAX): Likewise.
306 [XPG3] (NZERO): Likewise.
307 [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
308 [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
309 [!ISO && !ISO99 && !ISO11] (*_t): Allow.
310 * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
311 (REG_ERANGE): Expect.
312 * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
313 optional-constant.
314 [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
315 Use (void) in prototype.
316 [POSIX] (*_t): Allow.
317 * conform/data/sys/times.h-data [POSIX]: Enable whole file.
318 * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
319 (WRDE_BADVAL): Expect.
320
321 * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
322 expect.
323 [XPG3 || XPG4] (O_RSYNC): Likewise.
324 * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
325 Likewise.
326 [XPG3 || XPG4] (pthread_sigmask): Likewise.
327 [XPG3 || XPG4] (sigqueue): Likewise.
328 [XPG3 || XPG4] (sigtimedwait): Likewise.
329 [XPG3 || XPG4] (sigwaitinfo): Likewise.
330 * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
331 [XPG3 || XPG4] (vsnprintf): Likewise.
332 * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
333 Likewise.
334 [XPG3 || XPG4] (blksize_t): Likewise.
335 * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
336 Likewise.
337 [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
338 [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
339 [XPG3 || XPG4] (struct itimerspec): Likewise.
340 [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
341 [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
342 [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
343 [XPG3 || XPG4] (clockid_t): Likewise.
344 [XPG3 || XPG4] (timer_t): Likewise.
345 [XPG3 || XPG4] (clock_getres): Likewise.
346 [XPG3 || XPG4] (clock_gettime): Likewise.
347 [XPG3 || XPG4] (clock_settime): Likewise.
348 [XPG3 || XPG4] (nanosleep): Likewise.
349 [XPG3 || XPG4] (timer_create): Likewise.
350 [XPG3 || XPG4] (timer_delete): Likewise.
351 [XPG3 || XPG4] (timer_gettime): Likewise.
352 [XPG3 || XPG4] (timer_getoverrun): Likewise.
353 [XPG3 || XPG4] (timer_settime): Likewise.
354 * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
355 [XPG3 || XPG4] (getlogin_r): Likewise.
356 [XPG3 || XPG4] (pread): Likewise.
357 [XPG3 || XPG4] (pthread_atfork): Likewise.
358 [XPG3 || XPG4] (pwrite): Likewise.
359
360 [BZ #14835]
361 * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
362 <bits/siginfo.h>.
363
3642012-11-19 Pino Toscano <toscano.pino@tiscali.it>
365
366 * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
367 finalizing MALLSTREAM.
368
369 * sysdeps/mach/hurd/syncfs.c: New file.
370
3712012-11-19 Siddhesh Poyarekar <siddhesh@redhat.com>
372
373 [BZ #14719]
374 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
375 NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
376 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
377 h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
378 (_nss_dns_gethostbyname4_r): Likewise.
379 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
380 EAI_SYSTEM if NSS_STATUS_UNAVAIL.
381
3822012-11-19 Peng Haitao <penght@cn.fujitsu.com>
383
384 [BZ #13763]
385 * sunrpc/bindrsvprt.c: Add lock to protect static variable.
386
3872012-11-19 Steve McIntyre <steve.mcintyre@linaro.org>
388
389 * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
390 * elf/cache.c (print_entry): Print ",AArch64" for
391 FLAG_AARCH64_LIB64
392
393 * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
394 * elf/cache.c (print_entry): Print ",hard-float" for
395 FLAG_ARM_LIBHF.
396
3972012-11-18 David S. Miller <davem@davemloft.net>
398
399 With help from Joseph Myers.
400 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
401 cutoff to 2**-13.
402 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
403 cutoff to 2**-25.
404 * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
405 ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
406 small.
407 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
408 * math/libm-test.inc (y0_test): New tests.
409 (y1_test): New tests.
410 * sysdeps/i386/fpu/libm-test-ulps: Update.
411 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
412 * sysdeps/sparc/fpu/libm-test-ulps: Update.
413
4142012-11-18 Andreas Schwab <schwab@linux-m68k.org>
415
416 * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
417 64-bit targets.
418 * configure: Regenerated.
419
4202012-11-17 David S. Miller <davem@davemloft.net>
421
422 [BZ #14811]
423 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
424 nonzero exponents with absolute value below 0x1p-128 to +/-
425 0x1p-128.
426
4272012-11-17 Joseph Myers <joseph@codesourcery.com>
428
429 * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
430
431 * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
432
433 * posix/getconf-speclist.c: New file.
434 * posix/posix-envs.def: Likewise.
435 * posix/confstr.c (START_ENV_GROUP): New macro.
436 (END_ENV_GROUP): Likewise.
437 (KNOWN_ABSENT_ENVIRONMENT): Likewise.
438 (KNOWN_PRESENT_ENV_STRING): Likewise.
439 (KNOWN_PRESENT_ENVIRONMENT): Likewise.
440 (UNKNOWN_ENVIRONMENT): Likewise.
441 (confstr): Include posix-envs.def instead of handling
442 _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
443 _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
444 * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
445 (END_ENV_GROUP): Likewise.
446 (KNOWN_ABSENT_ENVIRONMENT): Likewise.
447 (KNOWN_PRESENT_ENVIRONMENT): Likewise.
448 (UNKNOWN_ENVIRONMENT): Likewise.
449 (__sysconf): Include posix-envs.def instead of handling associated
450 cases directly here.
451 * posix/Makefile ($(objpfx)getconf.speclist): Generate by
452 preprocessing getconf-speclist.c rather than running getconf or
453 generating empty file.
454
4552012-11-16 Pino Toscano <toscano.pino@tiscali.it>
456
457 * scripts/check-local-headers.sh: Ignore 'mach' headers.
458
4592012-11-16 Andrej Lajovic <natrij@gmail.com>
460
461 [BZ #14672]
462 * iconv/iconv_prog.c (main): Fix -c handling of '/'.
463
4642012-11-16 David S. Miller <davem@davemloft.net>
465
466 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
467 smaller than LDBL_EPSILON/2.0L, just return xm1.
468
4692012-11-16 H.J. Lu <hongjiu.lu@intel.com>
470
471 * elf/tst-array1.c (init): Set constructor priority to 1000.
472 (fini): Set destructor priority to 1000.
473 * elf/tst-array2dep.c: Likewise.
474
4752012-11-16 Siddhesh Poyarekar <siddhesh@redhat.com>
476
477 [BZ #11741]
478 * libio/fileops.c (_IO_new_file_write): Correctly return error.
479 (_IO_new_file_xsputn): Also return EOF if none of the input
480 data was written when overflow failed.
481 * libio/iopadn.c (_IO_padn): Likewise.
482 * libio/iowpadn.c (_IO_wpadn): Likewise.
483 * stdio-common/tst-put-error.c: Add copyright notice.
484 (do_test): Add case for printing padded string.
485 * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
486 _IO_padn returned error.
487 [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
488 * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
489 return EOF.
490
4912012-11-16 Siddhesh Poyarekar <siddhesh@redhat.com>
492
493 * libio/libioP.h: Add comment note that the references to C++
494 bits are now obsolete.
495
4962012-11-15 Marcus Shawcroft <marcus.shawcroft@linaro.org>
497
498 * math/libm-test.inc (check_complex): Use asprintf.
499
5002012-11-14 Joseph Myers <joseph@codesourcery.com>
501
502 * debug/pcprofiledump.c (print_version): Update copyright year.
503 * malloc/memusagestat.c (print_version): Likewise.
504
5052012-11-14 H.J. Lu <hongjiu.lu@intel.com>
506
507 [BZ #14831]
508 * elf/Makefile (tests): Add tst-audit8.
509 ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
510 ($(objpfx)tst-audit8.out): New target.
511 (tst-audit8-ENV): New variable.
512 * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
513 audit if l_reloc_result is NULL.
514 (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
515 defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
516 * elf/tst-audit8.c: New file.
517
5182012-11-14 Marcus Shawcroft <marcus.shawcroft@linaro.org>
519
520 * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
521 * misc/Makefile (CFLAGS-select.c): Define.
522 * posix/Makefile (CFLAGS-pause.c): Define.
523
5242012-11-13 David S. Miller <davem@davemloft.net>
525
526 * crypt/Makefile: Move test targets after toplevel Rules
527 inclusion. Grab any necessary sysdep routines when linking.
528 * crypt/md5.c (md5_process_block): Remove define, we will always
529 name it __md5_process_block.
530 (md5_finish_ctx): Update md5_process_block call.
531 (md5_stream): Likewise.
532 (md5_process_bytes): Likewise.
533 (md5_process_block): Rename to __md5_process_block and move to ...
534 * crypt/md5-block.c: ... here.
535 * crypt/sha256.c (sha256_process_block): Move to ...
536 * crypt/sha256-block.c: ... here.
537 * crypt/sha512.c (sha512_process_block): Move to ...
538 * crypt/sha512-block.c: ... here.
539 * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
540 path.
541 * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
542 * sysdeps/sparc/sparc64/multiarch/Makefile
543 (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
544 crypt subdir.
545 (localedef-aux): Add md5 crypto assembler when in locale subdir.
546 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
547 multiarch changes.
548 * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
549 * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
550 * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
551 * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
552 * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
553 * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
554 * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
555 * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
556 * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
557 file.
558 * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
559 * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
560 file.
561 * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
562
5632012-11-13 Joseph Myers <joseph@codesourcery.com>
564
565 * timezone/tzselect.ksh: Update from tzcode git revision
566 a435f9f0ecafa56d9e0263835836bd0c64cd7307.
567 * timezone/zdump.c: Likewise.
568 * timezone/zic.c: Likewise.
569 * timezone/Makefile ($(objpfx)version.h): Only include $(version)
570 in TZVERSION setting, not $(PKGVERSION).
571 ($(objpfx)tzselect): Likewise. Also substitute PKGVERSION and
572 REPORT_BUGS_TO settings.
573
574 [BZ #14838]
575 * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
576 macro.
577
5782012-11-13 Marcus Shawcroft <marcus.shawcroft@linaro.org>
579
580 * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
581 detection to immediately after _FP_ROUND().
582 * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
583 bits are 0.
584
5852012-11-11 David S. Miller <davem@davemloft.net>
586
587 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
588 inttypes.h
589 (__get_clockfreq_via_proc_openprom): Use __open, __read, and
590 __close rather than their public counterparts.
591
5922012-11-10 Joseph Myers <joseph@codesourcery.com>
593
594 * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
595 file.
596 [UNIX98] (sem_timedwait): Do not expect.
597 * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
598 [XPG4 || UNIX98] (sockatmark): Do not expect.
599 * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
600 (clock_getcpuclockid): Do not expect.
601 [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
602 * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
603 Do not expect.
604 [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
605 * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
606 [UNIX98] (vwscanf): Likewise.
607 [UNIX98] (vswscanf): Likewise.
608
6092012-11-09 Joseph Myers <joseph@codesourcery.com>
610
611 * timezone/version.h: Remove file.
612 * timezone/README: Do not refer to version.h.
613 * timezone/Makefile ($(objpfx)zic.o): New dependency on
614 $(objpfx)version.h.
615 ($(objpfx)zdump.o): Likewise.
616 ($(objpfx)version.h): New target.
617
618 * timezone/tzselect.ksh: Change to verbatim copy from tzcode
619 2012i.
620 * timezone/README: Don't mention modification to tzselect.ksh.
621 * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
622 work on unmodified tzselect.ksh. Substitute version numbers in
623 tzselect.ksh.
624
625 * Makefile (format-me): Remove.
626 (INSTALL): Adjust indentation. Use commands directly instead of
627 using $(format-me).
628
629 * aclocal.m4 (ACX_PKGVERSION): New macro.
630 (ACX_BUGURL): Likewise.
631 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
632 (PKGVERSION): New AC_DEFINE_UNQUOTED.
633 (REPORT_BUGS_TO): Likewise.
634 * configure: Regenerated.
635 * config.h.in (PKGVERSION): New macro.
636 (REPORT_BUGS_TO): Likewise.
637 * config.make.in (PKGVERSION): New variable.
638 (PKGVERSION_TEXI): Likewise.
639 (REPORT_BUGS_TO): Likewise.
640 (REPORT_BUGS_TEXI): Likewise.
641 * Makefile (format-me): Use -I$(common-objpfx)manual.
642 (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
643 ($(common-objpfx)manual/%): New target.
644 (manual/%): Remove target.
645 * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
646 (print_version): Use PKGVERSION.
647 * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
648 * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
649 and REPORT_BUGS_TO.
650 ($(objpfx)xtrace): Likewise.
651 * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
652 * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
653 (print_version): Use PKGVERSION.
654 * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
655 (do_version): Use PKGVERSION.
656 * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
657 REPORT_BUGS_TO.
658 (common-ldd-rewrite): Likewise.
659 * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
660 * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
661 (print_version): Use PKGVERSION.
662 * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
663 * elf/pldd.c (argp_program_bug_address): Remove variable.
664 (more_help): New function.
665 (argp): Use more_help.
666 (print_version): Use PKGVERSION.
667 * elf/sln.c (main): Use PKGVERSION.
668 (usage): Use REPORT_BUGS_TO.
669 * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
670 (top level): Use PKGVERSION.
671 * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
672 (print_version): Use PKGVERSION.
673 * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
674 (print_version): Use PKGVERSION.
675 * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
676 (print_version): Use PKGVERSION.
677 * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
678 (print_version): Use PKGVERSION.
679 * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
680 (print_version): Use PKGVERSION.
681 * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
682 (print_version): Use PKGVERSION.
683 * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
684 and BUGURL.
685 ($(objpfx)memusage): Likewise.
686 * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
687 (do_version): Use PKGVERSION.
688 * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
689 (print_version): Use PKGVERSION.
690 * malloc/mtrace.pl ($PACKAGE): Remove variable.
691 ($PKGVERSION): New variable.
692 ($REPORT_BUGS_TO): Likewise.
693 (usage): Use $REPORT_BUGS_TO.
694 (top level): Use $PKGVERSION.
695 * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
696 ($(objpfx)pkgvers.texi): New rule.
697 ($(objpfx)stamp-pkgvers): Likewise.
698 * manual/install.texi: Include pkgvers.texi.
699 (--with-pkgversion): Document new configure option.
700 (--with-bugurl): Likewise.
701 (Reporting Bugs): Describe Bugzilla as upstream tracker rather
702 than necessarily for this particular distribution. Use
703 REPORT_BUGS_TO for where to report bugs.
704 * INSTALL: Regenerated.
705 * manual/libc.texinfo: Include pkgvers.texi.
706 [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
707 * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
708 (print_version): Use PKGVERSION.
709 * nss/getent.c (more_help): Use REPORT_BUGS_TO.
710 (print_version): Use PKGVERSION.
711 * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
712 (print_version): Use PKGVERSION.
713 * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
714 * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
715 macro.
716 * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
717 (print_version): Use PKGVERSION.
718 * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
719 (print_version): Use PKGVERSION.
720 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
721 and PKGVERSION.
722
723 * timezone/checktab.awk: Update from tzcode 2012i.
724 * timezone/ialloc.c: Likewise.
725 * timezone/private.h: Likewise.
726 * timezone/scheck.c: Likewise.
727 * timezone/tzfile.h: Likewise.
728 * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
729 (TZVERSION): Hardcode tzcode version number.
730 * timezone/zdump.c: Update from tzcode 2012i.
731 * timezone/zic.c: Likewise.
732 * timezone/version.h: New file.
733 * timezone/README: Describe version.h. Update upstream location.
734
735 [BZ #14824]
736 * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
737 (mktemp): Enable declaration.
738 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
739 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
740 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
741 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
742 Likewise.
743 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
744 Likewise.
745 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
746 Likewise.
747 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
748 Likewise.
749 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
750 Likewise.
751 [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
752 Likewise.
753
754 [BZ #14821]
755 * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
756 offset in buffer as u_int32_t not u_long. Consistently use memcpy
757 for copies of such integer values.
758 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
759 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
760
7612012-11-09 Andreas Jaeger <aj@suse.de>
762
763 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
764 definitions and declarations that are provided by
765 <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
766
7672012-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
768
769 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
770 * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
771 * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
772 definition.
773
7742012-11-08 Marcus Shawcroft <marcus.shawcroft@linaro.org>
775
776 * elf/elf.h: Update comment before AArch64 relocations.
777
7782012-11-07 David S. Miller <davem@davemloft.net>
779
780 * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
781 * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
782 (__start_context): Declare.
783 (__makecontext_ret): Delete.
784 (__makecontext): Hook up __start_context instead of
785 __makecontext_ret.
786 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
787 (sysdep_routines): Add __start_context when in stdlib.
788
7892012-11-07 Joseph Myers <joseph@codesourcery.com>
790
791 * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
792 $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
793 * sysdeps/x86/tst-xmmymm.sh (NM): New variable. Use it instead of
794 hardcoded "nm".
795 (OBJDUMP): New variable. Use it instead of hardcoded "objdump".
796 (READELF): New variable. Use it instead of hardcoded "readelf".
797
7982012-11-07 H.J. Lu <hongjiu.lu@intel.com>
799
800 * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
801 * sysdeps/x86/Makefile: Here.
802 * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
803 * sysdeps/x86/tst-xmmymm.sh: This.
804
8052012-11-07 Joseph Myers <joseph@codesourcery.com>
806
807 * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
808 expectations.
809 [UNIX98] (pthread_barrier_t): Do not expect.
810 [UNIX98] (pthread_barrierattr_t): Likewise.
811 [UNIX98] (pthread_spinlock_t): Likewise.
812 [UNIX98] (pthread_barrier_destroy): Likewise.
813 [UNIX98] (pthread_barrier_init): Likewise.
814 [UNIX98] (pthread_barrier_wait): Likewise.
815 [UNIX98] (pthread_barrierattr_destroy): Likewise.
816 [UNIX98] (pthread_barrierattr_getpshared): Likewise.
817 [UNIX98] (pthread_barrierattr_init): Likewise.
818 [UNIX98] (pthread_barrierattr_setpshared): Likewise.
819 [UNIX98] (pthread_getcpuclockid): Likewise.
820 [UNIX98] (pthread_mutex_timedlock): Likewise.
821 [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
822 [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
823 [UNIX98] (pthread_sigmask): Likewise.
824 [UNIX98] (pthread_spin_destroy): Likewise.
825 [UNIX98] (pthread_spin_init): Likewise.
826 [UNIX98] (pthread_spin_lock): Likewise.
827 [UNIX98] (pthread_spin_trylock): Likewise.
828 [UNIX98] (pthread_spin_unlock): Likewise.
829 * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
830 Do not expect.
831 [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
832 [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
833 [XPG3 || XPG4] (pthread_cond_t): Likewise.
834 [XPG3 || XPG4] (pthread_condattr_t): Likewise.
835 [XPG3 || XPG4] (pthread_key_t): Likewise.
836 [XPG3 || XPG4] (pthread_mutex_t): Likewise.
837 [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
838 [XPG3 || XPG4] (pthread_once_t): Likewise.
839 [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
840 [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
841 [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
842 [XPG3 || XPG4] (pthread_t): Likewise.
843
844 * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
845 not expect.
846 [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
847
848 * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
849 Change function return type to int.
850
851 * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
852 Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
853 [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
854 [!POSIX] (POSIX_MADV_RANDOM): Likewise.
855 [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
856 [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
857 [!POSIX] (posix_madvise): Likewise.
858 (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
859 && !UNIX98].
860 (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
861 (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
862 (mode_t): Likewise.
863 (posix_mem_offset): Likewise.
864 (posix_typed_mem_get_info): Likewise.
865 (posix_typed_mem_open): Likewise.
866
867 * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
868 Change condition to [XOPEN2K8].
869
870 * conform/conformtest.pl: Preprocess allow-header data with -x c
871 instead of from stdin.
872 (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
873 * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
874 [C99-based standards] (cerfc): Likewise.
875 [C99-based standards] (cexp2): Likewise.
876 [C99-based standards] (cexpm1): Likewise.
877 [C99-based standards] (clog10): Likewise.
878 [C99-based standards] (clog1p): Likewise.
879 [C99-based standards] (clog2): Likewise.
880 [C99-based standards] (clgamma): Likewise.
881 [C99-based standards] (ctgamma): Likewise.
882 [C99-based standards] (cerff): Likewise.
883 [C99-based standards] (cerfcf): Likewise.
884 [C99-based standards] (cexp2f): Likewise.
885 [C99-based standards] (cexpm1f): Likewise.
886 [C99-based standards] (clog10f): Likewise.
887 [C99-based standards] (clog1pf): Likewise.
888 [C99-based standards] (clog2f): Likewise.
889 [C99-based standards] (clgammaf): Likewise.
890 [C99-based standards] (ctgammaf): Likewise.
891 [C99-based standards] (cerfl): Likewise.
892 [C99-based standards] (cerfcl): Likewise.
893 [C99-based standards] (cexp2l): Likewise.
894 [C99-based standards] (cexpm1l): Likewise.
895 [C99-based standards] (clog10l): Likewise.
896 [C99-based standards] (clog1pl): Likewise.
897 [C99-based standards] (clog2l): Likewise.
898 [C99-based standards] (clgammal): Likewise.
899 [C99-based standards] (ctgammal): Likewise.
900 * conform/data/inttypes.h-data [C99-based standards]: Include
901 stdint.h-data. Remove all expectations for stdint.h contents.
902 [C99-based standards] (PRI*): Do not allow.
903 [C99-based standards] (SCN*): Likewise.
904 [C99-based standards] (*_t): Likewise.
905 [C99-based-standards] (PRId8): Expect macro.
906 [C99-based-standards] (PRIi8): Likewise.
907 [C99-based-standards] (PRIo8): Likewise.
908 [C99-based-standards] (PRIu8): Likewise.
909 [C99-based-standards] (PRIx8): Likewise.
910 [C99-based-standards] (PRIX8): Likewise.
911 [C99-based-standards] (SCNd8): Likewise.
912 [C99-based-standards] (SCNi8): Likewise.
913 [C99-based-standards] (SCNo8): Likewise.
914 [C99-based-standards] (SCNu8): Likewise.
915 [C99-based-standards] (SCNx8): Likewise.
916 [C99-based-standards] (PRIdLEAST8): Likewise.
917 [C99-based-standards] (PRIiLEAST8): Likewise.
918 [C99-based-standards] (PRIoLEAST8): Likewise.
919 [C99-based-standards] (PRIuLEAST8): Likewise.
920 [C99-based-standards] (PRIxLEAST8): Likewise.
921 [C99-based-standards] (PRIXLEAST8): Likewise.
922 [C99-based-standards] (SCNdLEAST8): Likewise.
923 [C99-based-standards] (SCNiLEAST8): Likewise.
924 [C99-based-standards] (SCNoLEAST8): Likewise.
925 [C99-based-standards] (SCNuLEAST8): Likewise.
926 [C99-based-standards] (SCNxLEAST8): Likewise.
927 [C99-based-standards] (PRIdFAST8): Likewise.
928 [C99-based-standards] (PRIiFAST8): Likewise.
929 [C99-based-standards] (PRIoFAST8): Likewise.
930 [C99-based-standards] (PRIuFAST8): Likewise.
931 [C99-based-standards] (PRIxFAST8): Likewise.
932 [C99-based-standards] (PRIXFAST8): Likewise.
933 [C99-based-standards] (SCNdFAST8): Likewise.
934 [C99-based-standards] (SCNiFAST8): Likewise.
935 [C99-based-standards] (SCNoFAST8): Likewise.
936 [C99-based-standards] (SCNuFAST8): Likewise.
937 [C99-based-standards] (SCNxFAST8): Likewise.
938 [C99-based-standards] (PRId16): Likewise.
939 [C99-based-standards] (PRIi16): Likewise.
940 [C99-based-standards] (PRIo16): Likewise.
941 [C99-based-standards] (PRIu16): Likewise.
942 [C99-based-standards] (PRIx16): Likewise.
943 [C99-based-standards] (PRIX16): Likewise.
944 [C99-based-standards] (SCNd16): Likewise.
945 [C99-based-standards] (SCNi16): Likewise.
946 [C99-based-standards] (SCNo16): Likewise.
947 [C99-based-standards] (SCNu16): Likewise.
948 [C99-based-standards] (SCNx16): Likewise.
949 [C99-based-standards] (PRIdLEAST16): Likewise.
950 [C99-based-standards] (PRIiLEAST16): Likewise.
951 [C99-based-standards] (PRIoLEAST16): Likewise.
952 [C99-based-standards] (PRIuLEAST16): Likewise.
953 [C99-based-standards] (PRIxLEAST16): Likewise.
954 [C99-based-standards] (PRIXLEAST16): Likewise.
955 [C99-based-standards] (SCNdLEAST16): Likewise.
956 [C99-based-standards] (SCNiLEAST16): Likewise.
957 [C99-based-standards] (SCNoLEAST16): Likewise.
958 [C99-based-standards] (SCNuLEAST16): Likewise.
959 [C99-based-standards] (SCNxLEAST16): Likewise.
960 [C99-based-standards] (PRIdFAST16): Likewise.
961 [C99-based-standards] (PRIiFAST16): Likewise.
962 [C99-based-standards] (PRIoFAST16): Likewise.
963 [C99-based-standards] (PRIuFAST16): Likewise.
964 [C99-based-standards] (PRIxFAST16): Likewise.
965 [C99-based-standards] (PRIXFAST16): Likewise.
966 [C99-based-standards] (SCNdFAST16): Likewise.
967 [C99-based-standards] (SCNiFAST16): Likewise.
968 [C99-based-standards] (SCNoFAST16): Likewise.
969 [C99-based-standards] (SCNuFAST16): Likewise.
970 [C99-based-standards] (SCNxFAST16): Likewise.
971 [C99-based-standards] (PRId32): Likewise.
972 [C99-based-standards] (PRIi32): Likewise.
973 [C99-based-standards] (PRIo32): Likewise.
974 [C99-based-standards] (PRIu32): Likewise.
975 [C99-based-standards] (PRIx32): Likewise.
976 [C99-based-standards] (PRIX32): Likewise.
977 [C99-based-standards] (SCNd32): Likewise.
978 [C99-based-standards] (SCNi32): Likewise.
979 [C99-based-standards] (SCNo32): Likewise.
980 [C99-based-standards] (SCNu32): Likewise.
981 [C99-based-standards] (SCNx32): Likewise.
982 [C99-based-standards] (PRIdLEAST32): Likewise.
983 [C99-based-standards] (PRIiLEAST32): Likewise.
984 [C99-based-standards] (PRIoLEAST32): Likewise.
985 [C99-based-standards] (PRIuLEAST32): Likewise.
986 [C99-based-standards] (PRIxLEAST32): Likewise.
987 [C99-based-standards] (PRIXLEAST32): Likewise.
988 [C99-based-standards] (SCNdLEAST32): Likewise.
989 [C99-based-standards] (SCNiLEAST32): Likewise.
990 [C99-based-standards] (SCNoLEAST32): Likewise.
991 [C99-based-standards] (SCNuLEAST32): Likewise.
992 [C99-based-standards] (SCNxLEAST32): Likewise.
993 [C99-based-standards] (PRIdFAST32): Likewise.
994 [C99-based-standards] (PRIiFAST32): Likewise.
995 [C99-based-standards] (PRIoFAST32): Likewise.
996 [C99-based-standards] (PRIuFAST32): Likewise.
997 [C99-based-standards] (PRIxFAST32): Likewise.
998 [C99-based-standards] (PRIXFAST32): Likewise.
999 [C99-based-standards] (SCNdFAST32): Likewise.
1000 [C99-based-standards] (SCNiFAST32): Likewise.
1001 [C99-based-standards] (SCNoFAST32): Likewise.
1002 [C99-based-standards] (SCNuFAST32): Likewise.
1003 [C99-based-standards] (SCNxFAST32): Likewise.
1004 [C99-based-standards] (PRId64): Likewise.
1005 [C99-based-standards] (PRIi64): Likewise.
1006 [C99-based-standards] (PRIo64): Likewise.
1007 [C99-based-standards] (PRIu64): Likewise.
1008 [C99-based-standards] (PRIx64): Likewise.
1009 [C99-based-standards] (PRIX64): Likewise.
1010 [C99-based-standards] (SCNd64): Likewise.
1011 [C99-based-standards] (SCNi64): Likewise.
1012 [C99-based-standards] (SCNo64): Likewise.
1013 [C99-based-standards] (SCNu64): Likewise.
1014 [C99-based-standards] (SCNx64): Likewise.
1015 [C99-based-standards] (PRIdLEAST64): Likewise.
1016 [C99-based-standards] (PRIiLEAST64): Likewise.
1017 [C99-based-standards] (PRIoLEAST64): Likewise.
1018 [C99-based-standards] (PRIuLEAST64): Likewise.
1019 [C99-based-standards] (PRIxLEAST64): Likewise.
1020 [C99-based-standards] (PRIXLEAST64): Likewise.
1021 [C99-based-standards] (SCNdLEAST64): Likewise.
1022 [C99-based-standards] (SCNiLEAST64): Likewise.
1023 [C99-based-standards] (SCNoLEAST64): Likewise.
1024 [C99-based-standards] (SCNuLEAST64): Likewise.
1025 [C99-based-standards] (SCNxLEAST64): Likewise.
1026 [C99-based-standards] (PRIdFAST64): Likewise.
1027 [C99-based-standards] (PRIiFAST64): Likewise.
1028 [C99-based-standards] (PRIoFAST64): Likewise.
1029 [C99-based-standards] (PRIuFAST64): Likewise.
1030 [C99-based-standards] (PRIxFAST64): Likewise.
1031 [C99-based-standards] (PRIXFAST64): Likewise.
1032 [C99-based-standards] (SCNdFAST64): Likewise.
1033 [C99-based-standards] (SCNiFAST64): Likewise.
1034 [C99-based-standards] (SCNoFAST64): Likewise.
1035 [C99-based-standards] (SCNuFAST64): Likewise.
1036 [C99-based-standards] (SCNxFAST64): Likewise.
1037 [C99-based-standards] (PRIdMAX): Likewise.
1038 [C99-based-standards] (PRIiMAX): Likewise.
1039 [C99-based-standards] (PRIoMAX): Likewise.
1040 [C99-based-standards] (PRIuMAX): Likewise.
1041 [C99-based-standards] (PRIxMAX): Likewise.
1042 [C99-based-standards] (PRIXMAX): Likewise.
1043 [C99-based-standards] (SCNdMAX): Likewise.
1044 [C99-based-standards] (SCNiMAX): Likewise.
1045 [C99-based-standards] (SCNoMAX): Likewise.
1046 [C99-based-standards] (SCNuMAX): Likewise.
1047 [C99-based-standards] (SCNxMAX): Likewise.
1048 [C99-based-standards] (PRIdPTR): Likewise.
1049 [C99-based-standards] (PRIiPTR): Likewise.
1050 [C99-based-standards] (PRIoPTR): Likewise.
1051 [C99-based-standards] (PRIuPTR): Likewise.
1052 [C99-based-standards] (PRIxPTR): Likewise.
1053 [C99-based-standards] (PRIXPTR): Likewise.
1054 [C99-based-standards] (SCNdPTR): Likewise.
1055 [C99-based-standards] (SCNiPTR): Likewise.
1056 [C99-based-standards] (SCNoPTR): Likewise.
1057 [C99-based-standards] (SCNuPTR): Likewise.
1058 [C99-based-standards] (SCNxPTR): Likewise.
1059 * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
1060 allow.
1061 * conform/data/stdint.h-data: Update comments to clarify
1062 requirements.
1063 [C99-based standards] (INT8_MIN): Use macro-int-constant. Specify
1064 type.
1065 [C99-based standards] (INT8_MAX): Likewise.
1066 [C99-based standards] (INT16_MIN): Likewise.
1067 [C99-based standards] (INT16_MAX): Likewise.
1068 [C99-based standards] (INT32_MIN): Likewise.
1069 [C99-based standards] (INT32_MAX): Likewise.
1070 [C99-based standards] (INT64_MIN): Likewise.
1071 [C99-based standards] (INT64_MAX): Likewise.
1072 [C99-based standards] (UINT8_MAX): Likewise.
1073 [C99-based standards] (UINT16_MAX): Likewise.
1074 [C99-based standards] (UINT32_MAX): Likewise.
1075 [C99-based standards] (UINT64_MAX): Likewise.
1076 [C99-based standards] (INT_LEAST8_MIN): Likewise.
1077 [C99-based standards] (INT_LEAST8_MAX): Likewise.
1078 [C99-based standards] (INT_LEAST16_MIN): Likewise.
1079 [C99-based standards] (INT_LEAST16_MAX): Likewise.
1080 [C99-based standards] (INT_LEAST32_MIN): Likewise.
1081 [C99-based standards] (INT_LEAST32_MAX): Likewise.
1082 [C99-based standards] (INT_LEAST64_MIN): Likewise.
1083 [C99-based standards] (INT_LEAST64_MAX): Likewise.
1084 [C99-based standards] (UINT_LEAST8_MAX): Likewise.
1085 [C99-based standards] (UINT_LEAST16_MAX): Likewise.
1086 [C99-based standards] (UINT_LEAST32_MAX): Likewise.
1087 [C99-based standards] (UINT_LEAST64_MAX): Likewise.
1088 [C99-based standards] (INT_FAST8_MIN): Likewise.
1089 [C99-based standards] (INT_FAST8_MAX): Likewise.
1090 [C99-based standards] (INT_FAST16_MIN): Likewise.
1091 [C99-based standards] (INT_FAST16_MAX): Likewise.
1092 [C99-based standards] (INT_FAST32_MIN): Likewise.
1093 [C99-based standards] (INT_FAST32_MAX): Likewise.
1094 [C99-based standards] (INT_FAST64_MIN): Likewise.
1095 [C99-based standards] (INT_FAST64_MAX): Likewise.
1096 [C99-based standards] (UINT_FAST8_MAX): Likewise.
1097 [C99-based standards] (UINT_FAST16_MAX): Likewise.
1098 [C99-based standards] (UINT_FAST32_MAX): Likewise.
1099 [C99-based standards] (UINT_FAST64_MAX): Likewise.
1100 [C99-based standards] (INTPTR_MIN): Likewise.
1101 [C99-based standards] (INTPTR_MAX): Likewise.
1102 [C99-based standards] (UINTPTR_MAX): Likewise.
1103 [C99-based standards] (INTMAX_MIN): Likewise.
1104 [C99-based standards] (INTMAX_MAX): Likewise.
1105 [C99-based standards] (UINTMAX_MAX): Likewise.
1106 [C99-based standards] (PTRDIFF_MIN): Likewise.
1107 [C99-based standards] (PTRDIFF_MAX): Likewise.
1108 [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
1109 [C99-based standards] (SIZE_MAX): Likewise.
1110 [C99-based standards] (WCHAR_MAX): Likewise.
1111 [C99-based standards] (WINT_MAX): Likewise.
1112 [C99-based standards] (SIG_ATOMIC_MIN): Likewise. Do not specify
1113 constraint on value.
1114 [C99-based standards] (WCHAR_MIN): Likewise.
1115 [C99-based standards] (WINT_MIN): Likewise.
1116 [C99-based standards] (*_t): Allow.
1117 * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
1118 condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
1119 Include math.h-data and complex.h-data. Remove all expectations
1120 of math.h and complex.h contents.
1121 * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
1122 at end of line.
1123 * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
1124 (struct tm): Expect tag.
1125 [C99-based-standards] (wcstof): Expect function.
1126 [C99-based-standards] (wcstold): Likewise.
1127 [C99-based-standards] (wcstoll): Likewise.
1128 [C99-based-standards] (wcstoull): Likewise.
1129 [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
1130 macro-int-constant. Specify type.
1131 [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise. Specify
1132 constraint on value.
1133 [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
1134 Specify type.
1135 [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
1136 Specify value.
1137 [ISO C standards]: Do not allow headers.
1138 [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
1139 wcs[abcdefghijklmnopqrstuvwxyz]*.
1140 [ISO C standards] (*_t): Do not allow.
1141 * conform/data/wctype.h-data [C99-based standards] (iswblank):
1142 Expect function.
1143 [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
1144 [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
1145 Specify type.
1146 [ISO C standards]: Do not allow headers.
1147 [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
1148 is[abcdefghijklmnopqrstuvwxyz]*.
1149 [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
1150 to[abcdefghijklmnopqrstuvwxyz]*.
1151 [ISO C standards] (*_t): Do not allow.
1152 * conform/data/stdalign.h-data: New file.
1153 * conform/data/stdbool.h-data: Likewise.
1154 * conform/data/stdnoreturn.h-data: Likewise.
1155
11562012-11-07 Andreas Jaeger <aj@suse.de>
1157
1158 [BZ #14809]
1159 * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
1160 (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
1161 guards are changed. Only define if not yet defined, #undef back
1162 after including linux/sysctl.h if defined here.
1163
11642012-11-07 Roland McGrath <roland@hack.frob.com>
1165
1166 [BZ #14815]
1167 * manual/filesys.texi (Directory Entries): Typo fix.
1168 Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
1169
11702012-11-07 Marcus Shawcroft <marcus.shawcroft@linaro.org>
1171
1172 * elf/elf.h (EM_AARCH64): New macro.
1173 (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
1174 (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
1175 (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
1176 (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
1177 (R_AARCH64_TLSDESC): Likewise.
1178 (NT_ARM_TLS): Likewise.
1179 (NT_ARM_HW_BREAK): Likewise.
1180 (NT_ARM_HW_WATCH): Likewise.
1181
11822012-11-07 Joseph Myers <joseph@codesourcery.com>
1183
1184 [BZ #14811]
1185 * sysdeps/i386/fpu/e_powl.S (pm79): New object.
1186 (__ieee754_powl): Saturate nonzero exponents with absolute value
1187 below 0x1p-79 to +/- 0x1p-79.
1188 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
1189 exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
1190 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
1191 nonzero exponents with absolute value below 0x1p-32 to +/-
1192 0x1p-32.
1193 * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
1194 (__ieee754_powl): Saturate nonzero exponents with absolute value
1195 below 0x1p-79 to +/- 0x1p-79.
1196 * math/libm-test.inc (pow_test): Add more tests.
1197
11982012-11-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1199
1200 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
1201 _dl_s390_cap_flags with kernel. Increase string length.
1202 (_dl_s390_platforms): Add z196 and zEC12.
1203
12042012-11-07 Joseph Myers <joseph@codesourcery.com>
1205
1206 * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
1207 Change XOPEN21K to XOPEN2K.
1208
12092012-11-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1210
1211 * string/memmove.c: Use memcpy when possible.
1212
12132012-11-06 Andreas Jaeger <aj@suse.de>
1214
1215 * po/eo.po: Update from translation team.
1216
12172012-11-06 Joseph Myers <joseph@codesourcery.com>
1218
1219 [BZ #14793]
1220 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
1221 exponent and small x and y exponents, scale x or y up. Increase
1222 by 2 the exponent used in scaling up.
1223 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1224 * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1225 * math/libm-test.inc (fma_test): Add more tests.
1226 (fma_test_towardzero): Likewise.
1227 (fma_test_downward): Likewise.
1228 (fma_test_upward): Likewise.
1229
12302012-11-05 Joseph Myers <joseph@codesourcery.com>
1231
1232 [BZ #14805]
1233 * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
1234 fenv_t *.
1235
1236 [BZ #14801]
1237 * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
1238 namespace for names of struct fields.
1239 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
1240 fenv_t fields.
1241 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
1242 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1243
12442012-11-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1245
1246 [BZ #3665]
1247 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1248
12492012-11-04 Thomas Schwinge <thomas@codesourcery.com>
1250
1251 * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
1252 PTR_DEMANGLE.
1253
1254 [BZ #5246]
1255 * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
1256 PTR_DEMANGLE.
1257
12582012-11-04 Joseph Myers <joseph@codesourcery.com>
1259
1260 [BZ #14797]
1261 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
1262 definitely overflow as x * y not x * y + z.
1263 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1264 * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1265 * math/libm-test.inc (fma_test): Add more tests.
1266 (fma_test_towardzero): Likewise.
1267 (fma_test_downward): Likewise.
1268 (fma_test_upward): Likewise.
1269
12702012-11-04 Thomas Schwinge <thomas@codesourcery.com>
1271
1272 [BZ #157]
1273
1274 * include/stub-tag.h: Remove file.
1275 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
1276 '#include' of it.
1277 * manual/maint.texi (Porting): Don't reference it.
1278 * Makerules ($(objpfx)stubs): Likewise.
1279 * dirent/closedir.c: Don't include <stub-tag.h>.
1280 * dirent/dirfd.c: Likewise.
1281 * dirent/fdopendir.c: Likewise.
1282 * dirent/getdents.c: Likewise.
1283 * dirent/getdents64.c: Likewise.
1284 * dirent/opendir.c: Likewise.
1285 * dirent/readdir.c: Likewise.
1286 * dirent/readdir64.c: Likewise.
1287 * dirent/readdir64_r.c: Likewise.
1288 * dirent/readdir_r.c: Likewise.
1289 * dirent/rewinddir.c: Likewise.
1290 * dirent/seekdir.c: Likewise.
1291 * dirent/telldir.c: Likewise.
1292 * gmon/profil.c: Likewise.
1293 * grp/setgroups.c: Likewise.
1294 * inet/if_index.c: Likewise.
1295 * io/access.c: Likewise.
1296 * io/chdir.c: Likewise.
1297 * io/chmod.c: Likewise.
1298 * io/chown.c: Likewise.
1299 * io/close.c: Likewise.
1300 * io/dup.c: Likewise.
1301 * io/dup2.c: Likewise.
1302 * io/dup3.c: Likewise.
1303 * io/euidaccess.c: Likewise.
1304 * io/faccessat.c: Likewise.
1305 * io/fchdir.c: Likewise.
1306 * io/fchmod.c: Likewise.
1307 * io/fchmodat.c: Likewise.
1308 * io/fchown.c: Likewise.
1309 * io/fchownat.c: Likewise.
1310 * io/fcntl.c: Likewise.
1311 * io/flock.c: Likewise.
1312 * io/fstatfs.c: Likewise.
1313 * io/fstatfs64.c: Likewise.
1314 * io/fstatvfs.c: Likewise.
1315 * io/fstatvfs64.c: Likewise.
1316 * io/futimens.c: Likewise.
1317 * io/fxstat.c: Likewise.
1318 * io/fxstat64.c: Likewise.
1319 * io/fxstatat.c: Likewise.
1320 * io/fxstatat64.c: Likewise.
1321 * io/getcwd.c: Likewise.
1322 * io/isatty.c: Likewise.
1323 * io/lchmod.c: Likewise.
1324 * io/lchown.c: Likewise.
1325 * io/link.c: Likewise.
1326 * io/linkat.c: Likewise.
1327 * io/lseek.c: Likewise.
1328 * io/lseek64.c: Likewise.
1329 * io/lxstat64.c: Likewise.
1330 * io/mkdir.c: Likewise.
1331 * io/mkdirat.c: Likewise.
1332 * io/mkfifo.c: Likewise.
1333 * io/mkfifoat.c: Likewise.
1334 * io/open.c: Likewise.
1335 * io/open64.c: Likewise.
1336 * io/openat.c: Likewise.
1337 * io/openat64.c: Likewise.
1338 * io/pipe.c: Likewise.
1339 * io/pipe2.c: Likewise.
1340 * io/poll.c: Likewise.
1341 * io/posix_fadvise.c: Likewise.
1342 * io/posix_fadvise64.c: Likewise.
1343 * io/posix_fallocate.c: Likewise.
1344 * io/posix_fallocate64.c: Likewise.
1345 * io/read.c: Likewise.
1346 * io/readlink.c: Likewise.
1347 * io/readlinkat.c: Likewise.
1348 * io/rmdir.c: Likewise.
1349 * io/sendfile.c: Likewise.
1350 * io/sendfile64.c: Likewise.
1351 * io/statfs.c: Likewise.
1352 * io/statfs64.c: Likewise.
1353 * io/statvfs.c: Likewise.
1354 * io/statvfs64.c: Likewise.
1355 * io/symlink.c: Likewise.
1356 * io/symlinkat.c: Likewise.
1357 * io/ttyname.c: Likewise.
1358 * io/ttyname_r.c: Likewise.
1359 * io/umask.c: Likewise.
1360 * io/unlink.c: Likewise.
1361 * io/unlinkat.c: Likewise.
1362 * io/utime.c: Likewise.
1363 * io/utimensat.c: Likewise.
1364 * io/write.c: Likewise.
1365 * io/xmknod.c: Likewise.
1366 * io/xmknodat.c: Likewise.
1367 * io/xstat.c: Likewise.
1368 * io/xstat64.c: Likewise.
1369 * login/getpt.c: Likewise.
1370 * login/grantpt.c: Likewise.
1371 * login/unlockpt.c: Likewise.
1372 * math/e_acoshl.c: Likewise.
1373 * math/e_acosl.c: Likewise.
1374 * math/e_asinl.c: Likewise.
1375 * math/e_atan2l.c: Likewise.
1376 * math/e_atanhl.c: Likewise.
1377 * math/e_coshl.c: Likewise.
1378 * math/e_expl.c: Likewise.
1379 * math/e_fmodl.c: Likewise.
1380 * math/e_gammal_r.c: Likewise.
1381 * math/e_hypotl.c: Likewise.
1382 * math/e_j0l.c: Likewise.
1383 * math/e_j1l.c: Likewise.
1384 * math/e_jnl.c: Likewise.
1385 * math/e_lgammal_r.c: Likewise.
1386 * math/e_log10l.c: Likewise.
1387 * math/e_log2l.c: Likewise.
1388 * math/e_logl.c: Likewise.
1389 * math/e_powl.c: Likewise.
1390 * math/e_rem_pio2l.c: Likewise.
1391 * math/e_sinhl.c: Likewise.
1392 * math/e_sqrtl.c: Likewise.
1393 * math/fclrexcpt.c: Likewise.
1394 * math/fedisblxcpt.c: Likewise.
1395 * math/feenablxcpt.c: Likewise.
1396 * math/fegetenv.c: Likewise.
1397 * math/fegetexcept.c: Likewise.
1398 * math/fegetround.c: Likewise.
1399 * math/feholdexcpt.c: Likewise.
1400 * math/fesetenv.c: Likewise.
1401 * math/fesetround.c: Likewise.
1402 * math/feupdateenv.c: Likewise.
1403 * math/fgetexcptflg.c: Likewise.
1404 * math/fraiseexcpt.c: Likewise.
1405 * math/fsetexcptflg.c: Likewise.
1406 * math/ftestexcept.c: Likewise.
1407 * math/k_cosl.c: Likewise.
1408 * math/k_rem_pio2l.c: Likewise.
1409 * math/k_sinl.c: Likewise.
1410 * math/k_tanl.c: Likewise.
1411 * math/s_asinhl.c: Likewise.
1412 * math/s_atanl.c: Likewise.
1413 * math/s_cbrtl.c: Likewise.
1414 * math/s_erfl.c: Likewise.
1415 * math/s_expm1l.c: Likewise.
1416 * math/s_log1pl.c: Likewise.
1417 * math/s_tanhl.c: Likewise.
1418 * misc/acct.c: Likewise.
1419 * misc/brk.c: Likewise.
1420 * misc/chflags.c: Likewise.
1421 * misc/chroot.c: Likewise.
1422 * misc/fchflags.c: Likewise.
1423 * misc/fgetxattr.c: Likewise.
1424 * misc/flistxattr.c: Likewise.
1425 * misc/fremovexattr.c: Likewise.
1426 * misc/fsetxattr.c: Likewise.
1427 * misc/fsync.c: Likewise.
1428 * misc/ftruncate.c: Likewise.
1429 * misc/futimes.c: Likewise.
1430 * misc/futimesat.c: Likewise.
1431 * misc/getdomain.c: Likewise.
1432 * misc/getdtsz.c: Likewise.
1433 * misc/gethostid.c: Likewise.
1434 * misc/gethostname.c: Likewise.
1435 * misc/getloadavg.c: Likewise.
1436 * misc/getpagesize.c: Likewise.
1437 * misc/getsysstats.c: Likewise.
1438 * misc/getxattr.c: Likewise.
1439 * misc/gtty.c: Likewise.
1440 * misc/ioctl.c: Likewise.
1441 * misc/lgetxattr.c: Likewise.
1442 * misc/listxattr.c: Likewise.
1443 * misc/llistxattr.c: Likewise.
1444 * misc/lremovexattr.c: Likewise.
1445 * misc/lsetxattr.c: Likewise.
1446 * misc/lutimes.c: Likewise.
1447 * misc/madvise.c: Likewise.
1448 * misc/mincore.c: Likewise.
1449 * misc/mlock.c: Likewise.
1450 * misc/mlockall.c: Likewise.
1451 * misc/mmap.c: Likewise.
1452 * misc/mprotect.c: Likewise.
1453 * misc/msync.c: Likewise.
1454 * misc/munlock.c: Likewise.
1455 * misc/munlockall.c: Likewise.
1456 * misc/munmap.c: Likewise.
1457 * misc/preadv.c: Likewise.
1458 * misc/preadv64.c: Likewise.
1459 * misc/ptrace.c: Likewise.
1460 * misc/pwritev.c: Likewise.
1461 * misc/pwritev64.c: Likewise.
1462 * misc/readv.c: Likewise.
1463 * misc/reboot.c: Likewise.
1464 * misc/remap_file_pages.c: Likewise.
1465 * misc/removexattr.c: Likewise.
1466 * misc/revoke.c: Likewise.
1467 * misc/select.c: Likewise.
1468 * misc/setdomain.c: Likewise.
1469 * misc/setegid.c: Likewise.
1470 * misc/seteuid.c: Likewise.
1471 * misc/sethostid.c: Likewise.
1472 * misc/sethostname.c: Likewise.
1473 * misc/setregid.c: Likewise.
1474 * misc/setreuid.c: Likewise.
1475 * misc/setxattr.c: Likewise.
1476 * misc/sstk.c: Likewise.
1477 * misc/stty.c: Likewise.
1478 * misc/swapoff.c: Likewise.
1479 * misc/swapon.c: Likewise.
1480 * misc/sync.c: Likewise.
1481 * misc/syncfs.c: Likewise.
1482 * misc/syscall.c: Likewise.
1483 * misc/truncate.c: Likewise.
1484 * misc/ualarm.c: Likewise.
1485 * misc/usleep.c: Likewise.
1486 * misc/ustat.c: Likewise.
1487 * misc/utimes.c: Likewise.
1488 * misc/vhangup.c: Likewise.
1489 * misc/writev.c: Likewise.
1490 * posix/_exit.c: Likewise.
1491 * posix/alarm.c: Likewise.
1492 * posix/execve.c: Likewise.
1493 * posix/fexecve.c: Likewise.
1494 * posix/fork.c: Likewise.
1495 * posix/fpathconf.c: Likewise.
1496 * posix/getaddrinfo.c: Likewise.
1497 * posix/getegid.c: Likewise.
1498 * posix/geteuid.c: Likewise.
1499 * posix/getgid.c: Likewise.
1500 * posix/getgroups.c: Likewise.
1501 * posix/getlogin.c: Likewise.
1502 * posix/getlogin_r.c: Likewise.
1503 * posix/getpgid.c: Likewise.
1504 * posix/getpid.c: Likewise.
1505 * posix/getppid.c: Likewise.
1506 * posix/getresgid.c: Likewise.
1507 * posix/getresuid.c: Likewise.
1508 * posix/getsid.c: Likewise.
1509 * posix/getuid.c: Likewise.
1510 * posix/glob64.c: Likewise.
1511 * posix/nanosleep.c: Likewise.
1512 * posix/pathconf.c: Likewise.
1513 * posix/pause.c: Likewise.
1514 * posix/posix_madvise.c: Likewise.
1515 * posix/pread.c: Likewise.
1516 * posix/pread64.c: Likewise.
1517 * posix/pwrite.c: Likewise.
1518 * posix/pwrite64.c: Likewise.
1519 * posix/sched_getaffinity.c: Likewise.
1520 * posix/sched_getp.c: Likewise.
1521 * posix/sched_gets.c: Likewise.
1522 * posix/sched_primax.c: Likewise.
1523 * posix/sched_primin.c: Likewise.
1524 * posix/sched_rr_gi.c: Likewise.
1525 * posix/sched_setaffinity.c: Likewise.
1526 * posix/sched_setp.c: Likewise.
1527 * posix/sched_sets.c: Likewise.
1528 * posix/sched_yield.c: Likewise.
1529 * posix/setgid.c: Likewise.
1530 * posix/setlogin.c: Likewise.
1531 * posix/setpgid.c: Likewise.
1532 * posix/setresgid.c: Likewise.
1533 * posix/setresuid.c: Likewise.
1534 * posix/setsid.c: Likewise.
1535 * posix/setuid.c: Likewise.
1536 * posix/sleep.c: Likewise.
1537 * posix/spawni.c: Likewise.
1538 * posix/sysconf.c: Likewise.
1539 * posix/times.c: Likewise.
1540 * posix/wait.c: Likewise.
1541 * posix/wait3.c: Likewise.
1542 * posix/wait4.c: Likewise.
1543 * posix/waitpid.c: Likewise.
1544 * resolv/gai_sigqueue.c: Likewise.
1545 * resource/getpriority.c: Likewise.
1546 * resource/getrlimit.c: Likewise.
1547 * resource/getrusage.c: Likewise.
1548 * resource/nice.c: Likewise.
1549 * resource/setpriority.c: Likewise.
1550 * resource/setrlimit.c: Likewise.
1551 * resource/ulimit.c: Likewise.
1552 * rt/aio_cancel.c: Likewise.
1553 * rt/aio_fsync.c: Likewise.
1554 * rt/aio_read.c: Likewise.
1555 * rt/aio_sigqueue.c: Likewise.
1556 * rt/aio_suspend.c: Likewise.
1557 * rt/aio_write.c: Likewise.
1558 * rt/clock_getres.c: Likewise.
1559 * rt/clock_gettime.c: Likewise.
1560 * rt/clock_nanosleep.c: Likewise.
1561 * rt/clock_settime.c: Likewise.
1562 * rt/lio_listio.c: Likewise.
1563 * rt/mq_close.c: Likewise.
1564 * rt/mq_getattr.c: Likewise.
1565 * rt/mq_notify.c: Likewise.
1566 * rt/mq_open.c: Likewise.
1567 * rt/mq_receive.c: Likewise.
1568 * rt/mq_send.c: Likewise.
1569 * rt/mq_setattr.c: Likewise.
1570 * rt/mq_timedreceive.c: Likewise.
1571 * rt/mq_timedsend.c: Likewise.
1572 * rt/mq_unlink.c: Likewise.
1573 * rt/shm_open.c: Likewise.
1574 * rt/shm_unlink.c: Likewise.
1575 * rt/timer_create.c: Likewise.
1576 * rt/timer_delete.c: Likewise.
1577 * rt/timer_getoverr.c: Likewise.
1578 * rt/timer_gettime.c: Likewise.
1579 * rt/timer_settime.c: Likewise.
1580 * setjmp/__longjmp.c: Likewise.
1581 * setjmp/setjmp.c: Likewise.
1582 * signal/kill.c: Likewise.
1583 * signal/killpg.c: Likewise.
1584 * signal/raise.c: Likewise.
1585 * signal/sigaction.c: Likewise.
1586 * signal/sigaltstack.c: Likewise.
1587 * signal/sigblock.c: Likewise.
1588 * signal/sigignore.c: Likewise.
1589 * signal/sigintr.c: Likewise.
1590 * signal/signal.c: Likewise.
1591 * signal/sigpause.c: Likewise.
1592 * signal/sigpending.c: Likewise.
1593 * signal/sigqueue.c: Likewise.
1594 * signal/sigreturn.c: Likewise.
1595 * signal/sigset.c: Likewise.
1596 * signal/sigsetmask.c: Likewise.
1597 * signal/sigstack.c: Likewise.
1598 * signal/sigsuspend.c: Likewise.
1599 * signal/sigtimedwait.c: Likewise.
1600 * signal/sigvec.c: Likewise.
1601 * signal/sigwait.c: Likewise.
1602 * signal/sigwaitinfo.c: Likewise.
1603 * signal/sysv_signal.c: Likewise.
1604 * socket/accept.c: Likewise.
1605 * socket/accept4.c: Likewise.
1606 * socket/bind.c: Likewise.
1607 * socket/connect.c: Likewise.
1608 * socket/getpeername.c: Likewise.
1609 * socket/getsockname.c: Likewise.
1610 * socket/getsockopt.c: Likewise.
1611 * socket/isfdtype.c: Likewise.
1612 * socket/listen.c: Likewise.
1613 * socket/recv.c: Likewise.
1614 * socket/recvfrom.c: Likewise.
1615 * socket/recvmsg.c: Likewise.
1616 * socket/send.c: Likewise.
1617 * socket/sendmsg.c: Likewise.
1618 * socket/sendto.c: Likewise.
1619 * socket/setsockopt.c: Likewise.
1620 * socket/shutdown.c: Likewise.
1621 * socket/sockatmark.c: Likewise.
1622 * socket/socket.c: Likewise.
1623 * socket/socketpair.c: Likewise.
1624 * stdio-common/ctermid.c: Likewise.
1625 * stdio-common/cuserid.c: Likewise.
1626 * stdio-common/remove.c: Likewise.
1627 * stdio-common/rename.c: Likewise.
1628 * stdio-common/renameat.c: Likewise.
1629 * stdio-common/tempname.c: Likewise.
1630 * stdlib/getcontext.c: Likewise.
1631 * stdlib/makecontext.c: Likewise.
1632 * stdlib/setcontext.c: Likewise.
1633 * stdlib/swapcontext.c: Likewise.
1634 * stdlib/system.c: Likewise.
1635 * streams/fattach.c: Likewise.
1636 * streams/fdetach.c: Likewise.
1637 * streams/getmsg.c: Likewise.
1638 * streams/getpmsg.c: Likewise.
1639 * streams/putmsg.c: Likewise.
1640 * streams/putpmsg.c: Likewise.
1641 * sysdeps/unix/bsd/getpt.c: Likewise.
1642 * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1643 * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1644 * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1646 Likewise.
1647 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1648 * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1649 * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1650 * sysvipc/msgctl.c: Likewise.
1651 * sysvipc/msgget.c: Likewise.
1652 * sysvipc/msgrcv.c: Likewise.
1653 * sysvipc/msgsnd.c: Likewise.
1654 * sysvipc/semctl.c: Likewise.
1655 * sysvipc/semget.c: Likewise.
1656 * sysvipc/semop.c: Likewise.
1657 * sysvipc/semtimedop.c: Likewise.
1658 * sysvipc/shmat.c: Likewise.
1659 * sysvipc/shmctl.c: Likewise.
1660 * sysvipc/shmdt.c: Likewise.
1661 * sysvipc/shmget.c: Likewise.
1662 * termios/tcdrain.c: Likewise.
1663 * termios/tcflow.c: Likewise.
1664 * termios/tcflush.c: Likewise.
1665 * termios/tcgetattr.c: Likewise.
1666 * termios/tcgetpgrp.c: Likewise.
1667 * termios/tcsendbrk.c: Likewise.
1668 * termios/tcsetattr.c: Likewise.
1669 * termios/tcsetpgrp.c: Likewise.
1670 * time/adjtime.c: Likewise.
1671 * time/clock.c: Likewise.
1672 * time/getitimer.c: Likewise.
1673 * time/gettimeofday.c: Likewise.
1674 * time/setitimer.c: Likewise.
1675 * time/settimeofday.c: Likewise.
1676 * time/stime.c: Likewise.
1677 * time/time.c: Likewise.
1678
16792012-11-04 Pino Toscano <toscano.pino@tiscali.it>
1680
1681 * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1682 /usr/old/bin.
1683
1684 * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1685 instead of spaces.
1686 * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1687
16882012-11-03 Joseph Myers <joseph@codesourcery.com>
1689
1690 [BZ #14796]
1691 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1692 FE_TONEAREST before applying Dekker multiplication and Knuth
1693 addition. Clear inexact exceptions and check for exact zero
1694 results afterwards.
1695 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1696 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1697 * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1698 * math/libm-test.inc (fma_test): Add more tests.
1699 (fma_test_towardzero): Likewise.
1700 (fma_test_downward): Likewise.
1701 (fma_test_upward): Likewise.
1702 * sysdeps/generic/math_private.h (default_libc_fesetround): New
1703 function.
1704 (libc_fesetround): New macro.
1705 (libc_fesetroundf): Likewise.
1706 (libc_fesetroundl): Likewise.
1707 * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1708 function.
1709 (libc_fesetround_387): Likewise.
1710 (libc_fesetroundf): New macro.
1711 (libc_fesetround): Likewise.
1712 (libc_fesetroundl): Likewise.
1713 * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1714 function.
1715 (libc_fesetroundf): New macro.
1716 (libc_fesetround): Likewise.
1717 (libc_fesetroundl): Likewise.
1718 * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1719 * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1720 * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1721 libm_hidden_ver.
1722 * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1723 * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1724 libm_hidden_def.
1725 * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1726 * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1727 libm_hidden_ver.
1728 * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1729 libm_hidden_def.
1730
1731 [BZ #3439]
1732 * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1733 integer constant usable in #if and use that to give value to enum
1734 constant.
1735 (FE_DIVBYZERO): Likewise.
1736 (FE_UNDERFLOW): Likewise.
1737 (FE_OVERFLOW): Likewise.
1738 (FE_INVALID): Likewise.
1739 (FE_INVALID_SNAN): Likewise.
1740 (FE_INVALID_ISI): Likewise.
1741 (FE_INVALID_IDI): Likewise.
1742 (FE_INVALID_ZDZ): Likewise.
1743 (FE_INVALID_IMZ): Likewise.
1744 (FE_INVALID_COMPARE): Likewise.
1745 (FE_INVALID_SOFTWARE): Likewise.
1746 (FE_INVALID_SQRT): Likewise.
1747 (FE_INVALID_INTEGER_CONVERSION): Likewise.
1748 (FE_TONEAREST): Likewise.
1749 (FE_TOWARDZERO): Likewise.
1750 (FE_UPWARD): Likewise.
1751 (FE_DOWNWARD): Likewise.
1752 * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1753 (FE_DIVBYZERO): Likewise.
1754 (FE_OVERFLOW): Likewise.
1755 (FE_UNDERFLOW): Likewise.
1756 (FE_INEXACT): Likewise.
1757 (FE_TONEAREST): Likewise.
1758 (FE_DOWNWARD): Likewise.
1759 (FE_UPWARD): Likewise.
1760 (FE_TOWARDZERO): Likewise.
1761 * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1762 (FE_UNDERFLOW): Likewise.
1763 (FE_OVERFLOW): Likewise.
1764 (FE_DIVBYZERO): Likewise.
1765 (FE_INVALID): Likewise.
1766 (FE_TONEAREST): Likewise.
1767 (FE_TOWARDZERO): Likewise.
1768 * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1769 (FE_OVERFLOW): Likewise.
1770 (FE_UNDERFLOW): Likewise.
1771 (FE_DIVBYZERO): Likewise.
1772 (FE_INEXACT): Likewise.
1773 (FE_TONEAREST): Likewise.
1774 (FE_TOWARDZERO): Likewise.
1775 (FE_UPWARD): Likewise.
1776 (FE_DOWNWARD): Likewise.
1777 * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1778 (FE_DIVBYZERO): Likewise.
1779 (FE_OVERFLOW): Likewise.
1780 (FE_UNDERFLOW): Likewise.
1781 (FE_INEXACT): Likewise.
1782 (FE_TONEAREST): Likewise.
1783 (FE_DOWNWARD): Likewise.
1784 (FE_UPWARD): Likewise.
1785 (FE_TOWARDZERO): Likewise.
1786
17872012-11-02 Chris Metcalf <cmetcalf@tilera.com>
1788
1789 * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1790
17912012-11-03 Andreas Schwab <schwab@linux-m68k.org>
1792
1793 * scripts/cross-test-ssh.sh (command): Use newlines to separate
1794 commands. Quote $PWD.
1795 (blacklist_exports): Don't use remove_newlines. Replace "declare
1796 -x" by "export".
1797 (remove_newlines): Remove.
1798
17992012-11-02 H.J. Lu <hongjiu.lu@intel.com>
1800
1801 * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1802 * stdlib/stdlib.h (atof): Moved to ...
1803 * include/bits/stdlib-float.h: Here. New file.
1804 * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1805 * stdlib/bits/stdlib-float.h: New file.
1806 * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1807 -mno-sse -mno-mmx.
1808 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1809 <xmmintrin.h>.
1810
18112012-11-02 Joseph Myers <joseph@codesourcery.com>
1812
1813 * conform/conformtest.pl (@headers): Add fenv.h.
1814 * conform/data/fenv.h-data: New file.
1815 * include/fenv.h [_ISOMAC]: Disable all contents of file except
1816 include of <math/fenv.h>.
1817
1818 * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1819 POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1820 && !UNIX98]. Enables tests for XOPEN2K8.
1821 * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1822 POSIX2008]: Likewise.
1823
1824 * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1825 (struct rusage): Do not expect type or its members.
1826
1827 [BZ #3439]
1828 * math/math.h (FP_NAN): Define macro to integer constant usable in
1829 #if and use that to give value to enum constant.
1830 (FP_INFINITE): Likewise.
1831 (FP_ZERO): Likewise.
1832 (FP_SUBNORMAL): Likewise.
1833 (FP_NORMAL): Likewise.
1834
18352012-11-02 Andreas Schwab <schwab@linux-m68k.org>
1836
1837 * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1838 * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1839 arguments.
1840
18412012-11-02 Roland McGrath <roland@hack.frob.com>
1842
1843 * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1844 Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1845 autoconf-time if not.
1846 * configure.in: Remove AC_PREREQ.
1847
18482012-11-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1849
1850 * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1851 __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1852 of the internal implementation.
1853
18542012-11-02 Joseph Myers <joseph@codesourcery.com>
1855
1856 * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1857 except include of <misc/sys/syslog.h>.
1858
18592012-11-01 Andreas Schwab <schwab@linux-m68k.org>
1860
1861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1862 function returns with a NULL context exit with zero.
1863
18642012-11-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1865
1866 * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1867
18682012-11-01 H.J. Lu <hongjiu.lu@intel.com>
1869
1870 * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1871 (run_program_cmd): This.
1872 * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1873 (tst_langinfo): New variable. Use it.
1874
18752012-11-01 Sebastan Andrzej Siewior <bigeasy@linutronix.de>
1876
1877 * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1878 floating point opcodes.
1879
18802012-11-01 Thomas Schwinge <thomas@codesourcery.com>
1881
1882 * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1883 variable.
1884
1885 * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1886
1887 * sysdeps/mach/hurd/powerpc: Remove directory.
1888 * sysdeps/mach/powerpc: Likewise.
1889
18902012-11-01 Andreas Schwab <schwab@linux-m68k.org>
1891
1892 * scripts/check-local-headers.sh: Ignore c++ headers.
1893
18942012-11-01 Thomas Schwinge <thomas@codesourcery.com>
1895
1896 * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1897 __libc_cleanup_region_start argument.
1898
18992012-11-01 Joseph Myers <joseph@codesourcery.com>
1900
1901 [BZ #14784]
1902 [BZ #14785]
1903 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1904 x * y using scaling, not as x * y + z.
1905 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1906 * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1907 * math/libm-test.inc (fma_test): Add more tests.
1908 (fma_test_towardzero): Likewise.
1909 (fma_test_downward): Likewise.
1910 (fma_test_upward): Likewise.
1911
19122012-11-01 Thomas Schwinge <thomas@codesourcery.com>
1913
1914 * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1915
19162012-10-31 Joseph Myers <joseph@codesourcery.com>
1917
1918 * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1919 New variable.
1920
19212012-10-31 Thomas Schwinge <thomas@codesourcery.com>
1922
1923 * rt/tst-shm.c (worker): Correct checking for mmap failure.
1924
19252012-10-31 Andreas Schwab <schwab@linux-m68k.org>
1926
1927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1928 Fix sort order.
1929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1930 Likewise.
1931
19322012-10-31 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1933
1934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1935 Fix the order of the list for glibc 2.17.
1936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1937 Likewise.
1938
19392012-10-31 Andreas Schwab <schwab@linux-m68k.org>
1940
1941 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1942
19432012-10-31 Joseph Myers <joseph@codesourcery.com>
1944
1945 [BZ #14610]
1946 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1947 for low part of x being zero before using __atanl (y).
1948 * math/libm-test.inc (atan2_test): Add another test.
1949
1950 * manual/install.texi (Configuring and compiling): Document
1951 general use of test-wrapper and test-wrapper-env.
1952 * INSTALL: Regenerated.
1953
1954 * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1955 (__fma): Do not extract and scale down low bits on after-rounding
1956 systems when result rounded to normal precision would have normal
1957 exponent.
1958 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1959 (__fmal): Do not extract and scale down low bits on after-rounding
1960 systems when result rounded to normal precision would have normal
1961 exponent.
1962 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1963 (__fmal): Do not extract and scale down low bits on after-rounding
1964 systems when result rounded to normal precision would have normal
1965 exponent.
1966 * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1967 macro.
1968 (fma_test): Add more tests.
1969 (fma_test_towardzero): Likewise.
1970 (fma_test_downward): Likewise.
1971 (fma_test_upward): Likewise.
1972
19732012-10-30 H.J. Lu <hongjiu.lu@intel.com>
1974
1975 * sysdeps/i386/tininess.h: Renamed to ...
1976 * sysdeps/x86/tininess.h: This.
1977 * sysdeps/x86_64/tininess.h: Removed.
1978
19792012-10-30 Joseph Myers <joseph@codesourcery.com>
1980
1981 * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1982 input. Use $(build-program-cmd).
1983 ($(objpfx)tst-array1-static.out): Likewise.
1984 ($(objpfx)tst-array2.out): Likewise.
1985 ($(objpfx)tst-array3.out): Likewise.
1986 ($(objpfx)tst-array4.out): Likewise.
1987 ($(objpfx)tst-array5.out): Likewise.
1988 ($(objpfx)tst-array5-static.out): Likewise.
1989
19902012-10-30 Chris Metcalf <cmetcalf@tilera.com>
1991
1992 * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1993 if defined.
1994
1995 * nss/nsswitch.h (nss_interface_function): Provide new
1996 macro for use with NSS functions.
1997 * grp/initgroups.c: Use new macro.
1998 * nss/getXXbyYY.c: Likewise.
1999 * nss/getXXbyYY_r.c: Likewise.
2000 * nss/getXXent.c: Likewise.
2001 * nss/getXXent_r.c: Likewise.
2002 * sysdeps/posix/getaddrinfo.c: Likewise.
2003
20042012-10-30 Andreas Jaeger <aj@suse.de>
2005
2006 * po/ru.po: Update Russion translation from translation project.
2007
20082012-10-30 Joseph Myers <joseph@codesourcery.com>
2009
2010 [BZ #14152]
2011 [BZ #14783]
2012 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
2013 result and shift together with sticky bit instead of replicating
2014 round-to-nearest rounding.
2015 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2016 * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2017 * math/libm-test.inc (fma_test): Add more tests. Do not permit
2018 missing underflow exceptions.
2019 (fma_test_towardzero): Add more tests.
2020 (fma_test_downward): Likewise.
2021 (fma_test_upward): Likewise.
2022
2023 [BZ #14047]
2024 * sysdeps/generic/tininess.h: New file.
2025 * sysdeps/i386/tininess.h: Likewise.
2026 * sysdeps/sh/tininess.h: Likewise.
2027 * sysdeps/x86_64/tininess.h: Likewise.
2028 * stdlib/tst-strtod-underflow.c: Likewise.
2029 * stdlib/tst-tininess.c: Likewise.
2030 * stdlib/strtod_l.c: Include <tininess.h>.
2031 (round_and_return): Do not set errno for exact underflow cases.
2032 Force an underflow exception when setting errno for underflow.
2033 Determine underflow based on rounding to normal precision if
2034 TININESS_AFTER_ROUNDING.
2035 * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
2036 ERANGE for exact underflow cases.
2037 * stdlib/Makefile (tests): Add tst-tininess and
2038 tst-strtod-underflow.
2039 ($(objpfx)tst-tininess): Use $(link-libm).
2040 ($(objpfx)tst-strtod-underflow): Likewise.
2041
20422012-10-30 Andreas Jaeger <aj@suse.de>
2043
2044 [BZ#14767]
2045 * elf/Makefile (tests): Remove conditional for have-initfini-array
2046 since this is now always required and the variable does not exist
2047 anymore.
2048 (tests-static): Likewise.
2049 (modules-names): Likewise.
2050
2051 * po/eo.po: Add Esperanto translation from translation project.
2052
2053 * elf/tst-array1.c (fini_array): Make writeable so that it can be
2054 merged with constructor/destructor.
2055 (init_array): Likewise.
2056 * elf/tst-array2dep.c (fini_array): Likewise.
2057 (init_array): Likewise.
2058
20592012-10-29 Mike Frysinger <vapier@gentoo.org>
2060
2061 * manual/message.texi: Delete @cartouche tags.
2062
20632012-10-29 Pino Toscano <toscano.pino@tiscali.it>
2064
2065 * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
2066 EOPNOTSUPP.
2067 * sysdeps/mach/hurd/fsync.c: Likewise.
2068
2069 * sysdeps/pthread/aio_notify.c (__aio_notify_only)
2070 [_POSIX_REALTIME_SIGNALS]: Change condition to
2071 [_POSIX_REALTIME_SIGNALS > 0].
2072
20732012-10-27 Andreas Jaeger <aj@suse.de>
2074
2075 * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
2076 [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
2077 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
2078 [__WORDSIZE != 64]: Likewise.
2079
20802012-10-26 H.J. Lu <hongjiu.lu@intel.com>
2081
2082 * iconvdata/tst-table.sh: Remove ${SHELL}.
2083 * iconvdata/tst-tables.sh: Likewise.
2084
20852012-10-25 David S. Miller <davem@davemloft.net>
2086
2087 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2088 (__get_clockfreq_via_proc_openprom): Use strtoumax instead
2089 of strtoull.
2090
2091 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
2092 ifunc-impl-list.c
2093 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2094 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
2095 * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
2096 file.
2097
20982012-10-25 Roland McGrath <roland@hack.frob.com>
2099
2100 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2101 (__get_clockfreq_via_proc_openprom): Use __getdents instead of
2102 __getdirentries.
2103
21042012-10-25 Joseph Myers <joseph@codesourcery.com>
2105 Jim Blandy <jimb@codesourcery.com>
2106
2107 * scripts/cross-test-ssh.sh: New file.
2108 * manual/install.texi (Configuring and compiling): Document use of
2109 cross-test-ssh.sh.
2110 * INSTALL: Regenerated.
2111
21122012-10-25 Pino Toscano <toscano.pino@tiscali.it>
2113
2114 * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
2115 EOPNOTSUPP.
2116
21172012-10-25 Joseph Myers <joseph@codesourcery.com>
2118
2119 * Makeconfig (run-program-prefix): Fix comment.
2120
21212012-10-24 Joseph Myers <joseph@codesourcery.com>
2122 Jim Blandy <jimb@codesourcery.com>
2123
2124 * Makeconfig (test-wrapper): New variable,
2125 (test-wrapper-env): Likewise.
2126 [$(cross-compiling) = yes && $(test-wrapper) != ""]
2127 (run-built-tests): Define to yes.
2128 (run-program-prefix): Use $(test-wrapper).
2129 (built-program-cmd): Likewise.
2130 * Rules (make-test-out): Use $(test-wrapper-env) and
2131 $(host-built-program-cmd).
2132 * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
2133 ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
2134 tst-pathopt.sh.
2135 ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
2136 $(test-wrapper-env) to tst-rtld-load-self.sh.
2137 ($(objpfx)order2.out): Use $(test-wrapper).
2138 ($(objpfx)tst-initorder.out): Likewise.
2139 ($(objpfx)tst-initorder2.out): Likewise.
2140 ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
2141 * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
2142 (test_wrapper_env): New variable. Use it to run ld.so.
2143 * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
2144 Use it to run ld.so.
2145 (test_wrapper_env): Likewise.
2146 * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
2147 $(test-wrapper) to run-iconv-test.sh.
2148 * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
2149 (ICONV): Use $test_wrapper.
2150 * posix/Makefile ($(objpfx)globtest.out): Pass
2151 $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
2152 globtest.sh, not $(run-program-prefix).
2153 * posix/globtest.sh (run_via_rtld_prefix): New variable.
2154 (test_wrapper): Likewise.
2155 (test_wrapper_env): Likewise. Use it to run globtest with HOME
2156 set together with run_via_rtld_prefix.
2157 (run_program_prefix): Define in terms of test_wrapper and
2158 run_via_rtld_prefix.
2159
21602012-10-24 Roland McGrath <roland@hack.frob.com>
2161
2162 * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
2163 * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
2164 Targets removed.
2165
2166 [BZ #14743]
2167 * include/time.h: Remove librt_hidden_proto (clock_gettime).
2168 Declare __clock_getres, __clock_gettime, __clock_settime,
2169 __clock_nanosleep, and __clock_getcpuclockid.
2170 * rt/clock_gettime.c: Define __clock_gettime as an alias.
2171 Remove librt_hidden_def (clock_gettime).
2172 * sysdeps/unix/clock_gettime.c: Likewise.
2173 * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
2174 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
2175 * rt/clock_getres.c: Define __clock_getres as an alias.
2176 * sysdeps/posix/clock_getres.c: Likewise.
2177 * rt/clock_settime.c: Define __clock_settime as an alias.
2178 * sysdeps/unix/clock_settime.c: Likewise.
2179 * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
2180 * sysdeps/unix/clock_nanosleep.c: Likewise.
2181 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2182 * rt/clock-compat.c: New file.
2183 * rt/Makefile (librt-routines): Add clock-compat and move
2184 $(clock-routines) to ...
2185 (routines): ... here, new variable.
2186 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
2187 Don't add get_clockfreq here.
2188 * rt/Versions (libc: GLIBC_2.17): New version set.
2189 Add clock_* symbols here.
2190 (libc: GLIBC_PRIVATE): New version set. Add __clock_* symbols here.
2191 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
2192 (GLIBC_2.17): Add clock_* symbols.
2193 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2194 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2195 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2197 Likewise.
2198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2199 Likewise.
2200 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2201 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2202 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2203 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2204 * NEWS: Mention the move.
2205
2206 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
2207 Use __open, __read, __close rather than their public counterparts.
2208 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2209 (__get_clockfreq_via_cpuinfo): Likewise.
2210 (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
2211 (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
2212
2213 * config.h.in (HAVE_IFUNC): New #undef.
2214 * configure.in: Define it if libc_cv_ld_gnu_indirect_function
2215 was successful.
2216 * configure: Regenerated.
2217
22182012-10-24 Mike Frysinger <vapier@gentoo.org>
2219
2220 * configure.in: Move READELF check to start of file.
2221 (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
2222 libc_cv_asm_gnu_indirect_function in the process.
2223 * configure: Regenerated.
2224
22252012-10-24 Mike Frysinger <vapier@gentoo.org>
2226
2227 * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
2228 send the output to /dev/null.
2229 (libc_cv_cc_with_libunwind): Likewise.
2230 (libc_cv_as_noexecstack): Likewise.
2231 * configure: Regenerate.
2232
22332012-10-24 Joseph Myers <joseph@codesourcery.com>
2234
2235 * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
2236
2237 * posix/globtest.sh (TMPDIR): Do not set.
2238 (testdir): Define using ${common_objpfx}posix not $TMPDIR.
2239 (testout): Likewise.
2240
22412012-10-24 Andreas Jaeger <aj@suse.de>
2242
2243 * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
2244 types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
2245 [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
2246 [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
2247 posix_fadvise64, posix_fallocate64.
2248
2249 * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
2250 (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
2251 (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
2252 Likewise.
2253 (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
2254 Likewise.
2255 (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
2256
2257 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
2258 (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
2259 <bits/fcntl-linux.h>.
2260 (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
2261
2262 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
2263 (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
2264 (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
2265 (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
2266 [__WORDSIZE != 64]: Likewise.
2267
22682012-10-23 Joseph Myers <joseph@codesourcery.com>
2269
2270 * Makeconfig (run-built-tests): New variable.
2271 * Rules [$(cross-compiling) = yes]: Change condition to
2272 [$(run-built-tests) = no].
2273 * catgets/Makefile [$(cross-compiling) != yes]: Change condition
2274 to [$(run-built-tests) = yes].
2275 * elf/Makefile [$(cross-compiling) = no]: Likewise
2276 * grp/Makefile [$(cross-compiling) = no]: Likewise.
2277 * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
2278 * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
2279 * intl/Makefile [$(cross-compiling) = no]: Likewise.
2280 * io/Makefile [$(cross-compiling) = no]: Likewise.
2281 * libio/Makefile [$(cross-compiling) = no]: Likewise.
2282 * malloc/Makefile [$(cross-compiling) = no]: Likewise.
2283 * misc/Makefile [$(cross-compiling) = no]: Likewise.
2284 * posix/Makefile [$(cross-compiling) = no]: Likewise.
2285 * resolv/Makefile [$(cross-compiling) = no]: Likewise.
2286 * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
2287 * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
2288 * string/Makefile [$(cross-compiling) = no]: Likewise.
2289
2290 * posix/Makefile ($(objpfx)globtest.out): Pass
2291 $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
2292 $(rtld-installed-name).
2293 * posix/globtest.sh (elf_objpfx): Remove variable.
2294 (rtld_installed_name): Likewise.
2295 (library_path): Likewise.
2296 (run_program_prefix): New variable. Use for running globtest
2297 binary.
2298
22992012-10-23 Jim Blandy <jimb@codesourcery.com>
2300 Joseph Myers <joseph@codesourcery.com>
2301
2302 * Makeconfig (host-built-program-cmd): New variable.
2303 * elf/Makefile (tst-stackguard1-ARGS): Use
2304 $(host-built-program-cmd).
2305 * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
2306 (tst-spawn-ARGS): Likewise.
2307 * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
2308
23092012-10-23 Joseph Myers <joseph@codesourcery.com>
2310 Jim Blandy <jimb@codesourcery.com>
2311
2312 * Makeconfig (run-via-rtld-prefix): New variable.
2313 (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
2314 (built-program-cmd): Likewise.
2315
23162012-10-22 Andreas Jaeger <aj@suse.de>
2317
2318 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
2319 __O_RSYNC if it exists, otherwise to O_SYNC.
2320
23212012-10-22 Jim Blandy <jimb@codesourcery.com>
2322 Joseph Myers <joseph@codesourcery.com>
2323
2324 * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
2325 /dev/null.
2326 * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
2327 from /dev/null
2328 * posix/tst-getconf.sh: Redirect getconf stdin in loop from
2329 /dev/null.
2330
23312012-10-22 Andreas Jaeger <aj@suse.de>
2332
2333 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
2334 Define always.
2335 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
2336
2337 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2338 bits/fcntl-linux.h.
2339
2340 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
2341 (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
2342
2343 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
2344 to __O_LARGEFILE.
2345 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
2346 to __O_LARGEFILE.
2347
23482012-10-21 Jim Blandy <jimb@codesourcery.com>
2349 Joseph Myers <joseph@codesourcery.com>
2350
2351 * config.make.in (NM): New variable.
2352
23532012-10-21 Andreas Jaeger <aj@suse.de>
2354
2355 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
2356 definitions and declarations that are provided by
2357 <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2358
23592012-10-20 H.J. Lu <hongjiu.lu@intel.com>
2360
2361 [BZ #14683]
2362 * elf/Makefile (tests-static): Add tst-leaks1-static.
2363 (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
2364 ($(objpfx)tst-leaks1-static): New rule.
2365 ($(objpfx)tst-leaks1-static-mem): Likewise.
2366 (tst-leaks1-static-ENV): New macro.
2367 * elf/dl-open.c (dl_open_worker): Check the main application
2368 only if SHARED is defined.
2369 * elf/tst-leaks1-static.c: New file.
2370
23712012-10-20 Andreas Jaeger <aj@suse.de>
2372
2373 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
2374 generic values for Linux.
2375 * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
2376 and declarations that are provided by <bits/fcntl-linux.h> and
2377 include <bits/fcntl-linux.h>.
2378 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2379 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2380
23812012-10-20 Roland McGrath <roland@hack.frob.com>
2382
2383 * io/fcntl.h: Move include of <bits/types.h> to the top and
2384 include it unconditionally.
2385
23862012-10-20 H.J. Lu <hongjiu.lu@intel.com>
2387
2388 * wcsmbs/Makefile (tests-ifunc): New variable.
2389 (tests): Add $(tests-ifunc).
2390 * wcsmbs/test-wcschr-ifunc.c: New file.
2391 * wcsmbs/test-wcscmp-ifunc.c: Likewise.
2392 * wcsmbs/test-wcscpy-ifunc.c: Likewise.
2393 * wcsmbs/test-wcslen-ifunc.c: Likewise.
2394 * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
2395 * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
2396
2397 * string/Makefile (tests-ifunc): New variable.
2398 (tests): Add $(tests-ifunc).
2399 * string/test-memccpy.c (TEST_NAME): New macro.
2400 * string/test-memchr.c (TEST_NAME): Likewise.
2401 * string/test-memcmp.c (TEST_NAME): Likewise.
2402 * string/test-memcpy.c (TEST_NAME): Likewise.
2403 * string/test-memmem.c (TEST_NAME): Likewise.
2404 * string/test-memmove.c (TEST_NAME): Likewise.
2405 * string/test-memset.c (TEST_NAME): Likewise.
2406 * string/test-rawmemchr.c (TEST_NAME): Likewise.
2407 * string/test-stpcpy.c (TEST_NAME): Likewise.
2408 * string/test-stpncpy.c (TEST_NAME): Likewise.
2409 * string/test-strcasecmp.c (TEST_NAME): Likewise.
2410 * string/test-strcasestr.c (TEST_NAME): Likewise.
2411 * string/test-strcat.c (TEST_NAME): Likewise.
2412 * string/test-strchr.c (TEST_NAME): Likewise.
2413 * string/test-strcmp.c(TEST_NAME): Likewise.
2414 * string/test-strcpy.c (TEST_NAME): Likewise.
2415 * string/test-strcspn.c (TEST_NAME): Likewise.
2416 * string/test-strlen.c (TEST_NAME): Likewise.
2417 * string/test-strncasecmp.c (TEST_NAME): Likewise.
2418 * string/test-strncmp.c (TEST_NAME): Likewise.
2419 * string/test-strncpy.c (TEST_NAME): Likewise.
2420 * string/test-strnlen.c (TEST_NAME): Likewise.
2421 * string/test-strpbrk.c (TEST_NAME): Likewise.
2422 * string/test-strrchr.c (TEST_NAME): Likewise.
2423 * string/test-strspn.c (TEST_NAME): Likewise.
2424 * string/test-strstr.c (TEST_NAME): Likewise.
2425 * string/test-bcopy-ifunc.c: New file.
2426 * string/test-bzero-ifunc.c: Likewise.
2427 * string/test-memccpy-ifunc.c: Likewise.
2428 * string/test-memchr-ifunc.c: Likewise.
2429 * string/test-memcmp-ifunc.c: Likewise.
2430 * string/test-memcpy-ifunc.c: Likewise.
2431 * string/test-memmem-ifunc.c: Likewise.
2432 * string/test-memmove-ifunc.c: Likewise.
2433 * string/test-mempcpy-ifunc.c: Likewise.
2434 * string/test-memset-ifunc.c: Likewise.
2435 * string/test-rawmemchr-ifunc.c: Likewise.
2436 * string/test-stpcpy-ifunc.c: Likewise.
2437 * string/test-stpncpy-ifunc.c: Likewise.
2438 * string/test-strcasecmp-ifunc.c: Likewise.
2439 * string/test-strcasestr-ifunc.c: Likewise.
2440 * string/test-strcat-ifunc.c: Likewise.
2441 * string/test-strchr-ifunc.c: Likewise.
2442 * string/test-strchrnul-ifunc.c: Likewise.
2443 * string/test-strcmp-ifunc.c: Likewise.
2444 * string/test-strcpy-ifunc.c: Likewise.
2445 * string/test-strcspn-ifunc.c: Likewise.
2446 * string/test-strlen-ifunc.c: Likewise.
2447 * string/test-strncasecmp-ifunc.c: Likewise.
2448 * string/test-strncat-ifunc.c: Likewise.
2449 * string/test-strncmp-ifunc.c: Likewise.
2450 * string/test-strncpy-ifunc.c: Likewise.
2451 * string/test-strnlen-ifunc.c: Likewise.
2452 * string/test-strpbrk-ifunc.c: Likewise.
2453 * string/test-strrchr-ifunc.c: Likewise.
2454 * string/test-strspn-ifunc.c: Likewise.
2455 * string/test-strstr-ifunc.c: Likewise.
2456
2457 * debug/Makefile (tests-ifunc): New variable.
2458 (tests): Add $(tests-ifunc).
2459 * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2460 * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2461 * debug/test-stpcpy_chk-ifunc.c: New file.
2462 * debug/test-strcpy_chk-ifunc.c: Likewise.
2463
24642012-10-20 Siddhesh Poyarekar <siddhesh@redhat.com>
2465
2466 [BZ #13601]
2467 * elf/dl-load.c (open_verify): Retry read if the entire ELF
2468 header is not read in.
2469
24702012-10-19 Joseph Myers <joseph@codesourcery.com>
2471
2472 * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh. Pass
2473 script to $(SHELL) as $<. Pass $(common-objpfx) to script
2474 directly. Pass built executable to script as
2475 $(built-program-cmd).
2476 * io/ftwtest-sh (ldso): Remove variable. Run ftwtest directly as
2477 $testprogram without using LD_LIBRARY_PATH and $ldso.
2478
2479 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2480 $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2481 $(rtld-installed-name).
2482 * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2483 (rtld_installed_name): Likewise.
2484 (library_path): Likewise.
2485 (run_program_prefix): New variable. Use it to run tst_fgetgrent.
2486 * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2487 $(run-program-prefix) to tst-tables.sh.
2488 * iconvdata/tst-table.sh (run_program_prefix): New variable. Use
2489 it to run tst-table-from and tst-table-to.
2490 * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2491 Pass it to tst-table.sh.
2492 * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2493 $(run-program-prefix) to tst-gettext.sh.
2494 ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2495 tst-translit.sh.
2496 ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2497 tst-gettext2.sh.
2498 * intl/tst-gettext.sh (run_program_prefix): New variable. Use it
2499 to run tst-gettext.
2500 * intl/tst-gettext2.sh (run_program_prefix): New variable. Use it
2501 to run tst-gettext2.
2502 * intl/tst-translit.sh (run_program_prefix): New variable. Use it
2503 to run tst-translit.
2504 * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2505 $(run-program-prefix) to tst-mtrace.sh.
2506 * malloc/tst-mtrace.sh (run_program_prefix): New variable. Use it
2507 to run tst-mtrace.
2508 * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2509 $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2510 $(rtld-installed-name).
2511 * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2512 (rtld_installed_name): Likewise.
2513 (run_program_prefix): New variable. Use it to run wordexp-test.
2514
2515 * Makeconfig (ARCH): Remove all definitions.
2516 (machine): Likewise.
2517 [ARCH]: Remove conditional code.
2518 [!objdir]: Give error.
2519 [!objdir] (objpfx): Remove.
2520 [!objdir] (common-objpfx): Likewise.
2521 [!objdir] (common-objdir): Likewise.
2522 * configure.in (config_makefile): Remove. Hardcode Makefile in
2523 AC_CONFIG_FILES call.
2524 * configure: Regenerated.
2525
2526 [BZ #13888]
2527 * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2528 or TMPDIR.
2529 (testout): Likewise.
2530
2531 * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2532 $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2533 $(rtld-installed-name).
2534 * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2535 (rtld_installed_name): Likwise.
2536 (runit): Remove function.
2537 (run_getconf): New variable, Use it for running getconf binary.
2538
25392012-10-18 H.J. Lu <hongjiu.lu@intel.com>
2540
2541 [BZ #14716]
2542 * string/test-memmem.c (check_result): New function.
2543 (do_one_test): Use it.
2544 (check1): New function.
2545 (test_main): Use it.
2546
25472012-10-18 Markus Trippelsdorf <markus@trippelsdorf.de>
2548
2549 * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2550
25512012-10-18 Joseph Myers <joseph@codesourcery.com>
2552
2553 * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2554 (_G_LSEEK64): Likewise.
2555 (_G_MMAP64): Likewise.
2556 (_G_FSTAT64): Likewise.
2557 * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2558 (_G_LSEEK64): Likewise.
2559 (_G_MMAP64): Likewise.
2560 (_G_FSTAT64): Likewise.
2561 * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2562 unconditional. Call __mmap64 directly.
2563 (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2564 (mmap_remap_check) [_G_LSEEK64]: Make code unconditional. Call
2565 __lseek64 directly.
2566 (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2567 (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional. Call
2568 __mmap64 directly.
2569 (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2570 (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional. Call
2571 __lseek64 directly.
2572 (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2573 (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional. Call
2574 __lseek64 directly.
2575 (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2576 (_IO_file_seek) [_G_LSEEK64]: Make code unconditional. Call
2577 __lseek64 directly.
2578 (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2579 (_IO_file_stat) [_G_FSTAT64]: Make code unconditional. Call
2580 __fxstat64 directly.
2581 (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2582 * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2583 unconditional.
2584 (freopen64) [!_G_OPEN64]: Remove conditional code.
2585 * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2586 unconditional.
2587 (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2588 * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2589 unconditional.
2590 (ftello64) [!_G_LSEEK64]: Remove conditional code.
2591 * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2592 unconditional.
2593 (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2594 * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2595 unconditional.
2596 (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2597 * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2598 unconditional.
2599 (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2600 * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2601 unconditional.
2602 (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2603 * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2604 unconditional.
2605 (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2606
26072012-10-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2608
2609 [BZ #12140]
2610 * manual/memory.texi (Malloc Tunable Parameters): Add note
2611 about free list pointers overwriting some perturb bytes.
2612 Wording suggested by Roland McGrath.
2613
26142012-10-17 Joseph Myers <joseph@codesourcery.com>
2615
2616 * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2617 (lgamma_test): Likewise.
2618 (tgamma_test): Likewise.
2619
26202012-10-16 Florian Weimer <fweimer@redhat.com>
2621
2622 [BZ #14700]
2623 * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2624 (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2625
26262012-10-16 Maxim Kuvyrkov <maxim@codesourcery.com>
2627
2628 * NEWS: Mention BZ #14716.
2629 * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2630 when removing AVAILABLE1_USES_J macro.
2631
26322012-10-12 H.J. Lu <hongjiu.lu@intel.com>
2633
2634 * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2635 (__bswap_64): __uint64_t for unsigned 64-bit int.
2636
26372012-10-12 Andreas Schwab <schwab@linux-m68k.org>
2638
2639 * include/string.h (memmem): Declare libc hidden alias.
2640 * string/memmem.c (memmem): Define libc hidden alias.
2641 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2642 __read, __close instead of open, read, close.
2643
26442012-10-11 H.J. Lu <hongjiu.lu@intel.com>
2645
2646 * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2647 * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2648 global and hidden.
2649 * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2650 * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2651 * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2652 Likewise.
2653 (__rawmemchr_sse2): Likewise.
2654 * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2655 * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2656 (__strchr_sse2): Likewise.
2657 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2658 * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2659 (__strcasecmp_sse2): Likewise.
2660 (__strncasecmp_sse2): Likewise.
2661 * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2662 * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2663 * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2664 * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2665 (__strrchr_sse2): Likewise.
2666 * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2667 ifunc-impl-list.c.
2668 * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2669 * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2670 * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2671 * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2672 * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2673 * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2674 * sysdeps/x86_64/multiarch/memset.S: Likewise.
2675 * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2676 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2677 * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2678 * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2679 * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2680 * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2681 * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2682 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2683 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2684 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2685 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2686 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2687 * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2688 * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2689 * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2690 * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2691 * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2692 * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2693 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2694 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2695 * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2696 * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2697 * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2698
2699 * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2700 global and hidden.
2701 * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2702 * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2703 * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2704 * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2705 Likewise.
2706 * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2707 Likewise.
2708 * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2709 * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2710 * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2711 * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2712 ifunc-impl-list.c.
2713 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2714 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2715 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2716 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2717 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2718 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2719 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2720 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2721 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2722 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2723 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2724 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2725 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2726 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2727 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2728 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2729 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2730 * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2731 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2732 * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2733 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2734 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2735 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2736 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2737 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2738 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2739 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2740 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2741 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2742 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2743 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2744 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2745 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2746 * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2747 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2748 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2749 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2750 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2751 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2752 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2753 * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2754
2755 * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2756 [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2757 * include/ifunc-impl-list.h: New file.
2758 * misc/ifunc-impl-list.c: Likewise.
2759 * misc/Makefile (routines): Add ifunc-impl-list.
2760 * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2761 * string/test-string.h: Include <ifunc-impl-list.h>.
2762 [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2763 impl_array): New variables.
2764 (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2765 are defined.
2766 (test_init): Call __libc_ifunc_impl_list to initialize
2767 func_list if TEST_IFUNC and TEST_NAME are defined.
2768
2769 * string/Makefile (strop-tests): Add bcopy and bzero.
2770 * string/test-bcopy.c: New file.
2771 * string/test-bzero.c: Likewise.
2772 * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2773 defined.
2774 * string/test-memset.c: Support bzero test if TEST_BZERO is
2775 defined.
2776 * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2777 __libc_memmove.
2778 * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2779 __libc_memset.
2780 * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2781 of memset.
2782
27832012-10-10 Joseph Myers <joseph@codesourcery.com>
2784
2785 * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2786 * configure: Regenerated.
2787
2788 * Makeconfig (+link-static-before-libc): Don't include
2789 $(link-static-libc).
2790
2791 * libio/libio.h (_IO_pos_t): Remove.
2792
27932012-10-10 Alexandre Oliva <aoliva@redhat.com>
2794
2795 * NEWS: Add note about FIPS mode. Wording suggested by Roland
2796 McGrath.
2797
27982012-10-10 Alexandre Oliva <aoliva@redhat.com>
2799
2800 * crypt/crypt-entry.c: Include fips-private.h.
2801 (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2802 * crypt/md5c-test.c (main): Tolerate disabled MD5.
2803 * sysdeps/unix/sysv/linux/fips-private.h: New file.
2804 * sysdeps/generic/fips-private.h: New file, dummy fallback.
2805
28062012-10-10 Alexandre Oliva <aoliva@redhat.com>
2807
2808 * crypt/crypt-private.h: Include stdbool.h.
2809 (_ufc_setup_salt_r): Return bool.
2810 * crypt/crypt-entry.c: Include errno.h.
2811 (__crypt_r): Return NULL with EINVAL for bad salt.
2812 * crypt/crypt_util.c (bad_for_salt): New.
2813 (_ufc_setup_salt_r): Check that salt is long enough and within
2814 the specified alphabet.
2815 * crypt/badsalttest.c: New file.
2816 * crypt/Makefile (tests): Add it.
2817 ($(objpfx)badsalttest): New.
2818
28192012-10-09 Maxim Kuvyrkov <maxim@codesourcery.com>
2820
2821 * NEWS: Add entry for BZ #14602.
2822
28232012-10-09 Joseph Myers <joseph@codesourcery.com>
2824
2825 * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2826 type-generic.
2827 * math/libm-test.inc: Update comment listing what functions and
2828 macros are tested.
2829 (isgreater_test): New function.
2830 (isgreaterequal_test): Likewise.
2831 (isless_test): Likewise.
2832 (islessequal_test): Likewise.
2833 (islessgreater_test): Likewise.
2834 (isunordered_test): Likewise.
2835 (main): Call the new functions.
2836
28372012-10-09 Roland McGrath <roland@hack.frob.com>
2838
2839 * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2840 _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2841 AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2842 * sysdeps/i386/configure: Regenerated.
2843 * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2844 * sysdeps/mach/configure: Regenerated.
2845 * sysdeps/mach/hurd/configure: Regenerated.
2846 * sysdeps/powerpc/configure: Regenerated.
2847 * sysdeps/powerpc/powerpc32/configure: Regenerated.
2848 * sysdeps/powerpc/powerpc64/configure: Regenerated.
2849 * sysdeps/s390/s390-32/configure: Regenerated.
2850 * sysdeps/s390/s390-64/configure: Regenerated.
2851 * sysdeps/sh/configure: Regenerated.
2852 * sysdeps/sparc/configure: Regenerated.
2853 * sysdeps/unix/sysv/linux/configure: Regenerated.
2854 * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2855 * sysdeps/x86_64/configure: Regenerated.
2856
2857 * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2858 defined. Don't check if MAP is NULL.
2859
28602012-10-09 Joseph Myers <joseph@codesourcery.com>
2861
2862 * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2863 (_G_stat64): Likewise.
2864 * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2865 (_G_stat64): Likewise.
2866 * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2867 instead of struct _G_stat64.
2868 * libio/fileops.c (mmap_remap_check): Likewise.
2869 (decide_maybe_mmap): Likewise.
2870 (_IO_new_file_seekoff): Likewise.
2871 (_IO_file_stat): Likewise.
2872 * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2873 _G_off64_t.
2874 * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2875 instead of struct _G_stat64.
2876 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2877
28782012-10-08 Maxim Kuvyrkov <maxim@codesourcery.com>
2879
2880 [BZ #14602]
2881 * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2882 Replace with ...
2883 (CHECK_EOL): New macro.
2884 (two_way_short_needle): Check beginning of haystack for EOL. Use
2885 CHECK_EOL.
2886 * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2887 Replace with CHECK_EOL.
2888 * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2889 Replace with CHECK_EOL.
2890
28912012-10-08 Joseph Myers <joseph@codesourcery.com>
2892
2893 * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2894 type-generic.
2895 * math/libm-test.inc: Update comment listing what functions and
2896 macros are tested.
2897 (finite_test): New function.
2898 (isinf_test): Likewise.
2899 (isnan_test): Likewise.
2900 (fpclassify_test): Test subnormal input.
2901 (isfinite_test): Likewise.
2902 (isnormal_test): Likewise.
2903 (main): Call the new functions.
2904
29052012-10-08 Jonathan Nieder <jrnieder@gmail.com>
2906
2907 [BZ #14660]
2908 * Makerules (%.dynsym): Force C locale when running
2909 $(OBJDUMP) --dynamic-syms.
2910
29112012-10-08 Andreas Schwab <schwab@linux-m68k.org>
2912
2913 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2914 <stdint.h>.
2915
29162012-10-06 David S. Miller <davem@davemloft.net>
2917
2918 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2919 upper 32-bits of the length value in %o2 since we use branch-on-register
2920 tests which consider the entire 64-bit register.
2921
29222012-10-06 H.J. Lu <hongjiu.lu@intel.com>
2923
2924 * string/test-strstr.c (check2): Add a test for page boundary.
2925
29262012-10-05 David S. Miller <davem@davemloft.net>
2927
2928 * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2929 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2930 file.
2931 * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2932 sysdep_routines.
2933 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2934 * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2935 and bzero when HWCAP_SPARC_CRYPTO is present.
2936
29372012-10-05 H.J. Lu <hongjiu.lu@intel.com>
2938
2939 [BZ #14602]
2940 * string/test-strstr.c (check2): New function.
2941 (test_main): Call check2.
2942
2943 * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2944 and bug-strchr1.
2945 * string/bug-strcasestr1.c (do_test): Moved to ...
2946 * string/test-strcasestr.c (check1): Here. New function.
2947 (do_one_test): Break out result checking code into ...
2948 (check_result): This. New function.
2949 (do_one_test): Call check_result.
2950 (test_main): Call check1.
2951 * string/bug-strchr1.c (do_test): Moved to ...
2952 * string/test-strchr.c (check1): Here. New function.
2953 (do_one_test): Break out result checking code into ...
2954 (check_result): This. New function.
2955 (do_one_test): Call check_result.
2956 (test_main): Call check1.
2957 * string/bug-strstr1.c (main): Moved to ...
2958 * string/test-strchr.c (check1): Here. New function.
2959 (do_one_test): Break out result checking code into ...
2960 (check_result): This. New function.
2961 (do_one_test): Call check_result.
2962 (test_main): Call check1.
2963 * string/bug-strcasestr1.c: Removed.
2964 * string/bug-strchr1.c: Likewise.
2965 * string/bug-strstr1.c: Likewise.
2966
2967 * elf/Makefile (dl-routines): Add hwcaps.
2968 * elf/dl-support.c (_dl_important_hwcaps): Removed.
2969 * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2970 (_dl_important_hwcaps): Moved to ...
2971 * elf/dl-hwcaps.c: Here. New file.
2972 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2973
2974 [BZ #14557]
2975 * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2976 if IS_IN_rtld isn't defined.
2977
2978 * elf/dl-support.c (_dl_sysinfo_map): New.
2979 Include "get-dynamic-info.h" and "setup-vdso.h".
2980 (_dl_non_dynamic_init): Call setup_vdso.
2981 * elf/dynamic-link.h: Don't include <assert.h>.
2982 (elf_get_dynamic_info): Moved to ...
2983 * elf/get-dynamic-info.h: Here. New file.
2984 * elf/dynamic-link.h: Include "get-dynamic-info.h".
2985 * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2986 * elf/setup-vdso.h: Here. New file.
2987 * elf/rtld.c: Include "setup-vdso.h".
2988 (dl_main): Call setup_vdso.
2989
29902012-10-05 Joseph Myers <joseph@codesourcery.com>
2991
2992 * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2993 creal in comment listing functions tested. List finite, isinf,
2994 isnan, isless, islessequal, isgreater, isgreaterequal,
2995 islessgreater, isunordered, lgamma_r and pow10 as functions and
2996 macros not tested. Mention which functions not tested are aliases
2997 for other functions. Fix typo. Note that signs of NaNs are not
2998 tested.
2999
3000 * scripts/config.guess: Update from config.git.
3001 * scripts/config.sub: Likewise.
3002
30032012-10-04 Roland McGrath <roland@hack.frob.com>
3004
3005 * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
3006 * misc/madvise.c (madvise): Renamed to __madvise.
3007 Make madvise a weak alias.
3008 * include/sys/mman.h: Declare __madvise.
3009 Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
3010 * sysdeps/unix/syscalls.list
3011 (madvise): Make __madvise the strong name, and madvise a weak alias.
3012 * sysdeps/unix/sysv/linux/syscalls.list
3013 (madvise, mmap): Remove redundant entries.
3014 * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
3015 * malloc/malloc.c (mtrim): Likewise.
3016 * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
3017
30182012-10-03 Roland McGrath <roland@hack.frob.com>
3019
3020 * sysdeps/mach/hurd/dl-cache.c: File removed.
3021 * config.h.in (USE_LDCONFIG): New #undef.
3022 * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
3023 * configure: Regenerated.
3024 * elf/Makefile (dl-routines): Add dl-cache only under
3025 [$(use-ldconfig) = yes].
3026 * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
3027 cache on [USE_LDCONFIG].
3028 * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
3029 [USE_LDCONFIG].
3030 * elf/rtld.c (dl_main): Likewise.
3031
30322012-10-03 Pino Toscano <toscano.pino@tiscali.it>
3033
3034 * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
3035 _SC_LEVEL4_CACHE_LINESIZE.
3036
30372012-10-03 Roland McGrath <roland@hack.frob.com>
3038
3039 * sysdeps/unix/bsd/confstr.h: File removed.
3040
30412012-10-02 Alexandre Oliva <aoliva@redhat.com>
3042
3043 * scripts/check-local-headers.sh: Exclude sys/sdt.h and
3044 sys/sdt-config.h.
3045
30462012-10-02 Roland McGrath <roland@hack.frob.com>
3047
3048 * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
3049 Make 'mapoff' field ElfW(Off) rather than off_t.
3050
30512012-10-02 Dmitry V. Levin <ldv@altlinux.org>
3052
3053 * nscd/Makefile: Remove nscd-cflags and all its users.
3054 (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
3055 (CFLAGS-nonlib): Add compiler flags for nscd modules.
3056
3057 [BZ #10631]
3058 * malloc.c (malloc_printerr): Clarify error message.
3059
30602012-10-02 H.J. Lu <hongjiu.lu@intel.com>
3061
3062 [BZ #14648]
3063 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3064 Set bit_FMA_Usable if FMA is supported.
3065 * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
3066 macro.
3067 (bit_FMA4_Usable): Updated.
3068 (index_FMA_Usable): New macro.
3069 (CPUID_FMA): Likewise
3070 (HAS_FMA): Defined with bit_FMA_Usable.
3071
30722012-10-01 Roland McGrath <roland@hack.frob.com>
3073
3074 * bits/types.h (__swblk_t): Type removed.
3075 * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
3076 * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
3077 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3078 (__SWBLK_T_TYPE): Likewise.
3079 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3080 (__SWBLK_T_TYPE): Likewise.
3081 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3082 (__SWBLK_T_TYPE): Likewise.
3083 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3084 (__SWBLK_T_TYPE): Likewise.
3085
30862012-10-01 Patsy Franklin <pfrankli@redhat.com>
3087 Honza Horak <hhorak@redhat.com>
3088
3089 * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
3090 (xdr_mapname): Use YPMAXMAP as maxsize.
3091 (xdr_peername): Use YPMAXPEER as maxsize.
3092 (xdr_keydat): Use YPAXRECORD as maxsize.
3093 (xdr_valdat): Use YPMAXRECORD as maxsize.
3094
30952012-10-01 Roland McGrath <roland@hack.frob.com>
3096
3097 * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
3098
3099 * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
3100 * csu/init-first.c: ... here.
3101 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
3102 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
3103 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
3104 * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
3105 * sysdeps/i386/init-first.c: File removed.
3106 * sysdeps/sh/init-first.c: File removed.
3107
31082012-10-01 Joseph Myers <joseph@codesourcery.com>
3109
3110 [BZ #14645]
3111 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
3112 if x * y might underflow to zero and z is zero.
3113 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
3114 * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3115 * math/libm-test.inc (min_subnorm_value): New variable.
3116 (fma_test): Add more tests.
3117 (fma_test_towardzero): Likewise.
3118 (fma_test_downward): Likewise
3119 (fma_test_upward): Likewise.
3120 (initialize): Set min_subnorm_value.
3121
31222012-09-29 Joseph Myers <joseph@codesourcery.com>
3123
3124 [BZ #14638]
3125 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
3126 0 + 0.
3127 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
3128 mode for addition resulting in exact zero.
3129 * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
3130 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
3131 exact 0 + 0.
3132 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
3133 * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
3134 * math/libm-test.inc (fma_test): Add more tests.
3135 (fma_test_towardzero): New function.
3136 (fma_test_downward): Likewise.
3137 (fma_test_upward): Likewise.
3138 (main): Call the new functions.
3139
31402012-09-28 David S. Miller <davem@davemloft.net>
3141
3142 * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
3143
31442012-09-28 Roland McGrath <roland@hack.frob.com>
3145
3146 * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
3147 instead of SIGALRM.
3148
3149 * sysdeps/gnu/_G_config.h: Moved to ...
3150 * sysdeps/unix/sysv/linux/_G_config.h: ... here.
3151 * sysdeps/mach/hurd/_G_config.h: Moved to ...
3152 * sysdeps/generic/_G_config.h: ... here.
3153
3154 * io/open.c (__open): Renamed to __libc_open. Make __open an alias.
3155
3156 * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
3157
3158 * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
3159 Conditionalize target on [libnss_test1.so-version].
3160
3161 * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
3162
3163 * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
3164 (elfobjdir): Move out of conditionals.
3165
3166 * nss/nsswitch.c (nss_new_service): Conditionalize definition and
3167 declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
3168 (__nss_lookup_function): Conditionalize label remove_from_tree on
3169 [!DO_STATIC_NSS || SHARED], matching its only use.
3170
31712012-09-28 David S. Miller <davem@davemloft.net>
3172
3173 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
3174 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
3175 file.
3176 * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
3177 sysdep_routines.
3178 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
3179 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
3180 when HWCAP_SPARC_CRYPTO is present.
3181
31822012-09-28 Pino Toscano <toscano.pino@tiscali.it>
3183
3184 * io/tst-mknodat.c: Create a FIFO instead of a socket.
3185
31862012-09-28 Andreas Schwab <schwab@linux-m68k.org>
3187
3188 [BZ #6530]
3189 * stdio-common/vfprintf.c (process_string_arg): Revert
3190 2000-07-22 change.
3191
31922011-09-28 Jonathan Nieder <jrnieder@gmail.com>
3193
3194 * stdio-common/Makefile (tst-sprintf-ENV): Set environment
3195 for testcase.
3196 * stdio-common/tst-sprintf.c: Include <locale.h>
3197 (main): Test sprintf's handling of incomplete multibyte
3198 characters.
3199
32002012-09-28 H.J. Lu <hongjiu.lu@intel.com>
3201
3202 * elf/dl-runtime.c (VERSYMIDX): Removed.
3203 * elf/dl-version.c (VERSYMIDX): Likewise.
3204 * elf/do-rel.h (VERSYMIDX): Likewise.
3205 (VALIDX): Likewise.
3206 * elf/dynamic-link.h (VERSYMIDX): Likewise.
3207 * elf/rtld.c (VALIDX): Likewise.
3208 (ADDRIDX): Likewise.
3209 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
3210 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
3211 * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
3212 * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
3213 (VALIDX): Likewise.
3214 (ADDRIDX): Likewise.
3215
32162012-09-28 Pino Toscano <toscano.pino@tiscali.it>
3217
3218 * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
3219
32202012-09-28 Dmitry V. Levin <ldv@altlinux.org>
3221
3222 [BZ #11438]
3223 * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
3224 to global scope.
3225 * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
3226 addresses are in the same scope as 192.0.2/24.
3227 * posix/gai.conf: Document new scope table defaults.
3228
32292012-09-28 Siddhesh Poyarekar <siddhesh@redhat.com>
3230
3231 [BZ #5298]
3232 * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
3233 for ftell. Compute offsets from write pointers instead.
3234 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
3235
32362012-09-28 Siddhesh Poyarekar <siddhesh@redhat.com>
3237
3238 [BZ #14543]
3239 * libio/Makefile (tests): New test case tst-fseek.
3240 * libio/tst-fseek.c: New test case to verify that fseek/ftell
3241 combination works in wide mode.
3242 * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
3243 state when the external buffer state changes.
3244
32452012-09-27 David S. Miller <davem@davemloft.net>
3246
3247 [BZ #14376]
3248 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
3249 pass reloc->r_addend in as the 'high' argument to
3250 sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
3251
3252 * sysdeps/sparc/fpu/libm-test-ulps: Update.
3253
32542012-09-28 Pino Toscano <toscano.pino@tiscali.it>
3255
3256 * rt/tst-aio2.c: Include <pthread.h>.
3257 * rt/tst-aio3.c: Likewise.
3258
32592012-09-27 Steve Ellcey <sellcey@mips.com>
3260
3261 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
3262
32632012-09-27 H.J. Lu <hongjiu.lu@intel.com>
3264
3265 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
3266 contents on [SHARED].
3267
32682012-09-26 Marek Polacek <polacek@redhat.com>
3269
3270 [BZ #14530]
3271 [BZ #13741]
3272 * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
3273 for C++ and GCC <4.3 as well as for non GCC compilers.
3274
32752012-09-26 Markus Trippelsdorf <markus@trippelsdorf.de>
3276
3277 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3278
32792012-09-25 Roland McGrath <roland@hack.frob.com>
3280
3281 * Makefile.in (all, install): Declare with .PHONY.
3282 Reported by Michael Hope <michael.hope@linaro.org>.
3283
32842012-09-25 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3285
3286 * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
3287 * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
3288 system header.
3289 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
3290 Likewise.
3291 (sydep_routines): Add the new and the internal functions.
3292 * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
3293 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
3294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
3295 (GLIBC_2.17): Add the new function.
3296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3297 (GLIBC_2.17): Likewise.
3298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
3299 (GLIBC_2.17): Likewise.
3300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
3301 (GLIBC_2.17): Likewise.
3302 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
3303
33042012-09-25 Alan Modra <amodra@gmail.com>
3305
3306 * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
3307 Add release barrier before setting once_control to say
3308 initialisation is done. Add hints on lwarx. Use macro in
3309 place of isync.
3310 (clear_once_control): Add release barrier.
3311
33122012-09-25 Joseph Myers <joseph@codesourcery.com>
3313
3314 [BZ #13629]
3315 * math/s_clog.c (__clog): Handle more values close to |z| = 1
3316 specially.
3317 * math/s_clog10.c (__clog10): Likewise.
3318 * math/s_clog10f.c (__clog10f): Likewise.
3319 * math/s_clog10l.c (__clog10l): Likewise.
3320 * math/s_clogf.c (__clogf): Likewise.
3321 * math/s_clogl.c (__clogl): Likewise.
3322 * math/Makefile (libm-calls): Add x2y2m1.
3323 * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
3324 (__x2y2m1): Likewise.
3325 (__x2y2m1l): Likewise.
3326 * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
3327 * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
3328 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3329 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
3330 * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
3331 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
3332 * math/libm-test.inc (clog_test, clog10_test): Add more tests.
3333 * sysdeps/i386/fpu/libm-test-ulps: Update.
3334 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3335
3336 [BZ #14621]
3337 * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
3338 int as type of variable DEPTH.
3339 (glob): Use size_t instead of int as type of variables NEWCOUNT
3340 and OLD_PATHC.
3341
33422012-09-25 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3343
3344 * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3345 Add s_sincosf-sse2.
3346 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
3347 * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
3348 * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
3349 macros for using routine as __sincosf_ia32.
3350 Use macro for function declaration and weak_alias.
3351 * sysdeps/i386/fpu/libm-test-ulps: Update.
3352
3353 * sysdeps/x86_64/fpu/s_sincosf.S: New file.
3354 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3355
3356 * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
3357 subnormal argument.
3358 * math/s_cexpf.c (__cexpf): Likewise.
3359 * math/s_csinf.c (__csinf): Likewise.
3360 * math/s_csinhf.c (__csinhf): Likewise.
3361 * math/s_ctanf.c (__ctanf): Likewise.
3362 * math/s_ctanhf.c (__ctanhf): Likewise.
3363 * math/s_ccosh.c (__ccoshf): Likewise.
3364 * math/s_cexp.c (__cexpl): Likewise.
3365 * math/s_csin.c (__csin): Likewise.
3366 * math/s_csinh.c (__csinh): Likewise.
3367 * math/s_ctan.c (__ctan): Likewise.
3368 * math/s_ctanh.c (ctanh): Likewise.
3369 * math/s_ccoshl.c (__ccoshl): Likewise.
3370 * math/s_cexpl.c (__cexpl): Likewise.
3371 * math/s_csinl.c (__csinl): Likewise.
3372 * math/s_csinhl.c (__csinhl): Likewise.
3373 * math/s_ctanl.c (__ctanl): Likewise.
3374 * math/s_ctanhl.c (__ctanhl): Likewise.
3375
33762012-09-25 Joseph Myers <joseph@codesourcery.com>
3377
3378 * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
3379 (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
3380 (_IO_off_t): Define to __off_t, not _G_off_t.
3381 (_IO_pid_t): Define to __pid_t, not _G_pid_t.
3382 (_IO_uid_t): Define to __uid_t, not _G_uid_t.
3383 (_IO_wint_t): Define to wint_t, not _G_wint_t.
3384 * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
3385 type of __dummy and __dummy2 fields.
3386 * sysdeps/generic/_G_config.h (_G_size_t): Remove.
3387 (_G_ssize_t): Likewise.
3388 (_G_off_t): Likewise.
3389 (_G_pid_t): Likewise.
3390 (_G_uid_t): Likewise.
3391 (_G_wchar_t): Likewise.
3392 (_G_wint_t): Likewise.
3393 * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
3394 (_G_ssize_t): Likewise.
3395 (_G_off_t): Likewise.
3396 (_G_pid_t): Likewise.
3397 (_G_uid_t): Likewise.
3398 (_G_wchar_t): Likewise.
3399 (_G_wint_t): Likewise.
3400 * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
3401 (_G_ssize_t): Likewise.
3402 (_G_off_t): Likewise.
3403 (_G_pid_t): Likewise.
3404 (_G_uid_t): Likewise.
3405 (_G_wchar_t): Likewise.
3406 (_G_wint_t): Likewise.
3407
34082012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
3409
3410 * malloc/arena.c: Include malloc-sysdep.h.
3411 (shrink_heap): Use check_may_shrink_heap to decide if madvise
3412 is sufficient to shrink the heap or an unmap is needed.
3413 * sysdeps/generic/malloc-sysdep.h: New file. Define
3414 new function check_may_shrink_heap.
3415 * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file. Define
3416 new function check_may_shrink_heap.
3417
34182012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
3419
3420 * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
3421 comments.
3422
34232012-09-24 Dmitry V. Levin <ldv@altlinux.org>
3424
3425 * catgets/test-gencat.sh: Add "set -e".
3426 * elf/tst-pathopt.sh: Likewise.
3427 * grp/tst_fgetgrent.sh: Likewise.
3428 * iconvdata/run-iconv-test.sh: Likewise.
3429 * intl/tst-gettext.sh: Likewise.
3430 * intl/tst-gettext2.sh: Likewise.
3431 * intl/tst-gettext4.sh: Likewise.
3432 * intl/tst-gettext6.sh: Likewise.
3433 * intl/tst-translit.sh: Likewise.
3434 * io/ftwtest-sh: Likewise.
3435 * libio/test-freopen.sh: Likewise.
3436 * malloc/tst-mtrace.sh: Likewise.
3437 * posix/globtest.sh: Likewise.
3438 * posix/tst-getconf.sh: Likewise.
3439 * posix/wordexp-tst.sh: Likewise.
3440 * stdio-common/tst-printf.sh: Likewise.
3441 * stdio-common/tst-unbputc.sh: Likewise.
3442 * stdlib/tst-fmtmsg.sh: Likewise.
3443 * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3444 * catgets/Makefile: Do not specify -e option when running
3445 testsuite shell scripts.
3446 * elf/Makefile: Likewise.
3447 * grp/Makefile: Likewise.
3448 * iconvdata/Makefile: Likewise.
3449 * intl/Makefile: Likewise.
3450 * io/Makefile: Likewise.
3451 * libio/Makefile: Likewise.
3452 * malloc/Makefile: Likewise.
3453 * posix/Makefile: Likewise.
3454 * stdio-common/Makefile: Likewise.
3455 * stdlib/Makefile: Likewise.
3456 * sysdeps/x86_64/Makefile: Likewise.
3457
3458 * io/ftwtest-sh: Add copyright header.
3459 * posix/globtest.sh: Likewise.
3460 * posix/tst-getconf.sh: Likewise.
3461 * posix/wordexp-tst.sh: Likewise.
3462 * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3463
34642012-09-24 H.J. Lu <hongjiu.lu@intel.com>
3465
3466 [BZ #13679]
3467 * Makeconfig (+link): Defined as $(+link-static) if
3468 $(build-shared) isn't yes.
3469 (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3470 isn't yes.
3471 (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3472
3473 * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3474
3475 [BZ #14562]
3476 * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3477 new chunk size with MALLOC_ALIGN_MASK.
3478
34792012-09-24 Joseph Myers <joseph@codesourcery.com>
3480
3481 [BZ #5044]
3482 * stdio-common/printf_fphex.c: Include <stdbool.h> and
3483 <rounding-mode.h>.
3484 (__printf_fphex): Determine rounding using get_rounding_mode and
3485 round_away.
3486 * stdio-common/tst-printf-round.c (struct hex_test): New
3487 structure.
3488 (hex_tests): New variable.
3489 (test_hex_in_one_mode): New function.
3490 (do_test): Also run tests for hex float output.
3491
34922012-09-21 Joseph Myers <joseph@codesourcery.com>
3493
3494 * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3495 [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3496 * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3497 * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3498 [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3499 * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3500 * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3501 * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3502
35032012-09-20 Joseph Myers <joseph@codesourcery.com>
3504
3505 * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3506 * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3507 * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3508 * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3509
35102012-09-19 Dmitry V. Levin <ldv@altlinux.org>
3511
3512 [BZ #14579]
3513 * elf/rtld.c (dl_main): Limit the check for self loading to normal
3514 mode only.
3515 * elf/tst-rtld-load-self.sh: New test.
3516 * elf/Makefile: Run it.
3517
35182012-09-18 Joseph Myers <joseph@codesourcery.com>
3519
3520 * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3521 (tst-writev-ENV): Remove.
3522 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3523
35242012-09-17 Chris Metcalf <cmetcalf@tilera.com>
3525
3526 * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3527
35282012-09-17 Joseph Myers <joseph@codesourcery.com>
3529
3530 * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3531 unconditional.
3532 * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3533 Likewise.
3534 * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3535 * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3536 * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3537 Likewise.
3538
35392012-09-14 H.J. Lu <hongjiu.lu@intel.com>
3540
3541 [BZ #14587]
3542 * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3543 * config.make.in (have-cpp-asm-debuginfo): Removed.
3544 * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3545 * configure: Regenerated.
3546
35472012-09-14 Joseph Myers <joseph@codesourcery.com>
3548
3549 [BZ #5044]
3550 * stdio-common/printf_fp.c: Include <stdbool.h> and
3551 <rounding-mode.h>.
3552 (___printf_fp): Determine rounding using get_rounding_mode and
3553 round_away.
3554 * stdio-common/tst-printf-round.c: New file.
3555 * stdio-common/Makefile (tests): Add tst-printf-round.
3556 (link-libm): New variable.
3557 ($(objpfx)tst-printf-round): Depend in $(link-libm).
3558
35592012-09-13 H.J. Lu <hongjiu.lu@intel.com>
3560
3561 [BZ #14576]
3562 * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3563 * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3564 Likewise.
3565 * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3566 Likewise.
3567
35682012-09-13 Joseph Myers <joseph@codesourcery.com>
3569
3570 * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3571 * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3572 * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3573 * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3574
35752012-09-12 Joseph Myers <joseph@codesourcery.com>
3576
3577 [BZ #14518]
3578 * include/rounding-mode.h: New file.
3579 * sysdeps/generic/get-rounding-mode.h: Likewise.
3580 * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3581 * stdlib/strtod_l.c: Include <rounding-mode.h>.
3582 (MAX_VALUE): New macro.
3583 (MIN_VALUE): Likewise.
3584 (overflow_value): New function.
3585 (underflow_value): Likewise.
3586 (round_and_return): Use overflow_value and underflow_value to
3587 determine return values in overflow and underflow cases. Use
3588 round_away to determine rounding depending on rounding mode.
3589 (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3590 determine return values in overflow and underflow cases.
3591 * stdlib/tst-strtod-round.c: Include <fenv.h>.
3592 (struct test_results): New structure.
3593 (struct test): Use struct test_results to store expected results
3594 for all rounding modes.
3595 (TEST): Include expected results for all rounding modes.
3596 (test_in_one_mode): New function.
3597 (do_test): Use test_in_one_mode to compute and check results.
3598 Check results for all rounding modes.
3599 * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3600 $(link-libm).
3601
36022012-12-09 Allan McRae <allan@archlinux.org>
3603
3604 * sysdeps/i386/fpu/libm-test-ulps: Update
3605
36062012-09-11 Joseph Myers <joseph@codesourcery.com>
3607
3608 * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3609 (_G_int32_t): Likewise.
3610 (_G_uint16_t): Likewise.
3611 (_G_uint32_t): Likewise.
3612 (_G_HAVE_BOOL): Likewise.
3613 (_G_HAVE_ATEXIT): Likewise.
3614 (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3615 (_G_HAVE_IO_FILE_OPEN): Likewise.
3616 * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3617 (_G_int32_t): Likewise.
3618 (_G_uint16_t): Likewise.
3619 (_G_uint32_t): Likewise.
3620 (_G_HAVE_BOOL): Likewise.
3621 (_G_HAVE_ATEXIT): Likewise.
3622 (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3623 (_G_HAVE_IO_FILE_OPEN): Likewise.
3624 * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3625 (_G_int32_t): Likewise.
3626 (_G_uint16_t): Likewise.
3627 (_G_uint32_t): Likewise.
3628 (_G_HAVE_BOOL): Likewise.
3629 (_G_HAVE_ATEXIT): Likewise.
3630 (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3631 (_G_HAVE_IO_FILE_OPEN): Likewise.
3632
36332012-09-11 H.J. Lu <hongjiu.lu@intel.com>
3634
3635 * csu/libc-tls.c: Update copyright years.
3636
36372012-09-10 Joseph Myers <joseph@codesourcery.com>
3638
3639 * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3640 [!_G_USING_THUNKS]: Remove conditional code.
3641 * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3642 * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3643
3644 * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3645 [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3646 * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3647 (_G_VTABLE_LABEL_PREFIX): Likewise.
3648 (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3649 * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3650 (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3651 (_G_VTABLE_LABEL_PREFIX): Likewise.
3652 (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3653 * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3654 (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3655 (_G_VTABLE_LABEL_PREFIX): Likewise.
3656 (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3657
36582012-09-10 H.J. Lu <hongjiu.lu@intel.com>
3659
3660 * libio/Makefile: Include ../Makeconfig before tests.
3661 (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3662 only if $(build-shared) is yes.
3663
3664 * iconv/gconv_db.c: Update copyright years.
3665
36662012-09-10 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3667
3668 * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3669 unwind info if defined PIC. Fix special cases description.
3670 * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3671
3672 * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3673 DP_HI_MASK entry.
3674 * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3675
36762012-09-07 H.J. Lu <hongjiu.lu@intel.com>
3677
3678 * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3679
3680 * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3681 is NULL.
3682
3683 * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3684 (LDLIBS-tst-chk4): This.
3685 (LDFLAGS-tst-chk5): Renamed to ...
3686 (LDLIBS-tst-chk5): This.
3687 (LDFLAGS-tst-chk6): Renamed to ...
3688 (LDLIBS-tst-chk6): This.
3689 (LDFLAGS-tst-lfschk4): Renamed to ...
3690 (LDLIBS-tst-lfschk4): This.
3691 (LDFLAGS-tst-lfschk5): Renamed to ...
3692 (LDLIBS-tst-lfschk5): This.
3693 (LDFLAGS-tst-lfschk6): Renamed to ...
3694 (LDLIBS-tst-lfschk6): This.
3695
3696 * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3697 on $(common-objpfx)soversions.mk.
3698
36992012-09-07 Joseph Myers <joseph@codesourcery.com>
3700
3701 [BZ #10014]
3702 * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3703 example host name.
3704
37052012-09-07 Siddhesh Poyarekar <siddhesh@redhat.com>
3706
3707 * malloc/arena.c (arena_get_retry): New function that gets
3708 another arena for the caller to try its request on.
3709 * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3710 current arena cannot fulfill the request.
3711 (__libc_memalign): Likewise.
3712 (__libc_memalign): Likewise.
3713 (__libc_pvalloc): Likewise.
3714 (__libc_calloc): Likewise.
3715
37162012-09-05 John Tobey <john.tobey@gmail.com>
3717
3718 [BZ #13542]
3719 * manual/arith.texi (Operations on Complex): Fix description
3720 of carg branch cut.
3721
37222012-09-06 Joseph Myers <joseph@codesourcery.com>
3723
3724 [BZ #10014]
3725 * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3726 host name.
3727
3728 [BZ #10038]
3729 * manual/memory.texi (Memory): Make order of menu items match
3730 order of sections.
3731
37322012-09-06 H.J. Lu <hongjiu.lu@intel.com>
3733
3734 * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3735 (_dl_initial_dtv): New. Defined if SHARED isn't defined.
3736 (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3737
37382012-09-06 H.J. Lu <hongjiu.lu@intel.com>
3739
3740 * csu/libc-tls.c (static_dtv): Renamed to ...
3741 (_dl_static_dtv): This. Make it global.
3742 (_dl_initial_dtv): Removed.
3743 (__libc_setup_tls): Updated.
3744 * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3745 (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3746 DL_INITIAL_DTV.
3747
37482012-09-06 Petr Machata <pmachata@redhat.com>
3749
3750 * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3751 (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3752 (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3753 (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3754
37552012-09-06 H.J. Lu <hongjiu.lu@intel.com>
3756
3757 [BZ #14545]
3758 * csu/libc-tls.c (_dl_initial_dtv): New variable.
3759 * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3760 freeing dtv[-1].
3761
37622012-09-06 H.J. Lu <hongjiu.lu@intel.com>
3763
3764 [BZ #14544]
3765 * Makeconfig (link-static-before-libc): Replace $(+prector)
3766 with $(+prectorT).
3767 (link-static-after-libc): Replace $(+postctor) with
3768 $(+postctorT).
3769 (link-bounded): Replace $(+prector)/$(+postctor) with
3770 $(+prectorT)/$(+postctorT).
3771 (+prectorT): New macro.
3772 (+postctorT): Likewise.
3773
37742012-09-06 Joseph Myers <joseph@codesourcery.com>
3775
3776 * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3777 (round_str): Handle values above the maximum for IBM long double
3778 as inexact.
3779 * stdlib/tst-strtod-round.c (tests): Regenerated.
3780
37812012-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3782
3783 * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3784 assembler flag.
3785 * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3786 zarch_nohighgprs around the zarch optimized routines.
3787 * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3788 * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3789 * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3790 for zarch.
3791
37922012-09-05 David S. Miller <davem@davemloft.net>
3793
3794 * sysdeps/sparc/fpu/libm-test-ulps: Update.
3795
3796 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3797 HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3798 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3799 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3800 entries.
3801
38022012-09-05 Alexandre Oliva <aoliva@redhat.com>
3803
3804 * malloc/arena.c: Fold copyright years.
3805 * malloc/mcheck.c, malloc/memusage.c: Likewise.
3806
38072012-09-05 Alexandre Oliva <aoliva@redhat.com>
3808
3809 * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3810
38112012-09-05 Alexandre Oliva <aoliva@redhat.com>
3812
3813 * manual/contrib.texi (Contributors): Fix typo. Complete entry.
3814
38152012-09-05 Alexandre Oliva <aoliva@redhat.com>
3816
3817 * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3818 change internal state upon failure.
3819
38202012-09-05 Alexandre Oliva <aoliva@redhat.com>
3821
3822 * malloc/mcheck.c (mcheck_check_all): Fix typo.
3823 * malloc/memusage.c (mmap): Likewise.
3824 (mmap64, mremap): Likewise. Adjust name in comment.
3825
38262012-09-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3827
3828 * libio/fileops.c: Fix typos in comments.
3829 * libio/oldfileops.c: Likewise.
3830 * libio/wfileops.c: Likewise.
3831
38322012-09-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3833
3834 [BZ #1349]
3835 * malloc/Makefile (tests): Add tst-malloc-usable test case.
3836 (tst-malloc-usable-ENV): Set environment for test case.
3837 * malloc/hooks.c (malloc_check_get_size): New function to get
3838 requested size.
3839 * malloc/malloc.c (musable): Use malloc_check_get_size.
3840 * malloc/tst-malloc-usable.c: New test case.
3841
38422012-09-05 Andreas Schwab <schwab@linux-m68k.org>
3843
3844 * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3845
38462012-09-05 Allan McRae <allan@archlinux.org>
3847
3848 [BZ #13966]
3849 * configure.in (CXX_SYSINCLUDES): Use compiler output to
3850 determine header location.
3851 * configure: Regenerated.
3852
38532012-09-05 Andreas Schwab <schwab@linux-m68k.org>
3854
3855 * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3856 float format.
3857 * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3858 LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3859 format.
3860 (test): Regenerate.
3861
38622012-09-04 David S. Miller <davem@davemloft.net>
3863
3864 * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3865 * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3866 * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3867
38682012-09-04 Florian Weimer <fweimer@redhat.com>
3869
3870 * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3871 failures.
3872
3873 * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3874
38752012-09-04 Joseph Myers <joseph@codesourcery.com>
3876
3877 [BZ #9914]
3878 * libio/iogetdelim.c: Include <limits.h>.
3879 (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3880 + len + 1 would overflow.
3881
38822012-09-03 Andreas Jaeger <aj@suse.de>
3883
3884 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3885 * sysdeps/i386/fpu/libm-test-ulps: Update.
3886
38872012-09-03 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3888
3889 * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3890 Add s_sinf-sse2, s_conf-sse2.
3891
3892 * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3893 * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3894 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3895 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3896
3897 * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3898 for using routine as __sinf_ia32.
3899 Use macro for function declaration and weak_alias.
3900 * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3901 for using routine as __cosf_ia32.
3902 Use macro for function declaration and weak_alias.
3903
3904 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3905 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3906
3907 * sysdeps/x86_64/fpu/s_sinf.S: New file.
3908 * sysdeps/x86_64/fpu/s_cosf.S: New file.
3909 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3910
3911 * math/libm-test.inc (cos_test): Add more test cases.
3912 (sin_test): Likewise.
3913 (sincos_test): Likewise.
3914
39152012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3916
3917 * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3918 (IFUNC_RESOLVE): Make pointers to the specialized implementations
3919 hidden.
3920 * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3921
39222012-09-02 H.J. Lu <hongjiu.lu@intel.com>
3923
3924 [BZ #14538]
3925 * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3926 first element of the GOT.
3927 (elf_machine_load_address): Return the difference between
3928 the runtime address of _DYNAMIC and elf_machine_dynamic ().
3929
39302012-09-01 Allan McRae <allan@archlinux.org>
3931
3932 [BZ #13412]
3933 * configure.in (AWK): Require gawk version 3.0 or later.
3934 * configure: Regenerated.
3935
39362012-09-01 Joseph Myers <joseph@codesourcery.com>
3937
3938 * sysdeps/unix/sysv/linux/kernel-features.h
3939 (__ASSUME_POSIX_CPU_TIMERS): Remove.
3940 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3941 [__NR_clock_getres]: Make code unconditional.
3942 [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3943 (clock_getcpuclockid): Remove code left unreachable by removal of
3944 conditionals.
3945 * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3946 code unconditional.
3947 [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3948 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3949 * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3950 Make code unconditional.
3951 [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3952 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3953 * sysdeps/unix/sysv/linux/clock_settime.c
3954 [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3955 conditional code.
3956 [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3957 [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3958
39592012-08-29 H.J. Lu <hongjiu.lu@intel.com>
3960
3961 [BZ #14476]
3962 * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3963 scripts/test-installation.pl.
3964
3965 * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3966 and $ld_so_version if it is set.
3967
39682012-08-29 Siddhesh Poyarekar <siddhesh@redhat.com>
3969
3970 [BZ #14516]
3971 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3972 failure if reading from procfs failed.
3973 * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3974
39752012-08-27 Joseph Myers <joseph@codesourcery.com>
3976
3977 * sysdeps/unix/sysv/linux/kernel-features.h
3978 (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3979 * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3980 Remove conditional code.
3981 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3982 * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3983 Remove conditional code.
3984 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3985 * sysdeps/unix/sysv/linux/i386/fxstat.c
3986 [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3987 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3988 * sysdeps/unix/sysv/linux/i386/fxstatat.c
3989 [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3990 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3991 * sysdeps/unix/sysv/linux/i386/lxstat.c
3992 [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3993 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3994 * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3995 Remove conditional code.
3996 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3997 * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3998 Remove conditional code.
3999 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4000 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
4001 <kernel-features.h>.
4002 [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
4003 Remove.
4004 * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
4005 Remove conditional code.
4006 [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
4007 * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
4008 Remove conditional.
4009
40102012-08-27 Mike Frysinger <vapier@gentoo.org>
4011
4012 [BZ #5400]
4013 * NEWS: Add fixed bug number.
4014
40152012-08-27 Joseph Myers <joseph@codesourcery.com>
4016
4017 [BZ #14519]
4018 * stdlib/strtod_l.c (round_and_return): Return -0.0 for
4019 underflowing exponent in case of negative sign.
4020 * stdlib/tst-strtod-round-data: Add more tests.
4021 * stdlib/tst-strtod-round.c (tests): Regenerated.
4022
4023 [BZ #3479]
4024 * stdlib/strtod_l.c (NDIG): Remove.
4025 (HEXNDIG): Likewise.
4026 (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
4027 smallest representable value.
4028 (____STRTOF_INTERNAL): Use all fractional decimal digits that may
4029 lie within an exact representation of 1/2 ulp of the result.
4030 * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
4031 unconditionally.
4032 (TENS_P9_IDX): Define unconditionally.
4033 (TENS_P9_SIZE): Likewise.
4034 (TENS_P10_IDX): Likewise.
4035 (TENS_P10_SIZE): Likewise.
4036 [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
4037 to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
4038 [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
4039 entries for 10^2^13 and 10^2^14.
4040 [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
4041 (TENS_P13_IDX): Define.
4042 (TENS_P13_SIZE): Likewise.
4043 (TENS_P14_IDX): Likewise.
4044 (TENS_P14_SIZE): Likewise.
4045 (_fpioconst_pow10): Change array size to
4046 FPIOCONST_POW10_ARRAY_SIZE. Make entries for 10^2^9 and 10^2^10
4047 unconditional.
4048 (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
4049 1024]: Add entries for 10^2^13 and 10^2^14.
4050 [LAST_POW10 > _LAST_POW10]: Remove #error.
4051 * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
4052 (_fpioconst_pow10): Change array size to
4053 FPIOCONST_POW10_ARRAY_SIZE.
4054 * stdlib/gen-fpioconst.c: New file.
4055 * stdlib/gen-tst-strtod-round.c: Likewise.
4056 * stdlib/tst-strtod-round-data: Likewise.
4057 * stdlib/tst-strtod-round.c: Likewise.
4058 * stdlib/Makefile (tests): Add tst-strtod-round.
4059
4060 [BZ #14459]
4061 * stdlib/strtod_l.c: Include <stdint.h>.
4062 (NDEBUG): Do not define.
4063 (round_and_return): Change EXPONENT parameter to type intmax_t.
4064 Rearrange calculations to avoid internal overflow possibilities.
4065 (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
4066 Rearrange calculations to avoid internal overflow possibilities.
4067 Assert that number fits inside MPNSIZE limbs.
4068 (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
4069 Change DIG_NO, INT_NO and LEAD_ZERO to type size_t. Rearrange
4070 calculations and add assertions to avoid internal overflow
4071 possibilities. Add casts to avoid signed/unsigned operations.
4072 * stdlib/tst-strtod-overflow.c: New file.
4073 * stdlib/Makefile (tests): Add tst-strtod-overflow.
4074
40752012-08-25 Marek Polacek <polacek@redhat.com>
4076
4077 * time/time.h: Fix some typos in comments.
4078
40792012-08-23 Roland McGrath <roland@hack.frob.com>
4080
4081 * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
4082 * posix/tst-rfc3484-2.c: Likewise.
4083 * posix/tst-rfc3484-3.c: Likewise.
4084
40852012-08-23 Steve McIntyre <steve.mcintyre@linaro.org>
4086
4087 * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
4088 (EF_ARM_ABI_FLOAT_HARD): Likewise.
4089
40902012-08-23 Joseph Myers <joseph@codesourcery.com>
4091
4092 * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
4093 #include of fxstatat64.c.
4094
40952012-08-22 Roland McGrath <roland@hack.frob.com>
4096
4097 * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
4098 * shadow/getspent_r.c: Likewise.
4099 * shadow/getspnam.c: Likewise.
4100 * shadow/getspnam_r.c: Likewise.
4101 * gshadow/getsgent.c: Likewise.
4102 * gshadow/getsgent_r.c: Likewise.
4103 * gshadow/getsgnam.c: Likewise.
4104 * gshadow/getsgnam_r.c: Likewise.
4105 * inet/getnetbyad.c: Likewise.
4106 * inet/getnetbyad_r.c: Likewise.
4107 * inet/getnetbynm.c: Likewise.
4108 * inet/getnetbynm_r.c: Likewise.
4109 * inet/getnetent.c: Likewise.
4110 * inet/getnetent_r.c: Likewise.
4111 * inet/getproto.c: Likewise.
4112 * inet/getproto_r.c: Likewise.
4113 * inet/getprtent.c: Likewise.
4114 * inet/getprtent_r.c: Likewise.
4115 * inet/getprtname.c: Likewise.
4116 * inet/getprtname_r.c: Likewise.
4117 * inet/getrpcbyname.c: Likewise.
4118 * inet/getrpcbyname_r.c: Likewise.
4119 * inet/getrpcbynumber.c: Likewise.
4120 * inet/getrpcbynumber_r.c: Likewise.
4121 * inet/getrpcent.c: Likewise.
4122 * inet/getrpcent_r.c: Likewise.
4123 * inet/getaliasent.c: Likewise.
4124 * inet/getaliasent_r.c: Likewise.
4125 * inet/getaliasname.c: Likewise.
4126 * inet/getaliasname_r.c: Likewise.
4127 * nscd/getgrgid_r.c: Likewise.
4128 * nscd/getgrnam_r.c: Likewise.
4129 * nscd/gethstbyad_r.c: Likewise.
4130 * nscd/gethstbynm3_r.c: Likewise.
4131 * nscd/getpwnam_r.c: Likewise.
4132 * nscd/getpwuid_r.c: Likewise.
4133 * nscd/getsrvbynm_r.c: Likewise.
4134 * nscd/getsrvbypt_r.c: Likewise.
4135 * nscd/gai.c: Likewise.
4136
4137 * configure.in (build_nscd): New substituted variable, set
4138 by --disable-build-nscd and defaults to $use_nscd.
4139 * configure: Regenerated.
4140 * config.make.in (build-nscd): New substituted variable.
4141 * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
4142 Change conditional to require [$(build-nscd) = yes] as well.
4143 * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
4144
4145 [BZ# 13696]
4146 * configure.in (use_nscd): New substituted variable, set by
4147 --disable-nscd. If enabled, define USE_NSCD.
4148 * configure: Regenerated.
4149 * config.h.in: Add USE_NSCD.
4150 * config.make.in (use-nscd): New substituted variable.
4151 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
4152 (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
4153 (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
4154 * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
4155 (CFLAGS-getgrnam_r.c): Likewise.
4156 (CFLAGS-initgroups.c): Likewise.
4157 * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
4158 * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
4159 Variables removed.
4160 * inet/getnetgrent_r.c
4161 (nscd_setnetgrent): New function, broken out of ...
4162 (setnetgrent): ... here. Call it.
4163 (innetgr): Conditionalize nscd bits on [USE_NSCD].
4164 (nscd_getnetgrent): Conditionalize on [USE_NSCD].
4165 (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
4166 * nscd/Makefile (routines, aux): Move definitions after include of
4167 Makeconfig. Conditionalize on [$(use-nscd) != no].
4168 * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
4169 Conditionalize on [USE_NSCD].
4170 (is_nscd, nscd_init_cb): Likewise.
4171 (nss_load_library): Conditionalize init callback on [USE_NSCD].
4172 * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
4173 * nss/nss_db/db-init.c: Likewise.
4174 * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
4175 [USE_NSCD].
4176 * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
4177 (make_request): Use it.
4178 (cache_valid_p): New function.
4179 (__check_pf): Use it.
4180 * NEWS: Add item for --disable-nscd.
4181
41822012-08-22 Dmitry V. Levin <ldv@altlinux.org>
4183
4184 * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
4185 to support sed >= 4.2.1-20-ga9bf076.
4186 * configure: Regenerated.
4187
41882012-08-22 Roland McGrath <roland@hack.frob.com>
4189
4190 * csu/libc-start.c (apply_irel): Move extern declarations inside here.
4191 Conditionalize whole body on [IREL].
4192
41932012-08-22 Jeff Law <law@redhat.com>
4194
4195 [BZ #14505]
4196 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
4197 if the family is PF_UNSPEC.
4198
41992012-08-22 Mike Frysinger <vapier@gentoo.org>
4200
4201 * Makerules (lib-version): Rename from V.
4202 (install-lib-nosubdir): Change V to lib-version.
4203
42042012-08-22 Will Schmidt <will_schmidt@vnet.ibm.com>
4205
4206 [BZ #14252]
4207 * powerpc32/power6/wcschr.c: New file.
4208 * powerpc32/power6/wcscpy.c: New file.
4209 * powerpc32/power6/wcsrchr.c: New file.
4210 * powerpc64/power6/wcschr.c: New file.
4211 * powerpc64/power6/wcscpy.c: New file.
4212 * powerpc64/power6/wcsrchr.c: New file.
4213
42142012-08-21 Maxim Kuvyrkov <maxim@codesourcery.com>
4215
4216 * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
4217 (two_way_short_needle): Use it.
4218 * string/strstr.c (AVAILABLE1_USES_J): Define.
4219 * string/strcasestr.c: Likewise.
4220
4221 * string/str-two-way.h (two_way_short_needle): Use pointers instead of
4222 array references.
4223 * string/strcasestr.c (TOLOWER): Make side-effect safe.
4224
4225 [BZ #11607]
4226 * NEWS: Add an entry.
4227 * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
4228 define their defaults.
4229 (two_way_short_needle): Detect end-of-string on-the-fly.
4230 * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
4231 (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
4232 * string/bug-strcasestr1.c: New test.
4233 * string/Makefile: Run it.
4234
42352012-08-21 Maxim Kuvyrkov <maxim@codesourcery.com>
4236
4237 [BZ #11607]
4238 * string/str-two-way.h (two_way_short_needle): Optimize matching of
4239 the first character.
4240
42412012-08-21 Roland McGrath <roland@hack.frob.com>
4242
4243 * csu/elf-init.c (__libc_csu_irel): Function removed.
4244 * csu/libc-start.c (apply_irel): New function.
4245 (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
4246
42472012-08-21 Joseph Myers <joseph@codesourcery.com>
4248
4249 * sysdeps/unix/sysv/linux/kernel-features.h
4250 (__ASSUME_FADVISE64_64_SYSCALL): Remove.
4251 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
4252 <kernel-features.h>.
4253 [__NR_fadvise64_64]: Make code unconditional.
4254 [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
4255 [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
4256 !__NR_fadvise64_64)]: Likewise.
4257 [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
4258 !__NR_fadvise64_64))]: Likewise.
4259 [__NR_fadvise64]: Make code unconditional.
4260 [!__NR_fadvise64]: Remove conditional code.
4261 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
4262 <kernel-features.h>.
4263 (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4264 unconditional.
4265 (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4266 conditional code.
4267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
4268 not include <kernel-features.h>.
4269 (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4270 unconditional.
4271 (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4272 conditional code.
4273 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
4274 include <kernel-features.h>.
4275 (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
4276 unconditional.
4277 (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
4278 conditional code.
4279
42802012-08-21 Will Schmidt <will_schmidt@vnet.ibm.com>
4281
4282 * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
4283 slight instruction rearrangements per scrollpipe analysis.
4284 * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4285
42862012-08-20 Roland McGrath <roland@hack.frob.com>
4287
4288 * manual/syslog.texi (syslog; vsyslog, closelog):
4289 Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
4290 Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
4291
4292 * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
4293 DSOCAPS to match condition on defining it.
4294
42952012-08-20 Joseph Myers <joseph@codesourcery.com>
4296
4297 * sysdeps/unix/sysv/linux/kernel-features.h
4298 (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
4299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
4300 [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4301 [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
4303 [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4304 [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
4306 [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
4307 [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
4308
4309 * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
4310 __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
4311
4312 * sysdeps/unix/sysv/linux/kernel-features.h
4313 (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
4314 * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
4315 unconditional.
4316 [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4317 * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
4318 [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
4319 (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4320 * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
4321 Make code unconditional.
4322 (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4323 (__mmap64) [!__NR_mmap2]: Likewise.
4324 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
4325 [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
4326 (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4327 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
4328 [__NR_mmap2]: Make code unconditional.
4329 (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
4330 (__mmap64) [!__NR_mmap2]: Likewise.
4331
43322012-08-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4333
4334 * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
4335
43362012-08-18 Andreas Jaeger <aj@suse.de>
4337
4338 * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
4339
43402012-08-18 Mike Frysinger <vapier@gentoo.org>
4341
4342 * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
4343 * include/unistd.h (__have_sock_cloexec): Likewise.
4344 (__have_pipe2): Likewise.
4345 (__have_dup3): Likewise.
4346
43472012-08-18 Mike Frysinger <vapier@gentoo.org>
4348
4349 [BZ #9685]
4350 * include/unistd.h (__have_pipe2): Change define into an extern int.
4351 (__have_dup3): Likewise.
4352 * socket/have_sock_cloexec.c: Include fcntl.h.
4353 (__have_pipe2): New variable.
4354 (__have_dup3): Likewise.
4355
43562012-08-17 Mike Frysinger <vapier@gentoo.org>
4357
4358 * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
4359
43602012-08-17 Marek Polacek <polacek@redhat.com>
4361
4362 * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
4363 ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
4364
43652012-08-17 Roland McGrath <roland@hack.frob.com>
4366
4367 * configure.in: Add AC_SUBST for sysheaders.
4368 * configure: Regenerated.
4369 * config.make.in (sysheaders): New substituted variable.
4370
4371 * sysdeps/unix/mkfifo.c: Moved ...
4372 * sysdeps/posix/mkfifo.c: ... here.
4373 * sysdeps/unix/mkfifoat.c: Moved ...
4374 * sysdeps/posix/mkfifoat.c: ... here.
4375
4376 * sysdeps/unix/utime.c: Moved ...
4377 * sysdeps/posix/utime.c: ... here.
4378
4379 * sysdeps/unix/time.c: Moved ...
4380 * sysdeps/posix/time.c: ... here.
4381 * sysdeps/unix/sysv/linux/time.c: Adjust #include.
4382 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
4383
4384 * sysdeps/unix/nice.c: Moved ...
4385 * sysdeps/posix/nice.c: ... here.
4386
4387 * sysdeps/unix/alarm.c: Moved ...
4388 * sysdeps/posix/alarm.c: ... here.
4389
4390 * intl/Makefile ($(codeset_mo)): Depend on the input file.
4391
43922012-08-17 Jeff Law <law@redhat.com>
4393
4394 * intl/Makefile (codeset_mo): New variable.
4395 ($(codeset_mo)): New target.
4396 (tst-codeset.out): Depend on that. Remove explicit rule.
4397 (tst-gettext3.out, tst-gettext5.out): Likewise.
4398 (LOCPATH-ENV, tst-codeset-ENV): New variables.
4399 (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
4400 * intl/tst-codeset.sh: Remove.
4401 * intl/tst-gettext3.sh: Likewise.
4402 * intl/tst-gettext5.sh: Likewise.
4403
44042012-08-17 Roland McGrath <roland@hack.frob.com>
4405
4406 * sysdeps/unix/inet/syscalls.list: File removed. Move contents into ...
4407 * sysdeps/unix/syscalls.list: ... here.
4408
4409 * sysdeps/posix/getaddrinfo.c
4410 (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
4411 (gaiconf_init, gaiconf_reload): Use them.
4412 [!_STATBUF_ST_NSEC]
4413 (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
4414 Define using time_t rather than struct timespec.
4415
4416 * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
4417 (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
4418 Macros removed.
4419 * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
4420 [!NO_THREADS].
4421 (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
4422 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
4423 Likewise.
4424
4425 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
4426 __libc_cleanup_push argument.
4427
4428 * bits/param.h: New file.
4429 * misc/sys/param.h: New file.
4430 * include/sys/param.h: New file.
4431 * misc/Makefile (headers): Add bits/param.h.
4432 * sysdeps/generic/sys/param.h: File removed.
4433 * sysdeps/unix/sysv/linux/bits/param.h: New file.
4434 * sysdeps/unix/sysv/linux/sys/param.h: File removed.
4435 * sysdeps/mach/hurd/bits/param.h: New file.
4436 * sysdeps/mach/hurd/sys/param.h: File removed.
4437
4438 * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
4439 last change.
4440
4441 * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
4442 [_IO_MTSAFE_IO].
4443 * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
4444 (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
4445 New macros.
4446
4447 * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
4448 * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
4449 rather than -D_IO_MTSAFE_IO conditionally.
4450 * stdio-common/Makefile (CPPFLAGS): Likewise.
4451 * wcsmbs/Makefile (CPPFLAGS): Likewise.
4452 * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
4453 Use $(libio-mtsafe).
4454 * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
4455 of -D_IO_MTSAFE_IO.
4456 (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
4457 (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4458 (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4459 (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4460 (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4461 (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4462 (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4463 (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4464 (CFLAGS-fread_u_chk.c): Likewise.
4465 (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4466 (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4467 (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4468 (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4469 * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4470 * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4471 * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4472 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4473 * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4474
4475 * libio/Makefile: Test [$(libc-reentrant) = yes]
4476 instead of [$(filter %REENTRANT, $(defines)) nonempty].
4477
4478 * Makeconfig
4479 [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4480 * sysdeps/pthread/configure: File removed.
4481 * sysdeps/pthread/Makeconfig: New file.
4482 * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4483 * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4484
44852012-08-16 Gary Benson <gbenson@redhat.com>
4486
4487 * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4488 unmapping the first object in a namespace.
4489
44902012-08-16 Roland McGrath <roland@hack.frob.com>
4491
4492 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4493 (__internal_setnetgrent): ... this. Add internal_function to
4494 definition. Add libc_hidden_def.
4495 (setnetgrent): Update caller.
4496 (internal_endnetgrent): Renamed to ...
4497 (__internal_endnetgrent): ... this. Add internal_function to
4498 definition. Add libc_hidden_def.
4499 (endnetgrent): Update caller.
4500 (internal_getnetgrent_r): Renamed to ...
4501 (__internal_getnetgrent_r): ... this. Add internal_function to
4502 definition. Add libc_hidden_def.
4503 (__getnetgrent_r): Update caller.
4504 * inet/netgroup.h: Update declarations. Add libc_hidden_proto uses.
4505
45062012-08-16 Joseph Myers <joseph@codesourcery.com>
4507
4508 * stdlib/longlong.h: Update from GCC.
4509
45102012-08-16 Roland McGrath <roland@hack.frob.com>
4511
4512 * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4513 on _QL, which is set by umul_ppmm but never used.
4514 * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4515 variables, which are set by GMP macros but never used.
4516 * stdio-common/_itowa.c (_itowa): Likewise.
4517 * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4518 * stdlib/mod_1.c (mpn_mod_1): Likewise.
4519
45202012-08-16 Carlos O'Donell <carlos_odonell@mentor.com>
4521
4522 * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4523 struct La_sh_regs is not constant.
4524 * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4525 <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4526 and struct La_sparc64_regs are not constant.
4527
45282012-08-16 Joseph Myers <joseph@codesourcery.com>
4529
4530 * sysdeps/unix/sysv/linux/kernel-features.h
4531 (__ASSUME_POSIX_TIMERS): Remove.
4532 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4533 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4534 * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4535 Make code unconditional.
4536 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4537 * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4538 Make code unconditional.
4539 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4540 * sysdeps/unix/sysv/linux/clock_nanosleep.c
4541 [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4542 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4543 * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4544 Make code unconditional.
4545 [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4546 [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4547 (__libc_missing_posix_timers): Remove.
4548
45492012-08-15 Roland McGrath <roland@hack.frob.com>
4550
4551 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4552 check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4553
4554 * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4555
4556 * elf/dl-sym.c: Include <stdlib.h>.
4557
4558 * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4559 constants, which avoids warnings in 32-bit builds.
4560
4561 * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4562 (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4563
4564 * misc/lseek.c: File moved to ...
4565 * io/lseek.c: ... here.
4566
4567 * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4568
4569 * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4570 shifting LEN more than 31 bits at once.
4571
45722012-08-15 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
4573
4574 [BZ #14195]
4575 * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4576 segmentation fault for a case of two empty input strings.
4577 * string/test-strncasecmp.c (check1): Renamed to...
4578 (bz12205): ...this.
4579 (bz14195): Add new testcase for two empty input strings and N > 0.
4580 (test_main): Call new testcase, adapt for renamed function.
4581
45822012-08-15 Andreas Jaeger <aj@suse.de>
4583
4584 [BZ #14090]
4585 * crypt/md5test2.c: New test, based on test supplied by Serge
4586 Belyshev <belyshev@depni.sinp.msu.ru>.
4587 * crypt/Makefile (xtests): Add md5test-giant..
4588 * crypt/Makefile ($(objpfx)md5test-giant): Add.
4589
45902012-08-15 Paul Eggert <eggert@cs.ucla.edu>
4591
4592 [BZ #14090]
4593 * crypt/md5.c (md5_process_block): Don't assume the buffer
4594 length is less than 2**32.
4595 * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4596 length is less than 2**64.
4597
45982012-08-15 Roland McGrath <roland@hack.frob.com>
4599
4600 * string/str-two-way.h: Include <sys/param.h>.
4601 (MAX): Macro removed.
4602
4603 * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4604 Move #define and #undef of memmove to just before and after
4605 including <string.h>.
4606
4607 * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4608 [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4609 and after including <string.h>. Move declarations of
4610 __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4611 to before #include "string/memmove.c".
4612
4613 * include/dirent.h: Declare __getdirentries.
4614
4615 * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4616 using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4617
46182012-08-14 Mike Frysinger <vapier@gentoo.org>
4619
4620 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4621 * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4622 * sysdeps/i386/configure: Regenerated.
4623 * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4624 STABS_CURRENT_FILE, and STABS_FUN.
4625 (END): Remove call to STABS_FUN_END.
4626 (STABS_CURRENT_FILE1): Delete.
4627 (STABS_CURRENT_FILE): Likewise.
4628 (STABS_FUN): Likewise.
4629 (STABS_FUN_END): Likewise.
4630 (STABS_FUN2): Likewise.
4631 * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4632 * sysdeps/x86_64/configure: Regenerated.
4633
46342012-08-14 Roland McGrath <roland@hack.frob.com>
4635
4636 * elf/dl-open.c: Include <atomic.h>.
4637 * elf/dl-lookup.c: Likewise.
4638
46392012-08-14 Joseph Myers <joseph@codesourcery.com>
4640
4641 * sysdeps/unix/sysv/linux/kernel-features.h
4642 (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4643 * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4644 unconditionally.
4645 * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4646 unconditionally.
4647 * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4648 condition on __ASSUME_CLONE_THREAD_FLAGS.
4649
46502012-08-14 Andreas Jaeger <aj@suse.de>
4651
4652 * sysdeps/i386/fpu/libm-test-ulps: Update.
4653
46542012-08-13 Maxim Kuvyrkov <maxim@codesourcery.com>
4655
4656 * include/atomic.h (atomic_exchange_and_add): Split into ...
4657 (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4658 New atomic macros.
4659
46602012-08-13 Markus Trippelsdorf <markus@trippelsdorf.de>
4661
4662 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4663
46642012-08-13 Jeff Law <law@redhat.com>
4665
4666 * manual/stdio.texi (snprintf): Clarify handling of the trailing
4667 null byte in the output string.
4668
46692012-08-10 Joseph Myers <joseph@codesourcery.com>
4670
4671 * sysdeps/unix/sysv/linux/kernel-features.h
4672 (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4673 [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4674 (__ASSUME_ARG_MAX_STACK_BASED): Define.
4675 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4676 [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4677 !__ASSUME_ARG_MAX_STACK_BASED. Compare version with
4678 __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4679
46802012-08-09 Jeff Law <law@redhat.com>
4681
4682 [BZ #13939]
4683 * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4684 When avoid_arena is set, don't retry in the that arena. Pick the
4685 next one, whatever it might be.
4686 (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4687 (arena_lock): Pass in new parameter to arena_get2.
4688 * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4689 arena_get2.
4690 (__libc_malloc): Unify retrying after main arena failure with
4691 __libc_memalign version.
4692 (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4693
46942012-08-09 H.J. Lu <hongjiu.lu@intel.com>
4695
4696 [BZ #14166]
4697 * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4698 to __redirect_strstr.
4699 (__strstr_sse42): Use typeof __redirect_strstr.
4700 (__strstr_ia32): Likewise.
4701 (__libc_strstr): New prototype.
4702 (strstr): Renamed to ...
4703 (__libc_strstr): This.
4704 (strstr): New strong alias of __libc_strstr.
4705 * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4706 * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4707 __redirect_time.
4708 Include <time.h>.
4709 (__libc_time): New prototype.
4710 (time_ifunc): Replace time with __libc_time.
4711 (time): New strong alias and hidden definition of __libc_time.
4712 (__GI_time): Remove strong alias.
4713 * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4714 Include <stddef.h>.
4715 (memmove): Redefined to __redirect_memmove.
4716 (__memmove_sse2): Use typeof __redirect_memmove.
4717 (__memmove_ssse3): Likewise.
4718 (__memmove_ssse3_back): Likewise.
4719 (__libc_memmove): New prototype.
4720 (memmove): Renamed to ...
4721 (__libc_memmove): This.
4722 (memmove): New strong alias of __libc_memmove.
4723
47242012-08-08 Mark Salter <msalter@redhat.com>
4725
4726 * elf/elf.h
4727 (R_MN10300_TLS_GD): Define.
4728 (R_MN10300_TLS_LD): Likewise.
4729 (R_MN10300_TLS_LDO): Likewise.
4730 (R_MN10300_TLS_GOTIE): Likewise.
4731 (R_MN10300_TLS_IE): Likewise.
4732 (R_MN10300_TLS_LE): Likewise.
4733 (R_MN10300_TLS_DTPMOD): Likewise.
4734 (R_MN10300_TLS_DTPOFF): Likewise.
4735 (R_MN10300_TLS_TPOFF): Likewise.
4736 (R_MN10300_SYM_DIFF): Likewise.
4737 (R_MN10300_ALIGN): Likewise.
4738 (R_MN10300_NUM): Update.
4739
47402012-08-08 Joseph Myers <joseph@codesourcery.com>
4741
4742 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4743 Remove.
4744
47452012-08-08 Roland McGrath <roland@hack.frob.com>
4746
4747 * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4748
4749 * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4750 sysdeps/unix -> sysdeps/posix move.
4751 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4752
47532012-08-07 Allan McRae <allan@archlinux.org>
4754
4755 [BZ #14303]
4756 * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4757 (SUNOS_CPP): Likewise.
4758 (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4759 not found.
4760 (open_input): Call CPP using execvp.
4761
47622012-08-07 Joseph Myers <joseph@codesourcery.com>
4763
4764 * sysdeps/unix/sysv/linux/kernel-features.h
4765 (__ASSUME_PROT_GROWSUPDOWN): Remove.
4766 (__ASSUME_NO_CLONE_DETACHED): Likewise.
4767 (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4768 (__ASSUME_WAITID_SYSCALL): Likewise.
4769 * sysdeps/unix/sysv/linux/dl-execstack.c
4770 (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4771 code unconditional.
4772 (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4773 conditional code.
4774 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4775 [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4776 (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4777 code.
4778 * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4779 unconditional.
4780 [__ASSUME_WAITID_SYSCALL]: Likewise.
4781 [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4782
47832012-08-07 Roland McGrath <roland@hack.frob.com>
4784
4785 * sysdeps/unix/closedir.c: Renamed to ...
4786 * sysdeps/posix/closedir.c: ... here.
4787 * sysdeps/unix/dirfd.c: Renamed to ...
4788 * sysdeps/posix/dirfd.c: ... here.
4789 * sysdeps/unix/dirstream.h: Renamed to ...
4790 * sysdeps/posix/dirstream.h: ... here.
4791 * sysdeps/unix/fdopendir.c: Renamed to ...
4792 * sysdeps/posix/fdopendir.c: ... here.
4793 * sysdeps/unix/opendir.c: Renamed to ...
4794 * sysdeps/posix/opendir.c: ... here.
4795 * sysdeps/unix/readdir.c: Renamed to ...
4796 * sysdeps/posix/readdir.c: ... here.
4797 * sysdeps/unix/readdir_r.c: Renamed to ...
4798 * sysdeps/posix/readdir_r.c: ... here.
4799 * sysdeps/unix/rewinddir.c: Renamed to ...
4800 * sysdeps/posix/rewinddir.c: ... here.
4801 * sysdeps/unix/seekdir.c: Renamed to ...
4802 * sysdeps/posix/seekdir.c: ... here.
4803 * sysdeps/unix/telldir.c: Renamed to ...
4804 * sysdeps/posix/telldir.c: ... here.
4805 * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4806 * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4807 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4808 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4809
4810 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4811 * bits/fcntl.h: ... here.
4812
4813 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4814 not 0.
4815 (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4816 [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4817 (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4818 (struct flock): Move l_start, l_len to the beginning.
4819 Use __pid_t for l_pid.
4820 [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4821 [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4822 [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4823 (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4824 [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4825 [__USE_LARGEFILE64] (struct flock64): New type.
4826 (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4827
4828 * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4829 * bits/dirent.h: ... here.
4830
4831 * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4832 [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4833
48342012-08-07 Joseph Myers <joseph@codesourcery.com>
4835
4836 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4837 Change from 2.6.0 to 2.6.16.
4838 * sysdeps/unix/sysv/linux/configure: Regenerated.
4839 * sysdeps/unix/sysv/linux/kernel-features.h
4840 (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4841 (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4842 version.
4843 (__ASSUME_UTIMES): Likewise.
4844 (__ASSUME_CLONE_STOPPED): Remove.
4845 (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4846 architectures, not kernel version.
4847 (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4848 (__ASSUME_NO_CLONE_DETACHED): Likewise.
4849 (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4850 (__ASSUME_WAITID_SYSCALL): Likewise.
4851 [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4852 condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4853 * README: State 2.6.16 as minimum Linux kernel version. Do not
4854 refer to older versions.
4855
48562012-08-06 Roland McGrath <roland@hack.frob.com>
4857
4858 * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4859 Define alphasort64 as an alias.
4860 * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4861 Define versionsort64 as an alias.
4862 * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4863 Define scandir64 as an alias.
4864 * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4865 Define scandirat64 as an alias.
4866 * dirent/alphasort64.c (alphasort64):
4867 Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4868 * dirent/versionsort64.c: Likewise.
4869 * dirent/scandir64.c: Likewise.
4870 * dirent/scandirat64.c: Likewise.
4871 * sysdeps/wordsize-64/alphasort.c: File removed.
4872 * sysdeps/wordsize-64/alphasort64.c: File removed.
4873 * sysdeps/wordsize-64/scandir.c: File removed.
4874 * sysdeps/wordsize-64/scandir64.c: File removed.
4875 * sysdeps/wordsize-64/scandirat.c: File removed.
4876 * sysdeps/wordsize-64/scandirat64.c: File removed.
4877 * sysdeps/wordsize-64/versionsort.c: File removed.
4878 * sysdeps/wordsize-64/versionsort64.c: File removed.
4879 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4880 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4881 * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4882 * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4883 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4884 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4885 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4886 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4887
4888 * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4889 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4890 [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4891 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4892 [defined __arch64__ || defined __sparcv9]
4893 (__INO_T_MATCHES_INO64_T): New macro.
4894 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4895 [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4896 * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4897 * sysdeps/unix/sysv/linux/bits/dirent.h
4898 [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4899 (_DIRENT_MATCHES_DIRENT64): New macro.
4900
4901 * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4902 Define lockf64 as an alias.
4903 * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4904 Define fseeko64 as an alias.
4905 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4906 Define ftello64 as an alias.
4907 * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4908 Define _IO_fgetpos64 and fgetpos64 as aliases.
4909 * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4910 Define _IO_fsetpos64 and fsetpos64 as aliases.
4911 * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4912 Conditionalize body on this.
4913 * libio/fseeko64.c: Likewise.
4914 * libio/ftello64.c: Likewise.
4915 * libio/iofgetpos64.c: Likewise.
4916 * libio/iofsetpos64.c: Likewise.
4917 * sysdeps/wordsize-64/lockf.c: File removed.
4918 * sysdeps/wordsize-64/lockf64.c: File removed.
4919 * sysdeps/wordsize-64/fseeko.c: File removed.
4920 * sysdeps/wordsize-64/fseeko64.c: File removed.
4921 * sysdeps/wordsize-64/ftello.c: File removed.
4922 * sysdeps/wordsize-64/ftello64.c: File removed.
4923 * sysdeps/wordsize-64/iofgetpos.c: File removed.
4924 * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4925 * sysdeps/wordsize-64/iofsetpos.c: File removed.
4926 * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4927 * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4928 * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4929 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4930 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4931 * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4932 * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4933 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4934 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4935 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4936 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4937
4938 * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4939 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4940 [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4941 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4942 [defined __arch64__ || defined __sparcv9]
4943 (__OFF_T_MATCHES_OFF64_T): New macro.
4944 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4945 [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4946 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4947 (__OFF_T_MATCHES_OFF64_T): New macro.
4948
49492012-08-06 H.J. Lu <hongjiu.lu@intel.com>
4950
4951 * stdlib/secure-getenv.c (__secure_getenv): Replace
4952 GLIBC_2_16 with GLIBC_2_17.
4953
49542012-08-06 H.J. Lu <hongjiu.lu@intel.com>
4955
4956 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4957 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4958
49592012-08-03 David S. Miller <davem@davemloft.net>
4960
4961 * sysdeps/sparc/fpu/libm-test-ulps: Update.
4962
49632012-08-03 Joseph Myers <joseph@codesourcery.com>
4964
4965 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4966 Remove.
4967 (__ASSUME_CORRECT_SI_PID): Likewise.
4968 (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4969 (__ASSUME_TMPFS_NAME): Likewise.
4970 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4971 [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4972 * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4973 (HAVE_AUX_SECURE): Make definition unconditional.
4974 * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4975 [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4976
49772012-08-03 Roland McGrath <roland@hack.frob.com>
4978
4979 * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4980 * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4981 * sysdeps/mach/hurd/eloop-threshold.h: New file.
4982 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4983 __eloop_threshold instead of SYMLOOP_MAX.
4984
4985 * sysdeps/generic/eloop-threshold.h: New file.
4986 * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4987 of MAXSYMLINKS.
4988 * elf/chroot_canon.c (chroot_canon): Likewise.
4989
49902012-08-03 Joseph Myers <joseph@codesourcery.com>
4991
4992 [BZ #13717]
4993 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4994 Change to 2.6.0 everywhere.
4995 * sysdeps/unix/sysv/linux/configure: Regenerated.
4996 * sysdeps/unix/sysv/linux/kernel-features.h
4997 (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4998 (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4999 kernel versions.
5000 (__ASSUME_POSIX_TIMERS): Define unconditionally.
5001 (__ASSUME_FUTEX_REQUEUE): Remove.
5002 (__ASSUME_STATFS64): Define unconditionally.
5003 (__ASSUME_AT_SECURE): Likewise.
5004 (__ASSUME_CORRECT_SI_PID): Likewise.
5005 (__ASSUME_TGKILL): Define without depending on kernel version for
5006 i386.
5007 (__ASSUME_UTIMES): Likewise.
5008 (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
5009 kernel version.
5010 (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
5011 (__ASSUME_TMPFS_NAME): Likewise.
5012 * README: Update reference to Linux kernel versions.
5013
50142012-08-02 Marek Polacek <polacek@redhat.com>
5015
5016 [BZ# 14150]
5017 * configure.in (libc_cv_asm_type_prefix): Remove test. Replace
5018 libc_cv_asm_type_prefix with %.
5019 * configure: Regenerated.
5020 * include/libc-symbols.h: Remove comment about
5021 ASM_TYPE_DIRECTIVE_PREFIX. Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
5022 (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
5023 (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
5024 (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
5025 (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
5026 * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
5027 [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
5028 [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
5029 * elf/tst-unique2mod1.c: Likewise.
5030 * elf/tst-unique1mod2.c: Likewise.
5031 * elf/tst-unique1mod1.c: Likewise.
5032 * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
5033 * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
5034 Replace ASM_TYPE_DIRECTIVE with .type.
5035 * sysdeps/s390/s390-64/sysdep.h: Likewise.
5036 * sysdeps/i386/sysdep.h: Likewise.
5037 * sysdeps/x86_64/sysdep.h: Likewise.
5038 * sysdeps/sh/sysdep.h: Likewise.
5039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
5040 Do not define ASM_TYPE_DIRECTIVE.
5041 * sysdeps/powerpc/sysdep.h: Likewise.
5042 * sysdeps/powerpc/powerpc32/sysdep.h:
5043 Replace ASM_TYPE_DIRECTIVE with .type.
5044 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5045 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5046 * sysdeps/i386/fpu/e_powf.S: Likewise.
5047 * sysdeps/i386/fpu/e_expl.S: Likewise.
5048 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
5049 * sysdeps/i386/fpu/e_acosh.S: Likewise.
5050 * sysdeps/i386/fpu/e_pow.S: Likewise.
5051 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
5052 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
5053 * sysdeps/i386/fpu/s_expm1.S: Likewise.
5054 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
5055 * sysdeps/i386/fpu/e_log2.S: Likewise.
5056 * sysdeps/i386/fpu/e_log2l.S: Likewise.
5057 * sysdeps/i386/fpu/e_scalb.S: Likewise.
5058 * sysdeps/i386/fpu/e_powl.S: Likewise.
5059 * sysdeps/i386/fpu/e_log10f.S: Likewise.
5060 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
5061 * sysdeps/i386/fpu/e_logl.S: Likewise.
5062 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
5063 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
5064 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
5065 * sysdeps/i386/fpu/e_log2f.S: Likewise.
5066 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
5067 * sysdeps/i386/fpu/e_log.S: Likewise.
5068 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
5069 * sysdeps/i386/fpu/e_logf.S: Likewise.
5070 * sysdeps/i386/fpu/e_log10l.S: Likewise.
5071 * sysdeps/i386/fpu/e_atanh.S: Likewise.
5072 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
5073 * sysdeps/i386/fpu/e_log10.S: Likewise.
5074 * sysdeps/i386/fpu/s_frexp.S: Likewise.
5075 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
5076 * sysdeps/i386/fpu/s_asinh.S: Likewise.
5077 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
5078 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
5079 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
5080 * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
5081 * sysdeps/i386/i686/strtok.S: Likewise.
5082 * sysdeps/i386/i386-mcount.S: Likewise.
5083 * sysdeps/i386/strtok.S: Likewise.
5084 * sysdeps/x86_64/fpu/e_expl.S: Likewise.
5085 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
5086 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5087 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
5088 * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5089 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
5090 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5091 * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
5092 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
5093 * sysdeps/x86_64/_mcount.S: Likewise.
5094 * sysdeps/x86_64/strtok.S: Likewise.
5095 * sysdeps/sh/_mcount.S: Likewise.
5096
50972012-08-01 Roland McGrath <roland@hack.frob.com>
5098
5099 * libio/iofopen.c: Include <fcntl.h>.
5100 [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
5101 (_IO_fopen64, fopen64): Define as aliases.
5102 * libio/iofopen64.c: Include <fcntl.h>.
5103 [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
5104 Conditionalize body on this.
5105 * sysdeps/wordsize-64/iofopen.c: File removed.
5106 * sysdeps/wordsize-64/iofopen64.c: File removed.
5107
51082012-08-01 Marek Polacek <polacek@redhat.com>
5109
5110 * libc/Makeconfig: Use elf in place of binfmt-subdir.
5111 Use dlfcn directly instead of a variable.
5112 (binfmt-subdir): Do not define.
5113 (dlfcn): Likewise.
5114
51152012-08-01 Joseph Myers <joseph@codesourcery.com>
5116
5117 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
5118 Remove all definitions.
5119 * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
5120 <kernel-features.h>.
5121 [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
5122 (miss_F_GETOWN_EX): Remove all definitions.
5123 [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
5124 macro definition.
5125 [!__ASSUME_FCNTL64]: Remove conditional code.
5126 [__ASSUME_FCNTL64]: Make code unconditional.
5127 * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
5128 <kernel-features.h>.
5129 [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
5130 (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
5131 (lockf64) [__NR_fcntl64]: Make code unconditional.
5132 (lockf64) [__ASSUME_FCNTL64]: Likewise.
5133
5134 * sysdeps/unix/sysv/linux/kernel-features.h
5135 (__ASSUME_VFORK_SYSCALL): Remove all definitions.
5136 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
5137 Make code unconditional.
5138 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5139 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
5141 [__NR_vfork]: Make code unconditional.
5142 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5143 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
5145 [__NR_vfork]: Make code unconditional.
5146 (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
5147 (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
5148
51492012-08-01 Roland McGrath <roland@hack.frob.com>
5150
5151 * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
5152 (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
5153
5154 * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5155 Define mkstemp64 as an alias.
5156 * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5157 Define mkstemps64 as an alias.
5158 * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5159 Define mkostemp64 as an alias.
5160 * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
5161 Define mkostemps64 as an alias.
5162 * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
5163 Conditionalize body on this.
5164 * misc/mkostemp64.c: Likewise.
5165 * misc/mkostemps64.c: Likewise.
5166 * misc/mkstemps64.c: Likewise.
5167 * sysdeps/wordsize-64/mkstemp64.c: File removed.
5168 * sysdeps/wordsize-64/mkostemp64.c: File removed.
5169 * sysdeps/wordsize-64/mkostemp.c: File removed.
5170 * sysdeps/wordsize-64/mkstemp.c: File removed.
5171 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
5172 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
5173 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
5174 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
5175
5176 [BZ #14138]
5177 * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
5178 * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
5179 * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
5180 * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
5181
5182 * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
5183 compat_symbol macros from <shlib-compat.h> rather than the underlying
5184 default_symbol_version and symbol_version macros, so that DEFAULT
5185 lines in shlib-versions are respected.
5186 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
5187
51882012-08-01 Florian Weimer <fweimer@redhat.com>
5189
5190 * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
5191 Declare with warn_unused_result.
5192 (setgid, setregid, setegid, setresgid): Likewise.
5193 * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
5194 Likewise.
5195 * WUR-REPORT: Remove set*id functions.
5196
51972012-07-31 Pino Toscano <toscano.pino@tiscali.it>
5198
5199 * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
5200
52012012-07-31 Roland McGrath <roland@hack.frob.com>
5202
5203 * include/sys/socket.h (__libc_accept, __libc_accept4):
5204 Add attribute_hidden.
5205 * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
5206
5207 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
5208 use of PTR_MANGLE.
5209 * inet/getnetgrent_r.c (setup): Likewise.
5210
5211 * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
5212
52132012-07-31 David S. Miller <davem@davemloft.net>
5214
5215 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5216
52172012-07-31 Joseph Myers <joseph@codesourcery.com>
5218
5219 [BZ #13629]
5220 * math/s_clog.c (__clog): Use __log1p if larger part has absolute
5221 value between 1.0 and 2.0 and smaller part has absolute value less
5222 than 1.0.
5223 * math/s_clog10.c (__clog10): Likewise.
5224 * math/s_clog10f.c (__clog10f): Likewise.
5225 * math/s_clog10l.c (__clog10l): Likewise.
5226 * math/s_clogf.c (__clogf): Likewise.
5227 * math/s_clogl.c (__clogl): Likewise.
5228 * math/libm-test.inc (clog_test): Add more tests.
5229 (clog10_test): Likewise.
5230 * sysdeps/i386/fpu/libm-test-ulps: Update.
5231 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5232
52332012-07-31 Florian Weimer <fweimer@redhat.com>
5234
5235 * stdlib/tst-secure-getenv.c: Use printf for error reporting.
5236 Exit with zero in case no suitable GID is found, and write a
5237 message to standard error.
5238
52392012-07-30 Roland McGrath <roland@hack.frob.com>
5240
5241 * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
5242 rather than to 1.
5243 (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
5244 (MAXPATHLEN): Removed.
5245 (NOGROUP, NODEV): New macros.
5246 (setbit, clrbit, isset, isclr): New macros.
5247 (howmany, roundup, powerof2): New macros.
5248 (DEV_BSIZE): New macro.
5249
5250 * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
5251 * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
5252
5253 * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
5254 definition on [!__NO_LONG_DOUBLE_MATH].
5255
5256 * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
5257 PTR_MANGLE and PTR_DEMANGLE.
5258
5259 * socket/accept4.c (accept4): Rename to __libc_accept4.
5260 Define accept4 as a weak alias.
5261
5262 * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
5263 on [_DIRENT_HAVE_D_TYPE].
5264 * io/ftw.c (ftw_dir): Likewise.
5265
5266 * io/xmknod.c (__xmknod): Don't check PATH for being null.
5267
5268 * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
5269
5270 * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
5271 Use the BSD numbers rather than the arbitrary ones we had.
5272 (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
5273 (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
5274 (SIGXCPU, SIGXFSZ): New macros.
5275 (_NSIG): Now 32.
5276
5277 * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
5278 initializer on [_LIBC_REENTRANT].
5279
5280 * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
5281 definitions inside [_POSIX_MAPPED_FILES].
5282
5283 * posix/regex.c: Include <sys/param.h> for MIN/MAX.
5284
5285 * dirent/opendir.c: Include <fcntl.h>.
5286
5287 * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
5288 (__libc_getspecific): Likewise.
5289 (__libc_key_create): Likewise.
5290
5291 * stdio-common/tmpfile64.c: Include <fcntl.h> first.
5292 [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
5293 * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
5294 (tmpfile64): Define as alias.
5295 * sysdeps/wordsize-64/tmpfile.c: File removed.
5296 * sysdeps/wordsize-64/tmpfile64.c: File removed.
5297 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
5298 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
5299
5300 * stdio-common/vfscanf.c: Include <stdbool.h>.
5301 * nss/makedb.c: Likewise.
5302 * stdio-common/_i18n_number.h: Likewise.
5303 * argp/argp-help.c: Likewise.
5304 * posix/wordexp.c: Likewise.
5305 * sysdeps/posix/spawni.c: Likewise.
5306 * nss/nss_files/files-initgroups.c: Likewise.
5307 * stdio-common/reg-modifier.c: Include <stdlib.h>.
5308 * nss/nss_files/files-initgroups.c: Likewise.
5309 * nss/nss_db/db-netgrp.c: Likewise.
5310 * nss/nss_db/db-initgroups.c: Likewise.
5311 * io/fchmodat.c: Include <sys/stat.h>.
5312
5313 * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
5314 __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
5315
5316 * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
5317 [HAVE_MMAP].
5318
5319 * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
5320 Add multiple inclusion protection.
5321
53222012-07-27 David S. Miller <davem@davemloft.net>
5323
5324 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5325
53262012-07-27 Gary Benson <gbenson@redhat.com>
5327
5328 [BZ #14298]
5329 * elf/rtld.c: Include <stap-probe.h>.
5330 (dl_main): Added static probes "init_start" and "init_complete".
5331 * elf/dl-load.c: Include <stap-probe.h>.
5332 (lose): Take new parameter "nsid".
5333 Added static probe "map_failed".
5334 (_dl_map_object_from_fd): Pass namespace id to lose.
5335 Added static probe "map_start".
5336 (open_verify): Pass namespace id to lose.
5337 * elf/dl-open.c: Include <stap-probe.h>.
5338 (dl_open_worker) Added static probes "map_complete", "reloc_start"
5339 and "reloc_complete".
5340 * elf/dl-close.c: Include <stap-probe.h>.
5341 (_dl_close_worker): Added static probes "unmap_start" and
5342 "unmap_complete".
5343 * elf/rtld-debugger-interface.txt: New file documenting the above.
5344
53452012-07-26 Roland McGrath <roland@hack.frob.com>
5346
5347 * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
5348 rather than a string variable.
5349 * sunrpc/rpc_main.c (h_output): Likewise.
5350 * sunrpc/rpc_svcout.c (write_real_program): Likewise.
5351
53522012-07-26 Pino Toscano <toscano.pino@tiscali.it>
5353
5354 * inet/check_native.c: New file.
5355
53562012-07-26 Joseph Myers <joseph@codesourcery.com>
5357
5358 [BZ #13629]
5359 * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
5360 if larger part has absolute value 1.0.
5361 * math/s_clog10.c (__clog10): Likewise.
5362 * math/s_clog10f.c (__clog10f): Likewise.
5363 * math/s_clog10l.c (__clog10l): Likewise.
5364 * math/s_clogf.c (__clogf): Likewise.
5365 * math/s_clogl.c (__clogl): Likewise.
5366 * math/libm-test.inc (clog_test): Add more tests.
5367 (clog10_test): Likewise.
5368 * sysdeps/i386/fpu/libm-test-ulps: Update.
5369 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5370
5371 * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
5372 (pltexit): Likewise.
5373 (La_regs): Likewise.
5374 (La_retval): Likewise.
5375 (int_retval): Likewise.
5376 Update #error for removed macros to refer only to definitions in
5377 tst-audit.h.
5378 * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
5379 macro.
5380 (pltexit): Likewise.
5381 (La_regs): Likewise.
5382 (La_retval): Likewise.
5383 (int_retval): Likewise.
5384 * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
5385 macro.
5386 (pltexit): Likewise.
5387 (La_regs): Likewise.
5388 (La_retval): Likewise.
5389 (int_retval): Likewise.
5390 * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
5391 macro.
5392 (pltexit): Likewise.
5393 (La_regs): Likewise.
5394 (La_retval): Likewise.
5395 (int_retval): Likewise.
5396 * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
5397 macro.
5398 (pltexit): Likewise.
5399 (La_regs): Likewise.
5400 (La_retval): Likewise.
5401 (int_retval): Likewise.
5402 * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
5403 macro.
5404 (pltexit): Likewise.
5405 (La_regs): Likewise.
5406 (La_retval): Likewise.
5407 (int_retval): Likewise.
5408 * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
5409 macro.
5410 (pltexit): Likewise.
5411 (La_regs): Likewise.
5412 (La_retval): Likewise.
5413 (int_retval): Likewise.
5414 * sysdeps/generic/tst-audit.h: Update comment to refer only to
5415 macro definitions in tst-audit.h.
5416 * sysdeps/i386/tst-audit.h: New file.
5417 * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
5418 * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
5419 * sysdeps/s390/s390-32/tst-audit.h: Likewise.
5420 * sysdeps/s390/s390-64/tst-audit.h: Likewise.
5421 * sysdeps/sh/tst-audit.h: Likewise.
5422 * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
5423 * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
5424 * sysdeps/x86_64/tst-audit.h: Likewise.
5425
54262012-07-26 Andreas Jaeger <aj@suse.de>
5427
5428 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
5429 ptrace.
5430
5431 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
5432 new value PTRACE_EVENT_SECCOMP from Linux 3.5.
5433 (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
5434 PTRACE_O_MASK.
5435 * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
5436 * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
5437 * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
5438
5439 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
5440 value.
5441
5442 * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
5443 _sigsys.
5444 (si_call_addr, si_syscall, si_arch): Define new macro.
5445 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
5446 _sigsys.
5447 (si_call_addr, si_syscall, si_arch): Define new marcro.
5448 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
5449 _sigsys.
5450 (si_call_addr, si_syscall, si_arch): Define new macro.
5451 * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
5452 _sigsys.
5453 (si_call_addr, si_syscall, si_arch): Define new macro.
5454
54552012-07-25 Joseph Myers <joseph@codesourcery.com>
5456
5457 [BZ #13717]
5458 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5459 Change to 2.4.21 where previously 2.4.1.
5460 * sysdeps/unix/sysv/linux/configure: Regenerated.
5461 * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5462 __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5463 Linux kernel version.
5464 (__ASSUME_STD_AUXV): Remove.
5465 [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5466 kernel version.
5467 [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5468 (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5469 (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5470 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5471 (__ASSUME_NETLINK_SUPPORT): Likewise.
5472 * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5473 (__no_netlink_support): Remove conditional definition.
5474 * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5475 Remove.
5476 (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5477 [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5478 * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5479 (if_nameindex_ioctl): Remove.
5480 (if_nameindex_netlink): Do not handle __no_netlink_support.
5481 (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5482 code.
5483 * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5484 Remove conditional code.
5485 (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5486 code.
5487 (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5488 unconditional.
5489 [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5490 [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5491 * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5492 Remove.
5493 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5494 [!__ASSUME_STD_AUXV]: Remove conditional code.
5495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5496 [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5497 [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5499 [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5500 (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5501 code.
5502 [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5504 [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5505 (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5506 conditional code.
5507 [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5509 (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5510 code.
5511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5512 (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5513 conditional code.
5514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5515 (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5516 code unconditional.
5517 (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5518 conditional code.
5519 (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5520 unconditional.
5521 (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5522 conditional code.
5523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5524 (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5525 unconditional.
5526 (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5527 conditional code.
5528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5529 (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5530 code unconditional.
5531 (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5532 conditional code.
5533 (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5534 unconditional.
5535 (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5536 conditional code.
5537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5538 (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5539 code unconditional.
5540 (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5541 conditional code.
5542 (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5543 unconditional.
5544 (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5545 conditional code.
5546
55472012-07-25 Andreas Schwab <schwab@linux-m68k.org>
5548
5549 * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5550 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5551 * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5552 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5553 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5554 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5555 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5556 * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5557 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5558 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5559 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5560 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5561 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5562 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5563 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5564 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5565 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5566 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5567 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5568 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5569 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5570 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5571 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5572
55732012-07-25 Florian Weimer <fweimer@redhat.com>
5574
5575 * Versions.def: Add GLIBC_2.17.
5576 * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5577 * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5578 Introduce __libc_secure_getenv.
5579 * stdlib/Versions (2.17): Add secure_getenv
5580 (GLIBC_PRIVATE): Add __libc_secure_getenv.
5581 * stdlib/secure-getenv.c: Rename __secure_getenv to
5582 __libc_secure_getenv. Add secure_getenv alias. Add compatibility
5583 symbol __secure_getenv for GLIBC_2.0.
5584 * stdlib/tst-secure-getenv.c: New.
5585 * stdlib/Makefile (tests): Add testcase.
5586 * manual/startup.texi (Environment Access): Document
5587 secure_getenv.
5588 * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5589 __libc_secure_getenv.
5590 * inet/ruserpass.c (ruserpass): Likewise.
5591 * malloc/mtrace.c (mtrace): Likewise.
5592 * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5593 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5594 * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5595 * sysdeps/posix/tempname.c: Likewise. Evaluate
5596 HAVE_SECURE_GETENV.
5597 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5598 __secure_getenv to __libc_secure_getenv.
5599 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5601 Likewise.
5602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5603 Likewise.
5604 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5605 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5606 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5607 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5608 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5609 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5610 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5611
56122012-07-25 Joseph Myers <joseph@codesourcery.com>
5613
5614 * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5615 (struct La_i86_retval): Likewise.
5616 (struct La_x86_64_regs): Likewise.
5617 (struct La_x86_64_retval): Likewise.
5618 (struct La_x32_regs): Likewise.
5619 (struct La_x32_retval): Likewise.
5620 (struct La_ppc32_regs): Likewise.
5621 (struct La_ppc32_retval): Likewise.
5622 (struct La_ppc64_regs): Likewise.
5623 (struct La_ppc64_retval): Likewise.
5624 (struct La_sh_regs): Likewise.
5625 (struct La_sh_retval): Likewise.
5626 (struct La_s390_32_regs): Likewise.
5627 (struct La_s390_32_retval): Likewise.
5628 (struct La_s390_64_regs): Likewise.
5629 (struct La_s390_64_retval): Likewise.
5630 (struct La_sparc32_regs): Likewise.
5631 (struct La_sparc32_retval): Likewise.
5632 (struct La_sparc64_regs): Likewise.
5633 (struct La_sparc64_retval): Likewise.
5634 (struct audit_ifaces): Remove architecture-specific pltenter and
5635 pltexit members.
5636 * sysdeps/i386/ldsodefs.h: New file.
5637 * sysdeps/powerpc/ldsodefs.h: Likewise.
5638 * sysdeps/s390/ldsodefs.h: Likewise.
5639 * sysdeps/sh/ldsodefs.h: Likewise.
5640 * sysdeps/sparc/ldsodefs.h: Likewise.
5641 * sysdeps/x86_64/ldsodefs.h: Likewise.
5642
56432012-07-25 Marek Polacek <polacek@redhat.com>
5644
5645 [BZ #6808]
5646 * math/libm-test.inc (yn_test): Add another test.
5647 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5648 to ERANGE when the result is +-Inf.
5649 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5650 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5651 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5652 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5653
56542012-07-24 Joseph Myers <joseph@codesourcery.com>
5655
5656 * conform/data/time.h-data (NULL): Use macro-constant. Require
5657 equal to 0.
5658 (CLOCKS_PER_SEC): Use macro instead of constant. Specify type as
5659 clock_t.
5660 [ISO11] (TIME_UTC): Use macro-int-constant. Require value > 0.
5661
56622012-07-23 Thomas Schwinge <thomas@codesourcery.com>
5663
5664 * configure.in <sysdeps resolving>: Correct printing
5665 Implies_before.
5666 * configure: Regenerate.
5667
56682012-07-22 Thomas Schwinge <thomas@codesourcery.com>
5669
5670 * math/w_ilogb.c: Include <limits.h>.
5671 * math/w_ilogbl.c: Likewise.
5672
56732012-07-20 Joseph Myers <joseph@codesourcery.com>
5674
5675 * manual/lang.texi (__va_copy): Document primarily as ISO C99
5676 va_copy. Document allowing for unavailable va_copy only as
5677 pre-C99 compatibility.
5678 * manual/string.texi (Copying and Concatenation): Use va_copy
5679 instead of __va_copy in concat example.
5680
56812012-07-20 Pino Toscano <toscano.pino@tiscali.it>
5682
5683 * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5684 (__sendto): Use create_address_port. Initialize APORT and deallocate
5685 it if not null.
5686
5687 * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5688 with O_NOLINK passed to __file_name_lookup.
5689
5690 * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5691 with O_NOLINK passed to __file_name_lookup.
5692
5693 * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5694 negative N or less than NGIDS.
5695
5696 * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5697 type to string_t. Set ERANGE as errno and return it if NAME is not big
5698 enough. Use memcpy instead of strncpy.
5699
57002012-07-20 Joseph Myers <joseph@codesourcery.com>
5701
5702 * elf/Makefile (check-data): Remove.
5703 (localplt.data): New vpath directive.
5704 ($(objpfx)check-localplt.out): Use localplt.data from vpath
5705 instead of $(check-data).
5706 * scripts/data/localplt-generic.data: Move to ...
5707 * sysdeps/generic/localplt.data: ... here.
5708 * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5709 * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5710 * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5712 ... here.
5713 * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5715 ... here.
5716 * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5717 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5718 ... here.
5719 * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5720 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5721 ... here.
5722 * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5723 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5724 ... here.
5725 * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5726 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5727 ... here.
5728
57292012-07-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5730
5731 * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5732 PPC32 and PPC64 files.
5733 * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5734 * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5735
57362012-07-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5737
5738 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5739 __makecontext_ret to ...
5740 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5741 ... here and call exit if uc_link is NULL. New file.
5742 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5743 __makecontext_ret.S.
5744 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5745 __makecontext_ret to ...
5746 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5747 ... here and call exit if uc_link is NULL. New file.
5748 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5749 __makecontext_ret.S.
5750
57512012-07-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5752
5753 * elf/elf.h (R_390_IRELATIVE): New definition.
5754 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5755 resolver function for IFUNC symbols. Support R_390_IRELATIVE.
5756 (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5757 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5758 (elf_machine_lazy_rel): Likewise.
5759 * sysdeps/s390/dl-irel.h: New file.
5760 * sysdeps/s390/s390-64/memcpy.S: New asm code.
5761 * sysdeps/s390/s390-64/memset.S: New asm code.
5762 * sysdeps/s390/s390-64/memcmp.S: New asm code.
5763 * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5764 * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5765 * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5766 * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5767 * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5768 * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5769 * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5770 * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5771 * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5772 * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5773 * sysdeps/s390/s390-32/memcpy.S: New asm code.
5774 * sysdeps/s390/s390-32/memset.S: New asm code.
5775 * sysdeps/s390/s390-32/memcmp.S: New asm code.
5776
57772012-07-17 Marek Polacek <polacek@redhat.com>
5778
5779 [BZ #14349]
5780 * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5781 * sysdeps/s390/s390-64/configure.in: Likewise.
5782 * sysdeps/sparc/configure.in: Likewise.
5783 * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5784 * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5785 * sysdeps/i386/configure.in: Likewise.
5786 * sysdeps/x86_64/configure.in: Likewise.
5787 * sysdeps/sh/configure.in: Likewise.
5788 * sysdeps/s390/s390-32/configure: Regenerated.
5789 * sysdeps/s390/s390-64/configure: Likewise.
5790 * sysdeps/x86_64/configure: Likewise.
5791 * sysdeps/sh/configure: Likewise.
5792 * sysdeps/powerpc/powerpc64/configure: Likewise.
5793 * sysdeps/powerpc/powerpc32/configure: Likewise.
5794 * sysdeps/sparc/configure: Likwise.
5795 * sysdeps/i386/configure: Likewise.
5796
5797 * elf/dl-open.c: Comment fixes.
5798
57992012-07-17 Joseph Myers <joseph@codesourcery.com>
5800
5801 * Makefile [CXX] (check-data): Remove.
5802 [CXX] (c++-types.data): New vpath directive.
5803 [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5804 vpath. Do not allow for C++ type data being missing.
5805 * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5806 ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5807 * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5808 ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5809 * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5810 * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5811 * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5813 ... here.
5814 * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5816 ... here.
5817 * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5818 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5819 ... here.
5820 * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5821 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5822 ... here.
5823 * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5824 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5825 ... here.
5826 * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5827 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5828 ... here.
5829 * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5830 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5831 ... here.
5832 * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5833 * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5834
5835 * elf/tls-macros.h (TLS_LE): Move architecture-specific
5836 definitions to architecture-specific files.
5837 (TLS_IE): Likewise.
5838 (TLS_LD): Likewise.
5839 (TLS_GD): Likewise.
5840 * sysdeps/i386/tls-macros.h: New file.
5841 * sysdeps/powerpc/tls-macros.h: Likewise.
5842 * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5843 * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5844 * sysdeps/sh/tls-macros.h: Likewise.
5845 * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5846 * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5847 * sysdeps/x86_64/tls-macros.h: Likewise.
5848
58492012-07-17 Thomas Schwinge <thomas@codesourcery.com>
5850
5851 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5852 zero value for regular exit case.
5853
5854 * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5855 (__start_context): Preserve zero value for regular exit case.
5856
58572012-07-17 Thomas Schwinge <thomas@codesourcery.com>
5858 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5859
5860 * manual/setjmp.texi (setcontext): Clarify normal process
5861 termination when uc_link is the null pointer.
5862 * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5863 exit call.
5864
58652012-07-16 Andreas Schwab <schwab@linux-m68k.org>
5866
5867 * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5868 preprocessor. Test for each exception mask separately.
5869
58702012-07-16 Andreas Jaeger <aj@suse.de>
5871
5872 * po/ru.po: Update from translation team.
5873
58742012-07-15 Joseph Myers <joseph@codesourcery.com>
5875
5876 * conform/data/string.h-data (NULL): Use macro-constant. Require
5877 equal to 0.
5878 [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5879 (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5880 (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5881 (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5882 [ISO || ISO99 || ISO11] (*_t): Do not allow.
5883
58842012-07-13 Andreas Jaeger <aj@suse.de>
5885
5886 * po/fr.po: Update from translation team.
5887
58882012-07-12 Marek Polacek <polacek@redhat.com>
5889
5890 [BZ #14173]
5891 * math/libm-test.inc (yn_test): Add test for BZ #14173.
5892 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5893 loop condition.
5894
58952012-07-12 Joseph Myers <joseph@codesourcery.com>
5896
5897 [BZ #13717]
5898 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5899 Change to 2.4.1 where previously 2.4.0.
5900 * sysdeps/unix/sysv/linux/configure: Regenerated.
5901 * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5902 (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5903 version.
5904 [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5905 (__ASSUME_AT_CLKTCK): Remove.
5906 (__ASSUME_AT_PAGESIZE): Likewise.
5907 (__ASSUME_AT_XID): Likewise.
5908 (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5909 [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5910 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5911 unconditionally.
5912 (HAVE_AUX_PAGESIZE): Likewise.
5913 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5914 [__ASSUME_AT_CLKTCK]: Make code unconditional.
5915 [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5916
59172012-07-12 Jeroen van Bemmel <jvb127@gmail.com>
5918
5919 [BZ #14307]
5920 * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5921 the temporary buffer used to invoke __gethostbyname2_r,
5922 __gethostbyaddr_r and gethostbyname4_r to make room for struct
5923 host_data / struct gaih_addrtuple.
5924 * resolv/nss_dns/dns-host.c (global scope): Move definition of
5925 implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5926 header file nss/nsswitch.h.
5927 * nss/nsswitch.h (global scope): Add definition of implementation
5928 constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5929 resolv/nss_dns/dns-host.c).
5930
59312012-07-11 Andreas Jaeger <aj@suse.de>
5932
5933 * po/fr.po: Update from translation team.
5934
5935 * po/sv.po: Update from translation team
5936 * po/fr.po: Another update from translation team.
5937
59382012-07-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
5939
5940 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5941 for subnormals or multiply small sinh result by itself.
5942 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5943 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5944
59452012-07-11 David S. Miller <davem@davemloft.net>
5946
5947 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5948
59492012-07-10 Andreas Schwab <schwab@linux-m68k.org>
5950
5951 [BZ #14347]
5952 * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5953 (INTERNAL_MARK): Shift it here.
5954
59552012-07-10 Marek Polacek <polacek@redhat.com>
5956
5957 [BZ #14151]
5958 * configure.in (libc_cv_asm_global_directive): Remove test. Replace
5959 libc_cv_asm_global_directive with .globl.
5960 * configure: Regenerated.
5961 * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5962 with .globl.
5963 * sysdeps/i386/configure: Regenerated.
5964 * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5965 with .globl.
5966 * sysdeps/x86_64/configure: Regenerated.
5967 * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5968 * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5969 * elf/tst-unique2mod2.c: Likewise.
5970 * elf/tst-unique2mod1.c: Likewise.
5971 * elf/tst-unique1mod2.c: Likewise.
5972 * elf/tst-unique1mod1.c: Likewise.
5973 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5974 * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5975 * sysdeps/s390/s390-64/sysdep.h: Likewise.
5976 * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5977 * sysdeps/mach/sysdep.h: Likewise.
5978 * sysdeps/i386/sysdep.h: Likewise.
5979 * sysdeps/i386/i386-mcount.S: Likewise.
5980 * sysdeps/x86_64/_mcount.S: Likewise.
5981 * sysdeps/x86_64/sysdep.h: Likewise.
5982 * sysdeps/sh/_mcount.S: Likewise.
5983 * sysdeps/sh/sysdep.h: Likewise.
5984 * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5985 * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5986 * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5987 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5988 * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5989 * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5990 * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5991 * locale/localeinfo.h: Likewise.
5992 (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5993 (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5994
59952012-07-09 Roland McGrath <roland@hack.frob.com>
5996
5997 [BZ #14336]
5998 * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5999 system".
6000 * manual/message.texi (The Uniforum approach): Likewise.
6001 * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
6002 (glibc iconv Implementation): Likewise.
6003
60042012-07-09 Joseph Myers <joseph@codesourcery.com>
6005
6006 [BZ #14337]
6007 * math/s_clog.c (__clog): Avoid scaling a value down where that
6008 could result in underflow.
6009 * math/s_clog10.c (__clog10): Likewise.
6010 * math/s_clog10f.c (__clog10f): Likewise.
6011 * math/s_clog10l.c (__clog10l): Likewise.
6012 * math/s_clogf.c (__clogf): Likewise.
6013 * math/s_clogl.c (__clogl): Likewise.
6014 * math/libm-test.inc (clog_test): Add more tests.
6015 (clog10_test): Likewise.
6016 * sysdeps/i386/fpu/libm-test-ulps: Update.
6017 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6018
60192012-07-06 Andreas Schwab <schwab@linux-m68k.org>
6020
6021 [BZ #14283]
6022 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
6023 by 7 not 8 to examine high bit of fractional part.
6024
6025 [BZ #14042]
6026 * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
6027 for call to __mcount_internal.
6028 * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
6029 (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
6030 * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
6031
60322012-07-06 Joseph Myers <joseph@codesourcery.com>
6033
6034 [BZ #14154]
6035 * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
6036 approximation for values within 0x1p-13f of an odd multiple of
6037 pi/4.
6038 * math/libm-test.inc (tan_test): Do not allow spurious underflow
6039 exception. Add more tests.
6040 * sysdeps/i386/fpu/libm-test-ulps: Update.
6041
6042 [BZ #6778]
6043 * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
6044 inputs and return -1 for them. Do not check for +Inf in case not
6045 reachable for +Inf.
6046 * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
6047 * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
6048 (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
6049 and return -1 for them. Do not check for +Inf in case not
6050 reachable for +Inf.
6051 * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
6052 define.
6053 (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
6054 and return -1 for them. Do not check for +Inf in case not
6055 reachable for +Inf.
6056 * math/libm-test.inc (expm1_test): Add more tests. Do not allow
6057 spurious underflow.
6058 * sysdeps/i386/fpu/libm-test-ulps: Update.
6059 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6060
60612012-07-06 Mike Frysinger <vapier@gentoo.org>
6062
6063 * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
6064
60652012-07-05 Joseph Myers <joseph@codesourcery.com>
6066
6067 [BZ #14157]
6068 [BZ #14331]
6069 * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
6070 could result in spurious underflow. Scale down values above
6071 DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
6072 * math/s_csqrtf.c (__csqrtf): Likewise.
6073 * math/s_csqrtl.c (__csqrtl): Likewise.
6074 * math/libm-test.inc (csqrt_test): Add more tests. Do not allow
6075 spurious underflow.
6076 * sysdeps/i386/fpu/libm-test-ulps: Update.
6077 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6078
60792012-07-04 Andreas Schwab <schwab@linux-m68k.org>
6080
6081 * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
6082 xopen-msg.sed.
6083 * catgets/xopen-msg.awk: New file.
6084 * catgets/xopen-msg.sed: Removed.
6085
6086 * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
6087 po2text.sed.
6088 * intl/po2test.awk: New file.
6089 * intl/po2test.sed: Removed.
6090
60912012-07-04 Joseph Myers <joseph@codesourcery.com>
6092
6093 [BZ #14328]
6094 * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
6095 or multiply small sinh result by itself.
6096 * math/s_ctanf.c (__ctanf): Likewise.
6097 * math/s_ctanh.c (__ctanh): Likewise.
6098 * math/s_ctanhf.c (__ctanhf): Likewise.
6099 * math/s_ctanhl.c (__ctanhl): Likewise.
6100 * math/s_ctanl.c (__ctanl): Likewise.
6101 * math/libm-test.inc (ctan_test_tonearest): New function.
6102 (ctan_test_towardzero): Likewise.
6103 (ctan_test_downward): Likewise.
6104 (ctan_test_upward): Likewise.
6105 (ctanh_test_tonearest): Likewise.
6106 (ctanh_test_towardzero): Likewise.
6107 (ctanh_test_downward): Likewise.
6108 (ctanh_test_upward): Likewise.
6109 (main): Call these new functions.
6110 * sysdeps/i386/fpu/libm-test-ulps: Update.
6111 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6112
61132012-07-03 Mike Frysinger <vapier@gentoo.org>
6114
6115 * .gitignore: Delete /ports entry.
6116
61172012-07-03 Andreas Jaeger <aj@suse.de>
6118
6119 * po/bg.po: Update from translation team.
6120 * po/cs.po: Likewise.
6121 * po/de.po: Likewise.
6122 * po/hr.po: Likewise.
6123 * po/nl.pl: Likewise.
6124 * po/pl.po: Likewise.
6125 * po/vi.po: Likewise.
6126
61272012-07-03 Joseph Myers <joseph@codesourcery.com>
6128
6129 * Makeconfig [!+link] (+link-before-libc): New variable.
6130 [!+link] (+link-after-libc): Likewise.
6131 [!+link] (+link-tests): Likewise.
6132 [!+link] (+link): Define in terms of $(+link-before-libc) and
6133 $(+link-after-libc).
6134 [!+link-static] (+link-static-before-libc): New variable.
6135 [!+link-static] (+link-static-after-libc): Likewise.
6136 [!+link-static] (+link-static-tests): Likewise.
6137 [!+link-static] (+link-static): Define in terms of
6138 $(+link-static-before-libc) and $(+link-static-after-libc).
6139 [build-shared] (link-libc-before-gnulib): New variable.
6140 [build-shared] (link-libc-tests): Likewise.
6141 [build-shared] (link-libc): Define in terms of
6142 $(link-libc-before-gnulib).
6143 [!build-shared] (link-libc-tests): New variable.
6144 (link-libc-static-tests): New variable.
6145 [!gnulib] (gnulib-arch): New variable.
6146 [!gnulib] (gnulib-tests): Likewise.
6147 [!gnulib] (static-gnulib-arch): Likewise.
6148 [!gnulib] (static-gnulib-tests): Likewise.
6149 [!gnulib] (gnulib): Use $(gnulib-arch). Do not use $(libgcc_eh).
6150 Define with "=" instead of ":=".
6151 [!gnulib] (static-gnulib): Use $(static-gnulib-arch). Do not use
6152 -lgcc_eh $(libunwind). Define with "=" instead of ":=".
6153 * Rules (binaries-all-notests): New variable.
6154 (binaries-all-tests): Likewise.
6155 (binaries-static-notests): Likewise.
6156 (binaries-static-tests): Likewise.
6157 (binaries-all): Define using $(binaries-all-notests) and
6158 $(binaries-all-tests).
6159 (binaries-static): Define using $(binaries-static-notests) and
6160 $(binaries-static-tests).
6161 (binaries-shared-tests): New variable.
6162 (binaries-shared-notests): Likewise.
6163 (binaries-shared): Remove variable.
6164 ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
6165 ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
6166 ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
6167 ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
6168 ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
6169 ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
6170 * elf/Makefile (sln-modules): New variable.
6171 (extra-objs): Add $(sln-modules:=.o).
6172 (ldconfig-modules): Add static-stubs.
6173 ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
6174 * elf/static-stubs.c: New file.
6175
6176 [BZ #14283]
6177 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
6178 by 7 not 8 to examine high bit of fractional part. Use volatile
6179 variables when splitting into final array of floats if
6180 __FLT_EVAL_METHOD__ != 0.
6181 * math/libm-test.inc (cos_test): Add another test.
6182 (sin_test): Likewise.
6183 * sysdeps/i386/fpu/libm-test-ulps: Update.
6184
6185 [BZ #14273]
6186 * math/libm-test.inc (cosh_test): Add more tests.
6187
6188 * version.h (RELEASE): Set to "development".
6189 (VERSION): Set to "2.16.90".
6190
61912012-06-30 Carlos O'Donell <carlos_odonell@mentor.com>
6192
6193 * NEWS: Update copyright. Remove last-updated date.
6194 Mention math library bug fixes and timezone data changes.
6195 * README: Mention GNU/Hurd, x32, and HPPA support status.
6196
61972012-06-28 Thomas Schwinge <thomas@codesourcery.com>
6198
6199 * manual/contrib.texi (Contributors): Sort alphabetically by last name.
6200
62012012-06-27 Andreas Jaeger <aj@suse.de>
6202
6203 * manual/contrib.texi (Contributors): Add Samuel Thibault.
6204
62052012-06-25 Andreas Jaeger <aj@suse.de>
6206
6207 * sysdeps/s390/fpu/libm-test-ulps: Update.
6208
62092012-06-23 Andreas Schwab <schwab@linux-m68k.org>
6210 Thomas Schwinge <thomas@codesourcery.com>
6211
6212 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
6213 * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
6214 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
6215 fanotify_mark.
6216
62172012-06-23 Thomas Schwinge <thomas@codesourcery.com>
6218
6219 * sysdeps/mach/start.c: Remove file.
6220 * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
6221 * sysdeps/i386/init-first.c: Fix comment regarding start.S.
6222 * sysdeps/sh/init-first.c: Likewise.
6223
6224 * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
6225 registers for frame unwinding purposes, add CFI directives.
6226 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
6227 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
6228 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6229 Likewise.
6230
6231 * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
6232 __fortify_fail returning.
6233 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
6234
6235 * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
6236 sysdeps/sh/____longjmp_chk.S.
6237 * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
6238 on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
6239 * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
6240 (gen-as-const-headers): Append sigaltstack-offsets.sym.
6241
6242 * sysdeps/sh/abort-instr.h: New file.
6243 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
6244 process in case exit returns.
6245
6246 * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
6247 initialize the GOT register before use.
6248
6249 * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
6250 calculation of ARGC > 4.
6251
6252 * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
6253 meaningful names to some local labels.
6254
62552012-06-22 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
6256 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6257
6258 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
6259 (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
6260 (__arch_compare_and_exchange_val_16_acq): Likewise.
6261 (__arch_compare_and_exchange_val_32_acq): Likewise.
6262 (atomic_exchange_and_add): Fix gUSA sequence.
6263 (atomic_add): Likewise.
6264 (atomic_add_negative): Likewise.
6265 (atomic_add_zero): Likewise.
6266 (atomic_bit_test_set): Likewise.
6267
62682012-06-22 Andreas Schwab <schwab@redhat.com>
6269
6270 [BZ #13579]
6271 * include/link.h (struct link_map): Add l_free_initfini.
6272 * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
6273 l_initfini.
6274 * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
6275 * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
6276 * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
6277 set.
6278
62792012-06-22 Carlos O'Donell <carlos_odonell@mentor.com>
6280
6281 * configure.in: Use AC_LANG_SOURCE.
6282 * configure: Regenerate.
6283
62842012-06-22 Roland McGrath <roland@hack.frob.com>
6285
6286 * configure.in (libc_cv_localstatedir): New substituted variable.
6287 * configure: Regenerated.
6288 * config.make.in (localstatedir): New variable, substituted from
6289 libc_cv_localstatedir.
6290 * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
6291 * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
6292 ${prefix}/var to /var when we change ${prefix}/etc to /etc.
6293 * sysdeps/gnu/configure: Regenerated.
6294
62952012-06-21 Jeff Law <law@redhat.com>
6296
6297 [BZ #14277]
6298 * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
6299 free. Simplify list management for _LIBC case.
6300
63012012-06-21 Joseph Myers <joseph@codesourcery.com>
6302
6303 [BZ #14273]
6304 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
6305 Clear sign bit of 64-bit integer value before comparing against
6306 overflow value.
6307
6308 * sysdeps/mach/configure: Regenerated.
6309
63102012-06-21 H.J. Lu <hongjiu.lu@intel.com>
6311
6312 [BZ #14278]
6313 * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
6314
63152012-06-21 Jeff Law <law@redhat.com>
6316
6317 [BZ #13882]
6318 * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection. Use
6319 uint16_t for elements in the "seen" array to avoid char overflows.
6320 * elf/dl-fini.c (_dl_sort_fini): Likewise.
6321 * elf/dl-open.c (dl_open_worker): Likewise.
6322
63232012-06-21 Carlos O'Donell <carlos_odonell@mentor.com>
6324
6325 * scripts/list-sources.sh: Scan PORTS for translations.
6326 * po/libc.pot: Regenerated.
6327
63282012-06-21 Andreas Jaeger <aj@suse.de>
6329
6330 [BZ #12194]
6331 * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
6332 warning.
6333 * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
6334 * bits/byteswap-16.h (__bswap_16): Likewise.
6335 * bits/byteswap.h (__bswap_constant_16): Likewise.
6336
63372012-06-18 H.J. Lu <hongjiu.lu@intel.com>
6338
6339 [BZ #14117]
6340 * sysdeps/i386/fpu_control.h: Removed.
6341 * sysdeps/x86_64/fpu_control.h: Moved to ...
6342 * sysdeps/x86/fpu_control.h: Here.
6343
6344 * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
6345 (_FPU_SETCW): Likewise.
6346
63472012-06-15 H.J. Lu <hongjiu.lu@intel.com>
6348
6349 [BZ #14117]
6350 * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
6351 * sysdeps/x86/fpu/bits/mathinline.h: This.
6352 * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
6353
6354 [BZ #14050]
6355 [BZ #14117]
6356 * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
6357 functions if __x86_64__ is defined.
6358
63592012-06-15 Chung-Lin Tang <cltang@codesourcery.com>
6360
6361 * string/endian.h: Add !__ASSEMBLER__ condition for including
6362 conversion interfaces.
6363
63642012-06-15 Joseph Myers <joseph@codesourcery.com>
6365
6366 [BZ #14241]
6367 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
6368 of ABS(x) in calculating zero to negative powers other than odd
6369 integers.
6370 * math/libm-test.inc (pow_test): Add more tests.
6371
63722012-06-15 Andreas Jaeger <aj@suse.de>
6373
6374 * manual/contrib.texi (Contributors): Update entry of Liubov
6375 Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
6376 Machado Filho.
6377
63782012-06-15 Cyril Hrubis <metan@ucw.cz>
6379
6380 * string/string.h: Add __wur to GNU version of strerror_r.
6381
63822012-06-14 H.J. Lu <hongjiu.lu@intel.com>
6383
6384 [BZ #14229]
6385 * string/Makefile (tests): Add tst-strtok_r.
6386 * string/tst-strtok_r.c: New file.
6387 * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
6388 RAX_LP/RDX_LP on SAVE_PTR.
6389
63902012-06-14 Roland McGrath <roland@hack.frob.com>
6391
6392 * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
6393
63942012-06-14 Joseph Myers <joseph@codesourcery.com>
6395
6396 * libm_test.inc (csqrt_test): Allow more spurious underflow
6397 exceptions.
6398 (j0_test): Likewise.
6399 (j1_test): Likewise.
6400 (y0_test): Likewise.
6401 (y1_test): Likewise.
6402
64032012-06-13 Carlos O'Donell <carlos_odonell@mentor.com>
6404
6405 * po/Makefile (libc.pot): Use UTF-8 charset.
6406
64072012-06-13 Paul Pluzhnikov <ppluzhnikov@google.com>
6408
6409 [BZ #14210]
6410 Suppress sign-conversion warning from FD_SET.
6411 See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
6412 * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
6413 not unsigned long int.
6414 * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
6415
64162012-06-12 H.J. Lu <hongjiu.lu@intel.com>
6417
6418 [BZ #14050]
6419 [BZ #14117]
6420 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
6421 __extern_always_inline instead of __extern_inline.
6422 (__signbitf): Support __SSE2_MATH__ and C++ namespace.
6423 (__signbit): Likewise.
6424 (__signbitl): Support C++ namespace.
6425 (lrintf): New inline function.
6426 (lrint): Likewise.
6427 (llrintf): Likewise.
6428 (llrint): Likewise.
6429 (fmaxf): Likewise.
6430 (fmax): Likewise.
6431 (fminf): Likewise.
6432 (fmin): Likewise.
6433 (rint): Likewise.
6434 (rintf): Likewise.
6435 (ceil): Likewise.
6436 (ceilf): Likewise.
6437 (floor): Likewise.
6438 (floorf): Likewise.
6439 (nearbyint): Likewise.
6440 (nearbyintf): Likewise.
6441
64422012-06-12 Thomas Schwinge <thomas@codesourcery.com>
6443
6444 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
6445 non-default versions.
6446
64472012-06-11 Roland McGrath <roland@hack.frob.com>
6448
6449 [BZ #14218]
6450 * manual/argp.texi (Argp): Reword argp_parse description slightly.
6451
64522012-06-09 Thomas Schwinge <thomas@codesourcery.com>
6453
6454 * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
6455 (FE_UPWARD, FE_DOWNWARD): Don't define.
6456 * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
6457 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6458
6459 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6460 reading it.
6461 * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6462 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6463
64642012-06-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6465
6466 * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6467 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6468 * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6469 * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6470
64712012-06-06 H.J. Lu <hongjiu.lu@intel.com>
6472
6473 [BZ #14117]
6474 * sysdeps/i386/fpu/bits/fenv.h: Removed.
6475 * sysdeps/i386/fpu/Implies: New file.
6476 * sysdeps/x86_64/fpu/Implies: Likewise.
6477 * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6478 * sysdeps/x86/fpu/bits/fenv.h: This.
6479
6480 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6481 __SSE_MATH__.
6482
64832012-06-06 Siddhesh Poyarekar <siddhesh@redhat.com>
6484
6485 [BZ #14134]
6486 * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6487 character 0xffff that matches the last element of the
6488 conversion table.
6489
64902012-06-05 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6491
6492 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6493 fmodl commit.
6494
64952012-06-05 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6496
6497 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6498 values higher than 25.6283.
6499
65002012-06-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6501
6502 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6503 subnormal exponent extraction and add some __builtin_expect.
6504 * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6505 Fix for subnormal mantissa calculation.
6506
65072012-06-04 Mike Frysinger <vapier@gentoo.org>
6508
6509 * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6510 cpu2 is -1 and errno is not ENOSYS.
6511
65122012-06-04 H.J. Lu <hongjiu.lu@intel.com>
6513
6514 [BZ #14117]
6515 * sysdeps/i386/i486/bits/string.h: Renamed to ...
6516 * sysdeps/x86/bits/string.h: This.
6517 * sysdeps/x86_64/bits/string.h: Removed.
6518
6519 * sysdeps/i386/i486/bits/string.h: Define inline functions only
6520 if not compiling for x86-64, but compiling for >= i486.
6521
6522 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6523 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6524
6525 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6526 New macro from Linux kernel 3.4.0.
6527 (FP_XSTATE_MAGIC2): Likewise.
6528 (FP_XSTATE_MAGIC2_SIZE): Likewise.
6529 (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6530 (struct _fpx_sw_bytes): New struct.
6531 (struct _xsave_hdr): Likewise.
6532 (struct _ymmh_state): Likewise.
6533 (struct _xstate): Likewise.
6534
6535 * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6536 * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6537 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6538 * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6539 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6540 * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6541
6542 * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6543 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6544 * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6545 * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6546 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6547 * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6548
65492012-06-04 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
6550
6551 [BZ #13743]
6552 * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6553 * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6554 (sysdep_headers): Include sys/platform/ppc.h.
6555 * sysdeps/powerpc/test-gettimebase.c: Test for
6556 __ppc_get_timebase() to catch future ISA opcode/insn changes.
6557 * manual/Makefile (appendices): Include platform.texi.
6558 * manual/contrib.texi (Contributors): Update @node pointers.
6559 * manual/maint.texi (Maintenance): Likewise.
6560 (Platform): New node.
6561 * manual/platform.texi: New file. Document the new features.
6562
65632012-06-04 Siddhesh Poyarekar <siddhesh@redhat.com>
6564 Jakub Jelinek <jakub@redhat.com>
6565
6566 [BZ #14188]
6567 * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6568 where __builtin_expect is unavailable.
6569
65702012-06-03 David S. Miller <davem@davemloft.net>
6571
6572 * stdlib/longlong.h: Updated from GCC.
6573
65742012-06-02 Andreas Schwab <schwab@linux-m68k.org>
6575
6576 [BZ #14042]
6577 * sysdeps/powerpc/powerpc32/mcount.c: New file.
6578 * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6579 __mcount_internal.
6580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6581 (GLIBC_2.16): Likewise.
6582
65832012-06-01 H.J. Lu <hongjiu.lu@intel.com>
6584
6585 * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6586
65872012-06-01 Joseph Myers <joseph@codesourcery.com>
6588
6589 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6590 (default-abi): New variable.
6591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6592 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6593 variable.
6594 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6595 Likewise.
6596 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6597 Likewise.
6598 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6599 Likewise.
6600
6601 * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6602 definition. Document in comment.
6603
66042012-06-01 David S. Miller <davem@davemloft.net>
6605
6606 * stdlib/longlong.h: Updated from GCC.
6607
66082012-06-01 H.J. Lu <hongjiu.lu@intel.com>
6609
6610 [BZ #14117]
6611 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6612 Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6613 sys/debugreg.h sys/io.h here.
6614 * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6615 sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6616 sys/io.h.
6617 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6618 Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6619 * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6620 * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6621 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6622 * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6623
6624 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6625 Define only if __x86_64__ is defined.
6626
66272012-06-01 Joseph Myers <joseph@codesourcery.com>
6628
6629 [BZ #14048]
6630 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6631 Use int64_t for variable i.
6632 * math/libm-test.inc (fmod_test): Add more tests.
6633
6634 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6635 z computation is not scheduled after fetestexcept.
6636 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6637 Use math_force_eval instead of asm to ensure calculation scheduled
6638 before exception test.
6639 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6640 Ensure a1 + u.d computation is not scheduled after fetestexcept.
6641
66422012-06-01 Aurelien Jarno <aurelien@aurel32.net>
6643
6644 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6645 computation is not scheduled after fetestexcept.
6646
66472012-06-01 H.J. Lu <hongjiu.lu@intel.com>
6648
6649 [BZ #14117]
6650 * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6651 * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6652
66532012-06-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6654
6655 * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6656 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6657
66582012-05-31 H.J. Lu <hongjiu.lu@intel.com>
6659
6660 [BZ #14117]
6661 * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6662 <bits/wordsize.h>.
6663 (__WCHAR_MIN): Support __WORDSIZE == 64.
6664 (__WCHAR_MAX): Likewise.
6665
6666 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6667 * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6668
6669 [BZ #14183]
6670 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6671 Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6672
6673 [BZ #14117]
6674 * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6675 * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6676
6677 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6678 * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6679
6680 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6681 Defined to 1 if __x86_64__ isn't defined.
6682 (_STAT_VER_LINUX_OLD): New.
6683 (st_atime): Remove duplicate.
6684 (st_mtime): Likewise.
6685 (st_ctime): Likewise.
6686
66872012-05-31 David S. Miller <davem@davemloft.net>
6688
6689 * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6690 entries.
6691
66922012-06-01 Andreas Schwab <schwab@linux-m68k.org>
6693
6694 * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6695 gen-libm-test.pl.
6696
6697 [BZ #14132]
6698 * elf/dl-reloc.c: Include <_itoa.h>.
6699 (_dl_reloc_bad_type): Remove use of INTUSE.
6700 * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6701 * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6702 * stdio-common/psiginfo.c (psiginfo): Likewise.
6703 * stdio-common/psignal.c (psignal): Likewise.
6704 * string/strsignal.c (strsignal): Likewise.
6705 * include/signal.h (_sys_siglist): Declare hidden proto.
6706 * stdio-common/itoa-digits.c: Include <_itoa.h>. Replace
6707 INTVARDEF with libc_hidden_data_def.
6708 * stdio-common/itoa-udigits.c: Likewise.
6709 * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6710 (_itoa_lower_digits_internal): Remove declaration.
6711 (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6712 * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6713 (_sys_sigabbrev_internal): Remove aliases.
6714 (_sys_siglist): Define hidden alias.
6715
67162012-05-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6717
6718 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6719 bits/sysctl.h.
6720
67212012-05-31 H.J. Lu <hongjiu.lu@intel.com>
6722
6723 [BZ #14117]
6724 * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6725 * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6726
6727 * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6728 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6729 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6730 * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6731 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6732 * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6733
6734 * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6735 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6736 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6737
6738 * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6739 with __addr.
6740 (insw): Likewise.
6741 (insl): Likewise.
6742 (outsb): Likewise.
6743 (outsw): Likewise.
6744 (outsl): Likewise.
6745
6746 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6747 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6748 * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6749
6750 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6751 * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6752 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6753 * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6754 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6755 * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6756
6757 * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6758 * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6759
6760 * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6761 * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6762
6763 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6764 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6765 * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6766
6767 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6768 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6769 to ...
6770 * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6771
6772 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6773 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6774 * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6775
6776 * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6777 for x86-64.
6778 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6779
67802012-05-31 Joseph Myers <joseph@codesourcery.com>
6781
6782 * math/math.h (M_El): Use two more decimal places.
6783 (M_LOG2El): Likewise.
6784 (M_LOG10El): Likewise.
6785 (M_LN2l): Likewise.
6786 (M_LN10l): Likewise.
6787 (M_PIl): Likewise.
6788 (M_PI_2l): Likewise.
6789 (M_PI_4l): Likewise.
6790 (M_1_PIl): Likewise.
6791 (M_2_PIl): Likewise.
6792 (M_2_SQRTPIl): Likewise.
6793 (M_SQRT2l): Likewise.
6794 (M_SQRT1_2l): Likewise.
6795
67962012-05-31 David S. Miller <davem@davemloft.net>
6797
6798 * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6799 values between float registers.
6800 * sysdeps/sparc/sparc64/memset.S: Likewise.
6801 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6802
68032012-05-31 Mike Frysinger <vapier@gentoo.org>
6804
6805 * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6806 -D_FORTIFY_SOURCE=1.
6807 (CPPFLAGS-tst-longjmp_chk.c): Define.
6808 (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6809 (CPPFLAGS-tst-longjmp_chk2.c): Define.
6810 * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6811 CFLAGS-tst-wchar-h.c.
6812
68132012-05-31 Marek Polacek <polacek@redhat.com>
6814
6815 [BZ #14132]
6816 * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6817 __endmntent_internal): Remove declaration.
6818 (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6819 (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6820 * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6821
68222012-05-30 David S. Miller <davem@davemloft.net>
6823
6824 * sysdeps/sparc/sparc32/soft-fp/q_util.c
6825 (___Q_simulate_exceptions): Use real FP ops rather than writing
6826 into the %fsr.
6827 * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6828 Likewise.
6829
68302012-05-30 H.J. Lu <hongjiu.lu@intel.com>
6831
6832 [BZ #14117]
6833 * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6834 * sysdeps/x86/bits/xtitypes.h: This.
6835
6836 * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6837 * sysdeps/x86/bits/wordsize.h: This.
6838
6839 * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6840 * sysdeps/x86/bits/huge_vall.h: This.
6841
6842 * sysdeps/i386/bits/select.h: Removed.
6843 * sysdeps/x86_64/bits/select.h: Renamed to ...
6844 * sysdeps/x86/bits/select.h: This.
6845
6846 * sysdeps/i386/bits/setjmp.h: Removed.
6847 * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6848 * sysdeps/x86/bits/setjmp.h: This.
6849
6850 * sysdeps/i386/bits/mathdef.h: Removed.
6851 * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6852 * sysdeps/x86/bits/mathdef.h: This.
6853
68542012-05-30 Andreas Schwab <schwab@linux-m68k.org>
6855
6856 [BZ #14132]
6857 * include/sys/socket.h (__connect_internal)
6858 (__libc_sa_len_internal): Remove declaration.
6859 (__connect, __libc_sa_len): Declare hidden_proto.
6860 (SA_LEN): Remove use of INTUSE.
6861 * socket/connect.c: Add libc_hidden_def.
6862 * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6863 * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6864 * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6865 alias.
6866 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6867 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6868 * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6869 of adding _internal alias.
6870
68712012-05-30 H.J. Lu <hongjiu.lu@intel.com>
6872
6873 [BZ #14117]
6874 * sysdeps/i386/bits/link.h: Removed.
6875 * sysdeps/i386/bits/linkmap.h: Likewise.
6876 * sysdeps/x86_64/bits/link.h: Renamed to ...
6877 * sysdeps/x86/bits/link.h: This.
6878 * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6879 * sysdeps/x86/bits/linkmap.h: This.
6880
6881 * sysdeps/i386/bits/endian.h: Removed.
6882 * sysdeps/x86_64/bits/endian.h: Renamed to ...
6883 * sysdeps/x86/bits/endian.h: This.
6884
6885 * sysdeps/i386/bits/byteswap.h: Removed.
6886 * sysdeps/i386/bits/byteswap-16.h: Likewise.
6887 * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6888 * sysdeps/x86/bits/byteswap.h: This.
6889 * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6890 * sysdeps/x86/bits/byteswap-16.h: This.
6891 * sysdeps/i386/Implies: Add x86.
6892 * sysdeps/x86_64/Implies: Likewise.
6893
68942012-05-30 David S. Miller <davem@davemloft.net>
6895
6896 * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6897 (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6898 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6899 (FP_TRAPPING_EXCEPTIONS): Define.
6900 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6901 (FP_TRAPPING_EXCEPTIONS): Define.
6902 * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6903 subnormals only when inexact has been signalled or underflow
6904 exceptions are enabled.
6905 (_FP_PACK_CANONICAL): Likewise.
6906
69072012-05-30 H.J. Lu <hongjiu.lu@intel.com>
6908
6909 [BZ #14183]
6910 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6911 Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6912
69132012-05-30 Richard Henderson <rth@twiddle.net>
6914
6915 * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6916 with #ifndef NOT_IN_libc.
6917
6918 * scripts/abilist.awk: Accept 8 fields. Handle Alpha functions
6919 marked to avoid plt entry.
6920
69212012-05-30 H.J. Lu <hongjiu.lu@intel.com>
6922
6923 [BZ #14112]
6924 * Makeconfig (default-abi): New macro.
6925 (abi-includes): Likewise.
6926 ($(common-objpfx)soversions.mk): Remove WORDSIZE check. Use
6927 $(abi-$(default-abi)-lib-soname) for soname if defined.
6928 ($(common-objpfx)gnu/lib-names.stmp): Generate from
6929 abi-variants.
6930 * Makefile (installed-stubs): Likewise.
6931 * include/stubs-biarch.h: Removed.
6932 * scripts/lib-names.awk: Only handle one library at a time.
6933 * scripts/soversions.awk: Remove WORDSIZE support.
6934 * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6935 entries.
6936 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6937 Removed.
6938 (syscall-list-default-condition): Likewise.
6939 (syscall-list-default-condition): Likewise.
6940 (syscall-list-includes): Likewise.
6941 ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6942 syscall-list-* with abi-*. Handle undefined abi-variants.
6943 * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6944 * sysdeps/unix/sysv/linux/i386/Implies: New file.
6945 * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6946 * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6947 * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6948 * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6949 Removed.
6950 (syscall-list-32-options): Likewise.
6951 (syscall-list-32-condition): Likewise.
6952 (syscall-list-64-options): Likewise.
6953 (syscall-list-64-condition): Likewise.
6954 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6955 macro.
6956 * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6957 Renamed to ...
6958 (abi-*): This.
6959 (abi-64-ld-soname): New macro.
6960 * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6961 * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6962 Renamed to ...
6963 (abi-*): This.
6964 * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6965 * sysdeps/x86_64/x32/shlib-versions: Likewise.
6966
69672012-05-30 Joseph Myers <joseph@codesourcery.com>
6968
6969 * sysdeps/unix/sysv/linux/kernel-features.h
6970 (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6971 * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6972 include <kernel-features.h>.
6973 [!__NR_ftruncate64]: Remove conditional code.
6974 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6975 [__NR_ftruncate64]: Make code unconditional.
6976 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6977 * sysdeps/unix/sysv/linux/truncate64.c: Do not
6978 include <kernel-features.h>.
6979 [!__NR_ftruncate64]: Remove conditional code.
6980 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6981 [__NR_ftruncate64]: Make code unconditional.
6982 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6984 include <kernel-features.h>.
6985 [!__NR_ftruncate64]: Remove conditional code.
6986 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6987 [__NR_ftruncate64]: Make code unconditional.
6988 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6990 include <kernel-features.h>.
6991 [!__NR_ftruncate64]: Remove conditional code.
6992 [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6993 [__NR_ftruncate64]: Make code unconditional.
6994 [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6995
6996 * configure.in (libc_cv_fpie): Weaken to a compile test using
6997 LIBC_TRY_CC_OPTION.
6998 * configure: Regenerated.
6999
70002012-05-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7001
7002 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
7003 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
7004 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
7005 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7006 Refreshed.
7007 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
7008 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
7009 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
7010 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
7011 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
7012 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7013 Refreshed.
7014
70152012-05-27 David S. Miller <davem@davemloft.net>
7016
7017 * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
7018 (___Q_zero): New.
7019 (__Q_simulate_exceptions): Return void. Change to simulate
7020 exceptions by writing into the %fsr.
7021 * sysdeps/sparc/sparc64/soft-fp/qp_util.c
7022 (__Qp_handle_exceptions): Likewise.
7023 (numbers): Delete.
7024 * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
7025 __Qp_handle_exceptions.
7026 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
7027 __Qp_handle_exceptions.
7028 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
7029 as unused and give dummy FP_RND_NEAREST initializer.
7030 (FP_INHIBIT_RESULTS): Define.
7031 (___Q_simulate_exceptions): Update declaration.
7032 (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
7033 formatting.
7034 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
7035 as unused and give dummy FP_RND_NEAREST initializer.
7036 (__Qp_handle_exceptions): Update declaration.
7037 (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
7038 formatting.
7039
70402012-05-27 Thomas Schwinge <thomas@codesourcery.com>
7041
7042 * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
7043 the temporary FPU control word.
7044 * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7045 * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
7046 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
7047 * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
7048 * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
7049 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
7050 * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
7051 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
7052 * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
7053 * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
7054 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
7055
70562012-05-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7057
7058 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
7059 fields.
7060
70612012-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7062
7063 * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
7064 * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
7065 * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
7066 * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
7067 Likewise.
7068 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
7069 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
7070 Likewise.
7071
70722012-05-27 Ulrich Drepper <drepper@gmail.com>
7073
7074 * po/h.po: Update from translation team.
7075
70762012-05-26 Andreas Schwab <schwab@linux-m68k.org>
7077
7078 * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
7079
7080 * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
7081 handling of denormals.
7082 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7083 * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
7084 * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7085 * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7086 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7087 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
7088 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
7089 Likewise.
7090
70912012-05-26 Marek Polacek <polacek@redhat.com>
7092
7093 [BZ #14152]
7094 * math/libm-test.inc (fma_test): Don't always expect underflow
7095 exception.
7096
70972012-05-26 Siddhesh Poyarekar <siddhesh@redhat.com>
7098
7099 [BZ #12416]
7100 * elf/tst-execstack.c: Include stackinfo.h.
7101 (do_test): Adjust test case to ensure that pthread_getattr_np
7102 behaviour remains the same after marking stack executable.
7103
71042012-05-25 Joseph Myers <joseph@codesourcery.com>
7105
7106 * sysdeps/unix/sysv/linux/kernel-features.h
7107 (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
7108 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
7109 kernel-features.h.
7110 [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
7111 [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
7112 * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
7113 kernel-features.h.
7114 [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
7115 [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
7116
71172012-05-25 H.J. Lu <hongjiu.lu@intel.com>
7118
7119 * configure.in: Define the default includes to being none.
7120 * configure: Regenerated.
7121
71222012-05-25 Roland McGrath <roland@hack.frob.com>
7123
7124 * sysdeps/x86_64/__longjmp.S: Add a static probe here.
7125 * sysdeps/x86_64/setjmp.S: Likewise.
7126 * sysdeps/i386/bsd-setjmp.S: Likewise.
7127 * sysdeps/i386/bsd-_setjmp.S: Likewise.
7128 * sysdeps/i386/setjmp.S: Likewise.
7129 * sysdeps/i386/__longjmp.S: Likewise.
7130 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7131 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
7132
7133 * include/stap-probe.h: New file.
7134 * configure.in: Handle --enable-systemtap.
7135 * configure: Regenerated.
7136 * config.h.in (USE_STAP_PROBE): New #undef.
7137 * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
7138 * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
7139 * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
7140
71412012-05-25 Joseph Myers <joseph@codesourcery.com>
7142
7143 [BZ #13717]
7144 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7145 to 2.4.0 where earlier.
7146 * sysdeps/unix/sysv/linux/configure: Regenerated.
7147 * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
7148 <kernel-features.h>.
7149 [__ASSUME_32BITUIDS]: Make code unconditional.
7150 [!__ASSUME_32BITUIDS]: Remove conditional code.
7151 * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
7152 <kernel-features.h>.
7153 [__ASSUME_32BITUIDS]: Make code unconditional.
7154 [!__ASSUME_32BITUIDS]: Remove conditional code.
7155 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
7156 [__ASSUME_32BITUIDS]: Make code unconditional.
7157 (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
7158 * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
7159 <kernel-features.h>.
7160 [__ASSUME_32BITUIDS]: Make code unconditional.
7161 [!__ASSUME_32BITUIDS]: Remove conditional code.
7162 * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
7163 <kernel-features.h>.
7164 [__ASSUME_32BITUIDS]: Make code unconditional.
7165 [!__ASSUME_32BITUIDS]: Remove conditional code.
7166 * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
7167 <kernel-features.h>.
7168 [__ASSUME_32BITUIDS]: Make code unconditional.
7169 [!__ASSUME_32BITUIDS]: Remove conditional code.
7170 * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
7171 <kernel-features.h>.
7172 [__ASSUME_32BITUIDS]: Make code unconditional.
7173 [!__ASSUME_32BITUIDS]: Remove conditional code.
7174 * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
7175 <kernel-features.h>.
7176 [__ASSUME_32BITUIDS]: Make code unconditional.
7177 [!__ASSUME_32BITUIDS]: Remove conditional code.
7178 * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
7179 <kernel-features.h>.
7180 [__ASSUME_32BITUIDS]: Make code unconditional.
7181 [!__ASSUME_32BITUIDS]: Remove conditional code.
7182 * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
7183 <kernel-features.h>.
7184 [__ASSUME_32BITUIDS]: Make code unconditional.
7185 [!__ASSUME_32BITUIDS]: Remove conditional code.
7186 * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
7187 <kernel-features.h>.
7188 [__ASSUME_32BITUIDS]: Make code unconditional.
7189 [!__ASSUME_32BITUIDS]: Remove conditional code.
7190 * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
7191 <kernel-features.h>.
7192 [__ASSUME_32BITUIDS]: Make code unconditional.
7193 [!__ASSUME_32BITUIDS]: Remove conditional code.
7194 * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
7195 <kernel-features.h>.
7196 [__ASSUME_32BITUIDS]: Make code unconditional.
7197 [!__ASSUME_32BITUIDS]: Remove conditional code.
7198 * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
7199 <kernel-features.h>.
7200 [__NR_setresgid] (__setresgid): Do not declare.
7201 [__ASSUME_32BITUIDS]: Make code unconditional.
7202 [!__ASSUME_32BITUIDS]: Remove conditional code.
7203 * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
7204 <kernel-features.h>.
7205 [__NR_setresuid] (__setresuid): Do not declare.
7206 [__ASSUME_32BITUIDS]: Make code unconditional.
7207 [!__ASSUME_32BITUIDS]: Remove conditional code.
7208 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
7209 <kernel-features.h>.
7210 [__ASSUME_32BITUIDS]: Make code unconditional.
7211 [!__ASSUME_32BITUIDS]: Remove conditional code.
7212 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
7213 <kernel-features.h>.
7214 [__ASSUME_32BITUIDS]: Make code unconditional.
7215 [!__ASSUME_32BITUIDS]: Remove conditional code.
7216 * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
7217 <kernel-features.h>.
7218 [__ASSUME_32BITUIDS]: Make code unconditional.
7219 [!__ASSUME_32BITUIDS]: Remove conditional code.
7220 * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
7221 <kernel-features.h>.
7222 [__ASSUME_32BITUIDS]: Make code unconditional.
7223 [!__ASSUME_32BITUIDS]: Remove conditional code.
7224 * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
7225 <kernel-features.h>.
7226 [__ASSUME_32BITUIDS]: Make code unconditional.
7227 [!__ASSUME_32BITUIDS]: Remove conditional code.
7228 * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
7229 <kernel-features.h>.
7230 [__ASSUME_32BITUIDS]: Make code unconditional.
7231 [!__ASSUME_32BITUIDS]: Remove conditional code.
7232 * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
7233 <kernel-features.h>.
7234 [__ASSUME_32BITUIDS]: Make code unconditional.
7235 [!__ASSUME_32BITUIDS]: Remove conditional code.
7236 * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
7237 <kernel-features.h>.
7238 [__ASSUME_32BITUIDS]: Make code unconditional.
7239 [!__ASSUME_32BITUIDS]: Remove conditional code.
7240 * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
7241 <kernel-features.h>.
7242 [__ASSUME_32BITUIDS]: Make code unconditional.
7243 [!__ASSUME_32BITUIDS]: Remove conditional code.
7244 * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
7245 <kernel-features.h>.
7246 [__ASSUME_32BITUIDS]: Make code unconditional.
7247 [!__ASSUME_32BITUIDS]: Remove conditional code.
7248 * sysdeps/unix/sysv/linux/kernel-features.h
7249 (__ASSUME_SETRESUID_SYSCALL): Remove.
7250 (__ASSUME_SETRESGID_SYSCALL): Likewise.
7251 (__ASSUME_32BITUIDS): Likewise.
7252 (__ASSUME_LDT_WORKS): Likewise.
7253 (__ASSUME_O_DIRECTORY): Likewise.
7254 (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
7255 architecture but not kernel version.
7256 (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
7257 (__ASSUME_MMAP2_SYSCALL): Likewise.
7258 (__ASSUME_STAT64_SYSCALL): Likewise.
7259 (__ASSUME_IPC64): Likewise.
7260 * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
7261 <kernel-features.h>.
7262 [__ASSUME_32BITUIDS]: Make code unconditional.
7263 [!__ASSUME_32BITUIDS]: Remove conditional code.
7264 * sysdeps/unix/sysv/linux/opendir.c: Do not include
7265 <kernel-features.h>.
7266 [__ASSUME_O_DIRECTORY]: Make code unconditional.
7267 * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
7268 132096]: Remove conditional code.
7269 [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
7270 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
7271 <kernel-features.h>.
7272 [__ASSUME_32BITUIDS]: Make code unconditional.
7273 [!__ASSUME_32BITUIDS]: Remove conditional code.
7274 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
7275 <kernel-features.h>.
7276 [__ASSUME_32BITUIDS]: Make code unconditional.
7277 [!__ASSUME_32BITUIDS]: Remove conditional code.
7278 * sysdeps/unix/sysv/linux/setegid.c: Do not include
7279 <kernel-features.h>.
7280 [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
7281 unconditional.
7282 (__setresgid): Do not declare.
7283 [__ASSUME_32BITUIDS]: Make code unconditional.
7284 [!__ASSUME_32BITUIDS]: Remove conditional code.
7285 * sysdeps/unix/sysv/linux/seteuid.c: Do not include
7286 <kernel-features.h>.
7287 [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
7288 unconditional.
7289 (__setresuid): Do not declare.
7290 [__ASSUME_32BITUIDS]: Make code unconditional.
7291 [!__ASSUME_32BITUIDS]: Remove conditional code.
7292 * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
7293 <kernel-features.h>.
7294 [__ASSUME_32BITUIDS]: Make code unconditional.
7295 [!__ASSUME_32BITUIDS]: Remove conditional code.
7296 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
7297 <kernel-features.h>.
7298 [__ASSUME_32BITUIDS]: Make code unconditional.
7299 [!__ASSUME_32BITUIDS]: Remove conditional code.
7300
73012012-05-25 Richard Henderson <rth@twiddle.net>
7302
7303 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
7304 dl_hwcap to ifunc resolver.
7305 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
7306 elf_ifunc_invoke.
7307 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
7308 dl_hwcap to ifunc resolver.
7309 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
7310
73112012-05-24 Joseph Myers <joseph@codesourcery.com>
7312
7313 [BZ #14153]
7314 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
7315 for |x| <= 2**-26, not 2**-57.
7316 * math/libm-test.inc (acos_test): Do not allow spurious underflow
7317 exception.
7318
73192012-05-24 Jeff Law <law@redhat.com>
7320
7321 * stdio-common/Makefile (tests): Add bug25.
7322 * stdio-common/bug25.c: New test.
7323
73242012-05-24 H.J. Lu <hongjiu.lu@intel.com>
7325
7326 [BZ #13576]
7327 * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
7328 multiple of MALLOC_ALIGNMENT in size.
7329 (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
7330
73312012-05-24 Joseph Myers <joseph@codesourcery.com>
7332
7333 * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
7334 Require >= 256.
7335 (FILENAME_MAX): Use macro-int-constant.
7336 (FOPEN_MAX): Use macro-int-constant. Require >= 8.
7337 (_IOFBF): Use macro-int-constant.
7338 (_IOLBF): Likewise.
7339 (_IONBF): Likewise.
7340 (SEEK_CUR): Likewise.
7341 (SEEK_END): Likewise.
7342 (SEEK_SET): Likewise.
7343 (TMP_MAX): Likewise.
7344 (EOF): Use macro-int-constant. Require < 0.
7345 (NULL): Use macro-constant. Require == 0.
7346 (stdin): Require type to be FILE *.
7347 (stdout): Likewise.
7348 (stderr): Likewise.
7349 * conform/data/stdlib.h-data (EXIT_FAILURE): Use
7350 macro-int-constant.
7351 (EXIT_SUCCESS): Likewise.
7352 (NULL): Use macro-constant. Require == 0.
7353 (RAND_MAX): Use macro-int-constant.
7354 [ISO99 || ISO11] (lldiv_t): Require also for these standards.
7355 [C99-based standards] (strtof): Require function.
7356 [C99-based standards] (strtold): Likewise.
7357 [C99-based standards] (strtoll): Likewise.
7358 [C99-based standards] (strtoull): Likewise.
7359 [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
7360 [ISO || ISO99 || ISO11] (limits.h): Likewise.
7361 [ISO || ISO99 || ISO11] (math.h): Likewise.
7362 [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
7363 (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
7364 [ISO || ISO99 || ISO11] (*_t): Do not allow.
7365
73662012-05-24 Andreas Schwab <schwab@linux-m68k.org>
7367
7368 [BZ #14132]
7369 * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
7370 * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
7371 * intl/dgettext.c (DCGETTEXT): Likewise.
7372 * intl/gettext.c (DCGETTEXT): Likewise.
7373 * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
7374 * posix/regex_internal.h (gettext): Likewise.
7375 * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
7376 Remove declaration.
7377 * include/argz.h (__argz_count_internal)
7378 (__argz_stringify_internal): Remove declaration.
7379 (__argz_count, __argz_stringify): Declare hidden proto.
7380 * intl/dcgettext.c: Remove use of INTDEF.
7381 * string/argz-count.c: Replace INTDEF with libc_hidden_def.
7382 * string/argz-stringify.c: Likewise.
7383 * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7384 (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7385 Declare hidden proto.
7386 * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7387 (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7388 Declare hidden proto.
7389 * include/stdio.h (__asprintf_internal): Don't declare.
7390 (__asprintf): Don't define as macro. Declare hidden proto.
7391 * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
7392 (__fsetlocking): Declare hidden proto.
7393 * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
7394 (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
7395 hidden proto.
7396 (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
7397 (_IO_setlinebuf): Remove use of INTUSE.
7398 (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
7399 (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
7400 (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
7401 Remove declaration.
7402 * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
7403 (_IO_do_flush): Remove use of INTUSE.
7404 (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
7405 (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
7406 (_IO_adjust_column, _IO_least_wmarker)
7407 (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
7408 (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
7409 (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
7410 (_IO_default_doallocate, _IO_wdefault_doallocate)
7411 (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
7412 (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
7413 (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
7414 (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
7415 (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
7416 (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
7417 (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
7418 (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
7419 (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
7420 (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
7421 (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
7422 (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
7423 (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
7424 proto.
7425 (_IO_flush_all_internal, _IO_adjust_column_internal)
7426 (_IO_default_uflow_internal, _IO_default_finish_internal)
7427 (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
7428 (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
7429 (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
7430 (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
7431 (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
7432 (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
7433 (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
7434 (_IO_file_xsgetn_internal, _IO_file_stat_internal)
7435 (_IO_file_close_internal, _IO_file_close_it_internal)
7436 (_IO_file_underflow_internal, _IO_file_overflow_internal)
7437 (_IO_file_init_internal, _IO_file_attach_internal)
7438 (_IO_file_fopen_internal, _IO_file_read_internal)
7439 (_IO_file_sync_internal, _IO_file_seek_internal)
7440 (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
7441 (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
7442 (_IO_str_underflow_internal, _IO_str_overflow_internal)
7443 (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
7444 (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
7445 (_IO_list_all_internal, _IO_link_in_internal)
7446 (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
7447 (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
7448 (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
7449 (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
7450 (_IO_do_write_internal, _IO_padn_internal)
7451 (_IO_getline_info_internal, _IO_getline_internal)
7452 (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
7453 (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
7454 (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
7455 (_IO_vfscanf_internal, _IO_vfprintf_internal)
7456 (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
7457 (_IO_init_internal, _IO_un_link_internal): Don't declare.
7458 * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7459 with libc_hidden_ver, remove use of INTUSE.
7460 * libio/genops.c: Likewise.
7461 * libio/freopen.c: Likewise.
7462 * libio/freopen64.c: Likewise.
7463 * libio/iofclose.c: Likewise.
7464 * libio/iofdopen.c: Likewise.
7465 * libio/iofflush.c: Likewise.
7466 * libio/iofflush_u.c: Likewise.
7467 * libio/iofgets.c: Likewise.
7468 * libio/iofgets_u.c: Likewise.
7469 * libio/iofopen.c: Likewise.
7470 * libio/iofopncook.c: Likewise.
7471 * libio/iofread.c: Likewise.
7472 * libio/iofread_u.c: Likewise.
7473 * libio/ioftell.c: Likewise.
7474 * libio/iofwrite.c: Likewise.
7475 * libio/iogetline.c: Likewise.
7476 * libio/iogets.c: Likewise.
7477 * libio/iogetwline.c: Likewise.
7478 * libio/iopadn.c: Likewise.
7479 * libio/iopopen.c: Likewise.
7480 * libio/ioseekoff.c: Likewise.
7481 * libio/ioseekpos.c: Likewise.
7482 * libio/iosetbuffer.c: Likewise.
7483 * libio/iosetvbuf.c: Likewise.
7484 * libio/ioungetc.c: Likewise.
7485 * libio/ioungetwc.c: Likewise.
7486 * libio/iovdprintf.c: Likewise.
7487 * libio/iovsprintf.c: Likewise.
7488 * libio/iovsscanf.c: Likewise.
7489 * libio/memstream.c: Likewise.
7490 * libio/obprintf.c: Likewise.
7491 * libio/oldfileops.c: Likewise.
7492 * libio/oldiofclose.c: Likewise.
7493 * libio/oldiofdopen.c: Likewise.
7494 * libio/oldiofopen.c: Likewise.
7495 * libio/oldiopopen.c: Likewise.
7496 * libio/oldstdfiles.c: Likewise.
7497 * libio/putc.c: Likewise.
7498 * libio/setbuf.c: Likewise.
7499 * libio/setlinebuf.c: Likewise.
7500 * libio/stdfiles.c: Likewise.
7501 * libio/strops.c: Likewise.
7502 * libio/vasprintf.c: Likewise.
7503 * libio/vscanf.c: Likewise.
7504 * libio/vsnprintf.c: Likewise.
7505 * libio/vswprintf.c: Likewise.
7506 * libio/wfiledoalloc.c: Likewise.
7507 * libio/wfileops.c: Likewise.
7508 * libio/wgenops.c: Likewise.
7509 * libio/wmemstream.c: Likewise.
7510 * libio/wstrops.c: Likewise.
7511 * libio/__fpurge.c: Likewise.
7512 * libio/__fsetlocking.c: Likewise.
7513 * assert/assert.c: Likewise.
7514 * debug/fgets_chk.c: Likewise.
7515 * debug/fgets_u_chk.c: Likewise.
7516 * debug/fread_chk.c: Likewise.
7517 * debug/fread_u_chk.c: Likewise.
7518 * debug/gets_chk.c: Likewise.
7519 * debug/obprintf_chk.c: Likewise.
7520 * debug/vasprintf_chk.c: Likewise.
7521 * debug/vdprintf_chk.c: Likewise.
7522 * debug/vsnprintf_chk.c: Likewise.
7523 * debug/vsprintf_chk.c: Likewise.
7524 * malloc/mtrace.c: Likewise.
7525 * misc/error.c: Likewise.
7526 * misc/syslog.c: Likewise.
7527 * stdio-common/asprintf.c: Likewise.
7528 * stdio-common/fxprintf.c: Likewise.
7529 * stdio-common/getw.c: Likewise.
7530 * stdio-common/isoc99_fscanf.c: Likewise.
7531 * stdio-common/isoc99_scanf.c: Likewise.
7532 * stdio-common/isoc99_vfscanf.c: Likewise.
7533 * stdio-common/isoc99_vscanf.c: Likewise.
7534 * stdio-common/isoc99_vsscanf.c: Likewise.
7535 * stdio-common/printf-prs.c: Likewise.
7536 * stdio-common/printf_fp.c: Likewise.
7537 * stdio-common/printf_fphex.c: Likewise.
7538 * stdio-common/printf_size.c: Likewise.
7539 * stdio-common/putw.c: Likewise.
7540 * stdio-common/scanf.c: Likewise.
7541 * stdio-common/sprintf.c: Likewise.
7542 * stdio-common/tmpfile.c: Likewise.
7543 * stdio-common/vfprintf.c: Likewise.
7544 * stdio-common/vfscanf.c: Likewise.
7545 * stdlib/strfmon_l.c: Likewise.
7546 * sunrpc/openchild.c: Likewise.
7547 * sunrpc/xdr_stdio.c: Likewise.
7548 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7549 * sysdeps/mach/hurd/tmpfile.c: Likewise.
7550
75512012-05-24 Roland McGrath <roland@hack.frob.com>
7552
7553 * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7554
7555 * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7556 in the third column, to generate for the shared library an IFUNC
7557 that uses _dl_vdso_vsym.
7558 * Makerules (COMPILE.c, compile-stdin.c): New variables.
7559 * Makeconfig (object-suffixes-noshared): New variable.
7560
7561 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7562 (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7563 (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7564 (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7565
7566 [BZ #14132]
7567 * include/sys/time.h (__gettimeofday): Remove macro.
7568 (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7569 * time/gettimeofday.c (__gettimeofday): Remove #undef.
7570 Remove INTDEF.
7571 (__gettimeofday): Add libc_hidden_def.
7572 (gettimeofday): Add libc_hidden_weak.
7573 * sysdeps/mach/gettimeofday.c: Likewise.
7574 * sysdeps/posix/gettimeofday.c: Likewise.
7575 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7576 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7577 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7578 (__gettimeofday_internal): Remove strong_alias.
7579 (__gettimeofday): Add libc_hidden_def.
7580 (gettimeofday): Add libc_hidden_weak.
7581 * sysdeps/unix/syscalls.list (gettimeofday):
7582 Remove __gettimeofday_internal alias.
7583
75842012-05-24 Daniel Jacobowitz <drow@false.org>
7585 H.J. Lu <hongjiu.lu@intel.com>
7586
7587 [BZ #12495]
7588 * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7589 (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7590 (largebin_index_32_big): New.
7591 (largebin_index): Use it for 16-byte alignment.
7592 (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ. Don't update
7593 correction with front_misalign.
7594
75952012-05-24 H.J. Lu <hongjiu.lu@intel.com>
7596
7597 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7598 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7599 Likewise.
7600 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7601 Likewise.
7602 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7603 Likewise.
7604 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7605 Likewise.
7606 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7607 Likewise.
7608 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7609 Likewise.
7610 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7611 Likewise.
7612 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7613 Likewise.
7614 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7615 Likewise.
7616 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7617 Likewise.
7618 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7619 Likewise.
7620 * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7621 Likewise.
7622
7623 * scripts/data/c++-types-x32-linux-gnu.data: New file.
7624 * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7625
76262012-05-24 Joseph Myers <joseph@codesourcery.com>
7627
7628 [BZ #10846]
7629 [BZ #14036]
7630 * math/libm-test.inc (exp_test): Add test from bug 14036.
7631 (pow_test): Add test from bug 10846.
7632
7633 * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7634 and other flags.
7635 (special_function): Do not include flags in test name.
7636 (parse_args): Likewise.
7637 * sysdeps/i386/fpu/libm-test-ulps: Update.
7638 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7639 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7640 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7641 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7642
7643 * math/gen-libm-test.pl (%beautify): Add entries for underflow
7644 exceptions.
7645 * math/libm-test.inc ("Philosophy"): Update comment about
7646 exception testing.
7647 (UNDERFLOW_EXCEPTION): New macro.
7648 (UNDERFLOW_EXCEPTION_OK): Likewise.
7649 (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7650 (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7651 (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7652 (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7653 (INVALID_EXCEPTION_OK): Update value.
7654 (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7655 (OVERFLOW_EXCEPTION_OK): Likewise.
7656 (IGNORE_ZERO_INF_SIGN): Likewise.
7657 (test_exceptions): Handle underflow exceptions.
7658 (acos_test): Update for underflow exception expectations.
7659 (cexp_test): Likewise.
7660 (clog_test): Likewise.
7661 (clog10_test): Likewise.
7662 (csqrt_test): Likewise.
7663 (ctan_test): Likewise.
7664 (ctanh_test): Likewise.
7665 (exp_test): Likewise.
7666 (exp10_test): Likewise.
7667 (exp2_test): Likewise.
7668 (expm1_test): Likewise.
7669 (fma_test): Likewise.
7670 (j0_test): Likewise.
7671 (jn_test): Likewise.
7672 (nexttoward_test): Likewise.
7673 (pow_test): Likewise.
7674 (scalbn_test): Likewise.
7675 (scalbln_test): Likewise.
7676 (tan_test): Likewise.
7677 (y1_test): Likewise.
7678 * sysdeps/i386/fpu/libm-test-ulps: Update.
7679 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7680
76812012-05-23 David S. Miller <davem@davemloft.net>
7682
7683 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7684 (__libc_sigaction): Remove unused local variables.
7685
76862012-05-23 H.J. Lu <hongjiu.lu@intel.com>
7687
7688 * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7689
76902012-05-23 Paul Eggert <eggert@cs.ucla.edu>
7691
7692 mktime: avoid signed integer overflow
7693 * time/mktime.c (__mktime_internal): Do not mishandle the case
7694 where diff == INT_MIN.
7695
7696 mktime: simplify computation of average
7697 * time/mktime.c (ranged_convert): Use new time_t_avg function
7698 instead of rolling our own (probably-slower) code.
7699
7700 mktime: do not assume signed right shift propagates sign bit
7701 * time/mktime.c (isdst_differ): New static function.
7702 (__mktime_internal): No need to normalize tm_isdst now.
7703 (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7704 tm_isdst values.
7705
7706 mktime: merge another wrapv change from gnulib
7707 * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7708 from some compilers.
7709
7710 mktime: remove incorrect attempt at unusual arithmetics
7711 * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7712 The code didn't really work on such machines anyway.
7713 (TYPE_MINIMUM): Assume two's complement.
7714 (twos_complement_arithmetic): Verify that long_int and time_t
7715 are two's complement (or unsigned, in the latter case).
7716
7717 mktime: check signed shifts on long_int and time_t, too
7718 * time/mktime.c (SHR): Check that shifts work as desired
7719 on the types long_int and time_t too, as SHR is used on
7720 such types.
7721
7722 mktime: do not assume 'long' is wide enough
7723 * time/mktime.c (verify): Move decl up.
7724 (long_int): New type.
7725 (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7726 to remove assumption in the code that 'long' is wide enough to
7727 store year values. This assumption is not true on x32 and on
7728 some non-glibc platforms.
7729
7730 mktime: merge wrapv change from gnulib
7731 * time/mktime.c (WRAPV): New macro.
7732 (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7733 (guess_time_tm, __mktime_internal): Do not assume that signed
7734 integer overflow wraps around; modern compilers generate code
7735 where this assumption is no longer valid.
7736
77372012-05-23 H.J. Lu <hongjiu.lu@intel.com>
7738
7739 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7740 Replace "jmp L(pseudo_end)" with "ret".
7741 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7742 Likewise.
7743
77442012-05-23 Andreas Jaeger <aj@suse.de>
7745
7746 * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7747 * sysdeps/unix/sysv/linux/poll.c: Remove file.
7748
77492012-05-23 Andreas Jaeger <aj@suse.de>
7750 Maximilian Attems <max@stro.at>
7751
7752 * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7753 New macros.
7754
77552012-05-23 H.J. Lu <hongjiu.lu@intel.com>
7756
7757 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7758 code so that pseudo_end is just ret and the stack pointer is
7759 correct also for static library in error case.
7760
77612012-05-23 Joseph Myers <joseph@codesourcery.com>
7762
7763 * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7764 move to syscalls.list.
7765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7769
7770 * manual/install.texi (Running make install): Do not mention Linux
7771 kernel version for which pt_chown is not needed.
7772 (Linux): Do not mention problems with nscd with 2.0 kernels.
7773 * INSTALL: Regenerated.
7774
77752012-05-23 Andreas Jaeger <aj@suse.de>
7776
7777 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7778 (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7779 macro.
7780 * sysdeps/unix/sysv/linux/s390/bits/mman.h
7781 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7782 * sysdeps/unix/sysv/linux/sh/bits/mman.h
7783 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7784 * sysdeps/unix/sysv/linux/i386/bits/mman.h
7785 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7786 * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7787 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7788 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7789 (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7790 * sysdeps/unix/sysv/linux/bits/in.h
7791 (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7792
77932012-05-22 Roland McGrath <roland@hack.frob.com>
7794
7795 * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7796 (PREPARE_VERSION): Just use assert instead, it will be elided
7797 under [NDEBUG] anyway.
7798
77992012-05-22 H.J. Lu <hongjiu.lu@intel.com>
7800
7801 * sysdeps/unix/sysv/linux/Makefile: Include
7802 $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7803 (sysdep_routines): Remove sysctl.
7804 * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7805 * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7806 * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7807 * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7808 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7809
78102012-05-22 Andreas Jaeger <aj@suse.de>
7811
7812 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7813 that pseudo_end is just ret and the stack pointer is correct also
7814 for static library in error case.
7815
78162012-05-22 Paul Pluzhnikov <ppluzhnikov@google.com>
7817
7818 [BZ #14122]
7819 * nss/nsswitch.c (defconfig_entries): New variable.
7820 (__nss_database_lookup): Don't leak defconfig entries.
7821 (nss_parse_service_list): Don't leak on error paths.
7822 (free_database_entries): New function.
7823 (free_defconfig): New function.
7824 (free_mem): Move common code to free_database_entries.
7825
78262012-05-22 H.J. Lu <hongjiu.lu@intel.com>
7827
7828 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7829 Add arch_prctl.
7830 * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7831
7832 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7833 (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7834 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7835 New macro.
7836 (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7837 (INTERNAL_SYSCALL_TYPES): Likewise.
7838 (LOAD_ARGS_TYPES_[1-6]): Likewise.
7839 (LOAD_REGS_TYPES_[1-6]): Likewise.
7840 (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7841 (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7842
78432012-05-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
7844
7845 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7846 copysignl for GLIBC_2_0.
7847 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7848 finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7849 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7850 logbl for GLIBC_2_0.
7851 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7852 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7853
78542012-05-22 H.J. Lu <hongjiu.lu@intel.com>
7855
7856 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7857 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
7858
7859 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7860 Use "neg %eax".
7861
7862 * time/mktime.c: Update copyright years.
7863
78642012-05-22 Paul Eggert <eggert@cs.ucla.edu>
7865
7866 mktime: merge comment-quoting-style change from gnulib
7867 * time/mktime.c: Quote 'like this' in comments.
7868 The GNU coding standards suggest that we no longer quote `like this',
7869 as "`" and "'" are typically rendered asymmetrically nowadays.
7870 The typical gnulib style is to quote 'like this' when quoting
7871 code, and "like this" when quoting English.
7872
7873 * time/mktime.c (compile-command): Add "-I.".
7874
7875 mktime: merge mktime-internal.h change from gnulib
7876 * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7877
7878 mktime: merge time_r change from gnulib
7879 * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7880
7881 mktime: merge DEBUG change from gnulib
7882 * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7883 case system <time.h> has a #define.
7884
7885 mktime: merge <sys/types.h> change from gnulib
7886 * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7887 since <time.t> is now guaranteed to define time_t.
7888
7889 mktime: merge HAVE_CONFIG_H change from gnulib
7890 * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7891
78922012-05-22 H.J. Lu <hongjiu.lu@intel.com>
7893
7894 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7895 Use "neg %eax".
7896
7897 * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7898 __rlim_t cast.
7899 (struct rusage): Use anonymous union to pad each field to
7900 __syscall_slong_t.
7901
79022012-05-21 David S. Miller <davem@davemloft.net>
7903
7904 * Makefules (o-iterator): Remove .s cases.
7905 (compile-command.s): Delete.
7906 (COMPILE.s): Delete.
7907 * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7908
79092012-05-21 Joseph Myers <joseph@codesourcery.com>
7910
7911 * configure.in (libc_cv_predef_stack_protector): Only consider
7912 "foobar" and "__stack_chk_fail" lines in libc_undefs.
7913 * configure: Regenerated.
7914
79152012-05-21 H.J. Lu <hongjiu.lu@intel.com>
7916
7917 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7918 New macro. Use R*LP on int and pointer.
7919 (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7920 * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7921 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7922 * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7923
7924 * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7925 [__WORDSIZE_TIME64_COMPAT32] instead of
7926 [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7927 (struct utmp): Likewise.
7928 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7929 * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7930 Renamed to ...
7931 (__WORDSIZE_TIME64_COMPAT32): This.
7932 * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7933 * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7934 * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7935 * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7936 * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7937 (__WORDSIZE_TIME64_COMPAT32): New macro.
7938
79392012-05-21 Andreas Jaeger <aj@suse.de>
7940
7941 * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7942 only if [SHARED]. Add prototype for __wcschr_ia32.
7943
79442012-05-21 Roland McGrath <roland@hack.frob.com>
7945
7946 * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7947 of %rbp unmolested in the jmp_buf while mangling the low bits.
7948 * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7949 unmolested high bits of %rbp while demangling the low bits.
7950 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7951
79522012-05-21 Andreas Jaeger <aj@suse.de>
7953
7954 * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7955 * sunrpc/svc_simple.c: Use it for registerrpc.
7956 * sunrpc/xcrypt.c: Use it for passwd2des.
7957
7958 * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7959
79602012-05-21 H.J. Lu <hongjiu.lu@intel.com>
7961
7962 * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7963 Don't define if [__SYSCALL_WORDSIZE != 32].
7964 * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7965 New macro.
7966
79672012-05-21 Bruno Haible <bruno@clisp.org>
7968 Andreas Jaeger <aj@suse.de>
7969
7970 [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7971 * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7972 inptr and inend for must_buffer_ch.
7973 * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7974 * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7975 * stdio-common/Makefile (tests): Remove bug15.
7976 (bug15-ENV): Remove macro.
7977 * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7978 anymore.
7979
79802012-05-19 Andreas Jaeger <aj@suse.de>
7981 Roland McGrath <roland@hack.frob.com>
7982
7983 * manual/contrib.texi: Completely rewritten. It contains now an
7984 alphabetical list of contributors and their contributions.
7985
79862012-05-21 Richard Henderson <rth@twiddle.net>
7987
7988 * misc/getauxval.c (__getauxval): Use unsigned long int.
7989 * misc/sys/auxv.h: Include <sys/cdefs.h>.
7990 (getauxval): Use unsigned long int.
7991
79922012-05-21 H.J. Lu <hongjiu.lu@intel.com>
7993
7994 * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7995
79962012-05-21 Roland McGrath <roland@hack.frob.com>
7997
7998 * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7999 (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
8000 __alignof__ (long double).
8001
80022012-05-21 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
8003
8004 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8005
80062012-05-20 Richard Henderson <rth@twiddle.net>
8007
8008 * misc/getauxval.c: New file.
8009 * misc/sys/auxv.h: New file.
8010 * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
8011 (routines): Add getauxval.
8012 * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
8013 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
8014 * elf/dl-sysdep.c (_dl_auxv): Remove.
8015 (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
8016 * elf/dl-support.c (_dl_auxv): New variable.
8017 (_dl_aux_init): Initialize it.
8018 * manual/startup.texi (Auxiliary Vector): New node.
8019 * sysdeps/generic/bits/hwcap.h: New file.
8020 * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
8021 * sysdeps/powerpc/sysdep.h: ... here. Include it.
8022 * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
8023 * sysdeps/sparc/sysdep.h: ... here. Include it.
8024 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
8025 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
8026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8027 Update.
8028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
8029 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
8030 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
8031 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
8032 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
8033 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
8034 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
8035 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
8036
80372012-05-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
8038
8039 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8040
80412012-05-19 David S. Miller <davem@davemloft.net>
8042
8043 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8044
80452012-05-19 Joseph Myers <joseph@codesourcery.com>
8046
8047 [BZ #14123]
8048 * math/s_ccosh.c: Include <float.h>
8049 (__ccosh): Avoid internal overflow calculating sinh and cosh
8050 values before multiplying by sin and cos values.
8051 * math/s_ccoshf.c: Likewise.
8052 * math/s_ccoshl.c: Likewise.
8053 * math/s_csin.c: Likewise.
8054 * math/s_csinf.c: Likewise.
8055 * math/s_csinl.c: Likewise.
8056 * math/s_csinh.c: Likewise.
8057 * math/s_csinhf.c: Likewise.
8058 * math/s_csinhl.c: Likewise.
8059 * math/libm-test.inc (ccos_test): Add more tests.
8060 (ccosh_test): Likewise.
8061 (csin_test): Likewise.
8062 (csinh_test): Likewise.
8063 * sysdeps/i386/fpu/libm-test-ulps: Update.
8064 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8065
80662012-05-19 H.J. Lu <hongjiu.lu@intel.com>
8067
8068 * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
8069 * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
8070
8071 * sysdeps/x86_64/x32/_itoa.h: Add comment.
8072
80732012-05-19 Joseph Myers <joseph@codesourcery.com>
8074
8075 * sysdeps/powerpc/soft-fp/Makefile: Remove file.
8076 * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
8077 * sysdeps/powerpc/soft-fp/Versions: Likewise.
8078 * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
8079 * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
8080 * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
8081 * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
8082 * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
8083 * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
8084 * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
8085 * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
8086 * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
8087 * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
8088 * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
8089 * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
8090 * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
8091 * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
8092 * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
8093 * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
8094 * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
8095 * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
8096 * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
8097 * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
8098 * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
8099 * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
8100 * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
8101 * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
8102 * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
8103 * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
8104 * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
8105 * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
8106
81072012-05-18 Andreas Jaeger <aj@suse.de>
8108
8109 * csu/.gitignore: Delete.
8110
81112012-05-18 H.J. Lu <hongjiu.lu@intel.com>
8112
8113 * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
8114 (timex): Use __syscall_slong_t.
8115
81162012-05-18 Andreas Jaeger <aj@suse.de>
8117 Carlos O'Donell <carlos_odonell@mentor.com>
8118
8119 * manual/install.texi (Configuring and compiling): Update
8120 description about files modified in the source directory.
8121 * INSTALL: Regenerated.
8122
81232012-05-18 H.J. Lu <hongjiu.lu@intel.com>
8124
8125 * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
8126 value. Use "or" to set return value to -1.
8127 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
8128 negate return value.
8129
81302012-05-18 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8131
8132 * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
8133 CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
8134 failure if the compiler has Graphite support disabled.
8135 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
8136 Likewise.
8137 * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
8138 CFLAGS-memmove.c): Likewise.
8139 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
8140 Likewise.
8141
81422012-05-18 H.J. Lu <hongjiu.lu@intel.com>
8143
8144 * sysdeps/x86_64/x32/_itoa.h: New file.
8145
8146 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
8147 getdents system call only if kernel and user dirents have the
8148 same d_ino and d_off.
8149
8150 * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8151 LLONG_MAX != LONG_MAX.
8152 (_itoa_word): Use _ITOA_WORD_TYPE on value.
8153 (_fitoa_word): Likewise.
8154
8155 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
8156 years.
8157 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
8158 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
8159 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
8160
8161 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
8162 include <bits/wordsize.h>. Check __x86_64__ instead of
8163 __WORDSIZE.
8164 (sigcontext): Use "__uint64_t" instead of "unsigned long int"
8165 if __x86_64__ is defined. Use anonymous union on fpstate.
8166
8167 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
8168 anonymous union.
8169
81702012-05-18 Andreas Schwab <schwab@linux-m68k.org>
8171
8172 * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
8173 INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
8174 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
8175 Refer to _rtld_local_ro instead of _rtld_global_ro.
8176 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
8177 Likewise.
8178 * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
8179 Likewise.
8180 * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
8181 Likewise.
8182 * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
8183 * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
8184 of _rtld_global, and rtld_progname instead of _dl_argv[0].
8185
8186 * sysdeps/powerpc/powerpc32/dl-machine.c
8187 (__elf_machine_runtime_setup) [PROF]: Don't reference
8188 _dl_prof_resolve.
8189
81902012-05-18 Andreas Jaeger <aj@suse.de>
8191
8192 * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
8193 function only available for GCCs before 3.4 since GCC 3.4
8194 introduced a builtin.
8195 (lrint): Likewise.
8196 (llrintf): Likewise.
8197 (llrint): Likewise.
8198 (fmaxf): Likewise.
8199 (fmax): Likewise.
8200 (fminf): Likewise.
8201 (fmin): Likewise.
8202 (rint): Likewise.
8203 (rintf): Likewise.
8204 (nearbyint): Likewise.
8205 (nearbyintf): Likewise.
8206 (ceil): Likewise.
8207 (ceilf): Likewise.
8208 (floor): Likewise.
8209 (floorf): Likewise.
8210
82112012-05-17 H.J. Lu <hongjiu.lu@intel.com>
8212
8213 * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
8214 on both fields and cast pointer to __syscall_ulong_t.
8215
8216 * bits/types.h (__fsword_t): New type.
8217 * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
8218 sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
8219 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8220 (__FSWORD_T_TYPE): Likewise.
8221 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8222 (__FSWORD_T_TYPE): Likewise.
8223 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8224 (__FSWORD_T_TYPE): Likewise.
8225 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
8226 (__FSWORD_T_TYPE): Likewise.
8227 * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
8228 __SWORD_TYPE with __fsword_t.
8229 (statfs64): Likewise.
8230
82312012-05-17 David S. Miller <davem@davemloft.net>
8232
8233 * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
8234
82352012-05-17 Andreas Jaeger <aj@suse.de>
8236
8237 * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
8238 warning.
8239
82402012-05-17 H.J. Lu <hongjiu.lu@intel.com>
8241
8242 * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
8243
82442012-05-17 Andreas Jaeger <aj@suse.de>
8245
8246 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
8247 when it is used.
8248
82492012-05-17 Chris Metcalf <cmetcalf@tilera.com>
8250
8251 * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
8252
82532012-05-17 H.J. Lu <hongjiu.lu@intel.com>
8254
8255 * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
8256 * sysdeps/x86_64/tst-mallocalign1.c: New file.
8257
82582012-05-17 Andreas Jaeger <aj@suse.de>
8259 Carlos O'Donell <carlos_odonell@mentor.com>
8260
8261 [BZ #14059]
8262 * sysdeps/x86_64/multiarch/init-arch.h
8263 (bit_YMM_Usable): Rename to...
8264 (bit_AVX_Usable): ... this.
8265 (bit_FMA4_Usable): New macro.
8266 (bit_XMM_state): New macro.
8267 (bit_YMM_state): New macro.
8268 [__ASSEMBLER__] (index_YMM_Usable): Rename to...
8269 [__ASSEMBLER__] (index_AVX_Usable): ... this.
8270 [__ASSEMBLER__] (index_FMA4_Usable): New macro.
8271 (CPUID_OSXSAVE): New macro.
8272 (CPUID_AVX): New macro.
8273 (CPUID_FMA4): New macro.
8274 (index_YMM_Usable): Rename to...
8275 (index_AVX_Usable): ... this.
8276 (HAS_AVX): Use HAS_ARCH_FEATURE.
8277 (HAS_FMA4): Likewise.
8278 (HAS_YMM_USABLE): Remove.
8279 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8280 Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
8281 are present.
8282 * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
8283 * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
8284 * sysdeps/x86_64/multiarch/Makefile: Likewise.
8285 * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
8286 * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
8287
82882012-05-17 Chris Metcalf <cmetcalf@tilera.com>
8289
8290 * math/libm-test.c: Support platforms without multiple rounding modes.
8291 * math/bug-nextafter.c: Support platforms without FP exceptions.
8292 * math/bug-nexttoward.c: Likewise.
8293 * math/test-fenv.c: Likewise.
8294 * math/test-misc.c: Likewise.
8295 * stdlib/bug-getcontext.c: Likewise.
8296
82972012-05-17 Andreas Jaeger <aj@suse.de>
8298
8299 * manual/examples/search.c (critter_cmp): Change signature to
8300 avoid warnings.
8301 * manual/string.texi (Collation Functions): Likewise.
8302
83032012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8304
8305 * bits/types.h: Fold copyright years.
8306 * bits/typesizes.h: Likewise.
8307 * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
8308 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
8309 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
8310 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
8311 * time/time.h: Likewise.
8312
83132012-05-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8314
8315 [BZ #208]
8316 * malloc.c (int_mallinfo): Add parameter to accumulate statistics
8317 in instead of returning them. Return void.
8318 (__libc_mallinfo): Accumulate over all arenas.
8319 (__malloc_stats): Adjust for change in int_mallinfo interface.
8320
83212012-05-16 Roland McGrath <roland@hack.frob.com>
8322
8323 [BZ #10375]
8324 * configure.in (NM): Add AC_CHECK_TOOL for it.
8325 (libc_extra_cflags): New substituted variable.
8326 Check for -fstack-protector being used implicitly.
8327 * configure: Regenerated.
8328 * config.make.in (config-extra-cflags): New variable,
8329 gets @libc_extra_cflags@.
8330 * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
8331
8332 [BZ #10375]
8333 * configure.in: Check for _FORTIFY_SOURCE being predefined.
8334 (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
8335 * configure: Regenerated.
8336 * config.make.in (CPPUNDEFS): New substituted variable.
8337 * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
8338 * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
8339 * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
8340
83412012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8342
8343 * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
8344 (mq_attr): Use __syscall_slong_t.
8345
83462012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8347
8348 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
8349 Check __x86_64__ instead of __WORDSIZE.
8350 (_STAT_VER_LINUX): Likewise.
8351 (stat): Check __x86_64__ instead of __WORDSIZE. Use
8352 __syscall_ulong_t and __syscall_slong_t.
8353 (stat64): Likewise.
8354
83552012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8356
8357 * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
8358
83592012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8360
8361 * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
8362
83632012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8364
8365 * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
8366 __syscall_ulong_t.
8367
8368 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
8369 include <bits/wordsize.h>. Check __x86_64__ instead of
8370 __WORDSIZE.
8371 (greg_t): Use "__extension__ long long int" if __x86_64__ is
8372 defined.
8373 (mcontext_t): Replace "unsigned long" with "unsigned long long".
8374
8375 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
8376 include <bits/wordsize.h>. Check __x86_64__ instead of
8377 __WORDSIZE.
8378 (user_regs_struct): Use "__extension__ unsigned long long"
8379 instead of "unsigned long" if __x86_64__ is defined.
8380 (user): Likewise. Pad after pointer field if __ILP32__ is
8381 defined.
8382
83832012-05-16 Joseph Myers <joseph@codesourcery.com>
8384
8385 * configure.in (makeinfo): Require version 4.5 or later. Allow
8386 versions 5 to 9.
8387 * configure: Regenerated.
8388 * manual/install.texi (texinfo): Increase version requirement to
8389 4.5 or later.
8390 * INSTALL: Regenerated.
8391
8392 * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
8393
83942012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8395
8396 * sysdeps/x86_64/x32/gmp-mparam.h: New file.
8397
8398 * sysdeps/x86_64/x32/ffs.c: New file.
8399
8400 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
8401 __syscall_ulong_t.
8402 (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
8403 defined. Use __syscall_ulong_t.
8404 (shminfo): Use __syscall_ulong_t.
8405 (shm_info): Likewise.
8406
8407 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
8408 __syscall_ulong_t.
8409
8410 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
8411 <bits/wordsize.h>.
8412 (msgqnum_t): Use __syscall_ulong_t.
8413 (msglen_t): Likewise.
8414 (msqid_ds): Check __x86_64__ instead of __WORDSIZE. Use
8415 __syscall_ulong_t.
8416
8417 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
8418 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
8419
8420 * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
8421
8422 * sysdeps/x86_64/x32/divdi3.c: New dummy file.
8423 * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
8424
8425 * sysvipc/sys/msg.h (msgbuf): Replace long int with
8426 __syscall_slong_t.
8427
8428 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
8429 include <bits/wordsize.h>. Check __x86_64__ instead of
8430 __WORDSIZE.
8431
8432 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
8433 "unsigned long long int" if __x86_64__ is defined.
8434 (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
8435
8436 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
8437 <bits/wordsize.h>. Check __x86_64__ instead of __WORDSIZE.
8438 (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
8439
8440 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
8441 <stdint.h>.
8442 (GET_PC): Cast to uintptr_t first.
8443 (GET_FRAME): Likewise.
8444 (GET_STACK): Likewise.
8445
8446 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
8447 * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
8448 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
8449 * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
8450 * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
8451 * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
8452 * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
8453 * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
8454 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8455 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
8456 * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
8457 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8458 * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8459 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8460 * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8461 * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8462 * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8463 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8464 * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8465 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8466 * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8467 * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8468 * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8469 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8470 * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8471 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8472 * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8473 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8474 * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8475
84762012-05-16 Andreas Schwab <schwab@linux-m68k.org>
8477
8478 * Makerules (+depfiles): Also collect depfiles from .oS in
8479 $(extra-objs).
8480 * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8481 .oS, $(libnldbl-routines)).
8482
8483 * Makerules (native-compile-mkdep-flags): Define.
8484 * sunrpc/Makefile (extra-objs): Add $(addprefix
8485 cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8486 ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8487 of $(compile-mkdep-flags). Depend on $(before-compile) instead of
8488 calling $(make-target-directory).
8489
84902012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8491
8492 * bits/types.h (__snseconds_t): Removed.
8493 * time/time.h (struct timespec): Replace __snseconds_t with
8494 __syscall_slong_t.
8495 * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8496 * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8497 Likewise.
8498 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8499 (__SNSECONDS_T_TYPE): Likewise.
8500 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8501 (__SNSECONDS_T_TYPE): Likewise.
8502 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8503 (__SNSECONDS_T_TYPE): Likewise.
8504
85052012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8506
8507 * sysdeps/mach/hurd/bits/typesizes.h
8508 (__SYSCALL_SLONG_TYPE): New macro.
8509 (__SYSCALL_ULONG_TYPE): Likewise.
8510
85112012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8512
8513 * bits/types.h (__syscall_slong_t): New type.
8514 (__syscall_ulong_t): Likewise.
8515
8516 * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8517 (__SYSCALL_ULONG_TYPE): Likewise.
8518 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8519 (__SYSCALL_SLONG_TYPE): Likewise.
8520 (__SYSCALL_ULONG_TYPE): Likewise.
8521 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8522 (__SYSCALL_SLONG_TYPE): Likewise.
8523 (__SYSCALL_ULONG_TYPE): Likewise.
8524 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8525 (__SYSCALL_SLONG_TYPE): Likewise.
8526 (__SYSCALL_ULONG_TYPE): Likewise.
8527
85282012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8529
8530 * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8531 Add sigaltstack-offsets.sym.
8532 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8533 <sigaltstack-offsets.h>.
8534 (CALL_FAIL): Use RSP_LP to operate on stack. Use RDI_LP on
8535 longjmp_msg pointer.
8536 (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC. Use
8537 R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8538 signal stack.
8539 * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8540
85412012-05-15 Joseph Myers <joseph@codesourcery.com>
8542
8543 * elf/stackguard-macros.h: Remove file.
8544 * sysdeps/generic/stackguard-macros.h: New file.
8545 * sysdeps/i386/stackguard-macros.h: Likewise.
8546 * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8547 * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8548 * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8549 * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8550 * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8551 * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8552 * sysdeps/x86_64/stackguard-macros.h: Likewise.
8553 * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8554 <elf/stackguard-macros.h>.
8555
8556 [BZ #14109]
8557 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8558 __aligned__ in attribute.
8559 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8560 (gregset_t): Likewise.
8561
85622012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8563
8564 * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8565 * sysdeps/x86_64/64/Implies-after: Here. New file.
8566 * sysdeps/x86_64/x32/Implies-after: New file.
8567
85682012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8569
8570 * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8571 and access return value for _dl_profile_fixup. Use R10_LP to
8572 load frame size.
8573
85742012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8575
8576 * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8577
85782012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8579
8580 * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8581 * sysdeps/x86_64/x32/sysdep.h: New file.
8582
85832012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8584
8585 * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8586 * sysdeps/x86_64/setjmp.S: Likewise.
8587
85882012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
8589
8590 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8591 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8592 * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8593 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8594 remove unused global constant.
8595
85962012-05-15 Chris Metcalf <cmetcalf@tilera.com>
8597
8598 * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8599 include of <not-cancel.h>.
8600
86012012-05-15 Roland McGrath <roland@hack.frob.com>
8602
8603 * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8604
86052012-05-15 Jeff Law <law@redhat.com>
8606 Andreas Jaeger <aj@suse.de>
8607
8608 [BZ #13594]
8609 * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8610 out from...
8611 * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8612 * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8613 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8614 code changing __hst_map_handle.map.
8615
86162012-05-15 Roland McGrath <roland@hack.frob.com>
8617
8618 * configure.in (sysnames): Look for Implies-before and Implies-after
8619 files.
8620 * configure: Regenerated.
8621
86222012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8623
8624 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8625 8-byte data alignment with LP_SIZE alignment.
8626
86272012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8628
8629 * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8630 into R10_LP.
8631
86322012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8633
8634 * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8635
86362012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8637
8638 * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8639 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8640 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8641 Likewise.
8642 * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8643
86442012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8645
8646 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8647 (stackinfo_sub_sp): Likewise.
8648
86492012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8650
8651 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8652 RAX_LP.
8653
86542012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8655
8656 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8657 into R*_LP.
8658
86592012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8660
8661 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8662 sizes into R*_LP.
8663
86642012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8665
8666 * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8667
86682012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8669
8670 * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8671 into R11_LP and load __x86_64_shared_cache_size_half into
8672 R8_LP.
8673
86742012-05-15 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8677 R8_LP.
8678
86792012-05-15 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
8680
8681 * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8682 logb for POWER7.
8683 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8684 logbf for POWER7.
8685 * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8686 logbl for POWER7.
8687 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8688 powerpc32/power7/fpu/s_logb.c via #include.
8689 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8690 powerpc32/power7/fpu/s_logbf.c via #include.
8691 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8692 powerpc32/power7/fpu/s_logbl.c via #include.
8693
86942012-05-15 Joseph Myers <joseph@codesourcery.com>
8695
8696 * README.libm: Remove file.
8697
86982012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8699
8700 * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8701 count for x32. Use R*_LP and omit operand-size suffix.
8702
87032012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8704
8705 * shlib-versions: Move x86_64-.*-linux.* entries to ...
8706 * sysdeps/x86_64/64/shlib-versions: Here. New file.
8707 * sysdeps/x86_64/x32/shlib-versions: New file.
8708
87092012-05-14 Roland McGrath <roland@hack.frob.com>
8710
8711 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8712 * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8713 Use _dl_fatal_printf instead.
8714
87152012-05-14 Joseph Myers <joseph@codesourcery.com>
8716
8717 * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8718 set if not set by the user. Do not allow for being unset.
8719 * sysdeps/unix/sysv/linux/configure: Regenerated.
8720
87212012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8722
8723 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8724 the `q' suffix from lea and replace .quad with ASM_ADDR.
8725
87262012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8727
8728 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8729 the `q' suffix from xor/rol instructions. Use $2*LP_SIZE+1
8730 instead of $17.
8731 (PTR_DEMANGLE): Likewise.
8732
87332012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8734
8735 * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8736 (LP_OP): Likewise.
8737 (ASM_ADDR): Likewise.
8738 (RAX_LP): Likewise.
8739 (RBP_LP): Likewise.
8740 (RBX_LP): Likewise.
8741 (RCX_LP): Likewise.
8742 (RDI_LP): Likewise.
8743 (RSI_LP): Likewise.
8744 (RSP_LP): Likewise.
8745 (R8_LP): Likewise.
8746 (R9_LP): Likewise.
8747 (R10_LP): Likewise.
8748 (R10_LP): Likewise.
8749 (R11_LP): Likewise.
8750 (R12_LP): Likewise.
8751 (R13_LP): Likewise.
8752 (R14_LP): Likewise.
8753 (R15_LP): Likewise.
8754
87552012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8756
8757 * sysdeps/x86_64/x32/dl-machine.h: New file.
8758
87592012-05-14 Andreas Jaeger <aj@suse.de>
8760
8761 * manual/Makefile (subdir): Remove export of subdir.
8762 (all): Remove target.
8763 (.PHONY): Remove all from list.
8764 (mkinstalldirs): Remove.
8765 (.PHONY): Remove installdirs from list.
8766 ($(inst_infodir)/libc.info): Use make-target-directory.
8767 (installdirs): Remove.
8768 (subdir_%): Remove.
8769 (glibc-targets): Remove.
8770 (lib): Remove.
8771 (stubs): Remove.
8772 ($(objpfx)stubs ../po/manual.pot): Remove.
8773 ($(objpfx)stamp%): Remove.
8774 (make-target-directory): Remove.
8775 (subdir_install): Remove.
8776 (routines): Remove.
8777 (aux): Remove.
8778 (sources): Remove.
8779 (objects): Remove.
8780 (headers): Remove.
8781
8782 [BZ #13750]
8783 * manual/.gitignore: Remove, it's not needed anymore.
8784 * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8785 all files in it.
8786 * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8787 directory.
8788 (texis): Renamed to $(objpfx)texis.
8789 (texis-path): New, contains path to generated files.
8790 (chapters.%): Use texis-path for complete path, add extra argument
8791 libc-texinfo.sh.
8792 (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8793 (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8794 (summary,texi, stamp-summary): Use complete path of
8795 files. Generate files in build dir.
8796 (dir-add.texi): Build in build dir.
8797 (libm-err.texi,stamp-libm-err): Likewise.
8798 (version.texi, stamp-version): Likewise.
8799 (.%c.texi): Likewise.
8800 (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8801 (mostlyclean): Remove target.
8802 (realclean): Remove target.
8803 (generated): Add new variable with contents from mostlyclean and
8804 realclean, remove entries duplicated in common-mostlyclean, add
8805 stamp-libm-err and stamp-version.
8806 (generated-dirs): Add libc directory.
8807 ($(inst_infodir)/libc.info): Install files from build dir.
8808
8809 * manual/install.texi (Configuring and compiling): Adjust since
8810 the info files are not part of the tar ball anymore.
8811
88122012-05-14 Andreas Jaeger <aj@suse.de>
8813
8814 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8815 variable.
8816
88172012-05-14 Joseph Myers <joseph@codesourcery.com>
8818
8819 [BZ #13717]
8820 * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8821 to 2.2.0 where earlier.
8822 * sysdeps/unix/sysv/linux/configure: Regenerated.
8823 * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8824 Remove conditional code.
8825 [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8826 * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8827 Remove conditional code.
8828 [!__NR_lchown]: Likewise.
8829 [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8830 [__NR_lchown]: Likewise.
8831 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8832 comment referencing __ASSUME_LCHOWN_SYSCALL.
8833 * sysdeps/unix/sysv/linux/i386/sigaction.c
8834 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8835 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8836 * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8837 Remove conditional code.
8838 [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8839 (__protocol_available): Remove #if 0 code.
8840 * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8841 conditional code.
8842 [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8843 * sysdeps/unix/sysv/linux/kernel-features.h
8844 (__ASSUME_GETCWD_SYSCALL): Don't define.
8845 (__ASSUME_REALTIME_SIGNALS): Likewise.
8846 (__ASSUME_PREAD_SYSCALL): Likewise.
8847 (__ASSUME_PWRITE_SYSCALL): Likewise.
8848 (__ASSUME_POLL_SYSCALL): Likewise.
8849 (__ASSUME_LCHOWN_SYSCALL): Likewise.
8850 (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8851 non-SPARC.
8852 (__ASSUME_SIOCGIFNAME): Don't define.
8853 (__ASSUME_MSG_NOSIGNAL): Likewise.
8854 (__ASSUME_SENDFILE): Define unconditionally.
8855 (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8856 * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8857 conditional code.
8858 [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8859 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8860 [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8861 (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8862 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8863 [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8864 (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8866 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8867 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8869 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8870 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8872 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8873 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8875 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8876 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8878 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8879 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8881 [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8882 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8884 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8885 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8887 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8888 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8889 * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8890 Remove conditional code.
8891 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8892 * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8893 Remove conditional code.
8894 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8895 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8896 [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8897 * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8898 Remove conditional code.
8899 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8900 * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8901 Remove conditional code.
8902 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8903 * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8904 Remove conditional code.
8905 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8906 * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8907 Remove conditional code.
8908 [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8909 * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8910 Remove conditional code.
8911 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8912 * sysdeps/unix/sysv/linux/sh/pwrite64.c
8913 [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8914 [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8915 * sysdeps/unix/sysv/linux/sigaction.c
8916 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8917 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8918 * sysdeps/unix/sysv/linux/sigpending.c
8919 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8920 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8921 * sysdeps/unix/sysv/linux/sigprocmask.c
8922 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8923 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8924 * sysdeps/unix/sysv/linux/sigsuspend.c
8925 [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8926 [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8927 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8928 (__libc_missing_rt_sigs): Remove.
8929 (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8930 (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8931 * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8932 Remove conditional code.
8933 [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8934 * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8935 return 1.
8936 * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8937 [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8938 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8939 [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8940
89412012-05-14 Andreas Jaeger <aj@suse.de>
8942
8943 * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8944 it's not used in glibc.
8945 (__coshm1): Likewise.
8946 (__acosh1p): Likewise.
8947 (__sgn): Likewise.
8948
8949 * manual/string.texi (Copying and Concatenation): Add missing
8950 variable in concat example.
8951 Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8952
89532012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8954
8955 [BZ #14103]
8956 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8957 __builtin_clzl with __builtin_clzll.
8958
89592012-05-14 H.J. Lu <hongjiu.lu@intel.com>
8960
8961 [BZ #14104]
8962 * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8963 libc_freeres_ptr.
8964
89652012-05-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
8966
8967 * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8968 * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8969 * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8970 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8971
89722012-05-14 Mike Frysinger <vapier@gentoo.org>
8973
8974 * NEWS: Update ia64 info.
8975
89762012-05-12 Andreas Schwab <schwab@linux-m68k.org>
8977
8978 * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8979 used as bcopy.
8980
89812012-05-12 Thomas Schwinge <thomas@codesourcery.com>
8982
8983 * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8984 * sysdeps/unix/syscalls.list (dup3): Likewise.
8985 * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8986 * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8987
89882012-05-11 H.J. Lu <hongjiu.lu@intel.com>
8989
8990 * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8991 "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8992
89932012-05-11 H.J. Lu <hongjiu.lu@intel.com>
8994
8995 * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8996 thread pointer.
8997 (TLS_IE): Use mov/add instead of movq/addq to load thread
8998 pointer.
8999 (TLS_GD_PREFIX): New.
9000 (TLS_GD): Use it.
9001
90022012-05-11 David S. Miller <davem@davemloft.net>
9003
9004 * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
9005 * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
9006 (_FPU_SETCW): Likewise.
9007
90082012-05-10 H.J. Lu <hongjiu.lu@intel.com>
9009
9010 * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
9011 is 32-byte aligned.
9012
90132012-05-11 Andreas Schwab <schwab@linux-m68k.org>
9014
9015 [BZ #11837]
9016 * iconvdata/gb18030.c: Update tables.
9017 (BODY for FROM_LOOP): Update. Handle two-byte encoded non-BMP
9018 characters specially.
9019 (BODY for TO_LOOP): Add encoding of missing ranges.
9020
90212012-05-11 Thomas Schwinge <thomas@codesourcery.com>
9022
9023 [BZ #13673]
9024 * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
9025 * sysdeps/mach/hurd/dup3.c: Likewise.
9026 * sysdeps/mach/hurd/readlinkat.c: Likewise.
9027 * sysdeps/powerpc/memmove.c:: Likewise.
9028
90292012-05-10 H.J. Lu <hongjiu.lu@intel.com>
9030
9031 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
9032 R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
9033
90342012-05-10 H.J. Lu <hongjiu.lu@intel.com>
9035
9036 * elf/elf.h (R_X86_64_RELATIVE64): New.
9037 (R_X86_64_NUM): Updated.
9038 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
9039 R_X86_64_RELATIVE64. Always use Elf64_Addr with R_X86_64_64.
9040 (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
9041 * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
9042 tst-quad1pie tst-quad2pie
9043 (modules-names): Add tst-quadmod1 tst-quadmod2.
9044 ($(objpfx)tst-quad1): New dependency.
9045 ($(objpfx)tst-quad2): Likewise.
9046 ($(objpfx)tst-quad1pie): Likewise.
9047 ($(objpfx)tst-quad2pie): Likewise.
9048 * sysdeps/x86_64/tst-quad1.c: New file.
9049 * sysdeps/x86_64/tst-quad1pie.c: New file.
9050 * sysdeps/x86_64/tst-quad2.c: Likewise.
9051 * sysdeps/x86_64/tst-quad2pie.c: Likewise.
9052 * sysdeps/x86_64/tst-quadmod1.S: Likewise.
9053 * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
9054 * sysdeps/x86_64/tst-quadmod2.S: Likewise.
9055 * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
9056
90572012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9058
9059 * io/fcntl.h (mode_t, off_t, pid_t): Define types.
9060 (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
9061 * streams/stropts.h (t_scalar_t): Define type.
9062
9063 * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
9064 (_PATH_PRESERVE): Set to "/var/lib".
9065 (_PATH_RWHODIR): Set to "/var/spool/rwho".
9066
9067 * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
9068 instead of int.
9069
9070 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
9071 if __dir_mkfile succeeded.
9072
9073 * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
9074 checking for _hurd_dtablesize. Unlock it right after having
9075 finished _hurd_dtable allocation.
9076
90772012-05-10 Thomas Schwinge <thomas@schwinge.name>
9078
9079 * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
9080 * sysdeps/mach/hurd/configure: Regenerated.
9081 * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
9082 special-casing to...
9083 * sysdeps/gnu/configure.in: ... this new file.
9084 * sysdeps/unix/sysv/linux/configure: Regenerated.
9085 * sysdeps/gnu/configure: New generated file.
9086
9087 * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
9088 for Linux: use nsec instead of usec, as well as:
9089 [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
9090 members of type struct timespec.
9091 [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
9092 New macros.
9093 (struct stat64): Likewise.
9094 (_STATBUF_ST_NSEC): New macro.
9095 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
9096
9097 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
9098 __strtoul_internal rather than strtoul.
9099
91002012-05-10 Pino Toscano <toscano.pino@tiscali.it>
9101
9102 * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
9103 and reject them.
9104
91052012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9106
9107 * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
9108 which preserves existing values.
9109 * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
9110
91112012-05-10 Pino Toscano <toscano.pino@tiscali.it>
9112
9113 * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
9114 TIMEOUT values. Return EINVAL for NFDS values either negative or
9115 greater than FD_SETSIZE.
9116
91172012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9118
9119 * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
9120 allocated, call __vm_protect to finish enabling the existing space, and
9121 pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
9122 allocate the remainder.
9123
91242012-05-10 Pino Toscano <toscano.pino@tiscali.it>
9125
9126 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
9127 address port. Set ADDR_LEN to 0 when not filling ADDRARG.
9128
91292012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9130
9131 * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
9132 sysdeps/mach/hurd/readlink.c.
9133
9134 * posix/tst-sysconf.c (posix_options): Only use
9135 _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
9136 _POSIX_SYNCHRONIZED_IO when they are defined
9137 * sysdeps/mach/hurd/bits/posix_opt.h:
9138 (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
9139 (_XOPEN_REALTIME): Undefine macro.
9140 (_XOPEN_REALTIME_THREADS): Undefine macro.
9141 (_XOPEN_SHM): Undefine macro.
9142 [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
9143 macro to -1.
9144 [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
9145 macro to -1.
9146 (_POSIX_ASYNC_IO): Undefine macro.
9147 (_POSIX_PRIORITIZED_IO): Undefine macro.
9148 (_POSIX_SPIN_LOCKS): Define macro to -1.
9149
9150 * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
9151 SA_NODEFER, SA_RESETHAND.
9152 * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
9153 O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
9154 F_DUPFD_CLOEXEC.
9155
91562012-05-10 Thomas Schwinge <thomas@schwinge.name>
9157
9158 * elf/Makefile (pldd-modules): Define unconditionally.
9159
91602012-05-10 Thomas Schwinge <thomas@schwinge.name>
9161
9162 * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
9163
91642012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9165
9166 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
9167 Return ENOENT when name is empty.
9168 * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
9169
91702012-05-10 Thomas Schwinge <thomas@schwinge.name>
9171
9172 * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
9173
9174 * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
9175
91762012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9177
9178 Fix mlock in all cases except non-readable pages.
9179 * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
9180 instead of VM_PROT_ALL as parameter to __vm_wire function.
9181
9182 * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
9183 (__mkdir): When path is `/', just fail with EEXIST.
9184 * sysdeps/mach/hurd/mkdirat.c: Likewise.
9185
91862012-05-10 Thomas Schwinge <thomas@schwinge.name>
9187
9188 * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
9189 <sys/uio.h> (for writev).
9190 * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
9191 and <sys/param.h> (for MIN).
9192
91932012-05-10 Pino Toscano <toscano.pino@tiscali.it>
9194
9195 * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
9196 REQUESTED_TIME. Properly set the remaining time and return EINTR
9197 if interrupted.
9198
91992012-05-10 Thomas Schwinge <thomas@schwinge.name>
9200
9201 * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
9202 Depend on against $(link-rpcuserlibs).
9203
92042012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9205
9206 * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
9207 (__libc_stack_end): Do not use attribute_relro.
9208 * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
9209 * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
9210 to libthread-provided value.
9211 * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
9212 attribute_relro.
9213
92142012-05-10 Thomas Schwinge <thomas@schwinge.name>
9215
9216 [BZ #3748]
9217 * bits/libc-lock.h (__libc_once_get): New macro.
9218 * sysdeps/mach/bits/libc-lock.h: Likewise.
9219 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
9220 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
9221 instead of using implementation details.
9222
9223 * libio/fileops.c: Unconditionally include <kernel-features.h>.
9224 * libio/freopen.c: Likewise.
9225 * libio/freopen64.c: Likewise.
9226 * misc/syslog.c: Likewise.
9227 * nscd/connections.c: Likewise.
9228 * nscd/netgroupcache.c: Likewise.
9229 * sysdeps/posix/getcwd.c: Likewise.
9230
92312012-05-10 Roland McGrath <roland@hack.frob.com>
9232
9233 * math/w_ilogbf.c: Add #include <limits.h>.
9234
92352012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9236
9237 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
9238 path instead of returning without unlocking.
9239
9240 * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
9241 immediate-write ioctls.
9242 * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
9243
92442012-05-10 Thomas Schwinge <thomas@schwinge.name>
9245
9246 * sysdeps/mach/hurd/i386/init-first.c (init): Use
9247 __builtin_frame_address instead of making assumptions about the
9248 location of the return address relative to DATA. Force early load of
9249 the return address.
9250 (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
9251 __builtin_frame_address.
9252
9253 dup3 for GNU Hurd.
9254 * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
9255 * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c. Evolve it to
9256 implement dup3 and do some further code clean-ups.
9257 * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
9258 * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
9259
92602012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9261
9262 * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
9263
9264 * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
9265 HURD_CRITICAL_END around holding _hurd_dtable_lock.
9266 * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
9267 * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
9268 HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
9269 d->port.lock.
9270
9271 * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
9272 instead of setjmp/longjmp to restore the signal mask. Call sigsetjmp
9273 when handler == SIG_ERR, not when handler != SIG_ERR.
9274
92752012-05-10 Thomas Schwinge <thomas@schwinge.name>
9276
9277 * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
9278 (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
9279 definitions.
9280
9281 accept4 for GNU Hurd.
9282 * include/sys/socket.h (__libc_accept4): New prototype.
9283 * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c. Evolve it
9284 to implement __libc_accept4.
9285 * sysdeps/mach/hurd/accept.c (accept): Reimplement using
9286 __libc_accept4.
9287 * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
9288
9289 * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
9290 * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
9291 * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
9292 signal-defines.sym.
9293
92942012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9295
9296 * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
9297
92982012-05-10 Thomas Schwinge <thomas@schwinge.name>
9299
9300 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
9301 assertion on O_CLOEXEC flag.
9302 * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
9303 * hurd/intern-fd.c: Likewise.
9304 * hurd/port2fd.c: Likewise.
9305
93062012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9307
9308 [BZ #3906]
9309 * bits/in.h (IPV6_PKTINFO): Define new macro.
9310 (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
9311
93122012-05-09 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
9313
9314 [BZ #13954]
9315 [BZ #13955]
9316 [BZ #13956]
9317 * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
9318 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
9319 * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
9320 * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
9321 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9322 * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
9323 * math/libm-test.inc (logb_test) : Additional logb tests.
9324
93252012-05-09 Andreas Schwab <schwab@linux-m68k.org>
9326 Andreas Jaeger <aj@suse.de>
9327
9328 * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
9329 * configure: Regenerated.
9330 * config.h.in (LINK_OBSOLETE_RPC): New macro.
9331 * config.make.in (link-obsolete-rpc): New substituted variable.
9332 * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
9333 libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
9334 * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
9335 (shared-only-routines): Don't set it under [link-obsolete-rpc],
9336 so that libc.a contains the symbols.
9337 * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
9338 * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
9339 * sunrpc/auth_none.c: Likewise.
9340 * sunrpc/auth_unix.c: Likewise.
9341 * sunrpc/authdes_prot.c: Likewise.
9342 * sunrpc/authuxprot.c: Likewise.
9343 * sunrpc/clnt_gen.c: Likewise.
9344 * sunrpc/clnt_perr.c: Likewise.
9345 * sunrpc/clnt_raw.c: Likewise.
9346 * sunrpc/clnt_simp.c: Likewise.
9347 * sunrpc/clnt_tcp.c: Likewise.
9348 * sunrpc/clnt_udp.c: Likewise.
9349 * sunrpc/clnt_unix.c: Likewise.
9350 * sunrpc/des_crypt.c: Likewise.
9351 * sunrpc/des_soft.c: Likewise.
9352 * sunrpc/get_myaddr.c: Likewise.
9353 * sunrpc/key_call.c: Likewise.
9354 * sunrpc/key_prot.c: Likewise.
9355 * sunrpc/netname.c: Likewise.
9356 * sunrpc/pm_getmaps.c: Likewise.
9357 * sunrpc/pm_getport.c: Likewise.
9358 * sunrpc/pmap_clnt.c: Likewise.
9359 * sunrpc/pmap_prot.c: Likewise.
9360 * sunrpc/pmap_prot2.c: Likewise.
9361 * sunrpc/pmap_rmt.c: Likewise.
9362 * sunrpc/publickey.c: Likewise.
9363 * sunrpc/rpc_cmsg.c: Likewise.
9364 * sunrpc/rpc_common.c: Likewise.
9365 * sunrpc/rpc_dtable.c: Likewise.
9366 * sunrpc/rpc_prot.c: Likewise.
9367 * sunrpc/rpc_thread.c: Likewise.
9368 * sunrpc/rtime.c: Likewise.
9369 * sunrpc/svc.c: Likewise.
9370 * sunrpc/svc_auth.c: Likewise.
9371 * sunrpc/svc_raw.c: Likewise.
9372 * sunrpc/svc_run.c: Likewise.
9373 * sunrpc/svc_tcp.c: Likewise.
9374 * sunrpc/svc_udp.c: Likewise.
9375 * sunrpc/svc_unix.c: Likewise.
9376 * sunrpc/svcauth_des.c: Likewise.
9377 * sunrpc/xcrypt.c: Likewise.
9378 * sunrpc/xdr.c: Likewise.
9379 * sunrpc/xdr_array.c: Likewise.
9380 * sunrpc/xdr_float.c: Likewise.
9381 * sunrpc/xdr_intXX_t.c: Likewise.
9382 * sunrpc/xdr_mem.c: Likewise.
9383 * sunrpc/xdr_rec.c: Likewise.
9384 * sunrpc/xdr_ref.c: Likewise.
9385 * sunrpc/xdr_sizeof.c: Likewise.
9386 * sunrpc/xdr_stdio.c: Likewise.
9387
93882012-05-10 Roland McGrath <roland@hack.frob.com>
9389
9390 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
9391 change. Update copyright years.
9392
93932012-05-10 Joseph Myers <joseph@codesourcery.com>
9394
9395 * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
9396
93972012-05-10 Maxim Kuvyrkov <maxim@codesourcery.com>
9398 Joseph Myers <joseph@codesourcery.com>
9399 Paul Pluzhnikov <ppluzhnikov@google.com>
9400
9401 [BZ #14012]
9402 * sunrpc/Makefile [cross-compiling] (headers): Enable additions
9403 requiring rpcgen.
9404 [cross-compiling] (extra-libs): Likewise.
9405 [cross-compiling] (extra-libs-others): Likewise.
9406 [cross-compiling] (librpcsvc-routines): Likewise.
9407 [cross-compiling] (librpcsvc-inhibit-o): Likewise.
9408 [cross-compiling] (omit-deps): Likewise.
9409 (sunrpc-CPPFLAGS): New variable.
9410 (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
9411 (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
9412 (cross-rpcgen-objs): New variable.
9413 (extra-objs): Append $(cross-rpcgen-objs).
9414 ($(cross-rpcgen-objs)): New rule.
9415 ($(objpfx)cross-rpcgen): Likewise.
9416 (rpcgen-cmd): Define to use $(built-program-file). Expand
9417 comment.
9418 ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
9419 ($(objpfx)x%.stmp): Likewise.
9420 * sunrpc/proto.h [IS_IN_build] (_): Define.
9421 [IS_IN_build] (_libc_intl_domainname): Likewise.
9422
94232012-05-10 H.J. Lu <hongjiu.lu@intel.com>
9424
9425 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
9426 Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
9427 and R_X86_64_TPOFF64.
9428
94292012-05-10 Joseph Myers <joseph@codesourcery.com>
9430
9431 * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
9432 sysdeps/unix/sysv/syscalls.list.
9433 (stime): Likewise.
9434 (utime): Likewise.
9435 * sysdeps/unix/sysv/syscalls.list: Remove file.
9436
94372012-05-10 Paul Eggert <eggert@cs.ucla.edu>
9438
9439 [BZ #3440]
9440 * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
9441 (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
9442 (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
9443 (__LC_IDENTIFICATION): Make these macros useful in #if
9444 expressions, as required by C99.
9445
94462012-05-10 Andreas Schwab <schwab@linux-m68k.org>
9447
9448 * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
9449 $(addsuffix .os,$(rpc-compat-routines)). Move include ../Rules
9450 after this.
9451
94522012-05-09 H.J. Lu <hongjiu.lu@intel.com>
9453
9454 * stdlib/longlong.h: Updated from GCC.
9455
94562012-05-09 Andreas Jaeger <aj@suse.de>
9457
9458 * nscd/nscd.c (run_modes): Make named enum, reorder so that
9459 default is first entry.
9460 (run_mode): Set type.
9461 (main): Remove informal message about syslog.
9462 (options): Fix typo.
9463
9464 [BZ #14053]
9465 * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9466 to asm.
9467 (lrint): Likewise.
9468 (llrintf): Likewise.
9469 (llrint): Likewise.
9470 (rint): Likewise.
9471 (rintf): Likewise.
9472 (nearbyint): Likewise.
9473 (nearbyintf): Likewise.
9474
94752012-05-09 Andreas Jaeger <aj@suse.de>
9476 Pedro Alves <palves@redhat.com>
9477
9478 * nscd/nscd.c (run_mode): Use enum.
9479 (main): Cleanup coding style issue.
9480
94812012-05-09 Alexandre Oliva <aoliva@redhat.com>
9482 Andreas Jaeger <aj@suse.de>
9483
9484 * nscd/nscd.c (go_background): Replaced with...
9485 (run_mode): ... this.
9486 (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9487 (options): Add -F --foreground.
9488 (main): Implement it.
9489 (parse_opt): Parse it.
9490
94912012-05-09 Andreas Jaeger <aj@suse.de>
9492
9493 [BZ #14083]
9494 * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9495 !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9496 -Wconversion warning.
9497 (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9498 Likewise.
9499
95002012-05-09 Joseph Myers <joseph@codesourcery.com>
9501
9502 * conform/data/locale.h-data (NULL): Use macro-constant. Require
9503 == 0.
9504 (LC_ALL): Use macro-int-constant.
9505 (LC_COLLATE): Likewise.
9506 (LC_CTYPE): Likewise.
9507 (LC_MESSAGES): Likewise.
9508 (LC_MONETARY): Likewise.
9509 (LC_NUMERIC): Likewise.
9510 (LC_TIME): Likewise.
9511 [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9512 (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9513 [ISO || ISO99 || ISO11] (*_t): Do not allow.
9514 * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9515 Specify type.
9516 [C99-based standards] (float_t): Expect type.
9517 [C99-based standards] (double_t): Expect type.
9518 [C99-based standards] (HUGE_VALF): Use macro-constant. Specify
9519 type.
9520 [C99-based standards] (HUGE_VALL): Likewise.
9521 [C99-based standards] (INFINITY): Likewise.
9522 [C99-based standards] (NAN): Likewise.
9523 [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9524 [C99-based standards] (FP_NAN): Likewise.
9525 [C99-based standards] (FP_NORMAL): Likewise.
9526 [C99-based standards] (FP_SUBNORMAL): Likewise.
9527 [C99-based standards] (FP_ZERO): Likewise.
9528 [C99-based standards] (FP_FAST_FMA): Use
9529 optional-macro-int-constant. Specify type. Require == 1.
9530 [C99-based standards] (FP_FAST_FMAF): Likewise.
9531 [C99-based standards] (FP_FAST_FMAL): Likewise.
9532 [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9533 [C99-based standards] (FP_ILOGBNAN): Likewise.
9534 [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9535 Specify type.
9536 [C99-based standards] (MATH_ERREXCEPT): Likewise.
9537 [C99-based standards] (math_errhandling): Specify type.
9538 [ISO99 || ISO11] (signgam): Do not allow.
9539 [non-C99-based standards] (copysignf): Do not allow.
9540 [non-C99-based standards] (exp2f): Likewise.
9541 [non-C99-based standards] (log2f): Likewise.
9542 [non-C99-based standards] (modff): Allow.
9543 [non-C99-based standards] (erff): Do not allow.
9544 [non-C99-based standards] (erfcf): Likewise.
9545 [non-C99-based standards] (gammaf): Likewise.
9546 [non-C99-based standards] (hypotf): Likewise.
9547 [non-C99-based standards] (j0f): Likewise.
9548 [non-C99-based standards] (j1f): Likewise.
9549 [non-C99-based standards] (jnf): Likewise.
9550 [non-C99-based standards] (lgammaf): Likewise.
9551 [non-C99-based standards] (tgammaf): Likewise.
9552 [non-C99-based standards] (y0f): Likewise.
9553 [non-C99-based standards] (y1f): Likewise.
9554 [non-C99-based standards] (ynf): Likewise.
9555 [non-C99-based standards] (isnanf): Likewise.
9556 [non-C99-based standards] (acoshf): Likewise.
9557 [non-C99-based standards] (asinhf): Likewise.
9558 [non-C99-based standards] (atanhf): Likewise.
9559 [non-C99-based standards] (cbrtf): Likewise.
9560 [non-C99-based standards] (expm1f): Likewise.
9561 [non-C99-based standards] (ilogbf): Likewise.
9562 [non-C99-based standards] (log1pf): Likewise.
9563 [non-C99-based standards] (logbf): Likewise.
9564 [non-C99-based standards] (nextafterf): Likewise.
9565 [non-C99-based standards] (remainderf): Likewise.
9566 [non-C99-based standards] (rintf): Likewise.
9567 [non-C99-based standards] (scalbf): Likewise.
9568 [non-C99-based standards] (copysignl): Likewise.
9569 [non-C99-based standards] (exp2l): Likewise.
9570 [non-C99-based standards] (log2l): Likewise.
9571 [non-C99-based standards] (modfl): Allow.
9572 [non-C99-based standards] (erfl): Do not allow.
9573 [non-C99-based standards] (erfcl): Likewise.
9574 [non-C99-based standards] (gammal): Likewise.
9575 [non-C99-based standards] (hypotl): Likewise.
9576 [non-C99-based standards] (j0l): Likewise.
9577 [non-C99-based standards] (j1l): Likewise.
9578 [non-C99-based standards] (jnl): Likewise.
9579 [non-C99-based standards] (lgammal): Likewise.
9580 [non-C99-based standards] (tgammal): Likewise.
9581 [non-C99-based standards] (y0l): Likewise.
9582 [non-C99-based standards] (y1l): Likewise.
9583 [non-C99-based standards] (ynl): Likewise.
9584 [non-C99-based standards] (isnanl): Likewise.
9585 [non-C99-based standards] (acoshl): Likewise.
9586 [non-C99-based standards] (asinhl): Likewise.
9587 [non-C99-based standards] (atanhl): Likewise.
9588 [non-C99-based standards] (cbrtl): Likewise.
9589 [non-C99-based standards] (expm1l): Likewise.
9590 [non-C99-based standards] (ilogbl): Likewise.
9591 [non-C99-based standards] (log1pl): Likewise.
9592 [non-C99-based standards] (logbl): Likewise.
9593 [non-C99-based standards] (nextafterl): Likewise.
9594 [non-C99-based standards] (remainderl): Likewise.
9595 [non-C99-based standards] (rintl): Likewise.
9596 [non-C99-based standards] (scalbl): Likewise.
9597 [ISO || ISO99 || ISO11] (*_t): Do not allow.
9598 [non-C99-based standards] (FP_*): Do not allow.
9599 [C99-based standards] (FP_*): Change to
9600 FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9601 * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9602 allow.
9603 * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9604 (SIG_ERR): Likewise.
9605 [X/Open-based standards] (SIG_HOLD): Likewise.
9606 (SIG_IGN): Likewise.
9607 (SIGABRT): Use macro-int-constant. Specify type. Require
9608 positive value.
9609 (SIGFPE): Likewise.
9610 (SIGILL): Likewise.
9611 (SIGINT): Likewise.
9612 (SIGSEGV): Likewise.
9613 (SIGTER): Likewise.
9614 [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9615 [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9616 [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9617 [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9618 [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9619 [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9620 [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9621 [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9622 [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9623 [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9624 [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9625 [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9626 [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9627 [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9628 [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9629 [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9630 [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9631 [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9632 [X/Open-based standards] (SIGTRAP): Likewise.
9633 [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9634 [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9635 [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9636 [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9637 * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9638 allow.
9639
96402012-05-08 Ian Wienand <ianw@vmware.com>
9641
9642 [BZ #14080]
9643 * time/tzset.c (__tzset_parse_tz): Update default rules for
9644 daylight time changes in the Energy Policy Act of 2005.
9645
96462012-05-09 Andreas Jaeger <aj@suse.de>
9647
9648 [BZ #13983]
9649 * elf/ldconfig.c (parse_conf): Change string to make clear that
9650 ldconfig only issued a warning if ld.so.conf does not exist.
9651
96522012-05-08 David S. Miller <davem@davemloft.net>
9653
9654 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9655 movxtod instead of popping the value on the stack.
9656
9657 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9658
96592012-05-08 Carlos O'Donell <carlos_odonell@mentor.com>
9660
9661 * config.h.in: Add HAVE_ARM_PCS_VFP.
9662
96632012-05-08 Roland Mc Grath <roland@hack.frob.com>
9664
9665 [BZ #13979]
9666 * include/features.h: Warn if user requests __FORTIFY_SOURCE
9667 checking but the checks are disabled for any reason.
9668
96692012-05-08 H.J. Lu <hongjiu.lu@intel.com>
9670
9671 * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9672 and ELF64_R_TYPE with ELFW(R_TYPE).
9673
96742012-05-08 Joseph Myers <joseph@codesourcery.com>
9675
9676 * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9677 (ulimit): Likewise.
9678
9679 * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9680 (settimeofday): Likewise.
9681
96822012-05-08 Mike Frysinger <vapier@gentoo.org>
9683
9684 * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1. Add
9685 a struct th_u2 inside the union, and move tu_block/tu_code into
9686 a new th_u3 union of tu_block/tu_code inside of that. Move
9687 th_data[1] into the th_u2 as tu_data[0]. Change tu_stuff[1] to
9688 tu_stuff[0]. Add a new tu_padding[4] to keep sizeof() the same.
9689 (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9690 (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9691 (th_stuff): Change to th_u1.tu_stuff.
9692 (th_data): Define.
9693 (th_msg): Change to th_u1.th_u2.tu_data.
9694
96952012-05-07 David S. Miller <davem@davemloft.net>
9696
9697 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9698
9699 [BZ #14074]
9700 * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9701 (SETUP_PIC_REG): Use it.
9702 (SETUP_PIC_REG_LEAF): Use it.
9703
97042012-05-07 Joseph Myers <joseph@codesourcery.com>
9705
9706 [BZ #13885]
9707 [BZ #13923]
9708 * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9709 USE_AS_EXPM1L.
9710 (EXPL_FINITE): Likewise.
9711 (FLDLOG): Likewise.
9712 (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9713 * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9714 e_expl.S.
9715 * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9716 USE_AS_EXPM1L.
9717 (EXPL_FINITE): Likewise.
9718 (FLDLOG): Likewise.
9719 (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9720 * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9721 e_expl.S.
9722 * math/libm-test.inc (expm1_test): Add more tests. Do not disable
9723 test of -max_value argument for long double.
9724 * sysdeps/i386/fpu/libm-test-ulps: Update.
9725 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9726
97272012-05-06 David S. Miller <davem@davemloft.net>
9728
9729 * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9730 quad soft-float symbols whose references which are compiler
9731 generated.
9732 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9733
97342012-05-06 Joseph Myers <joseph@codesourcery.com>
9735
9736 [BZ #13884]
9737 [BZ #13914]
9738 * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9739 USE_AS_EXP10L.
9740 (EXPL_FINITE): Likewise.
9741 (FLDLOG): Likewise.
9742 (c0): Likewise.
9743 (c1): Likewise.
9744 (__ieee754_expl): Change to IEEE754_EXPL. Use FLDLOG macro.
9745 Adjust comments for base varying.
9746 (__expl_finite): Change alias to EXPL_FINITE.
9747 * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9748 e_expl.S.
9749 * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9750 * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9751 * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9752 * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9753 * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9754 USE_AS_EXP10L.
9755 (EXPL_FINITE): Likewise.
9756 (FLDLOG): Likewise.
9757 (c0): Likewise.
9758 (c1): Likewise.
9759 (__ieee754_expl): Change to IEEE754_EXPL. Use FLDLOG macro.
9760 Adjust comments for base varying.
9761 (__expl_finite): Change alias to EXPL_FINITE.
9762 * math/libm-test.inc (exp10_test): Add more tests. Do not disable
9763 tests for bugs.
9764 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9765
9766 [BZ #14064]
9767 * math/libm-test.inc (check_float_internal): Correct ulp
9768 calculation for subnormal expected results.
9769
97702012-05-06 Andreas Jaeger <aj@suse.de>
9771
9772 * Makeconfig (+math-flags): New, set to -frounding-math.
9773 (+cflags): Add +math-flags so that all of glibc gets compiled with
9774 it.
9775
9776 * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9777
97782012-05-05 Joseph Myers <joseph@codesourcery.com>
9779
9780 * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9781 Disable one test.
9782
9783 [BZ #13787]
9784 [BZ #13922]
9785 [BZ #14036]
9786 * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9787 (__ieee754_expl): Allow for and saturate large arguments.
9788 * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9789 (u_threshold): Likewise.
9790 (__exp): Call __ieee754_exp before checking for overflow and
9791 underflow.
9792 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9793 (u_threshold): Likewise.
9794 (__expf): Call __ieee754_expf before checking for overflow and
9795 underflow.
9796 * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9797 (u_threshold): Likewise.
9798 (__expl): Call __ieee754_expl before checking for overflow and
9799 underflow.
9800 * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9801 (__ieee754_expl): Allow for and saturate large arguments.
9802 * math/libm-test.inc (exp_test): Add another test. Do not allow
9803 missing overflow exception on overflow.
9804 (expm1_test): Do not allow missing overflow exception on overflow.
9805
9806 * sysdeps/i386/fpu/e_expl.c: Move to ...
9807 * sysdeps/i386/fpu/e_expl.S: ... here. Write directly in assembly
9808 rather than using inline asm.
9809 * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9810 * sysdeps/x86_64/fpu/e_expl.S: Copy from
9811 sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9812
9813 * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9814 (nice): Likewise.
9815 (poll): Likewise.
9816 (signal): Likewise.
9817 (time): Likewise.
9818 (times): Likewise.
9819
98202012-05-04 Joseph Myers <joseph@codesourcery.com>
9821
9822 * sysdeps/unix/syscalls.list (adjtime): Add entry from
9823 sysdeps/unix/common/syscalls.list.
9824 (fchmod): Likewise.
9825 (fchown): Likewise.
9826 (ftruncate): Likewise.
9827 (getrusage): Likewise.
9828 (gettimeofday): Likewise.
9829 (setpgid): Likewise.
9830 (setregid): Likewise.
9831 (setreuid): Likewise.
9832 (sigaction): Likewise.
9833 (truncate): Likewise.
9834 (vhangup): Likewise.
9835 * sysdeps/unix/common/syscalls.list: Remove file.
9836 * sysdeps/unix/bsd/Implies: Don't include unix/common.
9837 * sysdeps/unix/sysv/linux/Implies: Likewise.
9838
98392012-05-04 H.J. Lu <hongjiu.lu@intel.com>
9840
9841 * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9842 * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9843 * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9844 Moved to ...
9845 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9846 Here.
9847 * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9848 to ...
9849 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9850 * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9851 to ...
9852 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9853 * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9854 to ...
9855 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9856 * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9857 to ...
9858 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9859 * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9860 to ...
9861 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9862 * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9863 to ...
9864 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9865 * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9866 to ...
9867 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9868 Here.
9869 * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9870 to ...
9871 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9872 Here.
9873 * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9874 to ...
9875 * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9876 * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9877 Moved to ...
9878 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9879 Here.
9880 * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9881 to ...
9882 * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9883
98842012-05-04 Joseph Myers <joseph@codesourcery.com>
9885
9886 * sysdeps/unix/common/bits/dirent.h: Remove file.
9887 * sysdeps/unix/common/bits/fcntl.h: Likewise.
9888
9889 * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9890 * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9891 * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9892 * sysdeps/unix/bsd/isatty.c: Likewise.
9893 * sysdeps/unix/bsd/tcdrain.c: Likewise.
9894 * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9895 * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9896
98972012-05-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
9898
9899 [BZ #13563]
9900 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9901 long double comparison inaccuracies.
9902 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9903 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9904
99052012-05-04 Andreas Schwab <schwab@linux-m68k.org>
9906
9907 * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9908 * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9909
99102012-05-04 Joseph Myers <joseph@codesourcery.com>
9911
9912 [BZ #14049]
9913 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9914 nonzero digits before rounding a hex value.
9915 * stdlib/tst-strtod.c (tests): Add another test.
9916
99172012-05-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9918
9919 * sysdeps/s390/fpu/libm-test-ulps: Update.
9920
99212012-05-03 Andreas Jaeger <aj@suse.de>
9922
9923 * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9924 does not get optimized out.
9925 (malloc_opt_barrier): New.
9926
99272012-05-03 Andreas Jaeger <aj@suse.de>
9928 Roland McGrath <roland@hack.frob.com>
9929
9930 * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9931 intermediate file deletion.
9932 (generated): Add .symlist files.
9933
99342012-05-03 Joseph Myers <joseph@codesourcery.com>
9935
9936 [BZ #13775]
9937 * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9938 Redirect under this condition.
9939 [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9940 [__USE_GNU] (__dprintf_chk): Not under this condition.
9941 [__USE_GNU] (__vdprintf_chk): Likewise.
9942 * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9943 under this condition.
9944 [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9945 [__USE_XOPEN2K8] (dprintf): Define under this condition.
9946 [__USE_XOPEN2K8] (vdprintf): Likewise.
9947 [__USE_GNU] (__dprintf_chk): Not under this condition.
9948 [__USE_GNU] (__vdprintf_chk): Likewise.
9949 [__USE_GNU] (dprintf): Likewise.
9950 [__USE_GNU] (vdprintf): Likewise.
9951
99522012-05-03 Roland McGrath <roland@hack.frob.com>
9953
9954 * elf/Makefile (common-generated): Set this instead of generated for
9955 .dyn, .phdr, .jmprel files. Remove $(common-objpfx) from the
9956 $(all-built-dso)-derived lists.
9957
99582012-05-03 Andreas Jaeger <aj@suse.de>
9959
9960 * sysdeps/i386/fpu/libm-test-ulps: Update.
9961
9962 * FAQ: Removed.
9963 * FAQ.in: Likewise.
9964 * scripts/gen-FAQ.pl: Likewise.
9965 * manual/install.texi (Installation): Point to online location of
9966 FAQ.
9967 * Makefile (files-for-dist): Remove FAQ.
9968 (FAQ): Remove.
9969
99702012-05-02 Allan McRae <allan@archlinux.org>
9971
9972 * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9973 (LDFLAGS-reldepmod5.so): Likewise.
9974 (LDFLAGS-reldep6mod1.so): Likewise.
9975 (LDFLAGS-reldep6mod4.so): Likewise.
9976 (LDFLAGS-reldep8mod3.so): Likewise.
9977 (LDFLAGS-unload4mod1.so): Likewise.
9978 (LDFLAGS-unload4mod2.so): Likewise.
9979 (LDFLAGS-tst-initorder): Likewise.
9980 (LDFLAGS-tst-initordera2.so): Likewise.
9981 (LDFLAGS-tst-initordera3.so): Likewise.
9982 (LDFLAGS-tst-initordera4.so): Likewise.
9983 (LDFLAGS-tst-initorderb2.so): Likewise.
9984 (LDFLAGS-noload): Likewise.
9985 (LDFLAGS-next): Likewise.
9986 (LDFLAGS-order2mod1.so): Likewise.
9987 (LDFLAGS-order2mod2.so): Likewise.
9988 (LDFLAGS-tst-initorder2): Likewise.
9989 (LDFLAGS-tst-initorder2a.so): Likewise.
9990 (LDFLAGS-tst-initorder2b.so): Likewise.
9991 (LDFLAGS-tst-initorder2c.so): Likewise.
9992 * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9993
99942012-05-02 David S. Miller <davem@davemloft.net>
9995
9996 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9997
99982012-05-02 Paul Pluzhnikov <ppluzhnikov@google.com>
9999
10000 [BZ #14055]
10001 * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
10002
100032012-05-02 Andreas Jaeger <aj@suse.de>
10004
10005 * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
10006 since we manipulate rounding mode.
10007 (CPPFLAGS-test-idouble.c): Likewise.
10008 (CPPFLAGS-test-ifloat.c): Likewise.
10009 (CFLAGS-test-ldouble.c): Likewise.
10010 (CFLAGS-test-double.c): Likewise.
10011 (CFLAGS-test-float.c): Likewise.
10012 (CFLAGS-test-misc.c): Likewise.
10013 (CFLAGS-test-test-fenv.c): Likewise.
10014
100152012-05-02 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
10016
10017 [BZ #2550]
10018 [BZ #2570]
10019 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
10020 comparisons to determine direction to adjust input.
10021
100222012-05-01 Roland McGrath <roland@hack.frob.com>
10023
10024 * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
10025 output to the target.
10026
10027 * scripts/localplt.awk: New file.
10028 * elf/Makefile ($(objpfx)check-localplt): Target removed.
10029 (check-localplt-CFLAGS): Variable removed.
10030 ($(all-built-dso:=.jmprel)): New static pattern rule.
10031 (generated): Add those targets.
10032 (localplt-built-dso): New variable.
10033 ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
10034
10035 * elf/check-localplt.c: File removed.
10036
10037 * scripts/check-execstack.awk: New file.
10038 * elf/Makefile ($(objpfx)check-execstack): Target removed.
10039 (check-execstack-CFLAGS): Variable removed.
10040 ($(objpfx)check-execstack.h): Target removed.
10041 ($(objpfx)execstack-default): New target.
10042 (generated): Add that instead of check-execstack.h.
10043 ($(all-built-dso:=.phdr)): New static pattern rule.
10044 (generated): Add those targets.
10045 * elf/check-execstack.c: File removed.
10046
10047 * scripts/check-textrel.awk: New file.
10048 * elf/Makefile ($(objpfx)check-textrel): Target removed.
10049 (check-textrel-CFLAGS): Variable removed.
10050 (all-built-dso): Use := to define.o
10051 ($(all-built-dso:=.dyn)): New static pattern rule.
10052 (generated): Add those targets.
10053 ($(objpfx)check-textrel.out): Use the script on the .dyn files.
10054 * config.make.in (READELF): New substituted variable.
10055 * elf/check-textrel.c: File removed.
10056
100572012-05-01 Joseph Myers <joseph@codesourcery.com>
10058
10059 * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
10060 allow.
10061 * conform/data/ctype.h-data [C99-based standards] (isblank):
10062 Expect function.
10063 (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
10064 (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
10065 [ISO || ISO99 || ISO11] (*_t): Do not allow.
10066 * conform/data/errno.h-data (EDOM): Use macro-int-constant.
10067 Specify type. Require positive value.
10068 (EILSEQ): Likewise.
10069 (ERANGE): Likewise.
10070 [ISO || POSIX] (EILSEQ): Do not expect.
10071 [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
10072 Specify type. Require positive value.
10073 [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
10074 [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
10075 [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
10076 [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
10077 [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
10078 [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
10079 [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
10080 [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
10081 [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
10082 [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
10083 [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
10084 [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
10085 [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
10086 [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
10087 [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
10088 [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
10089 [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
10090 [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
10091 [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
10092 [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
10093 [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
10094 [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
10095 [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
10096 [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
10097 [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
10098 [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
10099 [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
10100 [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
10101 [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
10102 [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
10103 [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
10104 [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
10105 [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
10106 [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
10107 [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
10108 [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
10109 [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
10110 [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
10111 [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
10112 [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
10113 [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
10114 [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
10115 [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
10116 [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
10117 [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
10118 [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
10119 [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
10120 [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
10121 [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
10122 [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
10123 [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
10124 [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
10125 [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
10126 [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
10127 [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
10128 [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
10129 [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
10130 [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
10131 [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
10132 [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
10133 [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
10134 [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
10135 [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
10136 [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
10137 [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
10138 [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
10139 [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
10140 [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
10141 [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
10142 [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
10143 [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
10144 [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
10145 [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
10146 [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
10147 [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
10148 [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
10149 * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
10150 Require >= 2.
10151 (FLT_ROUNDS): Expect as macro, not constant.
10152 (FLT_MANT_DIG): Use macro-int-constant.
10153 (DBL_MANT_DIG): Likewise.
10154 (LDBL_MANT_DIG): Likewise.
10155 (FLT_DIG): Likewise.
10156 (DBL_DIG): Likewise.
10157 (LDBL_DIG): Likewise.
10158 (FLT_MIN_EXP): Use macro-int-constant. Require < 0.
10159 (DBL_MIN_EXP): Likewise.
10160 (LDBL_MIN_EXP): Likewise.
10161 (FLT_MAX_EXP): Use macro-int-constant.
10162 (DBL_MAX_EXP): Likewise.
10163 (LDBL_MAX_EXP): Likewise.
10164 (FLT_MAX_10_EXP): Likewise.
10165 (DBL_MAX_10_EXP): Likewise.
10166 (LDBL_MAX_10_EXP): Likewise.
10167 (FLT_MAX): Use macro-constant.
10168 (DBL_MAX): Likewise.
10169 (LDBL_MAX): Likewise.
10170 (FLT_EPSILON): Use macro-constant. Give upper bound.
10171 (DBL_EPSILON): Likewise.
10172 (LDBL_EPSILON): Likewise.
10173 (FLT_MIN): Likewise.
10174 (DBL_MIN): Likewise.
10175 (LDBL_MIN): Likewise.
10176 [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
10177 [C99-based standards] (FLT_EVAL_METHOD): Likewise.
10178 [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
10179 [ISO11] (FLT_HAS_SUBNORM): Likewise.
10180 [ISO11] (LDBL_HAS_SUBNORM): Likewise.
10181 [ISO11] (DBL_DECIMAL_DIG): Likewise.
10182 [ISO11] (FLT_DECIMAL_DIG): Likewise.
10183 [ISO11] (LDBL_DECIMAL_DIG): Likewise.
10184 [ISO11] (DBL_TRUE_MIN): Use macro-constant.
10185 [ISO11] (FLT_TRUE_MIN): Likewise.
10186 [ISO11] (LDBL_TRUE_MIN): Likewise.
10187 [ISO || ISO99 || ISO11] (*_t): Do not allow.
10188 * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
10189 (SCHAR_MIN): Use macro-int-constant. Specify type.
10190 (SCHAR_MAX): Likewise.
10191 (UCHAR_MAX): Likewise.
10192 (CHAR_MIN): Likewise.
10193 (CHAR_MAX): Likewise.
10194 (MB_LEN_MAX): Use macro-int-constant.
10195 (SHRT_MIN): Use macro-int-constant. Specify type.
10196 (SHRT_MAX): Likewise.
10197 (USHRT_MAX): Likewise.
10198 (INT_MAX): Likewise.
10199 (INT_MIN): Use macro-int-constant. Specify type. Make upper
10200 bound negative.
10201 (UINT_MAX): Use macro-int-constant. Specify type. Suffix lower
10202 bound with "U".
10203 (LONG_MAX): Use macro-int-constant. Specify type. Suffix lower
10204 bound with "L".
10205 (LONG_MIN): Use macro-int-constant. Specify type. Make upper
10206 bound negative. Suffix upper bound with "L".
10207 (ULONG_MAX): Use macro-int-constant. Specify type. Suffix lower
10208 bound with "UL".
10209 [C99-based standards] (LLONG_MIN): Use macro-int-constant.
10210 Specify type.
10211 [C99-based standards] (LLONG_MAX): Likewise.
10212 [C99-based standards] (ULLONG_MAX): Likewise.
10213 * conform/data/stddef.h-data (NULL): Use macro-constant. Require
10214 == 0.
10215 [ISO11] (max_align_t): Require type.
10216 [ISO || ISO99 || ISO11] (*_t): Do not allow.
10217
10218 * conform/conformtest.pl ($CFLAGS_namespace): Define separately
10219 from $CFLAGS, without defining away __attribute__ calls.
10220 (checknamespace): Use $CFLAGS_namespace.
10221
10222 * conform/conformtest.pl (@keywords): Only include C99 keywords
10223 for standards based on C99 or C11.
10224
10225 * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
10226 Disable tests.
10227 * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
10228 UNIX98]: Likewise.
10229
10230 * conform/conformtest.pl: Handle "macro-int-constant" and test for
10231 usability of symbols in #if.
10232
10233 * conform/conformtest.pl: If macro or constant types start
10234 "promoted:", expect the symbol to be of the following type
10235 promoted by the integer promotions.
10236
10237 * conform/conformtest.pl: Parse all "constant" and "macro" lines
10238 in one place. Also handle "macro-constant".
10239
10240 * conform/conformtest.pl: Only accept expected macro values with
10241 "==". Parse all "macro" lines in one place.
10242 * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
10243
10244 * conform/conformtest.pl: Handle braced types on "constant" lines
10245 instead of handling "typed-constant".
10246 * conform/data/signal.h-data: Use "constant" instead of
10247 "typed-constant".
10248
10249 * conform/conformtest.pl: Handle "optional-" at start of lines in
10250 one place rather than duplicating several cases. Handle each
10251 format of "macro" line with initial "optional-".
10252
10253 * conform/conformtest.pl: Only accept expected constant or
10254 optional-constant values with "==". Parse all "constant" lines in
10255 one place. Parse all "optional-constant" lines in one place.
10256 * conform/data/cpio.h-data: Use "==" form on "constant" lines.
10257 * conform/data/fmtmsg.h-data: Likewise.
10258 * conform/data/netinet/in.h-data: Likewise.
10259 * conform/data/tar.h-data: Likewise.
10260 * conform/data/limits.h-data: Use "==" form on "constant" and
10261 "optional-constant" lines.
10262
10263 * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
10264 Use -std=c99 for XOPEN2K.
10265 (@knownproblems): Remove.
10266 (newtoken): Don't check %isknown.
10267
10268 * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
10269 Do not expect macro.
10270 [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
10271 [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
10272 [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
10273 [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
10274 [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
10275 [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
10276 [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
10277 [XPG3 || XPG4 || UNIX98] (isless): Likewise.
10278 [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
10279 [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
10280 [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
10281 [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
10282 [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
10283 [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
10284 [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
10285 [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
10286 [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
10287 [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
10288 [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
10289 [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
10290 [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
10291 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
10292 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
10293 [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
10294 [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
10295 [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
10296 [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
10297 [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
10298 [XPG3 || XPG4 || UNIX98] (log2): Likewise.
10299 [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
10300 [XPG3] (acosh): Likewise.
10301 [XPG3] (asinh): Likewise.
10302 [XPG3] (atanh): Likewise.
10303 [XPG3] (cbrt): Likewise.
10304 [XPG3] (expm1): Likewise.
10305 [XPG3] (ilogb): Likewise.
10306 [XPG3] (log1p): Likewise.
10307 [XPG3] (logb): Likewise.
10308 [XPG3] (nextafter): Likewise.
10309 [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
10310 [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
10311 [XPG3] (remainder): Likewise.
10312 [XPG3] (rint): Likewise.
10313 [XPG3 || XPG4 || UNIX98] (round): Likewise.
10314 [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
10315 [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
10316 [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
10317 [XPG3 || XPG4 || UNIX98] (lround): Likewise.
10318 [XPG3 || XPG4 || UNIX98] (llround): Likewise.
10319 [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
10320 [UNIX98 || XOPEN2K] (scalb): Expect.
10321 [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
10322 [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
10323 [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
10324 [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
10325 [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
10326 [XPG3 || XPG4 || UNIX98] (fma): Likewise.
10327 [XPG3 || XPG4 || UNIX98] (nan): Likewise.
10328 [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
10329 [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
10330 [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
10331 [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
10332 [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
10333 [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
10334 [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
10335 [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
10336 [XPG3 || XPG4 || UNIX98] (expf): Likewise.
10337 [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
10338 [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
10339 [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
10340 [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
10341 [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
10342 [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
10343 [XPG3 || XPG4 || UNIX98] (logf): Likewise.
10344 [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
10345 [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
10346 [XPG3 || XPG4 || UNIX98] (modff): Likewise.
10347 [XPG3 || XPG4 || UNIX98] (powf): Likewise.
10348 [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
10349 [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
10350 [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
10351 [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
10352 [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
10353 [XPG3 || XPG4 || UNIX98] (erff): Likewise.
10354 [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
10355 [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
10356 [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
10357 [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
10358 [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
10359 [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
10360 [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
10361 [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
10362 [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
10363 [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
10364 [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
10365 [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
10366 [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
10367 [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
10368 [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
10369 [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
10370 [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
10371 [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
10372 [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
10373 [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
10374 [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
10375 [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
10376 [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
10377 [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
10378 [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
10379 [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
10380 [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
10381 [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
10382 [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
10383 [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
10384 [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
10385 [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
10386 [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
10387 [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
10388 [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
10389 [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
10390 [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
10391 [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
10392 [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
10393 [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
10394 [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
10395 [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
10396 [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
10397 [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
10398 [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
10399 [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
10400 [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
10401 [XPG3 || XPG4 || UNIX98] (expl): Likewise.
10402 [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
10403 [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
10404 [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
10405 [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
10406 [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
10407 [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
10408 [XPG3 || XPG4 || UNIX98] (logl): Likewise.
10409 [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
10410 [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
10411 [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
10412 [XPG3 || XPG4 || UNIX98] (powl): Likewise.
10413 [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
10414 [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
10415 [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
10416 [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
10417 [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
10418 [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
10419 [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
10420 [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
10421 [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
10422 [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
10423 [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
10424 [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
10425 [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
10426 [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
10427 [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
10428 [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
10429 [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
10430 [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
10431 [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
10432 [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
10433 [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
10434 [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
10435 [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
10436 [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
10437 [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
10438 [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
10439 [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
10440 [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
10441 [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
10442 [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
10443 [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
10444 [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
10445 [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
10446 [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
10447 [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
10448 [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
10449 [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
10450 [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
10451 [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
10452 [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
10453 [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
10454 [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
10455 [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
10456 [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
10457 [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10458
10459 * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10460 _XOPEN_SOURCE_EXTENDED for XPG4.
10461
10462 * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10463
10464 * Makeconfig (localtime): Remove variable.
10465 (inst_localtime-file): Likewise.
10466
104672012-05-01 Andreas Schwab <schwab@linux-m68k.org>
10468
10469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10470 Update.
10471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10472 Update.
10473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10474 Update.
10475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10476 Update.
10477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10478 Update.
10479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10480 Update.
10481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10482 Update.
10483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10484 Update.
10485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10486 Update.
10487
104882012-05-01 Joseph Myers <joseph@codesourcery.com>
10489
10490 [BZ #2550]
10491 [BZ #2570]
10492 * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10493 comparisons to determine direction to adjust input.
10494 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10495 * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10496 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10497 Likewise.
10498 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10499 Likewise.
10500 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10501 Likewise.
10502 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10503 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10504 Likewise.
10505 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10506 Likewise.
10507 * math/libm-test.inc (nexttoward_test): Add more tests.
10508
105092012-05-01 Andreas Schwab <schwab@linux-m68k.org>
10510
10511 [BZ #14040]
10512 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10513 in version GLIBC_2.1, not GLIBC_2.0.
10514 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10515 Likewise.
10516
105172012-04-30 Joseph Myers <joseph@codesourcery.com>
10518
10519 [BZ #13942]
10520 * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10521 (1 - x) * (1 + x).
10522 * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10523 * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10524 * math/libm-test.inc (acos_test): Add more tests.
10525 (asin_test): Likewise.
10526 * sysdeps/i386/fpu/libm-test-ulps: Update.
10527 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10528
10529 [BZ #14034]
10530 * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10531 of square root.
10532 * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10533 * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10534 * math/libm-test.inc (acos_test_tonearest): New function.
10535 (acos_test_towardzero): Likewise.
10536 (acos_test_downward): Likewise.
10537 (acos_test_upward): Likewise.
10538 (asin_test_tonearest): Likewise.
10539 (asin_test_towardzero): Likewise.
10540 (asin_test_downward): Likewise.
10541 (asin_test_upward): Likewise.
10542 (main): Call the new functions.
10543 * sysdeps/i386/fpu/libm-test-ulps: Update.
10544 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10545
10546 [BZ #13884]
10547 [BZ #13924]
10548 * math/e_exp10.c: Include <float.h>.
10549 (__ieee754_exp10): Handle underflow here rather than multiplying
10550 large negative argument by M_LN10.
10551 * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10552 of __ieee754_expf.
10553 * math/e_exp10l.c: Include <float.h>.
10554 (__ieee754_exp10l): Handle underflow here rather than multiplying
10555 large negative argument by M_LN10l.
10556 * math/libm-test.inc (exp10_test): Add another test. Do not allow
10557 spurious overflow exception on underflow.
10558
105592012-04-29 Marek Polacek <polacek@redhat.com>
10560
10561 * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10562 (__fortify_function): New macro.
10563 (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10564 * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10565 __extern_always_inline.
10566 * libio/bits/stdio2.h: Likewise.
10567 * libio/bits/stdio.h: Likewise.
10568 * string/string.h: Likewise.
10569 * string/bits/string3.h: Likewise.
10570 * include/stdio.h: Likewise.
10571 * stdlib/bits/stdlib.h: Likewise.
10572 * stdlib/stdlib.h: Likewise.
10573 * rt/bits/mqueue2.h: Likewise.
10574 * rt/mqueue.h: Likewise.
10575 * posix/bits/unistd.h: Likewise.
10576 * posix/unistd.h: Likewise.
10577 * io/bits/poll2.h: Likewise.
10578 * io/bits/fcntl2.h: Likewise.
10579 * io/fcntl.h: Likewise.
10580 * io/sys/poll.h: Likewise.
10581 * misc/bits/syslog.h: Likewise.
10582 * misc/bits/syslog-ldbl.h: Likewise.
10583 * misc/sys/syslog.h: Likewise.
10584 * socket/bits/socket2.h: Likewise.
10585 * socket/sys/socket.h: Likewise.
10586 * debug/tst-chk1.c: Likewise.
10587 * wcsmbs/bits/wchar2.h: Likewise.
10588 * wcsmbs/bits/wchar-ldbl.h: Likewise.
10589 * wcsmbs/wchar.h: Likewise.
10590
105912012-04-29 Andreas Jaeger <aj@suse.de>
10592
10593 * Makerules (tests): Remove enable-check-abi protection.
10594 (check-abi-warn): Remove.
10595 (check-abi-%): Remove check-abi-warn usage.
10596
10597 * configure.in: Remove check-abi configure option.
10598 * configure: Regenerated.
10599 * config.make.in (enable-check-abi): Remove.
10600
106012012-04-28 Andreas Schwab <schwab@linux-m68k.org>
10602
10603 [BZ #14033]
10604 * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10605 double functions to double *_finite functions.
10606
10607 [BZ #13941]
10608 * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10609 (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10610 LDBL_MIN_EXP.
10611 * stdio-common/Makefile (tests): Add tst-sprintf3.
10612 * stdio-common/tst-sprintf3.c: New file.
10613
10614 * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10615 ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10616
106172012-04-28 Joseph Myers <joseph@codesourcery.com>
10618
10619 * conform/conformtest.pl: Remove duplicate typed-constant
10620 handling.
10621
106222012-04-28 David S. Miller <davem@davemloft.net>
10623
10624 * Makerules (%.abilist): Add vpath on sysdep_dirs.
10625 (check-abi-%): Remove AWK script prerequisite and explicit
10626 abilist directory.
10627 (check-abi): Rewrite to just diff the symlist with the abilist.
10628 (config-tls, config-abi-config): Delete, no longer used.
10629 (update-abi-%): Remove AWK script and explicit abilist directory.
10630 (update-abi): Rewrite to simply compare and conditionally copy the
10631 symlist and the sysdep abilist file. Remove update-abi-config
10632 checks.
10633 * abilist/ld.abilist: Remove.
10634 * abilist/libBrokenLocale.abilist: Remove.
10635 * abilist/libanl.abilist: Remove.
10636 * abilist/libcrypt.abilist: Remove.
10637 * abilist/libdl.abilist: Remove.
10638 * abilist/librt.abilist: Remove.
10639 * abilist/libthread_db.abilist: Remove.
10640 * abilist/libutil.abilist: Remove.
10641 * scripts/extract-abilist.awk: Remove.
10642 * scripts/merge-abilist.awk: Remove.
10643 * sysdeps/generic/libcidn.abilist: New file.
10644 * sysdeps/generic/libnss_compat.abilist: New file.
10645 * sysdeps/generic/libnss_db.abilist: New file.
10646 * sysdeps/generic/libnss_dns.abilist: New file.
10647 * sysdeps/generic/libnss_files.abilist: New file.
10648 * sysdeps/generic/libnss_hesiod.abilist: New file.
10649 * sysdeps/generic/libnss_nis.abilist: New file.
10650 * sysdeps/generic/libnss_nisplus.abilist: New file.
10651 * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10652 * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10653 * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10654 file.
10655 * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10656 * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10657 * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10658 * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10659 * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10660 * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10661 * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10662 * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10663 * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10664 file.
10665 * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10666 * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10667 * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10668 * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10669 file.
10670 * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10671 * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10672 * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10673 * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10674 * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10675 * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10676 file.
10677 * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10678 * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10679 * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10680 file.
10681 * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10682 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10683 New file.
10684 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10685 New file.
10686 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10687 New file.
10688 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10689 New file.
10690 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10691 New file.
10692 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10693 New file.
10694 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10695 New file.
10696 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10697 New file.
10698 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10699 New file.
10700 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10701 New file.
10702 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10703 New file.
10704 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10705 New file.
10706 * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10707 New file.
10708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10709 file.
10710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10711 New file.
10712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10713 New file.
10714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10715 file.
10716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10717 New file.
10718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10719 New file.
10720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10721 file.
10722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10723 New file.
10724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10725 New file.
10726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10727 New file.
10728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10729 New file.
10730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10731 New file.
10732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10733 New file.
10734 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10735 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10736 file.
10737 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10738 New file.
10739 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10740 file.
10741 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10742 file.
10743 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10744 file.
10745 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10746 file.
10747 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10748 file.
10749 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10750 New file.
10751 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10752 file.
10753 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10754 file.
10755 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10756 New file.
10757 * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10758 file.
10759 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10760 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10761 file.
10762 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10763 New file.
10764 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10765 file.
10766 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10767 file.
10768 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10769 file.
10770 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10771 file.
10772 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10773 file.
10774 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10775 New file.
10776 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10777 file.
10778 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10779 file.
10780 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10781 New file.
10782 * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10783 file.
10784 * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10785 * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10786 * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10787 file.
10788 * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10789 * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10790 * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10791 * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10792 * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10793 * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10794 * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10795 * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10796 * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10797 * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10798 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10799 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10800 file.
10801 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10802 New file.
10803 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10804 file.
10805 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10806 file.
10807 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10808 file.
10809 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10810 file.
10811 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10812 file.
10813 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10814 New file.
10815 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10816 New file.
10817 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10818 file.
10819 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10820 New file.
10821 * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10822 file.
10823 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10824 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10825 file.
10826 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10827 New file.
10828 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10829 file.
10830 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10831 file.
10832 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10833 file.
10834 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10835 file.
10836 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10837 file.
10838 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10839 New file.
10840 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10841 New file.
10842 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10843 file.
10844 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10845 New file.
10846 * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10847 file.
10848
108492012-04-28 Joseph Myers <joseph@codesourcery.com>
10850
10851 * conform/conformtest.pl: Fix typo in handling typed-constant from
10852 allow-header.
10853
108542012-04-27 Joseph Myers <joseph@codesourcery.com>
10855
10856 * README: Cut down references to pre-2.6 Linux kernels and
10857 Linuxthreads. Update lists of configurations in libc and ports
10858 and sort alphabetically. Say "or newer" with Linux kernel version
10859 requirements.
10860
10861 * config.h.in [IS_IN_build]: Allow compiling without optimization.
10862
108632012-04-27 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
10864
10865 [BZ #887]
10866 * math/libm-test.inc (logb_test_downward): New test to expose
10867 erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10868 rounding mode.
10869
108702012-04-27 Joseph Myers <joseph@codesourcery.com>
10871
10872 [BZ #14027]
10873 * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10874 to be done.
10875 * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10876 * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10877
108782012-04-26 Joseph Myers <joseph@codesourcery.com>
10879
10880 * sysdeps/unix/i386/brk.S: Remove file.
10881 * sysdeps/unix/i386/dl-brk.S: Likewise.
10882 * sysdeps/unix/i386/pipe.S: Likewise.
10883 * sysdeps/unix/i386/sigreturn.S: Likewise.
10884 * sysdeps/unix/i386/syscall.S: Likewise.
10885 * sysdeps/unix/i386/vfork.S: Likewise.
10886 * sysdeps/unix/i386/wait.S: Likewise.
10887
10888 * sysdeps/unix/common/tcsendbrk.c: Move to ...
10889 * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10890
10891 * configure.in (arm*-none*): Do not allow without
10892 --enable-hacker-mode.
10893 (netbsd*): Remove case setting base_os.
10894 (386bsd*): Likewise.
10895 (freebsd*): Likewise.
10896 (bsdi*): Likewise.
10897 (osf*): Likewise.
10898 (sunos*): Likewise.
10899 (ultrix*): Likewise.
10900 (newsos*): Likewise.
10901 (dynix*): Likewise.
10902 (*bsd*): Likewise.
10903 (sysv*): Likewise.
10904 (isc*): Likewise.
10905 (esix*): Likewise.
10906 (sco*): Likewise.
10907 (minix*): Likewise.
10908 (irix4*): Likewise.
10909 (irix6*): Likewise.
10910 (solaris[2-9]*): Likewise.
10911 (none): Likewise.
10912 * configure: Regenerated.
10913
109142012-04-26 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
10915
10916 [BZ #11521]
10917 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10918 overflow or cancellation in calculating denominator.
10919 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10920 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10921 down expression to avoid unexpected rounding in newer GCCs.
10922 * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10923
109242012-04-26 David S. Miller <davem@davemloft.net>
10925
10926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10927 long-double compat symbols.
10928 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10930 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10931 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10933 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10934 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10935 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10936 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10937 * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10938 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10939 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10940 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10941
109422012-04-25 David S. Miller <davem@davemloft.net>
10943
10944 * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10945 HWCAP_* values only after the memory barriers have been defined.
10946 (atomic_full_barrier): Define.
10947 (atomic_read_barrier): Define.
10948 (atomic_write_barrier): Define.
10949
109502012-04-26 Siddhesh Poyarekar <siddhesh@redhat.com>
10951
10952 * shlib-versions: Add libgcc_s version information.
10953 * sysdeps/generic/libgcc_s.h: Remove.
10954 * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10955 libgcc_s.h.
10956 * sysdeps/gnu/unwind-resume.c: Likewise.
10957 * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10958
109592012-04-25 David S. Miller <davem@davemloft.net>
10960
10961 * sysdeps/unix/sparc/brk.S: Delete.
10962 * sysdeps/unix/sparc/dl-brk.S: Delete.
10963 * sysdeps/unix/sparc/pipe.S: Delete.
10964 * sysdeps/unix/sparc/sysdep.S: Delete.
10965 * sysdeps/unix/sparc/sysdep.h: Delete.
10966 * sysdeps/unix/sparc/vfork.S: Delete.
10967 * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10968 SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10969 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10970 ret_ERRVAL, r0, r1, MOVE): Define.
10971 (JUMPTARGET): Remove.
10972 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10973 sysdeps/unix/sparc/sysdep.h
10974 (ENTRY, END): Remove.
10975 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10976
109772012-04-25 Joseph Myers <joseph@codesourcery.com>
10978
10979 * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10980 (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10981 -DIS_IN_build.
10982
10983 * timezone/README: Update upstream location and email address for
10984 tzcode and tzdata.
10985 * timezone/zdump.c: Update from tzcode 2012b.
10986 * timezone/zic.c: Likewise.
10987
10988 * configure.in (libc_cv_as_needed): Remove test.
10989 * configure: Regenerated.
10990 * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10991 conditional definition.
10992 [$(have-as-needed) != yes] (no-as-needed): Likewise.
10993 [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10994 * config.make.in (have-as-needed): Remove variable.
10995
109962012-04-25 Siddhesh Poyarekar <siddhesh@redhat.com>
10997 Paul Pluzhnikov <ppluzhnikov@google.com>
10998
10999 * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
11000 strings correctly.
11001
110022012-04-25 Chung-Lin Tang <cltang@codesourcery.com>
11003
11004 * sysdeps/sh/memcpy.S: Remove include of endian.h, change
11005 preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
11006 * sysdeps/sh/strlen.S: Likewise.
11007
110082012-04-24 Joseph Myers <joseph@codesourcery.com>
11009
11010 * sysdeps/unix/fork.S: Remove file.
11011 * sysdeps/unix/i386/fork.S: Likewise.
11012 * sysdeps/unix/sparc/fork.S: Likewise.
11013
11014 * sysdeps/unix/system.c: Remove file.
11015 * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
11016
11017 * sysdeps/unix/getegid.S: Remove file.
11018 * sysdeps/unix/geteuid.S: Likewise.
11019
110202012-04-24 Roland McGrath <roland@hack.frob.com>
11021
11022 * scripts/check-localplt.awk: New file.
11023 * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
11024 of diff.
11025 * scripts/data/localplt-generic.data: Add a comment.
11026
11027 * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
11028 NODE when __dir_mkfile failed.
11029 * sysdeps/mach/hurd/symlinkat.c: Likewise.
11030 Reported by Ludovic Courtès <ludo@gnu.org>.
11031
110322012-04-24 Andreas Jaeger <aj@suse.de>
11033
11034 * Makerules (common-clean): Also remove gen-as-const-headers
11035 files.
11036
110372012-04-24 Joseph Myers <joseph@codesourcery.com>
11038
11039 * Makerules (native-compile): Do not change working directory for
11040 build. Use $(OUTPUT_OPTION) in command.
11041 (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
11042
110432012-04-24 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
11044
11045 [BZ #13886]
11046 * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
11047 sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
11048 * math/libm-test.inc (floor_test): Add more tests.
11049 * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
11050
110512012-04-24 Joseph Myers <joseph@codesourcery.com>
11052
11053 * sysdeps/unix/getdents.c: Remove file.
11054 * sysdeps/unix/sysv/getdents.c: Likewise.
11055 * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
11056
11057 * sysdeps/unix/syscalls.list (madvise): Add syscall from
11058 sysdeps/unix/mman/syscalls.list.
11059 (mmap): Likewise.
11060 (mprotect): Likewise.
11061 (msync): Likewise.
11062 (munmap): Likewise.
11063 * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
11064 * sysdeps/unix/mman/syscalls.list: Remove.
11065 * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
11066
11067 * configure.in (libc_cv_libgcc_s_suffix): Remove test.
11068 (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
11069 * configure: Regenerated.
11070 * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
11071 $(libgcc_s_suffix).
11072 * config.make.in (libgcc_s_suffix): Remove variable.
11073
110742012-04-23 Joseph Myers <joseph@codesourcery.com>
11075
11076 * sysdeps/unix/sysv/gethostname.c: Move to ...
11077 * sysdeps/posix/gethostname.c: ... here.
11078
11079 * sysdeps/unix/execve.S: Remove file.
11080
11081 * sysdeps/unix/_exit.S: Remove file.
11082
110832012-04-23 Andreas Jaeger <aj@suse.de>
11084
11085 [BZ #13739]
11086 * manual/Makefile: Remove make dist support, there's no
11087 need for a stand-alone documentation tar ball.
11088 (TEXI2DVI): Define always, it's not in Makeconfig.
11089 (dist): Removed.
11090 (tar-it): Removed.
11091 (edition): Removed.
11092 (glibc-doc-$(edition).tar): Removed
11093 (%.Z): Removed.
11094 (%.gz): Removed.
11095 (%.uu): Removed.
11096 (ETAGS): Remove, it's in Makeconfig.
11097 (move-if-change): Remove, it's in Makeconfig.
11098
110992013-04-23 Paul Eggert <eggert@cs.ucla.edu>
11100
11101 [BZ #13970]
11102 * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
11103 (strtod, strtof, strtold, strtol, strtoul, strtoq)
11104 (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
11105 (strtod_l, strtof_l, strtold_l): Remove __wur.
11106 It is not necessarily an error to ignore strtol's return value.
11107 One can reliably look at the stored endptr to decide whether
11108 the number had valid syntax.
11109
111102012-04-21 Andreas Jaeger <aj@suse.de>
11111
11112 [BZ #13739]
11113 * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
11114
111152012-04-21 Joseph Myers <joseph@codesourcery.com>
11116
11117 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
11118 * sysdeps/unix/sysv/Versions: Remove file.
11119
111202012-04-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11121
11122 [BZ #13927]
11123 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11124
111252012-04-21 Nick Alcock <nick.alcock@oracle.com>
11126
11127 [BZ #7064]
11128 * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
11129 version from __vm86.
11130
111312012-04-20 Joseph Myers <joseph@codesourcery.com>
11132
11133 * sysdeps/unix/common/lxstat.c: Remove file.
11134 * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
11135
11136 * sysdeps/unix/sysv/Makefile: Remove file.
11137
11138 * sysdeps/unix/sysv/direct.h: Remove file.
11139
11140 * sysdeps/unix/sysv/bits/dirent.h: Remove file.
11141 * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
11142 * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
11143 * sysdeps/unix/sysv/bits/signum.h: Likewise.
11144 * sysdeps/unix/sysv/bits/stat.h: Likewise.
11145 * sysdeps/unix/sysv/bits/utmp.h: Likewise.
11146 * sysdeps/unix/sysv/bits/utsname.h: Likewise.
11147
11148 * sysdeps/unix/sysv/setrlimit.c: Remove file.
11149
11150 * sysdeps/unix/xmknod.c: Remove file.
11151 * sysdeps/unix/syscalls.list (sys_mknod): Remove.
11152
11153 * sysdeps/unix/sysv/settimeofday.c: Remove file.
11154
11155 * sysdeps/unix/sysv/i386/time.S: Remove file.
11156
11157 * sysdeps/unix/fxstat.c: Remove file.
11158 * sysdeps/unix/xstat.c: Likewise.
11159 * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
11160
11161 * sysdeps/unix/sysv/sigaction.c: Remove file.
11162
11163 * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
11164 (sysdep_headers): Remove variable.
11165 [termio.h not in sysdep_headers] (generated): Likewise.
11166 [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
11167 * sysdeps/unix/sysv/sysv_termio.h: Remove file.
11168 * sysdeps/unix/sysv/tcdrain.c: Likewise.
11169 * sysdeps/unix/sysv/tcflow.c: Likewise.
11170 * sysdeps/unix/sysv/tcflush.c: Likewise.
11171 * sysdeps/unix/sysv/tcgetattr.c: Likewise.
11172 * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
11173 * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
11174 * sysdeps/unix/sysv/tcsetattr.c: Likewise.
11175 * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
11176
11177 * sysdeps/unix/siglist.c: Remove file.
11178
11179 * sysdeps/unix/getppid.S: Remove file.
11180
11181 * sysdeps/unix/mkdir.c: Remove file.
11182 * sysdeps/unix/rmdir.c: Likewise.
11183
111842012-04-19 Andreas Schwab <schwab@linux-m68k.org>
11185
11186 * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
11187 ERR_MAX value.
11188 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
11189 errlist-compat value.
11190
111912012-04-18 David S. Miller <davem@davemloft.net>
11192
11193 * sysdeps/generic/memcopy.h (reg_char): Delete.
11194 * debug/strcat_chk.c: Use char, not reg_char.
11195 * debug/strcpy_chk.c: Likewise.
11196 * debug/strncat_chk.c: Likewise.
11197 * debug/strncpy_chk.c: Likewise.
11198 * string/memchr.c: Likewise.
11199 * string/memrchr.c: Likewise.
11200 * string/rawmemchr.c: Likewise.
11201 * string/strcat.c: Likewise.
11202 * string/strchr.c: Likewise.
11203 * string/strchrnul.c: Likewise.
11204 * string/strcmp.c: Likewise.
11205 * string/strcpy.c: Likewise.
11206 * string/strncat.c: Likewise.
11207 * string/strncmp.c: Likewise.
11208 * string/strncpy.c: Likewise.
11209
112102012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
11211
11212 * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
11213 __builtin_memcopy is called when src and dest ranges are known to not
11214 overlap.
11215
112162012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
11217
11218 * sysdeps/powerpc/powerpc64/power6/wordcopy.c
11219 (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
11220 fwd_align_merge macro call.
11221 (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
11222 bwd_align_merge macro call.
11223 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
11224
112252012-04-18 Will Schmidt <will_schmidt@vnet.ibm.com>
11226
11227 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
11228 bwd_align_merge macros.
11229 (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
11230 (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
11231 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
11232
112332012-04-18 David S. Miller <davem@davemloft.net>
11234
11235 * sysdeps/sparc/sparc64/memcopy.h: Delete.
11236
112372012-04-18 Andreas Jaeger <aj@suse.de>
11238
11239 [BZ# 6794]
11240 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
11241 * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
11242 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11243
11244 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
11245 * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
11246 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11247
11248 * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
11249 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
11250 Adjust for changed ldbl-128 files.
11251
11252 * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
11253 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
11254 Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
11255
112562012-04-17 David S. Miller <davem@davemloft.net>
11257
11258 * sysdeps/sparc/sparc32/memcopy.h: Delete.
11259
112602012-04-17 Andreas Schwab <schwab@linux-m68k.org>
11261
11262 * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
11263 * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
11264 * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
11265 * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
11266 * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
11267 * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
11268
112692012-04-17 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
11270
11271 [BZ #6794]
11272 * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
11273 * math/libm-test.inc: Add ilogb errno and exception tests.
11274 * math/w_ilogb.c: New file: ilogb wrapper.
11275 * math/w_ilogbf.c: New file: ilogbf wrapper.
11276 * math/w_ilogbl.c: New file: ilogbl wrapper.
11277 * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
11278 * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
11279 * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
11280 exception being thrown with 0.0 as argument.
11281 * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
11282 * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
11283 exception being thrown with 0.0 as argument.
11284 * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
11285 * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
11286 exception being thrown with 0.0 as argument.
11287 * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
11288 * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
11289 exception being thrown with 0.0 as argument.
11290 * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
11291 * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
11292 * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
11293 * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
11294 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
11295 * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
11296 * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
11297 * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
11298 * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
11299
113002012-04-17 Petr Baudis <pasky@ucw.cz>
11301
11302 * include/sys/uio.h: Change __vector to __iovec to avoid clash
11303 with altivec.
11304
113052012-04-16 Marek Polacek <polacek@redhat.com>
11306
11307 * elf/pldd-xx.c: Rename static_assert to pldd_assert.
11308
113092012-04-16 Marek Polacek <polacek@redhat.com>
11310
11311 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
11312 operands of fdivp instruction.
11313
113142012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11315
11316 * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
11317 * elf/tst-auditmod3b.c: Likewise.
11318 * elf/tst-auditmod4b.c: Likewise.
11319 * elf/tst-auditmod5b.c: Likewise.
11320 * elf/tst-auditmod6b.c: Likewise.
11321 * elf/tst-auditmod6c.c: Likewise.
11322 * elf/tst-auditmod7b.c: Likewise.
11323 * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
11324 * sysdeps/x86_64/preconfigure.in: Likewise.
11325 * sysdeps/x86_64/preconfigure: Regenerated.
11326
113272012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11328
11329 * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
11330 __ILP32__.
11331
113322012-04-13 Antoine Balestrat <merkil33@gmail.com>
11333
11334 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11335 (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
11336
113372012-04-13 Chris Leonard <cjlhomeaddress@gmail.com>
11338
11339 [BZ #13973]
11340 * locale/iso-639.def: Fix gl language name. Spotted by
11341 Yaron Shahrabani.
11342
113432012-04-12 Roland McGrath <roland@hack.frob.com>
11344
11345 [BZ #2074]
11346 * libio/libio.h (__io_write_fn): Update comment.
11347
113482012-04-12 Petr Baudis <pasky@ucw.cz>
11349
11350 [BZ #2074]
11351 * stdio.texi (Hook Functions): The user provided writer function
11352 is not allowed to return -1.
11353
113542012-04-11 David S. Miller <davem@davemloft.net>
11355
11356 * sysdeps/sparc/fpu/libm-test-ulps: Update.
11357
113582012-04-11 Mike Frysinger <vapier@gentoo.org>
11359
11360 * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
11361 Add a leading slash to rtkaio.
11362
113632012-04-11 Jim Meyering <meyering@redhat.com>
11364
11365 [BZ #11959]
11366 * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
11367 It is not necessarily an error to ignore fwrite's return
11368 value. One can reliably use ferror to test for errors after
11369 the fact.
11370
113712012-04-10 H.J. Lu <hongjiu.lu@intel.com>
11372
11373 * bits/types.h (__snseconds_t): New type.
11374 * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
11375
11376 * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
11377 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11378 (__SNSECONDS_T_TYPE): Likewise.
11379 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11380 (__SNSECONDS_T_TYPE): Likewise.
11381 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11382 (__SNSECONDS_T_TYPE): Likewise.
11383
113842012-04-10 Andreas Jaeger <aj@suse.de>
11385
11386 [BZ #2636]
11387 * manual/time.texi (Processor Time): Return type of times is
11388 elapsed real time since an arbitrary point in the past.
11389 (CPU Time): Move CLK_TCK from here...
11390 (Processor Time): ...to here. Correct description.
11391 * manual/conf.texi (Constants for Sysconf): Correct description of
11392 _SC_CLK_TCK.
11393
113942012-04-10 David S. Miller <davem@davemloft.net>
11395
11396 [BZ #13967]
11397 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
11398 where the is a gap between DT_REL(A) and DT_JMPREL.
11399
114002012-04-10 H.J. Lu <hongjiu.lu@intel.com>
11401
11402 * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
11403 (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11404 (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11405
114062012-04-10 Siddhesh Poyarekar <siddhesh@redhat.com>
11407
11408 * elf/dl-support.c (_dl_inhibit_cache): New variable.
11409 * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
11410 (dl_main): Handle --inhibit-cache.
11411 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
11412 _dl_inhibit_cache.
11413 * elf/dl-load.c (_dl_map_object): Use it.
11414 * elf/Makefile: Define SYSCONFDIR when building rtld.c.
11415
114162012-04-09 Joseph Myers <joseph@codesourcery.com>
11417
11418 [BZ #13872]
11419 * sysdeps/i386/fpu/e_powl.S (p78): New object.
11420 (__ieee754_powl): Saturate large exponents rather than testing for
11421 overflow of y*log2(x).
11422 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11423 * math/libm-test.inc (pow_test): Do not permit spurious overflow
11424 exceptions.
11425
11426 [BZ #11521]
11427 * math/s_ctan.c: Include <float.h>.
11428 (__ctan): Avoid internal overflow or cancellation in calculating
11429 denominator.
11430 * math/s_ctanf.c: Likewise.
11431 * math/s_ctanl.c: Likewise.
11432 * math/s_ctanh.c: Likewise.
11433 * math/s_ctanhf.c: Likewise.
11434 * math/s_ctanhl.c: Likewise.
11435 * math/libm-test.inc (ctan_test): Add more tests.
11436 (ctanh_test): Likewise.
11437 * sysdeps/i386/fpu/libm-test-ulps: Update.
11438 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11439
114402012-04-09 Andreas Jaeger <aj@suse.de>
11441
11442 [BZ #6894]
11443 * manual/filesys.texi (Directory Entries): Mention that d_namlen
11444 is an optional BSD extension.
11445
11446 [BZ #10254]
11447 * manual/stdio.texi (Opening Streams): Document additional fopen
11448 parameters.
11449
114502012-04-09 Roland McGrath <roland@hack.frob.com>
11451
11452 * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
11453 %eax without telling the compiler.
11454
114552012-04-09 Carlos O'Donell <carlos_odonell@mentor.com>
11456
11457 [BZ # 13963]
11458 * manual/install.texi: Use sourceware.org.
11459
114602012-04-09 Joseph Myers <joseph@codesourcery.com>
11461
11462 [BZ #13873]
11463 * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11464 (__ieee754_pow): Generate overflow and underflow using huge*huge
11465 and tiny*tiny rather than just returning constant infinity or zero
11466 for large exponents.
11467 * math/libm-test.inc (pow_test): Require overflow exceptions for
11468 applicable cases of large exponents.
11469
11470 [BZ #706]
11471 * sysdeps/i386/fpu/e_pow.S (p10): New object.
11472 (__ieee754_pow): Use iterative multiplication algorithm only for
11473 integer exponents with absolute value below 1024. Check for odd
11474 integer exponents when using algorithm for real exponents.
11475 * math/libm-test.inc (pow_test): Add more tests.
11476 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11477
114782012-04-08 Joseph Myers <joseph@codesourcery.com>
11479
11480 [BZ #13705]
11481 * math/libm-test.inc (exp_test): Do not allow overflow exception
11482 on underflow test.
11483
114842012-04-08 Aurelien Jarno <aurelien@aurel32.net>
11485
11486 [BZ #13705]
11487 * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11488 instead of __kernel_standard_f.
11489
114902012-04-08 Mike Frysinger <vapier@gentoo.org>
11491
11492 * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11493 * sysdeps/x86_64/memset_chk.S: Likewise.
11494
114952012-04-08 Andreas Jaeger <aj@suse.de>
11496
11497 [BZ #10153]
11498 * manual/startup.texi (Environment Access): Describe return value
11499 for putenv and setenv.
11500
11501 [BZ #6895]
11502 * manual/filesys.texi (Directory Entries): Add description for
11503 DT_LNK.
11504
11505 [BZ #6890]
11506 * manual/filesys.texi (Directory Entries): Clarify that it's file
11507 system not operating system in the description of DT_UNKNOWN.
11508
11509 [BZ #6578]
11510 * manual/syslog.texi (closelog): Fix reference, it's openlog.
11511
115122012-04-08 Stephen Compall <s11@member.fsf.org>
11513
11514 [BZ #6649]
11515 * manual/llio.texi (Opening and Closing Files): Add cross
11516 reference to explain mode argument.
11517
115182012-04-07 Mike Frysinger <vapier@gentoo.org>
11519
11520 * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11521 * sysdeps/x86_64/memset_chk.S: Likewise.
11522
115232012-04-07 David S. Miller <davem@davemloft.net>
11524
11525 * elf/elf.h (R_SPARC_WDISP10): Define.
11526 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11527 R_SPARC_SIZE32.
11528 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11529 R_SPARC_SIZE64 and R_SPARC_H34.
11530
115312012-04-07 Carlos O'Donell <carlos_odonell@mentor.com>
11532
11533 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11534 conditions and remove no longer applicable assertion.
11535
115362012-04-06 H.J. Lu <hongjiu.lu@intel.com>
11537
11538 * bits/byteswap.h: Include <features.h>.
11539 (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11540 (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11541
115422012-04-06 H.J. Lu <hongjiu.lu@intel.com>
11543
11544 * bits/byteswap.h (__bswap_16): Removed.
11545 Include <bits/byteswap-16.h> to get __bswap_16.
11546 * sysdeps/i386/bits/byteswap.h: Likewise.
11547 * sysdeps/s390/bits/byteswap.h: Likewise.
11548 * sysdeps/x86_64/bits/byteswap.h: Likewise.
11549 * bits/byteswap-16.h: New file.
11550 * sysdeps/i386/bits/byteswap-16.h: Likewise.
11551 * sysdeps/s390/bits/byteswap-16.h: Likewise.
11552 * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11553 * string/Makefile (headers): Add bits/byteswap-16.h.
11554
115552012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11556
11557 [BZ #13895]
11558 * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11559 extra indirection.
11560 * nss/Makefile (tests-static, tests): Add tst-nss-static.
11561 * nss/tst-nss-static.c: New.
11562
115632012-04-06 Robert Millan <rmh@gnu.org>
11564
11565 [BZ #6486]
11566 * manual/llio.texi (File Position Primitive): lseek
11567 refers to WHENCE when it really means OFFSET.
11568
115692012-04-06 Andreas Jaeger <aj@suse.de>
11570
11571 * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11572 strncmp declarations.
11573
11574 * abilist/libc.abilist: Add __poll and __ppoll.
11575
115762012-04-05 David S. Miller <davem@davemloft.net>
11577
11578 * scripts/check-local-headers.sh: Accept a host triplet in the
11579 path matched by the exclude regexp.
11580
11581 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11582 definition.
11583 * sysdeps/powerpc/powerpc32/dl-machine.h
11584 (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11585 * sysdeps/s390/s390-32/dl-machine.h
11586 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11587 * sysdeps/sparc/sparc32/dl-machine.h
11588 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11589 * sysdeps/sparc/sparc64/dl-machine.h
11590 (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11591
11592 * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11593 lazy binding.
11594 * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11595 undefined symbol errors.
11596
11597 * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11598 DT_NEEDED entries.
11599
116002012-04-05 Michael Matz <matz@suse.de>
11601
11602 [BZ #13592]
11603 * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11604
116052012-04-05 Andreas Jaeger <aj@suse.de>
11606
11607 [BZ #13908]
11608 * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11609 comment.
11610
116112012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
11612
11613 * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11614 which ROUND is no valid rounding mode.
11615
116162012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
11617
11618 * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11619 read again.
11620 * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11621
116222012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
11623
11624 * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11625 an exception using FPU order intentionally.
11626
116272012-04-05 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
11628
11629 * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11630 * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11631 * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11632 * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11633
116342012-04-05 Simon Josefsson <simon@josefsson.org>
11635
11636 [BZ #12340]
11637 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11638 EINVAL when BUFLEN is too smal.
11639
116402012-04-05 Thomas Schwinge <thomas@codesourcery.com>
11641
11642 [BZ #13553]
11643 * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11644 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11645
116462012-04-03 Andreas Jaeger <aj@suse.de>
11647
11648 [BZ #13938]
11649 * manual/setjmp.texi (System V contexts): Fix sentence.
11650
11651 [BZ #13926]
11652 * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11653 New macro for this case.
11654 [!__GNUC__] (__bswap_64): New inline function for this case.
11655 * sysdeps/x86_64/bits/byteswap.h: Likewise.
11656 * bits/byteswap.h: Likewise.
11657 * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11658 ull, guard with __GLIBC_HAVE_LONG_LONG.
11659
11660 * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11661 __GLIBC_HAVE_LONG_LONG.
11662
11663 * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11664 Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11665
116662012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11667
11668 [BZ #13691]
11669 * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11670 inptr and inend, rather than using last_ch.
11671
116722012-04-02 David S. Miller <davem@davemloft.net>
11673
11674 With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11675 * stdio-common/printf-parse.h (read_int): Change return type to
11676 'int', return -1 on INT_MAX overflow.
11677 * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11678 against overflow of INT_MAX. Set errno to EOVERFLOW when 'done'
11679 overflows INT_MAX. Check for overflow of in-format-string precision
11680 values properly. Use EOVERFLOW rather than ERANGE throughout. Use
11681 SIZE_MAX not INT_MAX for integer overflow test.
11682 * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11683 skip the construct in the format string but do not record anything.
11684 * stdio-common/bug22.c: Adjust to test both width/prevision
11685 INT_MAX overflow as well as total length INT_MAX overflow. Check
11686 explicitly for proper errno values.
11687
116882012-04-02 Thomas Schwinge <thomas@codesourcery.com>
11689
11690 * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11691 CHAR_MAX.
11692 * string/test-strcmp.c [! WIDE]: Likewise.
11693 * time/tst-mktime2.c: Likewise for INT_MAX.
11694 * string/test-string.h: #include <sys/param.h> for MIN.
11695
11696 * csu/init-first.c (__libc_init_first): Call __ctype_init.
11697 * sysdeps/i386/init-first.c (init): Likewise.
11698 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11699 * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11700 * sysdeps/sh/init-first.c (init): Likewise.
11701
117022012-04-01 Ulrich Drepper <drepper@gmail.com>
11703
11704 * po/ru.po: Update from translation team.
11705 * po/vi.po: Likewise.
11706
117072012-03-31 Siddhesh Poyarekar <siddhesh@redhat.com>
11708
11709 * resolv/nss_dns/dns-host.c: Merge copyright years.
11710
117112012-03-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
11712
11713 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11714 Optimize memcpy with prefetch if
11715 DATA_CACHE_SIZE_HALF <= len < SHARED_CACHE_SIZE_HALF and
11716 src, dst pointers have unequal 16 byte alignments.
11717
117182012-03-30 Siddhesh Poyarekar <siddhesh@redhat.com>
11719
11720 [BZ #13928]
11721 * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11722 from a CNAME entry and return the minimum ttl for the query.
11723 (gaih_getanswer_slice): Likewise.
11724
117252012-03-30 Jeff Law <law@redhat.com>
11726
11727 * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11728 due to long keys.
11729 * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11730 * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11731
11732 * resolv/nss_dns/dns-host.c: Update copyright year.
11733
117342012-03-30 Ulrich Drepper <drepper@gmail.com>
11735
11736 * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11737 requests to save a system call. Fix check that all bytes are sent.
11738
11739 * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11740 comments for sendmmsg.
11741
117422012-03-30 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11743
11744 [BZ #13691]
11745 * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11746 with only 1 character between 0x0041 and 0x01b0.
11747 * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11748 * wcsmbs/tst-mbsnrtowcs.c: New file.
11749
117502012-03-29 David S. Miller <davem@davemloft.net>
11751
11752 * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11753 small copies by hand.
11754
117552012-03-28 Siddhesh Poyarekar <siddhesh@redhat.com>
11756
11757 [BZ #13761]
11758 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11759 _nss_compat_initgroups_dyn): Fall back to malloc/free
11760 for large group memberships.
11761
117622012-03-28 David S. Miller <davem@davemloft.net>
11763
11764 * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11765 that branches into memcpy.
11766 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11767 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11768 * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11769 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11770 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11771 bits.
11772 * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11773 implementation too.
11774 * sysdeps/sparc/mempcpy.S: New file.
11775
11776 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11777 the IFUNC routine in the libc case.
11778 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11779
11780 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11781 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11782 * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11783 * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11784 * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11785 * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11786 * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11787 * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11788
11789 * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11790 loop to 256 bytes instead of 64 bytes and fix test signedness.
11791
11792 * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11793 * sysdeps/sparc/sparc32/Makefile: rather than here...
11794 * sysdeps/sparc/sparc64/Makefile: and here.
11795
117962012-03-28 Ulrich Drepper <drepper@gmail.com>
11797
11798 * malloc/mallocbug.c: Avoid warnings about unused variables.
11799
118002012-02-22 Siddhesh Poyarekar <siddhesh@redhat.com>
11801
11802 [BZ #13760]
11803 * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11804 in the right place. Discard and retry query if response is
11805 larger than input buffer size.
11806
118072012-03-28 Joseph Myers <joseph@codesourcery.com>
11808
11809 [BZ #369]
11810 [BZ #2678]
11811 [BZ #3866]
11812 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11813 x for large integer exponent.
11814 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11815 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise. Adjust
11816 sign of result as needed afterwards.
11817 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11818 * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11819 result for underflowing pow the same as for overflow.
11820 (__kernel_standard_l): Handle powl overflow and underflow here
11821 rather than calling __kernel_standard.
11822 * math/libm-test.inc (pow_test): Add more tests.
11823
11824 [BZ #3868]
11825 [BZ #13879]
11826 [BZ #13910]
11827 [BZ #13911]
11828 [BZ #13912]
11829 [BZ #13913]
11830 [BZ #13915]
11831 [BZ #13916]
11832 [BZ #13917]
11833 [BZ #13918]
11834 [BZ #13919]
11835 [BZ #13920]
11836 [BZ #13921]
11837 * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11838 * sysdeps/ieee754/k_standard.c: Include <float.h>.
11839 (__kernel_standard_l): New function.
11840 * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11841 __kernel_standard.
11842 * math/w_acosl.c (__acosl): Likewise.
11843 * math/w_asinl.c (__asinl): Likewise.
11844 * math/w_atan2l.c (__atan2l): Likewise.
11845 * math/w_atanhl.c (__atanhl): Likewise.
11846 * math/w_coshl.c (__coshl): Likewise.
11847 * math/w_exp10l.c (__exp10l): Likewise.
11848 * math/w_exp2l.c (__exp2l): Likewise.
11849 * math/w_fmodl.c (__fmodl): Likewise.
11850 * math/w_hypotl.c (__hypotl): Likewise.
11851 * math/w_j0l.c (__j0l, __y0l): Likewise.
11852 * math/w_j1l.c (__j1l, __y1l): Likewise.
11853 * math/w_jnl.c (__jnl, __ynl): Likewise.
11854 * math/w_lgammal.c (__lgammal): Likewise.
11855 * math/w_log10l.c (__log10l): Likewise.
11856 * math/w_log2l.c (__log2l): Likewise.
11857 * math/w_logl.c (__logl): Likewise.
11858 * math/w_powl.c (__powl): Likewise.
11859 * math/w_remainderl.c (__remainderl): Likewise.
11860 * math/w_scalbl.c (sysv_scalbl): Likewise.
11861 * math/w_sinhl.c (__sinhl): Likewise.
11862 * math/w_sqrtl.c (__sqrtl): Likewise.
11863 * math/w_tgammal.c (__tgammal): Likewise.
11864 * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11865 * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11866 * math/libm-test.inc (acos_test): Add more tests.
11867 (acosh_test): Likewise.
11868 (asin_test): Likewise.
11869 (atanh_test): Likewise.
11870 (exp_test): Likewise.
11871 (exp10_test): Likewise.
11872 (exp2_test): Likewise.
11873 (expm1_test): Likewise.
11874 (lgamma_test): Likewise.
11875 (log_test): Likewise.
11876 (log10_test): Likewise.
11877 (log1p_test): Likewise.
11878 (log2_test): Likewise.
11879 (pow_test): Do not allow some spurious overflow exceptions.
11880 (sqrt_test): Add more tests.
11881 (tgamma_test): Likewise.
11882 (y0_test): Likewise.
11883 (y1_test): Likewise.
11884 (yn_test): Likewise.
11885
118862012-03-27 Anton Blanchard <anton@samba.org>
11887
11888 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11889 MAP_HUGETLB.
11890 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11891 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11892 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11893
118942012-03-27 David S. Miller <davem@davemloft.net>
11895
11896 * conform/Makefile: Run run-conformtest.sh using $(BASH).
11897
11898 * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11899 have-as-vis3 check.
11900
119012012-03-27 Andreas Jaeger <aj@suse.de>
11902
11903 * sysdeps/x86_64/elf/configure.in: Moved to ...
11904 * sysdeps/x86_64/configure.in: ... here.
11905 * sysdeps/x86_64/elf/start.S: Moved to ...
11906 * sysdeps/x86_64/start.S: ... here.
11907 * sysdeps/x86_64/elf/configure: Delete.
11908
11909 * sysdeps/x86_64/configure.in: Merge contents from
11910 sysdeps/i386/configure.in (without i686 check).
11911
11912 * sysdeps/i386/elf/Versions: Merge into ...
11913 * sysdeps/i386/Versions: ... this.
11914 * sysdeps/i386/elf/Versions: Delete file.
11915 * sysdeps/i386/elf/start.S: Moved to ...
11916 * sysdeps/i386/start.S: ...here.
11917 * sysdeps/i386/elf/configure.in: Merge into...
11918 * sysdeps/i386/configure.in: ...here.
11919 * sysdeps/i386/elf/configure.in: Delete file.
11920 * sysdeps/i386/elf/configure: Delete file.
11921
11922 * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11923 * debug/backtracesyms.c: ... here.
11924 * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11925 * debug/backtracesymsfd.c: ... here.
11926 * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11927 * sysdeps/generic/ifunc-sel.h: ... here.
11928
11929 * sysdeps/unix/i386/start.c: Delete file.
11930 * sysdeps/unix/sparc/start.c: Delete file.
11931 * sysdeps/unix/start.c: Delete file.
11932
11933 * sysdeps/sh/elf/configure.in: Moved to ...
11934 * sysdeps/sh/configure.in: ... here.
11935 * sysdeps/sh/elf/start.S: Moved to ...
11936 * sysdeps/sh/start.S: ... here.
11937 * sysdeps/sh/elf/configure: Delete file.
11938
11939 * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11940 * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11941 * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11942 * sysdeps/powerpc/powerpc64/entry.h: ... here.
11943 * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11944 * sysdeps/powerpc/powerpc64/start.S: here.
11945 * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11946 * sysdeps/powerpc/powerpc64/Makefile: ... this.
11947 * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11948 * sysdeps/powerpc/powerpc64/configure.in: ... this.
11949 * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11950
11951 * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11952 * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11953 * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11954 * sysdeps/powerpc/powerpc32/start.S: ... here.
11955 * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11956 * sysdeps/powerpc/powerpc32/configure.in: ... this.
11957 * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11958
11959 * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11960 * sysdeps/powerpc/ifunc-sel.h: ... here.
11961 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11962 * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11963
11964 * sysdeps/sparc/elf/configure.in: Moved to ...
11965 * sysdeps/sparc/configure.in: ... here.
11966 * sysdeps/sparc/elf/configure: Delete file.
11967 * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11968 * sysdeps/sparc/sparc32/start.S: ... here.
11969 * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11970 * sysdeps/sparc/sparc64/start.S: ... here.
11971 * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11972 * sysdeps/sparc/sparc32/Makefile: ... this.
11973 * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11974 * sysdeps/sparc/sparc64/Makefile: ... this.
11975
11976 * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11977 * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11978 * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11979 * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11980 * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11981 * sysdeps/s390/s390-32/setjmp.S: ... here.
11982 * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11983 * sysdeps/s390/s390-32/configure.in: ... here.
11984 * sysdeps/s390/s390-32/elf/configure: Delete file.
11985 * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11986 * sysdeps/s390/s390-32/start.S: ... here.
11987
11988 * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11989 * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11990 * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11991 * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11992 * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11993 * sysdeps/s390/s390-64/setjmp.S: ... here.
11994 * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11995 * sysdeps/s390/s390-64/configure.in: ... here
11996 * sysdeps/s390/s390-64/elf/configure: Delete file.
11997 * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11998 * sysdeps/s390/s390-64/start.S: ... here.
11999 * sysdeps/s390/s390-64/elf/configure: Delete.
12000
12001 * configure.in: Remove support for elf directories in sysdeps.
12002
12003 * configure: Regenerated.
12004 * sysdeps/i386/configure: Regenerated.
12005 * sysdeps/powerpc/powerpc32/configure: Regenerated.
12006 * sysdeps/powerpc/powerpc64/configure: Regenerated.
12007 * sysdeps/s390/s390-32/configure: Regenerated.
12008 * sysdeps/s390/s390-64/configure: Regenerated.
12009 * sysdeps/sh/configure: Regenerated.
12010 * sysdeps/sparc/configure: Regenerated.
12011 * sysdeps/x86_64/configure: Regenerated.
12012
120132012-03-26 Andreas Schwab <schwab@linux-m68k.org>
12014
12015 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12016
12017 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
12018 denormal result into account.
12019
120202012-03-25 Roland McGrath <roland@hack.frob.com>
12021
12022 * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
12023 Reported by Allan McRae <allan@archlinux.org>.
12024
120252012-03-23 Jeff Law <law@redhat.com>
12026
12027 * nss/getnssent.c (__nss_getent): Fix typo.
12028
120292012-03-23 David S. Miller <davem@davemloft.net>
12030
12031 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12032
120332012-03-23 H.J. Lu <hongjiu.lu@intel.com>
12034
12035 * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
12036 to pad to uint64_t for each field.
12037 (dl_tls_index): Replace unsigned long with uint64_t.
12038
120392012-03-23 Daniel Jacobowitz <dmj@google.com>
12040 Paul Pluzhnikov <ppluzhnikov@google.com>
12041
12042 [BZ #6528]
12043 * grp/Makefile (otherlibs): Don't set it.
12044 * inet/Makefile (otherlibs): Likewise.
12045 * login/Makefile (otherlibs): Likewise.
12046 * nscd/Makefile (otherlibs): Likewise.
12047 * posix/Makefile (otherlibs): Likewise.
12048 * pwd/Makefile (otherlibs): Likewise.
12049 * rt/Makefile (otherlibs): Likewise.
12050 * sunrpc/Makefile (otherlibs): Likewise.
12051 * nss/Makefile (otherlibs): Likewise.
12052 Add libnss_files to routines and static-only-routines.
12053 ($(objpfx)getent): Remove rule.
12054 * resolv/Makefile: Add libnss_dns and libresolv to routines and
12055 static-only-routines.
12056
120572012-03-22 Joseph Myers <joseph@codesourcery.com>
12058
12059 [BZ #13892]
12060 * math/s_cexp.c: Include <float.h>.
12061 (__cexp): Handle exp result overflowing not necessarily
12062 overflowing both real and imaginary parts of result.
12063 * math/s_cexpf.c: Likewise.
12064 * math/s_cexpl.c: Likewise.
12065 * math/libm-test.inc (cexp_test): Add more tests.
12066 * sysdeps/i386/fpu/libm-test-ulps: Update.
12067 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12068
120692012-03-22 H.J. Lu <hongjiu.lu@intel.com>
12070
12071 * include/link.h (ELFW): New macro.
12072 * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
12073 Replace ELF64_R_TYPE with ELFW(R_TYPE).
12074
120752012-03-22 H.J. Lu <hongjiu.lu@intel.com>
12076
12077 * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
12078 with uint64_t.
12079
120802012-03-22 H.J. Lu <hongjiu.lu@intel.com>
12081
12082 * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
12083 declaration.
12084 (struct La_x32_retval): Likewise.
12085
120862012-03-22 H.J. Lu <hongjiu.lu@intel.com>
12087
12088 * sysdeps/x86_64/preconfigure.in: New file.
12089 * sysdeps/x86_64/preconfigure: New generated file.
12090
120912012-03-22 Joseph Myers <joseph@codesourcery.com>
12092
12093 [BZ #13824]
12094 * math/e_exp2l.c: Include <float.h>.
12095 (__ieee754_exp2l): Handle overflow and underflow cases
12096 separately. Only pass fractional part of argument to
12097 __ieee754_expl.
12098 * math/libm-test.inc (exp2_test): Add more tests.
12099
12100 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
12101 negating x to take absolute value.
12102 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
12103 Likewise.
12104 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
12105 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
12106 Likewise.
12107 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
12108 computing low part if x was negated.
12109 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
12110
121112012-03-21 H.J. Lu <hongjiu.lu@intel.com>
12112
12113 * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
12114 la_x32_gnu_pltexit.
12115 (pltexit): Cast int_retval to ptrdiff_t.
12116 * elf/tst-auditmod3b.c: Likewise.
12117 * elf/tst-auditmod4b.c: Likewise.
12118 * elf/tst-auditmod5b.c: Likewise.
12119 * elf/tst-auditmod6b.c: Likewise.
12120 * elf/tst-auditmod6c.c: Likewise.
12121 * elf/tst-auditmod7b.c: Likewise.
12122
12123 * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
12124 and x32_gnu_pltexit.
12125
12126 * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
12127 __ELF_NATIVE_CLASS.
12128 (La_x32_regs): New macro.
12129 (La_x32_retval): Likewise.
12130 (la_x32_gnu_pltenter): New function prototype.
12131 (la_x32_gnu_pltexit): Likewise.
12132
121332012-03-21 Andreas Schwab <schwab@linux-m68k.org>
12134
12135 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
12136 exponent.
12137
12138 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12139
12140 * configure.in (libc_cv_cc_nofma): Check for option to disable
12141 generation of FMA instructions.
12142 * configure: Regenerate.
12143 * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
12144 * sysdeps/ieee754/dbl-64/Makefile: New file.
12145 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12146 Remove brandred-fma4.
12147 (CFLAGS-brandred-fma4.c): Remove.
12148 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
12149 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
12150 define.
12151 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
12152 define.
12153
121542012-03-21 H.J. Lu <hongjiu.lu@intel.com>
12155
12156 * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
12157 LLONG_MAX != LONG_MAX.
12158 (_itoa_word): Use _ITOA_WORD_TYPE on value.
12159 (_fitoa_word): Likewise.
12160 * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
12161 LLONG_MAX != LONG_MAX.
12162 * stdio-common/_itowa.h: Include <_itoa.h>.
12163 (_itowa_word): Use _ITOA_WORD_TYPE on value.
12164 (_itowa): New macro. Defined only if _ITOA_NEEDED is false.
12165 * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro. Defined
12166 only if not defined.
12167 (_ITOA_WORD_TYPE): Likewise.
12168 (_itoa_word): Use _ITOA_WORD_TYPE on value.
12169 Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
12170
121712012-03-21 David S. Miller <davem@davemloft.net>
12172
12173 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12174
121752012-03-21 H.J. Lu <hongjiu.lu@intel.com>
12176
12177 * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
12178 of x86_64 when setting libc_cv_slibdir, libdir and
12179 libc_cv_localedir.
12180 * sysdeps/unix/sysv/linux/configure: Regenerated.
12181
121822012-03-21 Joseph Myers <joseph@codesourcery.com>
12183
12184 * manual/lang.texi (Old Varargs): Remove section.
12185 (How Variadic): Update menu.
12186 (va_start): Do not mention varargs.h.
12187
121882012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12189 Joseph Myers <joseph@codesourcery.com>
12190
12191 * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
12192 link test.
12193 * configure: Regenerated.
12194
121952012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12196
12197 * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
12198 * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
12199 conformtest.pl
12200
122012012-03-21 Joseph Myers <joseph@codesourcery.com>
12202
12203 * NOTES: Remove.
12204 * Makefile (files-for-dist): Remove NOTES.
12205 (NOTES): Remove rule.
12206 * README: Don't refer to NOTES.
12207 * manual/creature.texi: Don't include macros.texi.
12208 * manual/intro.texi (creature.texi): Remove comment referring to
12209 NOTES.
12210
12211 * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
12212 * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
12213 * configure: Regenerated.
12214 * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
12215 LIBC_TRY_CC_OPTION.
12216 (libc_cv_as_i686): Likewise.
12217 (libc_cv_cc_avx): Likewise.
12218 (libc_cv_cc_sse2avx): Likewise.
12219 (libc_cv_cc_fma4): Likewise.
12220 (libc_cv_cc_novzeroupper): Likewise.
12221 * sysdeps/i386/configure: Regenerated.
12222
12223 [BZ #13883]
12224 * sysdeps/i386/fpu/s_cexp.S: Remove.
12225 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12226 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12227 * math/libm-test.inc (cexp_test): Add more tests.
12228 * sysdeps/i386/fpu/libm-test-ulps: Update.
12229 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12230
122312012-03-21 Allan McRae <allan@archlinux.org>
12232
12233 * timezone/Makefile: Do not install iso3166.tab and zone.tab
12234
122352012-03-21 Joseph Myers <joseph@codesourcery.com>
12236
12237 [BZ #13871]
12238 * math/w_exp2.c: Do not include <float.h>.
12239 (o_threshold, u_threshold): Remove.
12240 (__exp2): Calculate result before checking finiteness and calling
12241 __kernel_standard.
12242 * math/w_exp2f.c: Likewise.
12243 * math/w_exp2l.c: Likewise.
12244 * math/libm-test.inc (exp2_test): Require overflow exception for
12245 1e6 input.
12246
12247 [BZ #3866]
12248 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
12249 range of signed 64-bit integers before using fistpll. Remove
12250 checks for whether integers fit in mantissa bits.
12251 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
12252 the range of signed 32-bit integers before using fistpl. Remove
12253 checks for whether integers fit in mantissa bits.
12254 * sysdeps/i386/fpu/e_powl.S (p64): New object.
12255 (__ieee754_powl): Test for y outside the range of signed 64-bit
12256 integers before using fistpll. Reduce 64-bit values to 63-bit
12257 ones as needed.
12258 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
12259 divide-by-zero is raised for zero to large negative powers.
12260 * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
12261 (__ieee754_powl): Test for y outside the range of signed 64-bit
12262 integers before using fistpll. Reduce 64-bit values to 63-bit
12263 ones as needed.
12264 * math/libm-test.inc (pow_test): Add more tests.
12265
122662012-03-20 H.J. Lu <hongjiu.lu@intel.com>
12267
12268 * debug/backtracesymsfd.c: Include <_itoa.h> instead of
12269 <stdio-common/_itoa.h>.
12270 * debug/segfault.c: Likewise.
12271 * elf/dl-cache.c: Likewise.
12272 * elf/dl-minimal.c: Likewise.
12273 * elf/dl-misc.c: Likewise.
12274 * elf/dl-sysdep.c: Likewise.
12275 * elf/dl-version.c: Likewise.
12276 * elf/rtld.c: Likewise.
12277 * hurd/hurdsock.c: Likewise.
12278 * hurd/lookup-retry.c: Likewise.
12279 * malloc/malloc.c: Likewise.
12280 * malloc/mtrace.c: Likewise.
12281 * nscd/nscd_getgr_r.c: Likewise.
12282 * nscd/nscd_getpw_r.c: Likewise.
12283 * nscd/nscd_getserv_r.c: Likewise.
12284 * posix/getopt_init.c: Likewise.
12285 * posix/wordexp.c: Likewise.
12286 * stdio-common/_itoa.c: Likewise.
12287 * stdio-common/printf_fphex.c: Likewise.
12288 * stdio-common/vfprintf.c: Likewise.
12289 * string/_strerror.c: Likewise.
12290 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
12291 * sysdeps/i386/i686/hp-timing.h: Likewise.
12292 * sysdeps/mach/_strerror.c: Likewise.
12293 * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
12294 * sysdeps/mach/hurd/sethostid.c: Likewise.
12295 * sysdeps/mach/hurd/xmknodat.c: Likewise.
12296 * sysdeps/mach/xpg-strerror.c: Likewise.
12297 * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
12298 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
12299 * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
12300 * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
12301 * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
12302 * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
12303 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
12304 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
12305 * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
12306 * sysdeps/unix/sysv/linux/futimes.c: Likewise.
12307 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
12308 * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
12309 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
12310 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
12311 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
12312 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
12313 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
12314 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
12315 * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
12316 * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
12317 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
12318
12319 * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
12320
12321 * stdio-common/_itoa.h: Moved to ...
12322 * sysdeps/generic/_itoa.h: Here.
12323
12324 * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
12325
12326 * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
12327 instead of "_itoa.h" and "_itowa.h".
12328 * stdio-common/vfprintf.: Likewise.
12329
123302012-03-20 H.J. Lu <hongjiu.lu@intel.com>
12331
12332 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
12333 <bits/wordsize.h>.
12334 (__signbitf): Check __x86_64__ instead of __WORDSIZE.
12335 (__signbit): Likwise.
12336 (llrintf): Likwise.
12337 (llrint): Likwise.
12338
123392012-03-20 H.J. Lu <hongjiu.lu@intel.com>
12340
12341 * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
12342 __WORDSIZE != 64.
12343
123442012-03-20 Joseph Myers <joseph@codesourcery.com>
12345
12346 * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
12347 OVERFLOW_EXCEPTION_OK.
12348 * math/libm-test.inc ("Philosophy"): Update comment about
12349 exception testing.
12350 (OVERFLOW_EXCEPTION): Define.
12351 (OVERFLOW_EXCEPTION_OK): Likewise.
12352 (INVALID_EXCEPTION_OK): Renumber.
12353 (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
12354 (IGNORE_ZERO_INF_SIGN): Likewise.
12355 (test_exceptions): Handle FE_OVERFLOW.
12356 (exp10_test): Expect overflow exceptions.
12357 (exp2_test): Likewise.
12358 (expm1_test): Likewise.
12359 (nextafter_test): Likewise.
12360 (pow_test): Likewise.
12361 (scalbn_test): Likewise.
12362 (scalbln_test): Likewise.
12363
123642012-03-19 H.J. Lu <hongjiu.lu@intel.com>
12365
12366 * sysdeps/x86_64/bits/atomic.h
12367 (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
12368 64bit integer.
12369 (atomic_exchange_acq): Likewise.
12370 (__arch_exchange_and_add_body): Likewise.
12371 (__arch_add_body): Likewise.
12372 (atomic_add_negative): Likewise.
12373 (atomic_add_zero): Likewise.
12374
123752012-03-19 H.J. Lu <hongjiu.lu@intel.com>
12376
12377 * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
12378 (fenv_t): Check __x86_64__ instead of __WORDSIZE.
12379
123802012-03-19 H.J. Lu <hongjiu.lu@intel.com>
12381
12382 * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
12383 Check __x86_64__ instead of __WORDSIZE.
12384
123852012-03-19 H.J. Lu <hongjiu.lu@intel.com>
12386
12387 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
12388
123892012-03-19 David S. Miller <davem@davemloft.net>
12390
12391 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12392
12393 * sysdeps/sparc/fpu/fenv_private.h: New file.
12394 * sysdeps/sparc/fpu/math_private.h: Use it.
12395 (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
12396 Remove.
12397 (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
12398 (libc_feholdexcept_setroundl): Remove.
12399 (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
12400 Remove.
12401 (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
12402 (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
12403
124042012-03-19 H.J. Lu <hongjiu.lu@intel.com>
12405
12406 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
12407 int64_t instead of long int.
12408 (INSERT_WORDS64): Likwise.
12409
124102012-03-19 H.J. Lu <hongjiu.lu@intel.com>
12411
12412 * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
12413 _Unwind_GetCFA return to _Unwind_Ptr first.
12414
124152012-03-19 Joseph Myers <joseph@codesourcery.com>
12416
12417 [BZ #13629]
12418 * math/s_clog.c: Include <float.h>.
12419 (__clog): Scale large or subnormal inputs.
12420 * math/s_clogf.c: Likewise.
12421 * math/s_clogl.c: Likewise.
12422 * math/s_clog10.c: Include <float.h>.
12423 (M_LOG10_2): Define.
12424 (__clog10): Scale large or subnormal inputs.
12425 * math/s_clog10f.c: Likewise.
12426 * math/s_clog10l.c: Likewise.
12427 * math/libm-test.inc (clog_test): Add more tests.
12428 (clog10_test): Likewise.
12429 * sysdeps/i386/fpu/libm-test-ulps: Update.
12430 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12431
12432 [BZ #11451]
12433 * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
12434 x and y.
12435 * math/libm-test.inc (atan2_test): Add another test.
12436
12437 * Makerules (common-objdir-compile): Remove.
12438 * sysdeps/unix/Makefile (config-generated): Do not add
12439 $(unix-generated) to variable.
12440 [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
12441 [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
12442 Remove rule.
12443 [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
12444 Likewise.
12445 [generic bits/local_lim.h] (before-compile): Do not append to
12446 variable.
12447 [generic bits/local_lim.h] (common-generated): Likewise.
12448 [generic sys/param.h] (before-compile): Do not append to variable.
12449 [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
12450 [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
12451 [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
12452 [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
12453 include.
12454 [generic sys/param.h] (sys/param.h-includes): Remove variable.
12455 [generic sys/param.h] (sys/param.h-includes): Remove rule.
12456 [generic sys/param.h] ($(addprefix
12457 $(common-objpfx),$(sys/param.h-includes))): Likewise.
12458 [generic sys/param.h] (common-generated): Do not append to
12459 variable.
12460 [generic sys/param.h] (sysdep_headers): Likewise.
12461 [generic bits/errno.h] (before-compile): Do not append to
12462 variable.
12463 [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12464 rule.
12465 [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12466 [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12467 [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12468 [generic bits/errno.h] (common-generated): Do not append to
12469 variable.
12470 [generic bits/ioctls.h] (before-compile): Do not append to
12471 variable.
12472 [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12473 rule.
12474 [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12475 [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12476 [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12477 rule.
12478 [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12479 [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12480 [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12481 [generic bits/ioctls.h] (common-generated): Do not append to
12482 variable.
12483 [generic sys/syscall.h] (syscall.h): Remove variable.
12484 [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12485 rule.
12486 [generic sys/syscall.h] (before-compile): Do not append to
12487 variable.
12488 [generic sys/syscall.h] (common-generated): Likewise.
12489 * sysdeps/unix/errnos-tmpl.c: Remove file.
12490 * sysdeps/unix/errnos.awk: Likewise.
12491 * sysdeps/unix/ioctls-tmpl.c: Likewise.
12492 * sysdeps/unix/ioctls.awk: Likewise.
12493 * sysdeps/unix/mk-local_lim.c: Likewise.
12494 * sysdeps/unix/snarf-ioctls: Likewise.
12495
124962012-03-19 Richard Henderson <rth@twiddle.net>
12497
12498 * sysdeps/i386/fpu/fenv_private.h: New file.
12499 * sysdeps/i386/fpu/math_private.h: Use it.
12500 (math_opt_barrier, math_force_eval): Remove.
12501 (libc_feholdexcept_setround_53bit): Remove.
12502 (libc_feupdateenv_53bit): Remove.
12503 * sysdeps/x86_64/fpu/math_private.h: Likewise.
12504 (math_opt_barrier, math_force_eval): Remove.
12505 (libc_feholdexcept): Remove.
12506 (libc_feholdexcept_setround): Remove.
12507 (libc_fetestexcept, libc_fesetenv): Remove.
12508 (libc_feupdateenv_test): Remove.
12509 (libc_feupdateenv, libc_feholdsetround): Remove.
12510 (libc_feresetround): Remove.
12511
12512 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12513 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12514
12515 * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12516 (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12517 (libc_feupdateenv_testl): New.
12518 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12519 (libc_feupdateenv_testf): New.
12520 (libc_feupdateenv): Use libc_feupdateenv_test.
12521 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12522 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12523
12524 * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12525 (libc_feholdsetroundf, libc_feholdsetroundl): New.
12526 (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12527 (libc_feresetround_noex): New.
12528 (libc_feresetround_noexf): New.
12529 (libc_feresetround_noexl): New.
12530 (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12531 (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12532 (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12533 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12534 SET_RESTORE_ROUND.
12535 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12536 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12537 (__cos): Likewise.
12538 * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12539 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12540 SET_RESTORE_ROUND_NOEX.
12541 * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12542 SET_RESTORE_ROUND_NOEXF.
12543 * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12544 * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12545 (libc_feholdsetroundf): New.
12546 (libc_feresetround, libc_feresetroundf): New.
12547
12548 * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12549 (libc_feholdexcept_setround_53bit): Convert from macro to function.
12550 (libc_feupdateenv_53bit): Likewise. Don't force _FPU_EXTENDED.
12551
12552 * sysdeps/generic/math_private.h: Include <fenv.h>.
12553 (default_libc_feholdexcept): New.
12554 (default_libc_feholdexcept_setround): New.
12555 (default_libc_fesetenv, default_libc_feupdateenv): New.
12556 (libc_feholdexcept): Only define if undefined.
12557 (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12558 (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12559 (libc_feholdexcept_setroundl): Likewise.
12560 (libc_feholdexcept_setround_53bit): Likewise.
12561 (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12562 (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12563 (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12564 (libc_feupdateenv_53bit): Likewise.
12565 * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12566 (libc_feholdexcept): Convert from macro to inline function.
12567 (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12568 (libc_fesetenv, libc_feupdateenv): Likewise.
12569
12570 * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12571 not previously defined.
12572 (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12573 (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12574 (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12575 * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12576 * sysdeps/ieee754/flt-32/math_private.h: New file.
12577 * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12578 math_private.h below SET_FLOAT_WORD.
12579 (__isnan, __isinf_ns, __finite): Remove.
12580 (__isnanf, __isinf_nsf, __finitef): Remove.
12581
125822012-03-18 Andreas Schwab <schwab@linux-m68k.org>
12583
12584 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12585
125862012-03-17 David S. Miller <davem@davemloft.net>
12587
12588 [BZ #6471]
12589 * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12590 for 2.16.
12591
125922012-03-16 David S. Miller <davem@davemloft.net>
12593
12594 * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12595 warnings.
12596
12597 [BZ #6471]
12598 * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12599 properly.
12600 * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12601 * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12602 sysdep_routines when subdir is sysvipc.
12603 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12604 __getshmlba helper.
12605
12606 * sysdeps/sparc/fpu/libm-test/ulps: Update.
12607
126082012-03-16 H.J. Lu <hongjiu.lu@intel.com>
12609
12610 * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12611 [__LP64__].
12612
126132012-03-16 H.J. Lu <hongjiu.lu@intel.com>
12614
12615 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12616 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12617 (__lround): Renamed to ...
12618 (__llround): This. Replace long int with long long int.
12619 Define lround functions as aliases of llround functions.
12620 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12621
126222012-03-16 H.J. Lu <hongjiu.lu@intel.com>
12623
12624 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12625 Use greg_t on sp. Use unsigned int on idx_uc_link. Cast
12626 adresses to uintptr_t. Replace "long int" and "unsigned long
12627 int" with "greg_t" on va_arg.
12628
126292012-03-16 H.J. Lu <hongjiu.lu@intel.com>
12630
12631 * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12632 * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12633
12634 * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12635 Move e_machine check before EI_CLASS check. Handle x32
12636 libraries. Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12637 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12638 SKIP_EM_IA_64 and include
12639 <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12640
12641 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12642 Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12643 (add_system_dir): New macro.
12644
12645 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12646 (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12647
126482012-03-16 Joseph Myers <joseph@codesourcery.com>
12649
12650 [BZ #2551]
12651 [BZ #2552]
12652 [BZ #2553]
12653 [BZ #2554]
12654 [BZ #2562]
12655 [BZ #2563]
12656 [BZ #2565]
12657 [BZ #2566]
12658 [BZ #2576]
12659 * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12660 (y0): Likewise.
12661 * math/w_j0f.c (j0f): Likewise.
12662 (y0f): Likewise.
12663 * math/w_j0l.c (__j0l): Likewise.
12664 (__y0l): Likewise.
12665 * math/w_j1.c (j1): Likewise.
12666 (y1): Likewise.
12667 * math/w_j1f.c (j1f): Likewise.
12668 (y1f): Likewise.
12669 * math/w_j1l.c (__j1l): Likewise.
12670 (__y1l): Likewise.
12671 * math/w_jn.c (jn): Likewise.
12672 (yn): Likewise.
12673 * math/w_jnf.c (jnf): Likewise.
12674 (ynf): Likewise.
12675 * math/w_jnl.c (__jnl): Likewise.
12676 (__ynl): Likewise.
12677 * math/libm-test.inc (j0_test): Add more tests.
12678 (j1_test): Likewise.
12679 (jn_test): Likewise. Add trailing semicolon to existing test.
12680 (y0_test): Likewise.
12681 (y1_test): Likewise.
12682 * sysdeps/i386/fpu/libm-test-ulps: Update.
12683 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12684
12685 [BZ #13851]
12686 [BZ #13854]
12687 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12688 libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12689 * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12690 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12691 (__tanl): Set errno for infinite argument.
12692 * sysdeps/i386/fpu/mptan.c: Remove.
12693 * sysdeps/i386/fpu/s_tan.S: Likewise.
12694 * sysdeps/i386/fpu/s_tanl.S: Likewise.
12695 * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12696 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12697 * math/libm-test.inc (tan_test): Add more tests and enable more
12698 tests for double and long double.
12699 * sysdeps/i386/fpu/libm-test-ulps: Update.
12700 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12701
127022012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12703
12704 * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12705 (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12706
127072012-03-16 Roland McGrath <roland@hack.frob.com>
12708
12709 * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12710 * configure.in: Use it for both main tree and add-ons.
12711 * configure: Regenerated.
12712
127132012-03-16 H.J. Lu <hongjiu.lu@intel.com>
12714
12715 * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12716
127172012-03-16 Joseph Myers <joseph@codesourcery.com>
12718
12719 * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12720 in comment.
12721
12722 [BZ #13851]
12723 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12724 * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12725 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12726 * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12727 * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12728 infinite argument.
12729 * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12730 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12731 != 0 for prec == 2.
12732 * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12733 * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12734 * sysdeps/i386/fpu/s_cosl.S: Likewise.
12735 * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12736 * sysdeps/i386/fpu/s_sinl.S: Likewise.
12737 * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12738 * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12739 * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12740 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12741 * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12742 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12743 * math/libm-test.inc (cos_test): Add more tests and enable more
12744 tests for long double.
12745 (sin_test): Likewise.
12746 (sincos_test): Likewise.
12747 * sysdeps/i386/fpu/libm-test-ulps: Update.
12748 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12749
127502012-03-16 David S. Miller <davem@davemloft.net>
12751
12752 * sysdeps/sparc/fpu/math_private.h: New file.
12753
127542012-03-15 David S. Miller <davem@davemloft.net>
12755
12756 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12757 file.
12758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12759 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12760 file.
12761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12762 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12763 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12764 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12765 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12766 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12767 sysdep routines.
12768 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12769
12770 * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12771 * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12772
12773 * sysdeps/sparc/sparc-ifunc.h: New file.
12774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12775 sparc-ifunc.h
12776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12777 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12778 Likewise.
12779 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12780 Likewise.
12781 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12782 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12783 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12784 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12785 Likewise.
12786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12787 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12791 Likewise.
12792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12793 Likewise.
12794 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12795 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12796 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12798 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12799 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12800 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12801 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12802 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12803 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12804 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12805 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12806 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12807 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12808 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12809 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12810 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12811 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12812 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12813 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12814 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12815 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12816 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12817 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12818
128192012-03-15 Andreas Schwab <schwab@linux-m68k.org>
12820
12821 * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12822 scaling.
12823 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12824
128252012-03-15 Andreas Jaeger <aj@suse.de>
12826
12827 [BZ #13852]
12828 * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12829 ieee754/flt-32 implementation for sin, cos and sincos.
12830 * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12831 * sysdeps/i386/fpu/s_cosf.S: Likewise.
12832 * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12833 * sysdeps/i386/fpu/s_sinf.S: Likewise.
12834 * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12835 ieee754/flt-32 implementation for tan.
12836
12837 * math/libm-test.inc (cos_test): Enable some large input tests for
12838 float as well
12839 (sin_test): Likewise.
12840 (sincos_test): Likewise.
12841 (tan_test): Add tests for large input.
12842
12843 * sysdeps/i386/fpu/libm-test-ulps: Update.
12844
128452012-03-15 Andreas Jaeger <aj@suse.de>
12846
12847 [BZ #13658]
12848 * math/libm-test.inc (cos_test): Add more test cases.
12849 (sin_test): Likewise.
12850 (sincos_test): Likewise.
12851
128522012-03-15 Andreas Jaeger <aj@suse.de>
12853
12854 [BZ #13837]
12855 * math/libm-test.inc (cos_test): Add a test case for large input
12856 value.
12857 (sin_test): Likewise.
12858 (sincos_test): Likewise.
12859
128602012-03-15 Andreas Jaeger <aj@suse.de>,
12861 Joseph Myers <joseph@codesourcery.com>
12862
12863 [BZ #13658]
12864 * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12865 x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12866 * sysdeps/i386/fpu/branred.c: Likewise.
12867 * sysdeps/i386/fpu/dosincos.c: Likewise.
12868 * sysdeps/i386/fpu/mpa.c: Likewise.
12869 * sysdeps/i386/fpu/s_cos.S: Likewise.
12870 * sysdeps/i386/fpu/s_sin.S: Likewise.
12871 * sysdeps/i386/fpu/s_sincos.S: Likewise.
12872 * sysdeps/i386/fpu/sincos32.c: Likewise.
12873
12874 * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12875 Define.
12876 (libc_feupdateenv_53bit): Define.
12877 * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12878 Define.
12879 (libc_feupdateenv_53bit): Define.
12880
12881 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12882 53 bit (without extend i386 double precision).
12883
12884 * math/libm-test.inc (sincos_test): Add tests for large input.
12885 (sin): Likewise.
12886 (cos): Likewise.
12887
12888 * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12889
128902012-03-15 Andreas Schwab <schwab@linux-m68k.org>
12891
12892 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12893
128942012-03-15 David S. Miller <davem@davemloft.net>
12895
12896 * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12897 * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12898 * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12899 * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12900 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12901 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12902 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12903 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12904 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12905 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12906 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12907 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12908 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12909 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12910 * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12912 file.
12913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12915 file.
12916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12918 file.
12919 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12921 file.
12922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12923 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12924 fmin/fmax sysdep routines.
12925 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12926
129272012-03-14 David S. Miller <davem@davemloft.net>
12928
12929 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12930 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12931 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12932 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12933 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12934 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12935 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12936 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12937 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12938 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12939 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12940 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12941 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12942 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12943 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12944 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12945 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12946 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12947 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12948 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12949 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12950 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12951 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12952 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12953 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12954 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12955 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12956 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12957 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12958 routines.
12959 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12960 file.
12961 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12962 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12963 file.
12964 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12965 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12966 file.
12967 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12968 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12969 file.
12970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12971 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12972 file.
12973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12975 file.
12976 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12977 file.
12978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12979 file.
12980 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12981 file.
12982 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12983 New file.
12984 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12985 file.
12986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12987 file.
12988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12989 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12990 file.
12991 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12992 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12993 file.
12994 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12995 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12996 file.
12997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12998 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12999 VIS3 routines.
13000
13001 * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
13002 New file.
13003
13004 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13005
13006 * sysdeps/sparc/configure.in: New file.
13007 * sysdeps/sparc/configure: Generate.
13008 * configure.in (libc_cv_sparc_as_vis3): Substitute.
13009 * configure: Regenerate.
13010 * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
13011 * config.make.in (have-as-vis3): New.
13012 * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
13013 available use -Av9d instead of -Av9a.
13014 * sysdeps/sparc/sparc64/Makefile: Likewise.
13015 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
13016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
13017 New file.
13018 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
13019 file.
13020 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
13021 New file.
13022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
13023 file.
13024 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
13025 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
13026 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
13027 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
13028 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
13029
13030 * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
13031 fzeros/fnegs to load 0x80000000 into a float register instead of
13032 using the stack.
13033 * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
13034
130352012-03-14 Joseph Myers <joseph@codesourcery.com>
13036
13037 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13038 bits/syscall.h.
13039 ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
13040 ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
13041 ($(inst_includedir)/bits/syscall.h): Remove rule.
13042 ($(objpfx)bits/syscall.d): Include instead of
13043 $(objpfx)syscall-list.d.
13044 (generated): Change syscall-list.h and syscall-list.d to
13045 bits/syscall.h and bits/syscall.d.
13046
130472012-03-14 Roland McGrath <roland@hack.frob.com>
13048
13049 [BZ #13846]
13050 * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
13051
130522012-03-14 Joseph Myers <joseph@codesourcery.com>
13053
13054 [BZ #13841]
13055 * math/s_csqrt.c: Include <float.h>.
13056 (__csqrt): Scale large or subnormal inputs.
13057 * math/s_csqrtf.c: Likewise.
13058 * math/s_csqrtl.c: Likewise.
13059 * math/libm-test.inc (csqrt_test): Add more tests.
13060 * sysdeps/i386/fpu/libm-test-ulps: Update.
13061 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13062
13063 [BZ #13840]
13064 * math/libm-test.inc (hypot_test): Add more tests.
13065
130662012-03-13 David S. Miller <davem@davemloft.net>
13067
13068 [BZ #13840]
13069 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
13070 double-precision for the calculation instead of scaling.
13071
130722012-03-13 Joseph Myers <joseph@codesourcery.com>
13073
13074 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
13075 manipulate bits before adding and subtracting TWO52[sx].
13076 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
13077 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
13078 Likewise.
13079 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
13080
130812012-03-13 David S. Miller <davem@davemloft.net>
13082
13083 * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
13084 * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
13085 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
13086 rtld-global-offsets.h
13087 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13088
13089 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
13090 large parameters.
13091
13092 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
13093
13094 * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
13095 'err' in the ifdef scope in which it is actually used.
13096
13097 * nss/nss_db/db-init.c: Include string.h
13098
130992012-03-12 David S. Miller <davem@davemloft.net>
13100
13101 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
13102 masking out of the most significant byte of random value used.
13103 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13104 Fix coding style in previous change.
13105
13106 * sysdeps/unix/sysv/linux/kernel-features.h
13107 (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
13108 (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
13109 expression.
13110 (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
13111 later.
13112
131132012-03-11 David S. Miller <davem@davemloft.net>
13114
13115 * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
13116 (__makecontext): Fix signedness of pointer casts setting up 'sp'.
13117 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
13118 for 'resultvar' otherwise things get truncated on 64-bit.
13119
13120 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13121 Fix masking out of the most significant byte of random value used.
13122
13123 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13124
131252012-03-10 Andreas Schwab <schwab@linux-m68k.org>
13126
13127 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13128
131292012-03-09 David S. Miller <davem@davemloft.net>
13130
13131 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
13132 variables with appropriate CPP guards.
13133 * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
13134 frame pointer, not the stack pointer. Correct layout comments. Fix test
13135 on resulting framesize and the management of the outregs buffer for pltexit.
13136 Preserve floating point return values across _dl_call_pltexit call.
13137 * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
13138 framesize and the management of the outregs buffer for pltexit.
13139 Preserve floating point return values across _dl_call_pltexit
13140 call.
13141 * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
13142 la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
13143 (print_exit): Fix format string for return register value.
13144
131452012-03-10 Joseph Myers <joseph@codesourcery.com>
13146
13147 * sunrpc/Makefile (others): Add rpcgen.
13148 ($(objpfx)rpcgen): Remove special build rule and dependency on
13149 libc.
13150 * sunrpc/rpcgen.c: New file.
13151
131522012-03-09 Paul Eggert <eggert@cs.ucla.edu>
13153
13154 [BZ #13673]
13155 * posix/bug-regex33.c: Replace FSF snail mail address with URL.
13156 * stdio-common/bug-vfprintf-nargs.c: Likewise.
13157 * sysdeps/i386/crti.S: Likewise.
13158 * sysdeps/i386/crtn.S: Likewise.
13159 * sysdeps/powerpc/powerpc32/crti.S: Likewise.
13160 * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
13161 * sysdeps/powerpc/powerpc64/crti.S: Likewise.
13162 * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
13163 * sysdeps/sh/crti.S: Likewise.
13164 * sysdeps/sh/crtn.S: Likewise.
13165 * sysdeps/x86_64/fpu/e_expf.S: Likewise.
13166
13167 [BZ #13673]
13168 * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
13169 with URL.
13170 * locale/programs/locfile-kw.gperf: Likewise.
13171 * locale/programs/charmap-kw.h: Regenerated.
13172 * locale/programs/locfile-kw.h: Likewise.
13173
13174 [BZ #13673]
13175 * intl/plural.y: Replace FSF snail mail address with URL.
13176 * intl/plural.c: Regenerated.
13177
131782012-03-09 Richard Henderson <rth@twiddle.net>
13179
13180 * include/math_private.h: Remove file.
13181 * math/math_private.h: Move file ...
13182 * sysdeps/generic/math_private.h: ... here.
13183
13184 * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
13185 * sysdeps/powerpc/fpu/math_private.h: Likewise.
13186 * sysdeps/x86_64/fpu/math_private.h: Likewise.
13187
13188 * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
13189 and <math_private.h>.
13190 * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13191 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13192 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13193 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13194 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13195 * sysdeps/ieee754/dbl-64/branred.c: Likewise.
13196 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13197 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13198 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13199 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13200 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13201 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13202 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13203 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13204 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13205 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13206 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13207 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13208 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13209 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13210 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13211 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13212 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13213 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13214 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13215 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13216 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13217 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13218 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13219 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13220 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13221 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13222 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
13223 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13224 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13225 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13226 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13227 * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13228 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13229 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13230 * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
13231 * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13232 * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13233 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
13234 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
13235 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13236 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13237 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13238 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13239 * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13240 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13241 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13242 * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
13243 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13244 * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
13245 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13246 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13247 * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
13248 * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
13249 * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
13250 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13251 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13252 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13253 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13254 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
13255 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13256 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13257 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13258 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
13259 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
13260 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
13261 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13262 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
13263 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13264 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
13265 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
13266 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
13267 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13268 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
13269 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13270 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
13271 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13272 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
13273 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13274 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13275 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
13276 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
13277 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13278 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
13279 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13280 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13281 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
13282 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13283 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13284 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
13285 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
13286 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13287 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13288 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13289 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13290 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
13291 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
13292 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
13293 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
13294 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13295 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
13296 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13297 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
13298 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13299 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13300 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13301 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13302 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13303 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13304 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
13305 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13306 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13307 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13308 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13309 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13310 * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13311 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13312 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13313 * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
13314 * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13315 * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13316 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
13317 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
13318 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13319 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13320 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13321 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13322 * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13323 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13324 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13325 * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13326 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13327 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13328 * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
13329 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13330 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13331 * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13332 * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13333 * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
13334 * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
13335 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13336 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13337 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13338 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13339 * sysdeps/ieee754/k_standard.c: Likewise.
13340 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
13341 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
13342 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13343 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
13344 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13345 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
13346 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
13347 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13348 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
13349 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13350 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13351 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
13352 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
13353 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
13354 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
13355 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13356 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
13357 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
13358 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13359 * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
13360 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13361 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13362 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13363 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13364 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13365 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
13366 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13367 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13368 * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13369 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13370 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13371 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13372 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13373 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13374 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
13375 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13376 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13377 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
13378 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
13379 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13380 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13381 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13382 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13383 * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13384 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13385 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13386 * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13387 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13388 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13389 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13390 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13391 * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
13392 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13393 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
13394 * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13395 * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13396 * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
13397 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
13398 * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13399 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13400 * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13401 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13402 * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13403 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13404 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13405 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13406 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13407 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13408 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13409 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13410 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13411 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13412 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13413 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13414 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13415 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13416 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
13417 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13418 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13419 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
13420 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13421 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13422 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13423 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13424 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13425 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13426 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13427 * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
13428 * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
13429 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13430 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
13431 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13432 * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
13433 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13434 * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13435 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13436 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
13437 * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
13438 * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
13439 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
13440 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13441 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13442 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13443 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13444 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
13445 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13446 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13447 * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
13448 * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
13449 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13450 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13451 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13452 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13453 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13454 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13455 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13456 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13457 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13458 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13459 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13460 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13461 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13462 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13463 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13464 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13465 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13466 * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13467 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13468 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13469 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13470 * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13471 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13472 * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13473 * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13474 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13475 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13476 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13477 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13478 * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13479 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13480 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13481 * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13482 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13483 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13484 * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13485 * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13486 * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13487 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13488 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13489 * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13490 * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13491 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13492 * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13493 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13494 * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13495 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13496 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13497 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13498 * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13499 * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13500 * sysdeps/ieee754/s_lib_version.c: Likewise.
13501 * sysdeps/ieee754/s_matherr.c: Likewise.
13502 * sysdeps/ieee754/s_signgam.c: Likewise.
13503 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13504 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13505 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13506 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13507 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13508 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13509 * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13510 * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13511 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13512 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13513 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13514 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13515 * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13516 * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13517 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13518 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13519 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13520 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13521 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13522 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13523 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13524
135252012-03-09 Joseph Myers <joseph@codesourcery.com>
13526
13527 * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13528 * sunrpc/rpc_main.c: Likewise.
13529 * sunrpc/rpc_svcout.c: Likewise.
13530
135312012-03-09 David S. Miller <davem@davemloft.net>
13532
13533 * include/math_private.h: New file.
13534
135352012-03-09 Joseph Myers <joseph@codesourcery.com>
13536
13537 * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13538 * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13539 * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13540 from <bits/socket_type.h>.
13541 (enum __socket_type): Don't define here.
13542 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13543 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13544 bits/socket_type.h.
13545
13546 [BZ #13566]
13547 * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13548 checking __USE_GNU.
13549
13550 * Makerules ($(inst_includedir)/%.h): New rule.
13551 * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13552 (install-others): Remove variable setting.
13553 ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13554
135552012-03-08 Richard Henderson <rth@twiddle.net>
13556
13557 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13558 from macro to inline function; merge with the
13559 !__LIBC_INTERNAL_MATH_INLINES version.
13560 (__ieee754_sqrtf): Likewise.
13561
13562 * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13563 to inline function.
13564 (__rintf, __floor, __floorf): Likewise.
13565
13566 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13567 macro to inline function.
13568 (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13569
13570 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13571 not <math/math_private.h>.
13572
135732012-03-08 David S. Miller <davem@davemloft.net>
13574
13575 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13576 copyright year.
13577 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13578
135792012-03-08 Thomas Schwinge <thomas@codesourcery.com>
13580
13581 * resolv/gai_misc.c (handle_requests): Fix struct timespec
13582 normalization.
13583 * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13584 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13585
135862012-03-08 Ulrich Drepper <drepper@gmail.com>
13587
13588 * stdio-common/tst-fphex.c: Various cleanups. The macros cannot
13589 be defined individually, they must be defined as a block. Define
13590 S for printing a string instead of hidint the different by using a
13591 macro for adding the 'l'.
13592 * stdio-common/tst-fphex-wide.c: Adjust.
13593
135942012-03-07 Marek Polacek <polacek@redhat.com>
13595
13596 * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13597
135982012-03-08 Marek Polacek <polacek@redhat.com>
13599
13600 [BZ #13806]
13601 * stdio-common/Makefile (tests): Add tst-fphex-wide.
13602 * stdio-common/tst-fphex.c: Define a few macros to make the
13603 test reusable. Use them.
13604 * stdio-common/tst-fphex-wide.c: New file.
13605
136062012-03-08 Joseph Myers <joseph@codesourcery.com>
13607
13608 [BZ #6911]
13609 * manual/macros.texi (gnusystems): New macro.
13610 (nongnusystems): Likewise.
13611 (gnulinuxhurdsystems): Likewise.
13612 (gnuhurdsystems): Likewise..
13613 (gnulinuxsystems): Likewise.
13614 * manual/charset.texi: Use new macros or @theglibc{} to refer to
13615 variants of the GNU system, not "GNU system".
13616 * manual/conf.texi: Likewise.
13617 * manual/errno.texi: Likewise. Update example of errno macro
13618 expansion.
13619 * manual/filesys.texi: Likewise.
13620 (getumask): Document as specific to GNU/Hurd.
13621 * manual/install.texi: Likewise. Reword some references to
13622 GNU/Linux.
13623 * manual/intro.texi: Likewise.
13624 * manual/io.texi: Likewise.
13625 (File Name Portability): Detail which constraints are inapplicable
13626 to all GNU systems and which are only inapplicable to GNU/Hurd.
13627 * manual/job.texi: Likewise.
13628 * manual/llio.texi: Likewise.
13629 (O_NOCTTY): Document as present on GNU/Linux.
13630 * manual/maint.texi: Likewise.
13631 * manual/memory.texi: Likewise.
13632 * manual/pattern.texi: Likewise.
13633 * manual/pipe.texi: Likewise.
13634 * manual/process.texi: Likewise.
13635 * manual/resource.texi: Likewise.
13636 (RUSAGE_CHILDREN): Remove statement about specifying a particular
13637 child on GNU/Hurd.
13638 * manual/setjmp.texi: Likewise.
13639 * manual/signal.texi: Likewise.
13640 * manual/startup.texi: Likewise.
13641 * manual/stdio.texi: Likewise.
13642 * manual/terminal.texi: Likewise.
13643 (ONLCR): Document as POSIX.
13644 (OXTABS): Document availability on GNU/Linux as XTABS.
13645 (ONOEOT): Document availability separately from other bits.
13646 (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13647 * manual/time.texi: Likewise.
13648 * manual/users.texi: Likewise.
13649 * INSTALL: Regenerated.
13650 * sysdeps/gnu/errlist.c: Regenerated.
13651
13652 * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13653 * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13654 (libc_cv_ctors_header): Likewise. Use asm ("") instead of calling
13655 puts.
13656 * configure: Regenerated.
13657
136582012-03-07 Joseph Myers <joseph@codesourcery.com>
13659
13660 * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13661 default includes instead of AC_HEADER_CHECK.
13662 * sysdeps/i386/configure: Regenerated.
13663
13664 [BZ #10716]
13665 * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13666 * math/s_cacoshf.c (__cacoshf): Likewise.
13667 * math/s_cacoshl.c (__cacoshl): Likewise.
13668 * math/s_casinh.c (__casinh): Set signs of result from argument.
13669 * math/s_casinhf.c (__casinhf): Likewise.
13670 * math/s_casinhl.c (__casinhl): Likewise.
13671 * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13672 (casinh_test): Add more tests.
13673 * sysdeps/i386/fpu/libm-test-ulps: Update.
13674 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13675
136762012-03-07 Ulrich Drepper <drepper@gmail.com>
13677
13678 * po/zh_TW.po: Update from translation team.
13679
13680 * login/Makefile (distribute): Remove variable.
13681 * catgets/Makefile: Likewise.
13682 * mach/Makefile: Likewise.
13683 * malloc/Makefile: Likewise.
13684 * misc/Makefile: Likewise.
13685 * iconv/Makefile: Likewise.
13686 * nscd/Makefile: Likewise.
13687 * hurd/Makefile: Likewise.
13688 * manual/Makefile: Likewise.
13689 * locale/Makefile: Likewise.
13690 * intl/Makefile: Likewise.
13691 * conform/Makefile: Likewise.
13692 * nss/Makefile: Likewise.
13693 * time/Makefile: Likewise.
13694 * soft-fp/Makefile: Likewise.
13695 * dirent/Makefile: Likewise.
13696 * gmon/Makefile: Likewise.
13697 * po/Makefile: Likewise.
13698 * rt/Makefile: Likewise.
13699 * socket/Makefile: Likewise.
13700 * math/Makefile: Likewise.
13701 * signal/Makefile: Likewise.
13702 * debug/Makefile: Likewise.
13703 * elf/Makefile: Likewise.
13704 * timezone/Makefile: Likewise.
13705 * stdlib/Makefile: Likewise.
13706 * iconvdata/Makefile: Likewise.
13707 * sunrpc/Makefile: Likewise.
13708 * io/Makefile: Likewise.
13709 * argp/Makefile: Likewise.
13710 * inet/Makefile: Likewise.
13711 * hesiod/Makefile: Likewise.
13712 * grp/Makefile: Likewise.
13713 * csu/Makefile: Likewise.
13714 * wctype/Makefile: Likewise.
13715 * crypt/Makefile: Likewise.
13716 * libio/Makefile: Likewise.
13717 * string/Makefile: Likewise.
13718 * nis/Makefile: Likewise.
13719 * resolv/Makefile: Likewise.
13720 * stdio-common/Makefile: Likewise.
13721 * wcsmbs/Makefile: Likewise.
13722 * dlfcn/Makefile: Likewise.
13723 * posix/Makefile: Likewise.
13724
13725 [BZ #6959]
13726 * timezone/Makefile: Don't install timezone files, just the programs
13727 and scripts.
13728
137292012-03-06 Ulrich Drepper <drepper@gmail.com>
13730
13731 * nss/databases.def: Add missing gshadow entry.
13732
13733 * stdio-common/vfprintf.c: Fix formatting. Missing copyright update.
13734
137352012-03-06 Marek Polacek <polacek@redhat.com>
13736
13737 [BZ #13726]
13738 * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13739 * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13740 * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13741 * stdio-common/tst-long-dbl-fphex.c: New file.
13742
137432012-03-06 David S. Miller <davem@davemloft.net>
13744
13745 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13746 (set_obp_int): New function.
13747 (get_obp_int): New function.
13748 (__get_clockfreq_via_dev_openprom): Likewise.
13749 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13750 Avoid unused variable warnings on 'val' and use builtin_expect.
13751 (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13752 __builtin_expect.
13753 (INLINE_CLONE_SYSCALL): Likewise.
13754
137552012-03-05 David S. Miller <davem@davemloft.net>
13756
13757 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13758
137592012-03-05 Andreas Schwab <schwab@linux-m68k.org>
13760
13761 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13762
13763 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13764 only for |x| >= 40.
13765 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13766
137672012-03-05 H.J. Lu <hongjiu.lu@intel.com>
13768
13769 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13770 Replace gettimeofday with __vdso_gettimeofday.
13771
13772 * sysdeps/unix/sysv/linux/x86_64/init-first.c
13773 (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13774 __vdso_clock_gettime and __vdso_getcpu.
13775
13776 * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13777 time with __vdso_time.
13778
137792012-03-05 Joseph Myers <joseph@codesourcery.com>
13780
13781 * manual/lang.texi (size_t): Note types to which size_t may be
13782 equivalent with the GNU C Library, but do not describe when
13783 differences between them are significant.
13784
137852012-03-05 Andreas Jaeger <aj@suse.de>
13786
13787 * sysdeps/i386/fpu/libm-test-ulps: Update.
13788
137892012-03-05 Joseph Myers <joseph@codesourcery.com>
13790
13791 [BZ #3976]
13792 * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13793 (__ieee754_pow): Save and restore rounding mode and use
13794 round-to-nearest for main computations.
13795 * math/libm-test.inc (pow_test_tonearest): New function.
13796 (pow_test_towardzero): Likewise.
13797 (pow_test_downward): Likewise.
13798 (pow_test_upward): Likewise.
13799 (main): Call the new functions.
13800 * sysdeps/i386/fpu/libm-test-ulps: Update.
13801 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13802
13803 [BZ #3976]
13804 * math/libm-test.inc (cosh_test_tonearest): New function.
13805 (cosh_test_towardzero): Likewise.
13806 (cosh_test_downward): Likewise.
13807 (cosh_test_upward): Likewise.
13808 (sinh_test_tonearest): Likewise.
13809 (sinh_test_towardzero): Likewise.
13810 (sinh_test_downward): Likewise.
13811 (sinh_test_upward): Likewise.
13812 (main): Call the new functions.
13813 * sysdeps/i386/fpu/libm-test-ulps: Update.
13814 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13815
138162012-03-05 Tom de Vries <tom@codesourcery.com>
13817
13818 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13819 default stack guard is set in last bytes.
13820 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13821
138222012-03-05 Kees Cook <keescook@chromium.org>
13823
13824 * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13825
13826 [BZ #13656]
13827 * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13828 possibly allocate from heap instead of stack.
13829 * stdio-common/bug-vfprintf-nargs.c: New file.
13830 * stdio-common/Makefile (tests): Add nargs overflow test.
13831
138322012-03-03 Andreas Schwab <schwab@linux-m68k.org>
13833
13834 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13835
138362012-03-03 Marek Polacek <polacek@redhat.com>
13837
13838 * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13839 * math/math_private.h: Likewise.
13840 * stdlib/tst-strtod.c: Likewise.
13841 * sysdeps/i386/i486/bits/atomic.h: Likewise.
13842 * sysdeps/x86_64/bits/atomic.h: Likewise.
13843
138442012-03-02 David S. Miller <davem@davemloft.net>
13845
13846 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13847 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13848 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13849 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13850 * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13851 * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13852 * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13853 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13854
138552012-03-02 Roland McGrath <roland@hack.frob.com>
13856
13857 [BZ #13792]
13858 * manual/examples/README: New file, says the example source files
13859 can be used under GPL>=2.
13860 * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13861 line containing just "*/".
13862 * manual/examples/add.c: Add copyright header (GPL>=2).
13863 * manual/examples/argp-ex1.c: Likewise.
13864 * manual/examples/argp-ex2.c: Likewise.
13865 * manual/examples/argp-ex3.c: Likewise.
13866 * manual/examples/argp-ex4.c: Likewise.
13867 * manual/examples/atexit.c: Likewise.
13868 * manual/examples/db.c: Likewise.
13869 * manual/examples/dir.c: Likewise.
13870 * manual/examples/dir2.c: Likewise.
13871 * manual/examples/execinfo.c: Likewise.
13872 * manual/examples/filecli.c: Likewise.
13873 * manual/examples/filesrv.c: Likewise.
13874 * manual/examples/fmtmsgexpl.c: Likewise.
13875 * manual/examples/genpass.c: Likewise.
13876 * manual/examples/inetcli.c: Likewise.
13877 * manual/examples/inetsrv.c: Likewise.
13878 * manual/examples/isockad.c: Likewise.
13879 * manual/examples/longopt.c: Likewise.
13880 * manual/examples/memopen.c: Likewise.
13881 * manual/examples/memstrm.c: Likewise.
13882 * manual/examples/mkfsock.c: Likewise.
13883 * manual/examples/mkisock.c: Likewise.
13884 * manual/examples/mygetpass.c: Likewise.
13885 * manual/examples/pipe.c: Likewise.
13886 * manual/examples/popen.c: Likewise.
13887 * manual/examples/rprintf.c: Likewise.
13888 * manual/examples/search.c: Likewise.
13889 * manual/examples/select.c: Likewise.
13890 * manual/examples/setjmp.c: Likewise.
13891 * manual/examples/sigh1.c: Likewise.
13892 * manual/examples/sigusr.c: Likewise.
13893 * manual/examples/stpcpy.c: Likewise.
13894 * manual/examples/strdupa.c: Likewise.
13895 * manual/examples/strftim.c: Likewise.
13896 * manual/examples/strncat.c: Likewise.
13897 * manual/examples/subopt.c: Likewise.
13898 * manual/examples/swapcontext.c: Likewise.
13899 * manual/examples/termios.c: Likewise.
13900 * manual/examples/testopt.c: Likewise.
13901 * manual/examples/testpass.c: Likewise.
13902 * manual/examples/timeval_subtract.c: Likewise.
13903
13904 [BZ #13792]
13905 * manual/time.texi (Elapsed Time): Move timeval_subtract example
13906 function to ...
13907 * manual/timeval_subtract.c.texi: ... here, new file.
13908
139092012-03-02 David S. Miller <davem@davemloft.net>
13910
13911 * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13912
139132012-03-02 Joseph Myers <joseph@codesourcery.com>
13914
13915 [BZ #3976]
13916 * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13917 (__sin): Save and restore rounding mode and use round-to-nearest
13918 for all computations.
13919 (__cos): Save and restore rounding mode and use round-to-nearest
13920 for all computations.
13921 * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13922 <fenv.h>.
13923 (tan): Save and restore rounding mode and use round-to-nearest for
13924 all computations.
13925 * math/libm-test.inc (cos_test_tonearest): New function.
13926 (cos_test_towardzero): Likewise.
13927 (cos_test_downward): Likewise.
13928 (cos_test_upward): Likewise.
13929 (sin_test_tonearest): Likewise.
13930 (sin_test_towardzero): Likewise.
13931 (sin_test_downward): Likewise.
13932 (sin_test_upward): Likewise.
13933 (tan_test_tonearest): Likewise.
13934 (tan_test_towardzero): Likewise.
13935 (tan_test_downward): Likewise.
13936 (tan_test_upward): Likewise.
13937 (main): Call the new functions.
13938 * sysdeps/i386/fpu/libm-test-ulps: Update.
13939 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13940
13941 [BZ #10135]
13942 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13943 small n, then large n, before computing and testing k+n.
13944 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13945 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13946 Likewise.
13947 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13948 Likewise.
13949 * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13950 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13951 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13952 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13953 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13954 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13955 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13956 * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13957 * math/libm-test.inc (scalbn_test): Add more tests.
13958 (scalbln_test): Likewise.
13959
13960 * manual/filesys.texi (mode_t): Describe constraints on size and
13961 signedness, not exact equivalence to a particular type.
13962 (ino_t): Likewise.
13963 (ino64_t): Likewise.
13964 (dev_t): Likewise.
13965 (nlink_t): Likewise.
13966 (blkcnt_t): Likewise.
13967 (blkcnt64_t): Likewise.
13968 * manual/llio.texi (off_t): Likewise.
13969
13970 [BZ #3976]
13971 * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13972 (__ieee754_exp): Save and restore rounding mode and use
13973 round-to-nearest for all computations.
13974 * math/libm-test.inc (exp_test_tonearest): New function.
13975 (exp_test_towardzero): Likewise.
13976 (exp_test_downward): Likewise.
13977 (exp_test_upward): Likewise.
13978 (main): Call the new functions.
13979 * sysdeps/i386/fpu/libm-test-ulps: Update.
13980 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13981
139822012-03-01 Chris Demetriou <cgd@google.com>
13983
13984 * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13985 have predictable order.
13986
139872012-03-01 David S. Miller <davem@davemloft.net>
13988
13989 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13990
13991 * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13992 * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13993 * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13994 * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13995
13996 * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13997 * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13998 * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13999 * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
14000 * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
14001 * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
14002 * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
14003 * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
14004 * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
14005
14006 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14007
14008 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
14009 * sysdeps/sparc/fpu/libm-test-ulps: to here.
14010 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
14011
14012 * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
14013 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14014 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14015 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
14016 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
14017 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
14018 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
14019 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14020 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14021 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
14022 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
14023 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14024 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14025 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14026 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14027 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14028 * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
14029 * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
14030 * sysdeps/sparc/elf/configure: Regenerated.
14031
140322012-03-01 Joseph Myers <joseph@codesourcery.com>
14033
14034 * configure.in (AS, LD): Require binutils 2.20 or later.
14035 * configure: Regenerated.
14036 * manual/install.texi (Tools for Compilation): Give binutils 2.20
14037 as required minimum version.
14038 * INSTALL: Regenerated.
14039
14040 [BZ #2541]
14041 [BZ #4108]
14042 * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
14043 before squaring exponent.
14044 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
14045 bottom long double and 27 bits of top long double before squaring
14046 exponent.
14047 * math/libm-test.inc (erfc_test): Add more tests.
14048 * sysdeps/i386/fpu/libm-test-ulps: Update.
14049 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14050 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14051
140522012-03-01 Kai Tietz <ktietz@redhat.com>
14053
14054 * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
14055 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
14056 containing bit-fields.
14057 * soft-fp/extended.h (_FP_UNION_E): Likewise.
14058 * soft-fp/single.h (_FP_UNION_S): Likewise.
14059 * soft-fp/double.h (_FP_UNION_D): Likewise.
14060
140612012-02-29 Joseph Myers <joseph@codesourcery.com>
14062
14063 [BZ #13786]
14064 * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
14065 not include ../strcmp.S.
14066 [USE_AS_STRNCASECMP_L]: Likewise.
14067 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
14068 (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
14069 * sysdeps/i386/i686/multiarch/strncase_l-c.c
14070 (__strncasecmp_l_ia32): Define as alias to
14071 __strncasecmp_l_nonascii.
14072
14073 [BZ #5794]
14074 * math/libm-test.inc (expm1_test): Add test for bug 5794.
14075 * sysdeps/i386/fpu/libm-test-ulps: Update.
14076 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14077
14078 * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
14079 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14080
140812012-02-29 Jeff Law <law@redhat.com>
14082
14083 * resolv/res_query.c (__libc_res_nquerydomain): Avoid
14084 out of bounds read.
14085
140862012-02-29 Marek Polacek <polacek@redhat.com>
14087
14088 [BZ #13706]
14089 * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
14090 * elf/Makefile: Add rules to run tst-unused-dep.out.
14091
140922012-02-28 David S. Miller <davem@davemloft.net>
14093
14094 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
14095 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
14096 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
14097 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
14098 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
14099 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
14100
141012012-02-29 Joseph Myers <joseph@codesourcery.com>
14102
14103 * math/libm-test.inc (llround_test): Move one test from
14104 lround_test. Use TEST_f_L in moved test.
14105 (lround_test): Move misplaced test to llround_test. Add testcase
14106 from bug 2561.
14107
141082012-02-28 Ulrich Drepper <drepper@gmail.com>
14109
14110 * sysdeps/x86_64/fpu/e_expf.S: New file.
14111 Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
14112
141132012-02-28 Stanislav Brabec <sbrabec@suse.cz>
14114
14115 [BZ #13637]
14116 * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
14117 of remain_len that may cause incomplete multi-byte character and
14118 false match.
14119 * posix/bug-regex33.c: New file.
14120 * posix/Makefile (tests): Add bug-regex33.
14121
141222012-02-28 Joseph Myers <joseph@codesourcery.com>
14123
14124 * manual/macros.texi: New file.
14125 * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
14126 * manual/libc.texinfo: Include macros.texi.
14127 * manual/creatute.texi: Likewise.
14128 * manual/install.texi: Likewise.
14129 * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
14130 @glibcadj{} in references to the GNU C Library.
14131 * manual/charset.texi: Likewise.
14132 * manual/conf.texi: Likewise.
14133 * manual/contrib.texi: Likewise. Consistently use "GNU C Library"
14134 when not using those macros.
14135 * manual/creature.texi: Likewise.
14136 * manual/crypt.texi: Likewise.
14137 * manual/errno.texi: Likewise.
14138 * manual/filesys.texi: Likewise.
14139 * manual/header.texi: Likewise.
14140 * manual/install.texi: Likewise.
14141 * manual/intro.texi: Likewise.
14142 * manual/io.texi: Likewise.
14143 * manual/job.texi: Likewise.
14144 * manual/lang.texi: Likewise.
14145 * manual/libc.texiinfo: Likewise.
14146 * manual/llio.texi: Likewise.
14147 * manual/locale.texi: Likewise.
14148 * manual/maint.texi: Likewise.
14149 * manual/math.texi: Likewise.
14150 * manual/memory.texi: Likewise.
14151 * manual/message.texi: Likewise.
14152 * manual/nss.texi: Likewise.
14153 * manual/pattern.texi: Likewise.
14154 * manual/process.texi: Likewise.
14155 * manual/resource.texi: Likewise.
14156 * manual/search.texi: Likewise.
14157 * manual/setjmp.texi: Likewise.
14158 * manual/signal.texi: Likewise.
14159 * manual/socket.texi: Likewise.
14160 * manual/startup.texi: Likewise.
14161 * manual/stdio.texi: Likewise.
14162 * manual/string.texi: Likewise.
14163 * manual/sysinfo.texi: Likewise.
14164 * manual/syslog.texi: Likewise.
14165 * manual/terminal.texi: Likewise.
14166 * manual/time.texi: Likewise.
14167 * manual/users.texi: Likewise.
14168 * INSTALL: Regenerated.
14169 * NOTES: Regenerated.
14170 * sysdeps/gnu/errlist.c: Regenerated.
14171
141722012-02-28 Andreas Schwab <schwab@linux-m68k.org>
14173
14174 * include/dirent.h: Include <dirstream.h> before
14175 <dirent/dirent.h>.
14176
141772012-02-28 David S. Miller <davem@davemloft.net>
14178
14179 * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
14180 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
14181 * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
14182 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
14183
141842012-02-27 David S. Miller <davem@davemloft.net>
14185
14186 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
14187 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
14188 * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
14189 * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
14190
14191 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
14192 frame pointer instead of stack pointer relative arg slot.
14193 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
14194 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
14195 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
14196
141972012-02-27 Carlos O'Donell <carlos_odonell@mentor.com>
14198
14199 [BZ #3992]
14200 * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
14201
142022012-02-27 David S. Miller <davem@davemloft.net>
14203
14204 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
14205 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
14206 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
14207 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
14208 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
14209 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
14210 * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
14211 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
14212
142132012-02-27 Joseph Myers <joseph@codesourcery.com>
14214
14215 * configure.in (CC): Restrict allowed GCC versions to 4.3 and
14216 later. Allow versions 5-9.
14217 * configure: Regenerated.
14218 * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
14219 required minimum version and 4.6 as recommended version. Do not
14220 mention bugs in GCC 2.7 and 2.8.
14221 * INSTALL: Regenerated.
14222
142232012-02-27 David S. Miller <davem@davemloft.net>
14224
14225 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
14226 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
14227 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
14228 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
14229 * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
14230 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
14231 * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
14232 * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
14233
14234 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
14235 manipulate bits before adding and subtracting TWO112[sx].
14236 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14237
142382012-02-27 Roland McGrath <roland@hack.frob.com>
14239
14240 [BZ #13775]
14241 * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
14242 [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
14243 * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
14244 being in POSIX, because they are in 1003.1-2008.
14245
14246 * rt/tst-aio.c: Include <fcntl.h>.
14247 * rt/tst-aio7.c: Likewise.
14248 * rt/tst-aio64.c: Likewise.
14249
14250 * stdio-common/tst-fmemopen.c (main): Remove spurious const.
14251
142522012-02-27 Joseph Myers <joseph@codesourcery.com>
14253
14254 * manual/install.texi (--with-headers): Describe headers as
14255 interface headers, not private headers.
14256 (Specific advice for GNU/Linux systems): Describe use of headers
14257 from "make headers_install", not private headers from older
14258 kernels.
14259 * INSTALL: Regenerated.
14260 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
14261 Change to 2.6.19.
14262 * sysdeps/unix/sysv/linux/configure: Regenerated.
14263
14264 * manual/llio.texi (fclean): Remove documentation.
14265
14266 * manual/Makefile (libc-texi-generated): New variable. Include
14267 version.texi.
14268 (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
14269 $(libc-texi-generated), not duplicated list of files.
14270 (version.texi, stamp-version): New rules.
14271 (realclean): Remove $(libc-texi-generated), not individual files
14272 from that list. Do not remove dir-add.texinfo.
14273 * manual/libc.texinfo: Comment out uses of edition numbers and
14274 references to printed manual. Remove last-updated dates.
14275 (EDITION): Comment out.
14276 (ISBN): Likewise.
14277 (VERSION, UPDATED): Remove.
14278 (version.texi): Include.
14279
142802012-02-27 Andreas Schwab <schwab@linux-m68k.org>
14281
14282 * sysdeps/posix/spawni.c: Include <signal.h>.
14283 * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
14284 * sysdeps/pthread/aio_fsync.c: Likewise.
14285
142862012-02-26 Ulrich Drepper <drepper@gmail.com>
14287
14288 * conform/Makefile (tests): Run only when not cross-compiling and
14289 when fast-check is not defined.
14290
14291 * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
14292 * conform/data/limits.h-data: Fixes for POSIX2008.
14293 * conform/run-conformtest.sh: Run all tests.
14294 * include/arpa/inet.h: Changes to allow conformtest.pl to use the
14295 headers.
14296 * include/bits/dlfcn.h: Likewise.
14297 * include/langinfo.h: Likewise.
14298 * include/monetary.h: Likewise.
14299 * include/sys/poll.h: Likewise.
14300
14301 * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
14302 for __USE_GNU.
14303 * posix/spawn.h: Define __need_sigset_t.
14304 * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
14305 * posix/unistd.h: Declare ctermid only for XPG before XPG6.
14306 * rt/aio.h: Don't include fcntl.h and signal.h. Use bits/siginfo.h
14307 to get sigevent_t only.
14308 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
14309 only for __USE_GNU.
14310 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14311 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14312 process_vm_writev only for __USE_GNU.
14313 * termios/termios.h: Declare tcgetsid also for POSIX2008.
14314
14315 * conform/Makefile: For now ignore errors from run-conformtest.
14316 * conform/conformtest.pl: Simplify code. Add -ansi to CFLAGS for
14317 POSIX to avoid namespace pollution. Don't prepend headers.
14318 * conform/data/aio.h-data: Fixes for POSIX testing.
14319 * conform/data/fcntl.h-data: Likewise.
14320 * conform/data/glob.h-data: Likewise.
14321 * conform/data/grp.h-data: Likewise.
14322 * conform/data/pthread.h-data: Likewise.
14323 * conform/data/pwd.h-data: Likewise.
14324 * conform/data/signal.h-data: Likewise.
14325 * conform/data/spawn.h-data: Likewise.
14326 * conform/data/stdio.h-data: Likewise.
14327 * conform/data/stdlib.h-data: Likewise.
14328 * conform/data/stropts.h-data: Likewise.
14329 * conform/data/sys/mman.h-data: Likewise.
14330 * conform/data/sys/stat.h-data: Likewise.
14331 * conform/data/sys/types.h-data: Likewise.
14332 * conform/data/sys/wait.h-data: Likewise.
14333 * conform/data/time.h-data: Likewise.
14334 * conform/data/unistd.h-data: Likewise.
14335 * conform/data/utime.h-data: Likewise.
14336
14337 * io/sys/stat.h: fchmod was always in POSIX.
14338 * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
14339 * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
14340 * rt/aio.h: Define __need_timespec before including <time.h>.
14341 * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
14342 struct. Add forward declaration of pthread_attr_t and use it in
14343 sigevent.
14344 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14345 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14346 * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
14347 always remove CLK_TCK definition.
14348
143492012-02-26 Andreas Schwab <schwab@linux-m68k.org>
14350
14351 * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
14352
143532012-02-25 Ulrich Drepper <drepper@gmail.com>
14354
14355 * conform/run-conformtest.sh: New file.
14356 * conform/Makefile: Run run-conformtest for tests.
14357 * conform/conformtest.pl: Many bug fixes. Add ISO C99, ISO C11
14358 support.
14359
14360 * conform/data/uchar.h-data: New file.
14361 * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
14362 * conform/data/arpa/inet.h-data: Likewise.
14363 * conform/data/assert.h-data: Likewise.
14364 * conform/data/complex.h-data: Likewise.
14365 * conform/data/cpio.h-data: Likewise.
14366 * conform/data/ctype.h-data: Likewise.
14367 * conform/data/dirent.h-data: Likewise.
14368 * conform/data/dlfcn.h-data: Likewise.
14369 * conform/data/errno.h-data: Likewise.
14370 * conform/data/fcntl.h-data: Likewise.
14371 * conform/data/float.h-data: Likewise.
14372 * conform/data/fmtmsg.h-data: Likewise.
14373 * conform/data/fnmatch.h-data: Likewise.
14374 * conform/data/ftw.h-data: Likewise.
14375 * conform/data/glob.h-data: Likewise.
14376 * conform/data/grp.h-data: Likewise.
14377 * conform/data/iconv.h-data: Likewise.
14378 * conform/data/inttypes.h-data: Likewise.
14379 * conform/data/langinfo.h-data: Likewise.
14380 * conform/data/libgen.h-data: Likewise.
14381 * conform/data/limits.h-data: Likewise.
14382 * conform/data/locale.h-data: Likewise.
14383 * conform/data/math.h-data: Likewise.
14384 * conform/data/monetary.h-data: Likewise.
14385 * conform/data/mqueue.h-data: Likewise.
14386 * conform/data/ndbm.h-data: Likewise.
14387 * conform/data/net/if.h-data: Likewise.
14388 * conform/data/netdb.h-data: Likewise.
14389 * conform/data/netinet/in.h-data: Likewise.
14390 * conform/data/nl_types.h-data: Likewise.
14391 * conform/data/poll.h-data: Likewise.
14392 * conform/data/pthread.h-data: Likewise.
14393 * conform/data/pwd.h-data: Likewise.
14394 * conform/data/regex.h-data: Likewise.
14395 * conform/data/sched.h-data: Likewise.
14396 * conform/data/search.h-data: Likewise.
14397 * conform/data/semaphore.h-data: Likewise.
14398 * conform/data/setjmp.h-data: Likewise.
14399 * conform/data/signal.h-data: Likewise.
14400 * conform/data/spawn.h-data: Likewise.
14401 * conform/data/stdarg.h-data: Likewise.
14402 * conform/data/stdio.h-data: Likewise.
14403 * conform/data/stdlib.h-data: Likewise.
14404 * conform/data/string.h-data: Likewise.
14405 * conform/data/strings.h-data: Likewise.
14406 * conform/data/stropts.h-data: Likewise.
14407 * conform/data/sys/ipc.h-data: Likewise.
14408 * conform/data/sys/mman.h-data: Likewise.
14409 * conform/data/sys/msg.h-data: Likewise.
14410 * conform/data/sys/resource.h-data: Likewise.
14411 * conform/data/sys/select.h-data: Likewise.
14412 * conform/data/sys/sem.h-data: Likewise.
14413 * conform/data/sys/shm.h-data: Likewise.
14414 * conform/data/sys/socket.h-data: Likewise.
14415 * conform/data/sys/stat.h-data: Likewise.
14416 * conform/data/sys/statvfs.h-data: Likewise.
14417 * conform/data/sys/time.h-data: Likewise.
14418 * conform/data/sys/timeb.h-data: Likewise.
14419 * conform/data/sys/times.h-data: Likewise.
14420 * conform/data/sys/types.h-data: Likewise.
14421 * conform/data/sys/uio.h-data: Likewise.
14422 * conform/data/sys/un.h-data: Likewise.
14423 * conform/data/sys/utsname.h-data: Likewise.
14424 * conform/data/sys/wait.h-data: Likewise.
14425 * conform/data/syslog.h-data: Likewise.
14426 * conform/data/tar.h-data: Likewise.
14427 * conform/data/termios.h-data: Likewise.
14428 * conform/data/utime.h-data: Likewise.
14429 * conform/data/utmpx.h-data: Likewise.
14430 * conform/data/varargs.h-data: Likewise.
14431 * conform/data/wchar.h-data: Likewise.
14432 * conform/data/wctype.h-data: Likewise.
14433 * conform/data/wordexp.h-data: Likewise.
14434
14435 * include/stropts.h: New file.
14436 * include/uchar.h: New file.
14437 * include/aio.h: Changes to allow conformtest.pl to use the headers.
14438 * include/assert.h: Likewise.
14439 * include/ctype.h: Likewise.
14440 * include/dirent.h: Likewise.
14441 * include/dlfcn.h: Likewise.
14442 * include/fcntl.h: Likewise.
14443 * include/fnmatch.h: Likewise.
14444 * include/glob.h: Likewise.
14445 * include/grp.h: Likewise.
14446 * include/libio.h: Likewise.
14447 * include/locale.h: Likewise.
14448 * include/math.h: Likewise.
14449 * include/net/if.h: Likewise.
14450 * include/netdb.h: Likewise.
14451 * include/netinet/in.h: Likewise.
14452 * include/pthread.h: Likewise.
14453 * include/pwd.h: Likewise.
14454 * include/regex.h: Likewise.
14455 * include/sched.h: Likewise.
14456 * include/search.h: Likewise.
14457 * include/setjmp.h: Likewise.
14458 * include/signal.h: Likewise.
14459 * include/stdio.h: Likewise.
14460 * include/stdlib.h: Likewise.
14461 * include/string.h: Likewise.
14462 * include/sys/cdefs.h: Likewise.
14463 * include/sys/mman.h: Likewise.
14464 * include/sys/msg.h: Likewise.
14465 * include/sys/resource.h: Likewise.
14466 * include/sys/select.h: Likewise.
14467 * include/sys/socket.h: Likewise.
14468 * include/sys/stat.h: Likewise.
14469 * include/sys/statvfs.h: Likewise.
14470 * include/sys/time.h: Likewise.
14471 * include/sys/times.h: Likewise.
14472 * include/sys/uio.h: Likewise.
14473 * include/sys/utsname.h: Likewise.
14474 * include/sys/wait.h: Likewise.
14475 * include/termios.h: Likewise.
14476 * include/time.h: Likewise.
14477 * include/ulimit.h: Likewise.
14478 * include/unistd.h: Likewise.
14479 * include/utime.h: Likewise.
14480 * include/wchar.h: Likewise.
14481 * include/wctype.h: Likewise.
14482 * include/wordexp.h: Likewise.
14483
14484 * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14485
14486 * time/time.h: TIME_UTC must be a macro.
14487 Make timespec_get available for ISO C11 only as well.
14488
144892012-02-24 Ulrich Drepper <drepper@gmail.com>
14490
14491 * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14492 Reported by Peng Haitao <penght@cn.fujitsu.com>.
14493
144942012-02-24 Joseph Myers <joseph@codesourcery.com>
14495
14496 * configure.in: Use -o not -a in test for unsupported multi-arch.
14497
144982012-02-24 Joseph Myers <joseph@codesourcery.com>
14499
14500 * manual/texinfo.tex: Update to version 2012-01-19.16.
14501
145022012-02-24 Joseph Myers <joseph@codesourcery.com>
14503
14504 * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14505
145062012-02-24 Roland McGrath <roland@hack.frob.com>
14507
14508 [BZ #13738]
14509 * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14510 * manual/fdl-1.3.texi: New file.
14511 * manual/fdl-1.1.texi: File removed.
14512
14513 [BZ #13738]
14514 * manual/libc.texinfo (FDL_VERSION): New @set.
14515 Use it for mention of FDL in cover text.
14516 (Documentation License): Use it in @include file name.
14517
145182012-02-22 Joseph Myers <joseph@codesourcery.com>
14519 Roland McGrath <roland@hack.frob.com>
14520
14521 [BZ #5461]
14522 * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14523 not LONG_LONG_MAX and LONG_LONG_MIN.
14524 * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14525 LLONG_MIN. Refer to LONG_LONG_MIN only as older GCC-specific
14526 name.
14527 (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14528
145292012-02-22 Joseph Myers <joseph@codesourcery.com>
14530
14531 [BZ #2547]
14532 [BZ #11365]
14533 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14534 manipulate bits before adding and subtracting TWO23[sx].
14535 * math/libm-test.inc (nearbyint_test): Add more tests.
14536
145372012-02-22 Joseph Myers <joseph@codesourcery.com>
14538
14539 [BZ #2548]
14540 * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14541 bits before adding and subtracting TWO23[sx].
14542 * math/libm-test.inc (rint_test): Add more tests.
14543 (rint_test_tonearest): Likewise.
14544 (rint_test_towardzero): Likewise.
14545 (rint_test_downward): Likewise.
14546 (rint_test_upward: Likewise.
14547
145482012-02-22 Joseph Myers <joseph@codesourcery.com>
14549
14550 [BZ #10110]
14551 * include/stdc-predef.h: New file. Extracted from features.h.
14552 * include/features.h: Include stdc-predef.h.
14553 * Makefile (headers): Add stdc-predef.h.
14554 * CONFORMANCE (Compiler limitations): Update.
14555
145562012-02-22 Joseph Myers <joseph@codesourcery.com>
14557
14558 * manual/libc.texinfo (VERSION, UPDATED): Revert.
14559
145602012-02-21 David S. Miller <davem@davemloft.net>
14561
14562 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14563 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14564
145652012-02-20 David S. Miller <davem@davemloft.net>
14566
14567 * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14568 using a normal save/restore sequence, rather than allocating a
14569 dummy stack frame just to store a frame pointer and restore.
14570 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14571
145722012-02-21 Joseph Myers <joseph@codesourcery.com>
14573
14574 * manual/install.texi: Fix stray word in line-wrapped comment.
14575
145762012-02-20 David S. Miller <davem@davemloft.net>
14577
14578 * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14579 both binutils and gcc support GOTDATA.
14580
14581 * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14582 "rd %pc" in the PIC register setup sequences.
14583
14584 * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14585 * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14586 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14587 * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14588 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14589 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14590 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14591 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14592 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14593 (SYSCALL_ERROR_HANDLER): Likewise.
14594 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14595 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14596 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14597 (SYSCALL_ERROR_HANDLER): Likewise.
14598
14599 * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14600 (HAVE_GCC_GOTDATA): New.
14601 * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14602 relocation support in both binutils and gcc.
14603 * sysdeps/sparc/elf/configure: Regenerate.
14604
14605 * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14606 * sysdeps/sparc/sparc32/elf/configure: Delete.
14607 * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14608 * sysdeps/sparc/sparc64/elf/configure: Delete.
14609 * sysdeps/sparc/elf/configure.in: New file.
14610 * sysdeps/sparc/elf/configure: Generate.
14611
14612 * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14613 * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14614 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14615 * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14616 * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14617
146182012-02-21 Joseph Myers <joseph@codesourcery.com>
14619
14620 * manual/install.texi: Do not mention specific glibc version
14621 numbers.
14622 * manual/libc.texinfo (VERSION, UPDATED): Update.
14623 (@copying): Use @copyright{} and range of years.
14624
146252012-02-21 Joseph Myers <joseph@codesourcery.com>
14626
14627 [BZ #13695]
14628 * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14629 [crti.S not in sysdirs] (generated): Do not append.
14630 [crti.S not in sysdirs] (omit-deps): Likewise.
14631 [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14632 [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14633 [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14634 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14635 [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14636 Likewise.
14637 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14638 [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14639 [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14640 * csu/defs.awk: Remove file.
14641 * sysdeps/generic/initfini.c: Likewise.
14642 * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14643 variable.
14644 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14645 Likewise.
14646
146472012-02-20 Joseph Myers <joseph@codesourcery.com>
14648
14649 * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14650 * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14651 * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14652 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14653 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14654 * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14655 <bits/epoll.h>.
14656 (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14657 (__EPOLL_PACKED): Define to empty if not defined by
14658 <bits/epoll.h>.
14659 (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14660 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14661 bits/epoll.h.
14662
146632012-02-20 Joseph Myers <joseph@codesourcery.com>
14664
14665 * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14666 * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14667 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14668 * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14669 <bits/timerfd.h>.
14670 (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14671 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14672 bits/timerfd.h.
14673
146742012-02-20 Joseph Myers <joseph@codesourcery.com>
14675
14676 * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14677 in C locale.
14678 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14679 * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14680 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14681 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14682
146832012-02-20 Aurelien Jarno <aurelien@aurel32.net>
14684
14685 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14686 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14687
146882012-02-19 Andreas Schwab <schwab@linux-m68k.org>
14689
14690 * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14691 * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14692 defined.
14693 * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14694 Likewise.
14695 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14696 entry for 2.16.
14697
146982012-02-19 Aurelien Jarno <aurelien@aurel32.net>
14699
14700 * math/w_acos.c: Use non-signaling floating-point comparisons.
14701 * math/w_acosf.c: Likewise.
14702 * math/w_acosh.c: Likewise.
14703 * math/w_acoshf.c: Likewise.
14704 * math/w_acoshl.c: Likewise.
14705 * math/w_acosl.c: Likewise.
14706 * math/w_asin.c: Likewise.
14707 * math/w_asinf.c: Likewise.
14708 * math/w_asinl.c: Likewise.
14709 * math/w_atanh.c: Likewise.
14710 * math/w_atanhf.c: Likewise.
14711 * math/w_atanhl.c: Likewise.
14712 * math/w_exp2.c: Likewise.
14713 * math/w_exp2f.c: Likewise.
14714 * math/w_exp2l.c: Likewise.
14715 * math/w_j0.c: Likewise.
14716 * math/w_j0f.c: Likewise.
14717 * math/w_j0l.c: Likewise.
14718 * math/w_j1.c: Likewise.
14719 * math/w_j1f.c: Likewise.
14720 * math/w_j1l.c: Likewise.
14721 * math/w_jn.c: Likewise.
14722 * math/w_jnf.c: Likewise.
14723 * math/w_log.c: Likewise.
14724 * math/w_log10.c: Likewise.
14725 * math/w_log10f.c: Likewise.
14726 * math/w_log10l.c: Likewise.
14727 * math/w_log2.c: Likewise.
14728 * math/w_log2f.c: Likewise.
14729 * math/w_log2l.c: Likewise.
14730 * math/w_logf.c: Likewise.
14731 * math/w_logl.c: Likewise.
14732 * math/w_sqrt.c: Likewise.
14733 * math/w_sqrtf.c: Likewise.
14734 * math/w_sqrtl.c: Likewise.
14735 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14736 * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14737 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14738 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14739 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14740
147412012-02-19 Joseph Myers <joseph@codesourcery.com>
14742
14743 [BZ #9739]
14744 * manual/string.texi (strnlen): Use correct parameter name in
14745 equivalent expression.
14746
147472012-02-19 Joseph Myers <joseph@codesourcery.com>
14748
14749 [BZ #11174]
14750 * manual/users.texi (seteuid): Consistently use neweuid for
14751 argument name.
14752
147532012-02-19 Joseph Myers <joseph@codesourcery.com>
14754
14755 [BZ #13704]
14756 * manual/nss.texi (Services in the NSS configuration): Correct
14757 list of services in example configuration file.
14758
147592012-02-19 Nick Bowler <nbowler@draconx.ca>
14760
14761 [BZ #11322]
14762 * manual/arith.texi: Remove statements about negative zero
14763 behaving identically to zero.
14764
147652012-02-18 Joseph Myers <joseph@codesourcery.com>
14766
14767 [BZ #5993]
14768 * manual/install.texi: Do not document upgrading from libc5.
14769
147702012-02-18 Joseph Myers <joseph@codesourcery.com>
14771
14772 [BZ #4596]
14773 * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14774
147752012-02-18 David S. Miller <davem@davemloft.net>
14776
14777 * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14778 (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14779 %o7 across the call.
14780 (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14781 instead.
14782 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14783 SETUP_PIC_REG_LEAF.
14784 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14785 * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14786 * sysdeps/sparc/crtn.S: Likewise.
14787
147882012-02-17 Ulrich Drepper <drepper@gmail.com>
14789
14790 * aout/Makefile: Remove.
14791
147922012-02-18 Rafe Kettler <rafe.kettler@gmail.com>
14793
14794 [BZ #13058]
14795 * manual/examples/argp-ex1.c (main): Format definition in GNU
14796 style.
14797 * manual/examples/argp-ex2.c (main): Likewise.
14798 * manual/examples/argp-ex3.c (main): Likewise.
14799 * manual/examples/argp-ex4.c (main): Likewise.
14800 * manual/examples/longopt.c (main): Use new-style prototype
14801 definition.
14802 * manual/examples/strncat.c (main): Specify return type and use
14803 (void) for arguments.
14804 * manual/examples/subopt.c (main): Use char **argv argument.
14805
148062012-02-17 Joseph Myers <joseph@codesourcery.com>
14807
14808 [BZ #5077]
14809 * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14810 rounding modes.
14811
148122012-02-17 Fabrice Bauzac <fabrice.bauzac@wanadoo.fr>
14813
14814 [BZ #6907]
14815 * manual/string.texi (strchr): Change when strchrnul is
14816 recommended.
14817
148182012-02-17 Dwayne Grant McConnell <decimal@us.ibm.com>
14819
14820 [BZ #174]
14821 * manual/locale.texi (setlocale): Document LOCPATH.
14822
148232012-02-17 Joseph Myers <joseph@codesourcery.com>
14824
14825 [BZ #10210]
14826 * manual/process.texi (execle): Move @dots{} before last argument.
14827
148282012-02-17 Paul Bolle <pebolle@tiscali.nl>
14829
14830 [BZ #12047]
14831 * manual/charset.texi (Generic Charset Conversion): Fix typo
14832 (LC_TYPE -> LC_CTYPE).
14833
148342012-02-17 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
14835
14836 [BZ #5805]
14837 * manual/arith.texi (scalbn): Use @var{} on parameter names.
14838 (scalbnf): Likewise.
14839 (scalbnl): Likewise.
14840 (scalbln): Likewise.
14841 (scalblnf): Likewise.
14842 (scalblnl): Likewise.
14843 * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14844 (vwarnx): Likewise.
14845 (verr): Likewise.
14846 (verrx): Likewise.
14847 * manual/filesys.texi (telldir): Use braces around return type.
14848 * manual/llio.texi (mmap): Add space after comma.
14849 (mmap64): Likewise.
14850 * manual/math.texi (jn): Use @var{} on parameter names.
14851 (jnf): Likewise.
14852 (jnl): Likewise.
14853 (yn): Likewise.
14854 (ynf): Likewise.
14855 (ynl): Likewise.
14856 * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14857 line.
14858 * manual/resource.texi (ulimit): Use @dots{} instead of literal
14859 "...".
14860 (sched_get_priority_min): Remove semicolon on @deftypefun line.
14861 (sched_get_priority_max): Likewise.
14862 * manual/signal.texi (sigvec): Add space after comma.
14863 * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14864 names.
14865 (if_indextoname): Likewise.
14866 (if_freenameindex): Likewise.
14867 (sendto): Use ',' instead of '.' in prototype.
14868 * manual/startup.texi (syscall): Use @dots{} instead of literal
14869 "...".
14870 * manual/stdio.texi (__fpending): Separate initial words of
14871 paragraph from @deftypefun line.
14872 * manual/syslog.texi (syslog): Use @dots{} instead of literal
14873 "...".
14874 (vsyslog): Use @var{} on parameter names.
14875 * manual/terminal.texi (stty): Use @var{} on parameter names.
14876 * manual/users.texi (getutmp): Use @var{} on parameter names.
14877 (getutmpx): Likewise.
14878
148792012-02-17 Joseph Myers <joseph@codesourcery.com>
14880
14881 [BZ #6884]
14882 * manual/stdio.texi (fopen): Fix typos in description of
14883 ",ccs=STRING".
14884
148852012-02-17 Aurelien Jarno <aurelien@aurel32.net>
14886
14887 [BZ #4026]
14888 * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14889 get clock_id definition.
14890
148912012-02-17 Thomas Schwinge <thomas@schwinge.name>
14892
14893 [BZ #4822]
14894 * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14895 (madvise): Cast every argument to void on its own.
14896
148972012-02-17 Joseph Myers <joseph@codesourcery.com>
14898
14899 [BZ #9902]
14900 * manual/startup.texi (Exit Status): Fix typo.
14901
149022012-02-17 Joseph Myers <joseph@codesourcery.com>
14903
14904 [BZ #10140]
14905 * manual/examples/argp-ex1.c: Include <stdlib.h>.
14906 * manual/examples/argp-ex2.c: Likewise.
14907 * manual/examples/argp-ex3.c: Likewise.
14908
149092012-02-16 Richard Henderson <rth@redhat.com>
14910
14911 * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14912 * sysdeps/s390/s390-32/initfini.c: Remove.
14913 * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14914 * sysdeps/s390/s390-64/initfini.c: Remove.
14915
149162012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14917
14918 * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14919 compiler output for sysdeps/generic/initfini.c.
14920 * sysdeps/sh/elf/initfini.c: Remove file.
14921
149222012-02-16 David S. Miller <davem@davemloft.net>
14923
14924 [BZ #11494]
14925 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14926
14927 * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14928 * sysdeps/sparc/crti.S: New file.
14929 * sysdeps/sparc/crtn.S: New file.
14930 * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14931 * sysdeps/sparc/sparc64/Makefile: Likewise.
14932
149332012-02-15 Mike Frysinger <vapier@gentoo.org>
14934
14935 [BZ #3335]
14936 * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14937
149382012-02-15 Roland McGrath <roland@hack.frob.com>
14939
14940 [BZ #4822]
14941 * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14942
14943 * mach/devstream.c (cookie_io_functions_t): Macro removed.
14944 (write, read, close): Likewise.
14945 Patch by Aurelien Jarno <aurelien@aurel32.net>.
14946
149472012-02-15 Joseph Myers <joseph@codesourcery.com>
14948
14949 * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14950 * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14951 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14952 * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14953 <bits/signalfd.h>.
14954 (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14955 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14956 bits/signalfd.h.
14957
149582012-02-14 Marek Polacek <polacek@redhat.com>
14959
14960 * sysdeps/x86_64/crti.S: New file.
14961 * sysdeps/x86_64/crtn.S: New file.
14962 * sysdeps/x86_64/elf/initfini.c: Remove file.
14963
149642012-02-13 Joseph Myers <joseph@codesourcery.com>
14965
14966 * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14967 * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14968 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14969 * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14970 <bits/inotify.h>.
14971 (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14972 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14973 bits/inotify.h.
14974
149752012-02-13 Joseph Myers <joseph@codesourcery.com>
14976
14977 * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14978 * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14979 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14980 * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14981 <bits/eventfd.h>.
14982 (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14983 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14984 bits/eventfd.h.
14985
149862012-02-10 Thomas Schwinge <thomas@codesourcery.com>
14987
14988 * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14989 __feraiseexcept instead of feraiseexcept.
14990
14991 * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14992 nanosleep invocations.
14993 * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14994 strings, and add error checking for a nanosleep invocations.
14995
149962012-02-09 Paul Eggert <eggert@cs.ucla.edu>
14997
14998 Replace FSF snail mail address with URLs, as per GNU coding standards.
14999 Most of the snail mail addresses were wrong anyway, and omitting
15000 them makes the source code easier to maintain. Almost all of the
15001 changes are to license notices and to locale LC_IDENTIFICATION
15002 addresses, except for this one:
15003 * manual/libc.texinfo: In "Published by", give the FSF's URL,
15004 not its snail mail address.
15005
150062012-02-09 Richard Henderson <rth@twiddle.net>
15007
15008 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
15009 of kernel-features.h.
15010
15011 * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
15012
150132012-02-08 Marek Polacek <polacek@redhat.com>
15014
15015 * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
15016 * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
15017 * sysdeps/gnu/_G_config.h: Likewise.
15018 * sysdeps/generic/_G_config.h: Likewise.
15019
150202012-02-08 Andreas Schwab <schwab@linux-m68k.org>
15021
15022 * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
15023 tests.
15024 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15025
15026 * sysdeps/powerpc/powerpc32/crti.S: New file.
15027 * sysdeps/powerpc/powerpc32/crtn.S: New file.
15028 * sysdeps/powerpc/powerpc64/crti.S: New file.
15029 * sysdeps/powerpc/powerpc64/crtn.S: New file.
15030
15031 * Makeconfig (have-initfini): Don't set.
15032 * config.make.in (have-initfini, need-nopic-initfini): Don't set.
15033 * configure.in (nopic_initfini): Don't substitute.
15034 * config.h.in (HAVE_INITFINI): Don't #undef.
15035 * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
15036 * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
15037
150382012-02-08 Joseph Myers <joseph@codesourcery.com>
15039
15040 Support crti.S and crtn.S provided directly by architectures.
15041 * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
15042 [crti.S in sysdirs] (omit-deps): Likewise.
15043 [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
15044 [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
15045 [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
15046 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
15047 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
15048 [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
15049 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
15050 [crti.S in sysdirs] (initfini.c): Remove vpath directive.
15051 * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
15052 compiler output for sysdeps/generic/initfini.c.
15053 * sysdeps/i386/elf/Makefile: Remove file.
15054 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
15055
150562012-02-07 Marek Polacek <polacek@redhat.com>
15057
15058 * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
15059 * sysdeps/gnu/_G_config.h: Likewise.
15060 * sysdeps/mach/hurd/_G_config.h: Likewise.
15061
150622012-02-07 Marek Polacek <polacek@redhat.com>
15063
15064 * math/Makefile (tests): Add tst-CMPLX2.
15065 * math/tst-CMPLX2.c: New file.
15066
150672012-02-07 Andreas Schwab <schwab@linux-m68k.org>
15068
15069 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15070
15071 * math/libm-test.inc (jn_test): Add missing L suffix.
15072
150732012-02-06 Marek Polacek <polacek@redhat.com>
15074
15075 * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
15076 * sysdeps/i386/fpu/e_powf.S: Likewise.
15077 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15078 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
15079 * sysdeps/i386/fpu/e_acosh.S: Likewise.
15080 * sysdeps/i386/fpu/e_pow.S: Likewise.
15081 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
15082 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15083 * sysdeps/i386/fpu/s_expm1.S: Likewise.
15084 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
15085 * sysdeps/i386/fpu/e_log2.S: Likewise.
15086 * sysdeps/i386/fpu/e_log2l.S: Likewise.
15087 * sysdeps/i386/fpu/e_scalb.S: Likewise.
15088 * sysdeps/i386/fpu/e_powl.S: Likewise.
15089 * sysdeps/i386/fpu/s_log1p.S: Likewise.
15090 * sysdeps/i386/fpu/e_log10f.S: Likewise.
15091 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
15092 * sysdeps/i386/fpu/e_logl.S: Likewise.
15093 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
15094 * sysdeps/i386/fpu/s_expm1l.S: Likewise.
15095 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
15096 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
15097 * sysdeps/i386/fpu/e_log2f.S: Likewise.
15098 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15099 * sysdeps/i386/fpu/e_log.S: Likewise.
15100 * sysdeps/i386/fpu/s_cexp.S: Likewise.
15101 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15102 * sysdeps/i386/fpu/s_log1pl.S: Likewise.
15103 * sysdeps/i386/fpu/e_logf.S: Likewise.
15104 * sysdeps/i386/fpu/e_log10l.S: Likewise.
15105 * sysdeps/i386/fpu/e_atanh.S: Likewise.
15106 * sysdeps/i386/fpu/s_log1pf.S: Likewise.
15107 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
15108 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
15109 * sysdeps/i386/fpu/e_log10.S: Likewise.
15110 * sysdeps/i386/fpu/s_frexp.S: Likewise.
15111 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15112 * sysdeps/i386/fpu/s_asinh.S: Likewise.
15113 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
15114 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15115 * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
15116 * sysdeps/i386/asm-syntax.h: Likewise.
15117 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15118 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15119 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15120 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
15121 * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
15122 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15123 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
15124 * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
15125 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15126 * sysdeps/powerpc/sysdep.h: Likewise.
15127 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
15128 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15129
151302012-02-06 Joseph Myers <joseph@codesourcery.com>
15131
15132 [BZ #411]
15133 * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
15134
151352012-02-06 Joseph Myers <joseph@codesourcery.com>
15136
15137 * sysdeps/i386/sysdep.h: Include <features.h>.
15138 (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
15139 version.
15140
151412012-02-05 Joseph Myers <joseph@codesourcery.com>
15142
15143 * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
15144 Define.
15145 * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
15146 LOAD_PIC_REG_STR.
15147
151482012-02-03 Joseph Myers <joseph@codesourcery.com>
15149
15150 * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
15151 (SETUP_PIC_REG): Use GET_PC_THUNK.
15152 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
15153 macro.
15154
151552012-02-03 Joseph Myers <joseph@codesourcery.com>
15156
15157 * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
15158 for non-PIC compilation.
15159 (SETUP_PIC_REG): Add .p2align directive.
15160 * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
15161 * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
15162 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
15163 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
15164 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15165 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
15166 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
15167 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15168 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
15169 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
15170 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
15171 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
15172 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
15173 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
15174 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
15175 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15176 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15177 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
15178 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
15179 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
15180 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15181 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15182 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
15183 * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
15184 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15185 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15186 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15187 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15188 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
15189 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
15190 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
15191 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15192 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
15193 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
15194 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
15195 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
15196 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
15197 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
15198 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
15199 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
15200 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
15201
152022012-02-03 Joseph Myers <joseph@codesourcery.com>
15203
15204 * math/tst-CMPLX.c: Include <stdio.h>.
15205
152062012-01-31 Joseph Myers <joseph@codesourcery.com>
15207
15208 * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
15209 float.
15210 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15211 * sysdeps/sparc/bits/mathdef.h: Likewise.
15212
152132012-01-31 Marek Polacek <polacek@redhat.com>
15214
15215 * libio/libio.h: Don't define _PARAMS.
15216 * locale/programs/config.h: Don't define PARAMS.
15217 * stdlib/strtol_l.c: Likewise.
15218 (__strtol_l): Remove PARAMS from the prototype.
15219
152202012-01-31 Ulrich Drepper <drepper@gmail.com>
15221
15222 * malloc/malloc.c: Remove name translation. Don't use mixed-cap
15223 names. Just use the correct names. Remove unnecessary wrapper
15224 functions.
15225 * malloc/arena.c: Likewise.
15226 * malloc/hooks.c: Likewise.
15227
15228 * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
15229 ARENA_TEST says not to. Simplify test for creation of a new arena.
15230 Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
15231
152322012-01-30 Ulrich Drepper <drepper@gmail.com>
15233
15234 * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
15235 into tail calls.
15236 (update_get_addr): New function.
15237 (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
15238 GET_ADDR_MODULE parameter.
15239
152402012-01-30 Joseph Myers <joseph@codesourcery.com>
15241
15242 * crypt/cert.c: Remove __STDC__ conditionals.
15243 * crypt/crypt-entry.c: Likewise.
15244 * crypt/crypt_util.c: Likewise.
15245 * libio/filedoalloc.c: Likewise.
15246 * libio/fileops.c: Likewise.
15247 * libio/genops.c: Likewise.
15248 * libio/iofclose.c: Likewise.
15249 * libio/iofdopen.c: Likewise.
15250 * libio/iofopen.c: Likewise.
15251 * libio/iofopen64.c: Likewise.
15252 * libio/iogetdelim.c: Likewise.
15253 * libio/iopopen.c: Likewise.
15254 * libio/obprintf.c: Likewise.
15255 * libio/oldfileops.c: Likewise.
15256 * libio/oldiofclose.c: Likewise.
15257 * libio/oldiofdopen.c: Likewise.
15258 * libio/oldiofopen.c: Likewise.
15259 * libio/oldiopopen.c: Likewise.
15260 * libio/wfiledoalloc.c: Likewise.
15261 * libio/wgenops.c: Likewise.
15262 * locale/programs/xmalloc.c: Likewise.
15263 * misc/syslog.c: Likewise.
15264 * stdio-common/xbug.c: Likewise.
15265 * string/memchr.c: Likewise.
15266 * string/memcmp.c: Likewise.
15267 * string/memrchr.c: Likewise.
15268 * string/rawmemchr.c: Likewise.
15269 * sysdeps/posix/getcwd.c: Likewise.
15270 * time/strftime_l.c: Likewise.
15271
152722012-01-30 Joseph Myers <joseph@codesourcery.com>
15273
15274 * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
15275 * config.make.in (config-cflags-sse2avx): Define.
15276 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
15277 Fix typo.
15278
152792012-01-29 Chris Metcalf <cmetcalf@tilera.com>
15280
15281 * scripts/config.guess: Update from upstream config git repository.
15282 * scripts/config.sub: Likewise.
15283
152842012-01-28 Chris Metcalf <cmetcalf@tilera.com>
15285
15286 * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
15287 (EM_NUM): Update.
15288 (R_TILEPRO_*, R_TILEGX_*): New macros.
15289
15290 * scripts/firstversions.awk: Fix bug in version range handling.
15291
15292 * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
15293
15294 * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
15295
15296 * include/sys/epoll.h: New file.
15297 * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
15298 libc_hidden_def.
15299
153002012-01-28 Ulrich Drepper <drepper@gmail.com>
15301
15302 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
15303 Avoid unnecessary __WORDSIZE == 64 test.
15304 (fmaxf): Use VEX format if possible.
15305 (fmax): Likewise.
15306 (fminf): Likewise.
15307 (fmin): Likewise.
15308
15309 * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
15310 * math/math_private.h: Remove libc_fegetround* and
15311 libc_fesetround*.
15312 * sysdeps/i386/configure.in: Check for -msse2avx.
15313 * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
15314 also if SSE2AVX is defined.
15315 Remove libc_fegetround* and libc_fesetround*.
15316 * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
15317 if config-cflags-sse2avx is yes. Also add -DSSE2AVX to defines.
15318 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
15319 of HAS_YMM_USABLE.
15320 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15321 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15322 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15323 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15324 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15325
15326 * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
15327
153282012-01-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
15329
15330 * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
15331 size is not set.
15332 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15333
153342012-01-27 Ulrich Drepper <drepper@gmail.com>
15335
15336 [BZ #13618]
15337 * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
15338 relocation.
15339 * Makeconfig (libm): Define.
15340 * elf/Makefile: Add rules to build and run tst-relsort1.
15341 * elf/tst-relsort1.c: New file.
15342 * elf/tst-relsort1mod1.c: New file.
15343 * elf/tst-relsort1mod2.c: New file.
15344
153452012-01-27 Joseph Myers <joseph@codesourcery.com>
15346
15347 * math/s_ldexp.c: Remove __STDC__ conditionals.
15348 * math/s_ldexpf.c: Likewise.
15349 * math/s_ldexpl.c: Likewise.
15350 * math/s_nextafter.c: Likewise.
15351 * math/s_nexttowardf.c: Likewise.
15352 * math/s_significand.c: Likewise.
15353 * math/s_significandf.c: Likewise.
15354 * math/s_significandl.c: Likewise.
15355 * math/w_jnl.c: Likewise.
15356 * sysdeps/i386/fpu/s_isinfl.c: Likewise.
15357 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
15358 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
15359 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
15360 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
15361 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15362 * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
15363 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
15364 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15365 * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
15366 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
15367 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15368 * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
15369 * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
15370 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
15371 * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
15372 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
15373 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
15374 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
15375 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15376 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15377 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15378 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15379 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15380 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15381 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15382 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15383 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15384 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
15385 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15386 * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15387 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
15388 * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15389 * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
15390 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
15391 * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15392 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15393 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15394 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
15395 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15396 * sysdeps/ieee754/k_standard.c: Likewise.
15397 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15398 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15399 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15400 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15401 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15402 * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15403 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15404 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15405 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15406 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15407 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15408 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
15409 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15410 * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15411 * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15412 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15413 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15414 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15415 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15416 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15417 * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15418 * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15419 * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15420 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15421 * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15422 * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
15423 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15424 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15425 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15426 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15427 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15428 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
15429 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15430 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15431 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15432 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15433 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15434 * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15435 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15436 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
15437 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
15438 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15439 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
15440 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
15441 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15442 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15443 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15444 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15445 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15446 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15447 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
15448 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15449 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15450 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15451 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15452 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15453 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
15454 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15455 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15456 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15457 * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15458 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15459 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15460 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15461 * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15462 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15463 * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15464 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15465 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15466 * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15467 * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15468 * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15469 * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15470 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15471 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15472 * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15473 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15474 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15475 * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15476 * sysdeps/ieee754/s_matherr.c: Likewise.
15477 * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15478 * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15479 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15480 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15481
154822012-01-26 Joseph Myers <joseph@codesourcery.com>
15483
15484 * crypt/md5.h: Remove __STDC__ conditionals.
15485 * libio/libioP.h: Likewise.
15486 * locale/programs/config.h: Likewise.
15487 * sysdeps/generic/sysdep.h: Likewise.
15488 * sysdeps/i386/asm-syntax.h: Likewise.
15489 * sysdeps/s390/asm-syntax.h: Likewise.
15490 * sysdeps/unix/sysdep.h: Likewise.
15491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15493
154942012-01-26 Joseph Myers <joseph@codesourcery.com>
15495
15496 * libio/libio.h: Remove __STDC__ conditionals.
15497 * malloc/obstack.h: Likewise.
15498 * math/complex.h: Likewise.
15499 * math/math.h: Likewise.
15500 * sysdeps/generic/_G_config.h: Likewise.
15501 * sysdeps/gnu/_G_config.h: Likewise.
15502 * sysdeps/mach/hurd/_G_config.h: Likewise.
15503 * sysdeps/powerpc/bits/mathdef.h: Likewise.
15504 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15505 * sysdeps/sparc/bits/mathdef.h: Likewise.
15506
155072012-01-26 Ulrich Drepper <drepper@gmail.com>
15508
15509 [BZ #13583]
15510 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15511 Clean up HAS_* macros.
15512 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15513 bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15514 possible.
15515 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15516 HAS_AVX.
15517 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15518 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15519 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15520 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15521 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15522
155232012-01-25 Joseph Myers <joseph@codesourcery.com>
15524
15525 * elf/tst-unique3.cc (gets): Remove declaration.
15526 * elf/tst-unique3lib.cc (gets): Likewise.
15527 * elf/tst-unique3lib2.cc (gets): Likewise.
15528 * elf/tst-unique4.cc (gets): Likewise.
15529
155302012-01-24 Ulrich Drepper <drepper@gmail.com>
15531
15532 * include/stdio.h: Add C++ protection. Add gets declarations and
15533 definitions.
15534 * debug/tst-chk1.c: Don't declare gets here.
15535 * stdio-common/tst-gets.c: Likewise.
15536
155372012-01-24 Joseph Myers <joseph@codesourcery.com>
15538
15539 * posix/glob: Remove directory.
15540
155412012-01-24 Joseph Myers <joseph@codesourcery.com>
15542
15543 * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15544
155452012-01-22 Pino Toscano <toscano.pino@tiscali.it>
15546
15547 * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15548 of the non-standard EPFNOSUPPORT.
15549
155502011-12-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
15551
15552 * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15553 __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15554 ANYWHERE set to 1 only on KERN_NO_SPACE error.
15555
155562012-01-21 Ulrich Drepper <drepper@gmail.com>
15557
15558 * wcsmbs/uchar.h: Test __STDC_VERSION__.
15559
155602012-01-20 Ulrich Drepper <drepper@gmail.com>
15561
15562 * nscd/aicache.c (addhstaiX): Do not cache negative results of
15563 transient errors.
15564 * nscd/grpcache.c (cache_addgr): Likewise.
15565 * nscd/hstcache.c (cache_addhst): Likewise.
15566 * nscd/initgrcache.c (addinitgroupsX): Likewise.
15567 * nscd/pwdcache.c (cache_addpw): Likewise.
15568 * nscd/servicescache.c (cache_addserv): Likewise.
15569
155702012-01-16 Ulrich Drepper <drepper@gmail.com>
15571
15572 * malloc/malloc.c: Various cleanups.
15573 * malloc/hooks.c: Likewise.
15574
15575 * stdlib/Makefile (tests): Add bug-fmtmsg1.
15576 * stdlib/bug-fmtmsg1.c: New file.
15577
15578 * stdlib/fmtmsg.c (init): Add missing unlock.
15579 Patch by Peng Haitao <penght@cn.fujitsu.com>.
15580
155812012-01-12 Marek Polacek <polacek@redhat.com>
15582
15583 * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15584 and _GNU_SOURCE.
15585
155862012-01-04 Will Schmidt <will_schmidt@vnet.ibm.com>
15587
15588 * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15589 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15590 macro to ensure uniqueness of label name.
15591 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15592 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15593
155942012-01-11 Ulrich Drepper <drepper@gmail.com>
15595
15596 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15597
15598 * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15599 * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15600 * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15601 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15602
156032012-01-10 Ulrich Drepper <drepper@gmail.com>
15604
15605 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15606
15607 * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15608 * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15609 * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15610
15611 * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15612
15613 * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15614 * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15615 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15616 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15617
15618 * math/bits/math-finite.h: Add ldexp support.
15619
156202012-01-10 Marek Polacek <polacek@redhat.com>
15621
15622 * locale/programs/localedef.h (show_archive_content): Add noreturn
15623 attribute.
15624
156252012-01-09 Ulrich Drepper <drepper@gmail.com>
15626
15627 * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15628
156292012-01-08 Ulrich Drepper <drepper@gmail.com>
15630
15631 * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15632
15633 * io/Makefile (headers): Add bits/poll2.h.
15634
156352011-01-05 Will Schmidt <will_schmidt@vnet.ibm.com>
15636
15637 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15638 typo #include statement.
15639
156402012-01-08 Ulrich Drepper <drepper@gmail.com>
15641
15642 * include/sys/cdefs.h: Define __attribute_alloc_size.
15643 * catgets/gencat.c: Add alloc_size attribute and apply consistently
15644 the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15645 * elf/pldd.c: Likewise.
15646 * iconv/iconv_charmap.c: Likewise.
15647 * iconv/iconvconfig.c: Likewise.
15648 * iconv/strtab.c: Likewise.
15649 * locale/programs/locale.c: Likewise.
15650 * locale/programs/localedef.h: Likewise.
15651 * locale/programs/simple-hash.c: Likewise.
15652 * nscd/nscd.h: Likewise.
15653 * nss/makedb.c: Likewise.
15654 * sysdeps/generic/ldconfig.h: Likewise.
15655 * locale/programs/localedef.c: Remove xmalloc prototype.
15656 * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15657
156582012-01-05 Paul Pluzhnikov <ppluzhnikov@google.com>
15659
15660 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15661 appropriate.
15662
156632012-01-08 Ulrich Drepper <drepper@gmail.com>
15664
15665 * math/Makefile (tests): Add tst-CMPLX.
15666 * math/tst-CMPLX.c: New file.
15667
15668 * math/complex.h (CMPLXL): Fix typo.
15669
15670 * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15671 * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15672 GLIBC_2.16.
15673 * debug/tst-chk1.c: Add poll and ppoll tests.
15674 * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15675 * include/sys/poll.h: Add hidden proto for ppoll.
15676 * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15677 * sysdeps/mach/hurd/ppoll.c: Likewise.
15678 * io/ppoll.c: Likewise.
15679 * debug/poll_chk.c: New file.
15680 * debug/ppoll_chk.c: New file.
15681 * include/bits/poll2.h: New file.
15682 * io/bits/poll2.h: New file.
15683
15684 [BZ #1350]
15685 * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15686
15687 * configure.in: static is always set to yes. Remove.
15688 * config.make.in: Don't set build-static.
15689 * Makeconfig: Remove use of build-static.
15690 * dlfcn/Makefile: Likewise.
15691 * elf/Makefile: Likewise.
15692 * math/Makefile: Likewise.
15693 * misc/Makefile: Likewise.
15694 * nptl/Makefile: Likewise.
15695 * sysdeps/mach/hurd/Makefile: Likewise.
15696
15697 * configure.in: PWD_P is not used anymore.
15698 * config.make.in: Remove PWD_P entry.
15699
15700 * configure.in: Remove last remnants of RANLIB.
15701 No need to check for signed size_t anymore.
15702 Don't set libc_commonpagesize and libc_relro_required here for Alpha
15703 and IA-64.
15704 Remove __builtin_expect test because we require at least gcc 3.4.
15705 * aclocal.m4: Likewise.
15706
15707 * wcsmbs/mbrtoc16.c: Implement using towc function.
15708 * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15709 * wcsmbs/wcsmbsload.c: Likewise.
15710 * iconv/gconv_simple.c: Likewise.
15711 * iconv/gconv_int.h: Likewise.
15712 * iconv/gconv_builtin.h: Likewise.
15713 * iconv/iconv_prog.c: Remove CHAR16 handling.
15714
15715 * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15716
15717 * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15718
15719 * configure.in: Remove --with-elf and --enable-bounded options.
15720 Dont set base_machine for ia64. More non-ELF conditions removed.
15721 Remove testing and setting of leading underscore information.
15722 * config.make.in (build-bounded): Set to no.
15723 * config.h.in: Remove NO_UNDERSCORES entry.
15724 * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS. ELF has
15725 them.
15726 * csu/start.c: Remove !NO_UNDERSCORE code.
15727 * locale/localeinfo.h: Likewise.
15728 * sysdeps/generic/machine-gmon.h: Likewise.
15729 * sysdeps/generic/sysdep.h: Likewise.
15730 * sysdeps/i386/sysdep.h: Likewise.
15731 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15732 * sysdeps/mach/sysdep.h: Likewise.
15733 * sysdeps/s390/s390-32/sysdep.h: Likewise.
15734 * sysdeps/s390/s390-64/sysdep.h: Likewise.
15735 * sysdeps/sh/sysdep.h: Likewise.
15736 * sysdeps/sparc/sparc32/alloca.S: Likewise.
15737 * sysdeps/unix/i386/sysdep.S: Likewise.
15738 * sysdeps/unix/sparc/start.c: Likewise.
15739 * sysdeps/unix/sparc/sysdep.S: Likewise.
15740 * sysdeps/unix/sparc/sysdep.h: Likewise.
15741 * sysdeps/unix/start.c: Likewise.
15742 * sysdeps/unix/x86_64/sysdep.S: Likewise.
15743 * sysdeps/x86_64/sysdep.h: Likewise.
15744
157452012-01-07 Ulrich Drepper <drepper@gmail.com>
15746
15747 [BZ #13553]
15748 * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15749 for non-gcc.
15750 * argp/argp-fmtstream.h: Use const instead __const.
15751 * argp/argp.h: Likewise.
15752 * assert/assert.h: Likewise.
15753 * bits/fenv.h: Likewise.
15754 * bits/sched.h: Likewise.
15755 * bits/sigset.h: Likewise.
15756 * bits/sigthread.h: Likewise.
15757 * catgets/nl_types.h: Likewise.
15758 * conform/data/pthread.h-data: Likewise.
15759 * crypt/crypt-private.h: Likewise.
15760 * crypt/crypt.h: Likewise.
15761 * crypt/crypt_util.c: Likewise.
15762 * ctype/ctype.h: Likewise.
15763 * debug/execinfo.h: Likewise.
15764 * debug/mbsnrtowcs_chk.c: Likewise.
15765 * debug/mbsrtowcs_chk.c: Likewise.
15766 * debug/wcsnrtombs_chk.c: Likewise.
15767 * debug/wcsrtombs_chk.c: Likewise.
15768 * debug/wcstombs_chk.c: Likewise.
15769 * dirent/dirent.h: Likewise.
15770 * dlfcn/dlfcn.h: Likewise.
15771 * elf/neededtest4.c: Likewise.
15772 * grp/grp.h: Likewise.
15773 * gshadow/gshadow.h: Likewise.
15774 * iconv/gconv.h: Likewise.
15775 * iconv/gconv_int.h: Likewise.
15776 * iconv/gconv_simple.c: Likewise.
15777 * iconv/iconv.h: Likewise.
15778 * iconv/loop.c: Likewise.
15779 * iconv/skeleton.c: Likewise.
15780 * include/aio.h: Likewise.
15781 * include/aliases.h: Likewise.
15782 * include/argz.h: Likewise.
15783 * include/arpa/inet.h: Likewise.
15784 * include/assert.h: Likewise.
15785 * include/dirent.h: Likewise.
15786 * include/dlfcn.h: Likewise.
15787 * include/execinfo.h: Likewise.
15788 * include/fcntl.h: Likewise.
15789 * include/fenv.h: Likewise.
15790 * include/glob.h: Likewise.
15791 * include/grp.h: Likewise.
15792 * include/libintl.h: Likewise.
15793 * include/mntent.h: Likewise.
15794 * include/netdb.h: Likewise.
15795 * include/pwd.h: Likewise.
15796 * include/rpc/netdb.h: Likewise.
15797 * include/sched.h: Likewise.
15798 * include/search.h: Likewise.
15799 * include/shadow.h: Likewise.
15800 * include/signal.h: Likewise.
15801 * include/stdio.h: Likewise.
15802 * include/stdlib.h: Likewise.
15803 * include/string.h: Likewise.
15804 * include/sys/socket.h: Likewise.
15805 * include/sys/stat.h: Likewise.
15806 * include/sys/statfs.h: Likewise.
15807 * include/sys/statvfs.h: Likewise.
15808 * include/sys/syslog.h: Likewise.
15809 * include/sys/time.h: Likewise.
15810 * include/sys/uio.h: Likewise.
15811 * include/time.h: Likewise.
15812 * include/unistd.h: Likewise.
15813 * include/utmp.h: Likewise.
15814 * include/wchar.h: Likewise.
15815 * include/wctype.h: Likewise.
15816 * inet/aliases.h: Likewise.
15817 * inet/arpa/inet.h: Likewise.
15818 * inet/netinet/ether.h: Likewise.
15819 * inet/netinet/in.h: Likewise.
15820 * intl/libintl.h: Likewise.
15821 * io/bits/fcntl2.h: Likewise.
15822 * io/fcntl.h: Likewise.
15823 * io/ftw.h: Likewise.
15824 * io/sys/poll.h: Likewise.
15825 * io/sys/stat.h: Likewise.
15826 * io/sys/statfs.h: Likewise.
15827 * io/sys/statvfs.h: Likewise.
15828 * io/utime.h: Likewise.
15829 * libio/bits/stdio.h: Likewise.
15830 * libio/bits/stdio2.h: Likewise.
15831 * libio/libio.h: Likewise.
15832 * libio/libioP.h: Likewise.
15833 * libio/stdio.h: Likewise.
15834 * locale/lc-ctype.c: Likewise.
15835 * locale/locale.h: Likewise.
15836 * login/utmp.h: Likewise.
15837 * malloc/arena.c: Likewise.
15838 * malloc/malloc.c: Likewise.
15839 * malloc/malloc.h: Likewise.
15840 * malloc/mcheck.c: Likewise.
15841 * malloc/mtrace.c: Likewise.
15842 * math/bits/mathcalls.h: Likewise.
15843 * math/fenv.h: Likewise.
15844 * math/math_private.h: Likewise.
15845 * misc/bits/error.h: Likewise.
15846 * misc/bits/syslog.h: Likewise.
15847 * misc/err.h: Likewise.
15848 * misc/error.h: Likewise.
15849 * misc/fstab.h: Likewise.
15850 * misc/mntent.h: Likewise.
15851 * misc/regexp.h: Likewise.
15852 * misc/search.h: Likewise.
15853 * misc/sgtty.h: Likewise.
15854 * misc/sys/mman.h: Likewise.
15855 * misc/sys/syslog.h: Likewise.
15856 * misc/sys/uio.h: Likewise.
15857 * misc/sys/xattr.h: Likewise.
15858 * misc/ttyent.h: Likewise.
15859 * nis/rpcsvc/ypclnt.h: Likewise.
15860 * nss/nss.h: Likewise.
15861 * posix/bits/unistd.h: Likewise.
15862 * posix/fnmatch.h: Likewise.
15863 * posix/glob.h: Likewise.
15864 * posix/sched.h: Likewise.
15865 * posix/spawn.h: Likewise.
15866 * posix/sys/wait.h: Likewise.
15867 * posix/unistd.h: Likewise.
15868 * posix/wordexp.h: Likewise.
15869 * pwd/pwd.h: Likewise.
15870 * resolv/netdb.h: Likewise.
15871 * resource/sys/resource.h: Likewise.
15872 * rt/aio.h: Likewise.
15873 * rt/bits/mqueue2.h: Likewise.
15874 * rt/mqueue.h: Likewise.
15875 * shadow/shadow.h: Likewise.
15876 * signal/signal.h: Likewise.
15877 * socket/send.c: Likewise.
15878 * socket/sendto.c: Likewise.
15879 * socket/sys/socket.h: Likewise.
15880 * stdio-common/printf.h: Likewise.
15881 * stdlib/bits/stdlib.h: Likewise.
15882 * stdlib/fmtmsg.h: Likewise.
15883 * stdlib/monetary.h: Likewise.
15884 * stdlib/stdlib.h: Likewise.
15885 * stdlib/ucontext.h: Likewise.
15886 * streams/stropts.h: Likewise.
15887 * string/argz.h: Likewise.
15888 * string/bits/string2.h: Likewise.
15889 * string/string.h: Likewise.
15890 * string/strings.h: Likewise.
15891 * sunrpc/rpc/auth.h: Likewise.
15892 * sunrpc/rpc/auth_des.h: Likewise.
15893 * sunrpc/rpc/clnt.h: Likewise.
15894 * sunrpc/rpc/netdb.h: Likewise.
15895 * sunrpc/rpc/pmap_clnt.h: Likewise.
15896 * sunrpc/rpc/xdr.h: Likewise.
15897 * sysdeps/generic/inttypes.h: Likewise.
15898 * sysdeps/generic/net/if.h: Likewise.
15899 * sysdeps/generic/sys/swap.h: Likewise.
15900 * sysdeps/gnu/net/if.h: Likewise.
15901 * sysdeps/gnu/utmpx.h: Likewise.
15902 * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15903 * sysdeps/i386/i486/bits/string.h: Likewise.
15904 * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15905 * sysdeps/s390/bits/string.h: Likewise.
15906 * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15907 * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15908 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15909 * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15910 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15911 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15912 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15913 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15914 * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15915 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15916 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15917 * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15918 * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15919 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15920 * sysdeps/unix/sysv/linux/readv.c: Likewise.
15921 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15922 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15923 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15924 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15925 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15926 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15927 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15928 * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15929 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15930 * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15931 * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15932 * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15933 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15934 * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15935 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15936 * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15937 * sysvipc/sys/ipc.h: Likewise.
15938 * sysvipc/sys/msg.h: Likewise.
15939 * sysvipc/sys/sem.h: Likewise.
15940 * sysvipc/sys/shm.h: Likewise.
15941 * termios/termios.h: Likewise.
15942 * time/sys/time.h: Likewise.
15943 * time/time.h: Likewise.
15944 * wcsmbs/bits/wchar2.h: Likewise.
15945 * wcsmbs/uchar.h: Likewise.
15946 * wcsmbs/wchar.h: Likewise.
15947 * wctype/wctype.h: Likewise.
15948
15949 [BZ #13551]
15950 * Makeconfig: Remove all but ELF support including AIX support.
15951 * Makerules: Likewise.
15952 * config.h.in: Likewise.
15953 * config.make.in: Likewise.
15954 * configure: Likewise.
15955 * configure.in: Likewise.
15956 * csu/Makefile: Likewise.
15957 * csu/version.c: Likewise.
15958 * debug/Makefile: Likewise.
15959 * dlfcn/Makefile: Likewise.
15960 * elf/Makefile: Likewise.
15961 * extra-lib.mk: Likewise.
15962 * iconv/Makefile: Likewise.
15963 * include/libc-symbols.h: Likewise.
15964 * include/shlib-compat.h: Likewise.
15965 * resolv/Makefile: Likewise.
15966 * resolv/res_libc.c: Likewise.
15967 * rt/Makefile: Likewise.
15968 * sysdeps/i386/asm-syntax.h: Likewise.
15969 * sysdeps/i386/sysdep.h: Likewise.
15970 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15971 * sysdeps/mach/sysdep.h: Likewise.
15972 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15973 * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15974 * sysdeps/s390/asm-syntax.h: Likewise.
15975 * sysdeps/s390/s390-32/sysdep.h: Likewise.
15976 * sysdeps/s390/s390-64/sysdep.h: Likewise.
15977 * sysdeps/sh/sysdep.h: Likewise.
15978 * sysdeps/unix/sparc/sysdep.h: Likewise.
15979 * sysdeps/wordsize-32/divdi3.c: Likewise.
15980 * sysdeps/x86_64/sysdep.h: Likewise.
15981
15982 * argp/Versions: Remove _argp_unlock_xxx.
15983
15984 [BZ #13559]
15985 * abilist/ld.abilist: Update. Adjust for removal of tls option.
15986 * abilist/libBrokenLocale.abilist: Likewise.
15987 * abilist/libanl.abilist: Likewise.
15988 * abilist/libc.abilist: Likewise.
15989 * abilist/libcrypt.abilist: Likewise.
15990 * abilist/libdl.abilist: Likewise.
15991 * abilist/libm.abilist: Likewise.
15992 * abilist/libnsl.abilist: Likewise.
15993 * abilist/libpthread.abilist: Likewise.
15994 * abilist/libresolv.abilist: Likewise.
15995 * abilist/librt.abilist: Likewise.
15996 * abilist/libthread_db.abilist: Likewise.
15997 * abilist/libutil.abilist: Likewise.
15998 * abilist/libnss_db.abilist: New file.
15999
16000 * scripts/abilist.awk: Add support for indirect functions.
16001
16002 * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
16003
16004 * sysdeps/generic/ldsodefs.h: Remove Alpha support.
16005
16006 * shlib-versions: Remove entries for ports architectures.
16007
16008 * elf/tls-macros.h: Remove support for Alpha and IA-64. Should be in
16009 files in ports.
16010 * elf/stackguard-macros.h: Remove support for IA-64.
16011 * elf/tst-auditmod1.c: Likewise.
16012 * sysdeps/generic/ldsodefs.h: Likewise.
16013
16014 * sysdeps/unix/sysv/linux/configure.in: Ports should define
16015 libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
16016 configure files.
16017
16018 [BZ #13552]
16019 * configure.in: Remove --enable-omitfp support.
16020 * FAQ.in: Adjust.
16021 * config.make.in: Likewise.
16022 * Makeconfig: Likewise.
16023 * manual/install.texi: Likewise.
16024
16025 In case anyone cares, the IA-64 architecture could move to ports.
16026 * sysdeps/ia64/*: Removed.
16027 * sysdeps/unix/sysv/linux/ia64/*: Removed.
16028 * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
16029
16030 [BZ #13555]
16031 * configure.in: Remove entries for unsupported architectures.
16032
16033 [BZ #13533]
16034 * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
16035 * iconv/gconv_simple.c: Rename char16_t routines. Add char16_t<->utf8
16036 routines.
16037 * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
16038 * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
16039 * wcsmbs/c16rtomb.c: Fix a few problems. Disable all the code and
16040 fall back to using wcrtomb.
16041 * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
16042 * wcsmbs/wcsmbsload.c: Make char16 routines optional. Adjust for
16043 renaming.
16044 * wcsmbs/Makefile (tests): Add tst-c16c32-1:
16045 * wcsmbs/tst-c16c32-1.c: New file.
16046
16047 * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
16048 local variable.
16049
16050 * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
16051
16052 * elf/tst-unique3.cc: Add explicit declaration of gets.
16053 * elf/tst-unique3lib.cc: Likewise.
16054 * elf/tst-unique3lib2.cc: Likewise.
16055 * elf/tst-unique4.cc: Likewise.
16056
16057 * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
16058
160592012-01-06 Joseph Myers <joseph@codesourcery.com>
16060
16061 [BZ #13566]
16062 * assert/assert.h (static_assert): Don't define for C++.
16063 * libio/stdio.h (gets): Do declare for C++ <= C++11.
16064 * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
16065
160662012-01-03 Ulrich Drepper <drepper@gmail.com>
16067
16068 * iconv/loop.c (single loop): Fix assertion in storing of
16069 remaining bytes.
16070
16071 * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
16072
160732012-01-01 Ulrich Drepper <drepper@gmail.com>
16074
16075 * posix/getconf.c: Update copyright year.
16076 * nss/getent.c: Likewise.
16077 * nss/makedb.c: Likewise.
16078 * iconv/iconvconfig.c: Likewise.
16079 * iconv/iconv_prog.c: Likewise.
16080 * elf/ldconfig.c: Likewise.
16081 * elf/pldd.c: Likewise.
16082 * elf/sotruss.ksh: Likewise.
16083 * catgets/gencat.c: Likewise.
16084 * csu/version.c: Likewise.
16085 * elf/ldd.bash.in: Likewise.
16086 * elf/sprof.c (print_version): Likewise.
16087 * locale/programs/locale.c: Likewise.
16088 * locale/programs/localedef.c: Likewise.
16089 * login/programs/pt_chown.c: Likewise.
16090 * nscd/nscd.c (print_version): Likewise.
16091 * debug/xtrace.sh: Likewise.
16092 * malloc/memusage.sh: Likewise.
16093 * malloc/mtrace.pl: Likewise.
16094 * debug/catchsegv.sh: Likewise.
16095
160962011-12-30 Jakub Jelinek <jakub@redhat.com>
16097
16098 * posix/regex_internal.c (re_string_fetch_byte_case): Remove
16099 pure attribute.
16100
161012011-12-24 Ulrich Drepper <drepper@gmail.com>
16102
16103 [BZ #13533]
16104 * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
16105 * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
16106 transformations.
16107 * iconv/gconv_int.h: Likewise.
16108 * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
16109 * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
16110 from libc for GLIBC_2.16.
16111 * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
16112 * wcsmbs/wcrtomb.c: Define c32rtomb alias.
16113 * wcsmbs/uchar.h: Really define mbstate_t.
16114 * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
16115 * wcsmbs/c16rtomb.c: New file.
16116 * wcsmbs/mbrtoc16.c: New file.
16117 * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
16118 for C/POSIX locale.
16119 (__wcsmbs_load_conv): Do not fill in c16 routines yet.
16120 * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
16121
16122 * wcsmbs/wchar.h: Add missing __restrict.
16123
161242011-12-23 Ulrich Drepper <drepper@gmail.com>
16125
16126 [BZ #13532]
16127 * time/Makefile (routines): Add timespec_get.
16128 * time/Versions: Export timespec_get from libc for GLIBC_2.16.
16129 * time/time.h: Define TIME_UTC and declare timespec_get. Define
16130 timespec for ISO C11.
16131 * time/timespec_get.c: New file.
16132 * sysdeps/unix/sysv/linux/timespec_get.c: New file.
16133 * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
16134
16135 [BZ #13531]
16136 * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
16137 * stdlib/stdlib.h: Declare aligned_alloc.
16138 * Versions.def: Add GLIBC_2.16 for libc.
16139 * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
16140
16141 [BZ 13527]
16142 * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
16143 ISO C11.
16144
16145 * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
16146 code.
16147
16148 [BZ #13528]
16149 * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
16150
16151 [BZ #13529]
16152 * assert/assert.h (static_assert): Define.
16153
16154 * version.h: Update for 2.16 development version.
16155
16156 [BZ #13526]
16157 * include/features.h: Handle __STDC_VERSION__ >= 201112 and
16158 _ISOC11_SOURCE.
16159
16160 * version.h (RELEASE): Bump for 2.15 release.
16161 * include/features.h (__GLIBC_MINOR__): Bump to 15.
16162
16163 * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
16164 Patch by Marek Polacek <mpolacek@redhat.com>.
16165
16166 * bits/byteswap.h: Protect long long constants with __extension__.
16167 * sysdeps/i386/bits/byteswap.h: Likewise.
16168 * sysdeps/ia64/bits/byteswap.h: Likewise.
16169 * sysdeps/s390/bits/byteswap.h: Likewise.
16170 * sysdeps/x86_64/bits/byteswap.h: Likewise.
16171
161722011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
16173
16174 [BZ #13540]
16175 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
16176 destination buffer.
16177 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
16178
161792011-12-23 Marek Polacek <polacek@redhat.com>
16180
16181 * elf/dl-addr.c (determine_info): Add inline keyword.
16182 * elf/tst-auditmod4b.c (check_avx): Likewise.
16183 * elf/tst-auditmod6b.c (check_avx): Likewise.
16184 * elf/tst-auditmod6c.c (check_avx): Likewise.
16185 * elf/tst-auditmod7b.c (check_avx): Likewise.
16186
161872011-12-23 Ulrich Drepper <drepper@gmail.com>
16188
16189 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
16190 !__SSE_MATH__.
16191
161922011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
16193
16194 [BZ #13540]
16195 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
16196 processing for last bytes.
16197
161982011-08-06 Bruno Haible <bruno@clisp.org>
16199
16200 [BZ #13061]
16201 * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
16202 U+0385, not to U+1FEE.
16203
16204 [BZ #13062]
16205 * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
16206 entry for U+00A5 U+0301.
16207
162082011-12-22 Ulrich Drepper <drepper@gmail.com>
16209
16210 [BZ #13166]
16211 * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
16212 buffer for the output is too small.
16213
16214 * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
16215 optimization.
16216
16217 [BZ #13185]
16218 * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
16219 SSE flags if possible.
16220
162212011-12-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
16222
16223 [BZ #13540]
16224 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
16225 processing for last bytes.
16226
162272011-12-22 Joseph Myers <joseph@codesourcery.com>
16228
16229 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
16230 (syscall-list-default-options, syscall-list-default-condition)
16231 (syscall-list-includes): Define.
16232 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
16233 list of ABIs and options and #if conditions for each ABI. Do not
16234 handle common syscalls between ABIs specially.
16235 * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
16236 Remove.
16237 (syscall-list-variants, syscall-list-32bit-options)
16238 (syscall-list-32bit-condition, syscall-list-64bit-options)
16239 (syscall-list-64bit-condition): Define.
16240 * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
16241 (syscall-list-variants, syscall-list-32bit-options)
16242 (syscall-list-32bit-condition, syscall-list-64bit-options)
16243 (syscall-list-64bit-condition): Define.
16244 * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
16245 Remove.
16246 (syscall-list-variants, syscall-list-32bit-options)
16247 (syscall-list-32bit-condition, syscall-list-64bit-options)
16248 (syscall-list-64bit-condition): Define.
16249 * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
16250 Remove.
16251 (syscall-list-variants, syscall-list-32bit-options)
16252 (syscall-list-32bit-condition, syscall-list-64bit-options)
16253 (syscall-list-64bit-condition): Define.
16254
162552011-12-22 Ulrich Drepper <drepper@gmail.com>
16256
16257 * locale/iso-639.def: Add brx entry.
16258
16259 [BZ #13328]
16260 * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
16261 Proposed by Mariusz_Cukr <marcukr@op.pl>.
16262
16263 * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
16264 __feraiseexcept_renamed.
16265
162662011-12-21 Ulrich Drepper <drepper@gmail.com>
16267
16268 [BZ #13538]
16269 * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
16270 EPOLLET with unsigned values.
16271 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
16272 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
16273
16274 * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
16275 to large cancellation.
16276 * math/s_cacoshf.c: Likewise.
16277 * math/s_cacoshl.c: Likewise.
16278
162792011-11-18 Richard B. Kreckel <kreckel@ginac.de>
16280
16281 [BZ #13305]
16282 [BZ #12786]
16283 * math/s_cacosh.c: Fix rare miscomputation in cacosh().
16284 * math/s_cacoshf.c: Likewise.
16285 * math/s_cacoshl.c: Likewise.
16286
162872011-12-21 Ulrich Drepper <drepper@gmail.com>
16288
16289 [BZ #13439]
16290 * iconv/gconv.h: Define __GCONV_SWAP.
16291 * iconvdata/unicode.c: The swap bit must be stored in __flags.
16292 * iconvdata/utf-16.c: Likewise.
16293 * iconvdata/utf-32.c: Likewise.
16294
162952011-12-21 Andreas Schwab <schwab@linux-m68k.org>
16296
16297 [BZ #13524]
16298 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
16299 numerator after shifting it by one limb.
16300
163012011-12-19 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
16302
16303 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
16304 under [__USE_EXTERN_INLINES].
16305
163062011-12-17 Ulrich Drepper <drepper@gmail.com>
16307
16308 [BZ #13446]
16309 * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
16310
163112011-11-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
16312
16313 * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
16314 * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
16315 optimized code.
16316 * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
16317 * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
16318 * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
16319 * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
16320 for strncasecmp/strncasecmp_l compilation.
16321 * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
16322 * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
16323
163242011-12-08 Marek Polacek <mpolacek@redhat.com>
16325
16326 [BZ #13484]
16327 * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
16328 of __asm__.
16329
163302011-12-17 Ulrich Drepper <drepper@gmail.com>
16331
16332 [BZ #13506]
16333 * time/tzfile.c (__tzfile_read): Check values from file header.
16334
163352011-11-21 Will Schmidt <will_schmidt@vnet.ibm.com>
16336
16337 * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
16338 * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
16339 * powerpc/powerpc32/dl-start.S: Likewise.
16340 * powerpc/powerpc32/elf/start.S: Likewise.
16341 * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
16342 * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
16343 * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
16344 * powerpc/powerpc32/fpu/s_floor.S: Likewise.
16345 * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16346 * powerpc/powerpc32/fpu/s_lround.S: Likewise.
16347 * powerpc/powerpc32/fpu/s_rint.S: Likewise.
16348 * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
16349 * powerpc/powerpc32/fpu/s_round.S: Likewise.
16350 * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16351 * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16352 * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16353 * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
16354 * powerpc/powerpc32/memset.S: Likewise.
16355 * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16356 * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16357 * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16358 * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16359 * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16360 * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
16361 * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
16362 * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
16363 * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
16364 * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
16365 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
16366 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
16367 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
16368
163692011-11-18 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
16370
16371 * math/libm-test.inc: Added more nearbyint tests.
16372 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
16373 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
16374 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
16375 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
16376
163772011-11-21 Ross Lagerwall <rosslagerwall@gmail.com>
16378
16379 * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
16380 FD_CLOEXEC.
16381
163822011-11-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
16383
16384 * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
16385 Add wcscpy-ssse3 wcscpy-c.
16386 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
16387 * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
16388 * sysdeps/x86_64/multiarch/wcscpy.S: New file.
16389 * sysdeps/x86_64/wcschr.S: New file.
16390 * sysdeps/x86_64/wcsrchr.S: New file.
16391 * string/test-strcmp.c: Remove checking of wcscmp function for
16392 wrong alignments.
16393 * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
16394 (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
16395 wcsrchr-sse2 wcsrchr-c.
16396 * sysdeps/i386/i686/multiarch/wcschr.S: New file.
16397 * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
16398 * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
16399 * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
16400 * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
16401 * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
16402 * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
16403 * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
16404 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
16405 * wcsmbc/wcschr.c (WCSCHR): New macro.
16406
164072011-11-17 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
16408
16409 * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
16410 * wcsmbs/test-wcsrchr.c: New file.
16411 * string/test-strrchr.c: Add wcsrchr support.
16412 (WIDE): New macro.
16413 * wcsmbs/test-wcscpy.c: New file.
16414 * string/test-strcpy.c: Add wcscpy support.
16415 (WIDE): New macro.
16416
164172011-12-10 Ulrich Drepper <drepper@gmail.com>
16418
16419 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
16420 the inner loop.
16421
164222011-12-06 Andreas Schwab <schwab@linux-m68k.org>
16423
16424 [BZ #13472]
16425 * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
16426
164272011-12-04 Ulrich Drepper <drepper@gmail.com>
16428
16429 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
16430 Minor optimizations.
16431
16432 * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
16433 * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
16434 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
16435
164362011-12-03 Ulrich Drepper <drepper@gmail.com>
16437
16438 * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
16439 IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
16440 IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
16441 for gcc to avoid warnings.
16442 * inet/Makefile (tests): Add tst-checks.
16443 * inet/tst-checks.c: New file.
16444
16445 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
16446 warning.
16447
16448 * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
16449 __wmemcmp_sse2.
16450
16451 * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
16452 * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
16453
16454 * malloc/mcheck.h: Fix use of incorrect encoding in comment.
16455
164562011-12-02 Ulrich Drepper <drepper@gmail.com>
16457
16458 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16459 problem.
16460
16461 * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16462
164632011-11-29 Joseph Myers <joseph@codesourcery.com>
16464
16465 * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16466 conditional on GCC version.
16467 (__arch_compare_and_exchange_val_8_acq)
16468 (__arch_compare_and_exchange_val_16_acq)
16469 (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16470 (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16471 (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16472
164732011-12-02 Joseph Myers <joseph@codesourcery.com>
16474
16475 * sysdeps/sh/backtrace.c: New file.
16476
164772011-12-02 Andreas Schwab <schwab@redhat.com>
16478
16479 * misc/bits/select2.h (__FD_ELT): Mark as extension. Add
16480 parenthesis.
16481
164822011-12-01 Andreas Schwab <schwab@redhat.com>
16483
16484 * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16485 falling back to utime.
16486
164872011-11-30 Andreas Schwab <schwab@redhat.com>
16488
16489 * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16490 expectations for float.
16491
164922011-11-29 Andreas Schwab <schwab@redhat.com>
16493
16494 * locale/weight.h (findidx): Add parameter len.
16495 * locale/weightwc.h (findidx): Likewise.
16496 * posix/fnmatch_loop.c (FCT): Adjust caller.
16497 * posix/regcomp.c (build_equiv_class): Likewise.
16498 * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16499 * posix/regexec.c (check_node_accept_bytes): Likewise.
16500 * string/strcoll_l.c (STRCOLL): Likewise.
16501 * string/strxfrm_l.c (STRXFRM): Likewise.
16502
165032011-11-17 Ulrich Drepper <drepper@gmail.com>
16504
16505 * Makefile.in: Remove CVSOPT handling.
16506 * configure.in: Remove use of AC_REVISION.
16507 * iconvdata/Makefile (distribute): No need to filter out CVS.
16508 * scripts/list-sources.sh: Remove CVS, subversion and monotone
16509 handling.
16510
165112011-11-16 Andreas Schwab <schwab@redhat.com>
16512
16513 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16514 [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16515 [USE_AS_STRNCASECMP_L]: Likewise.
16516 (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16517 NO_TLS_DIRECT_SEG_REFS.
16518 * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16519 Fix argument offsets for non-PIC.
16520 [USE_AS_STRNCASECMP_L]: Likewise.
16521 (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16522 NO_TLS_DIRECT_SEG_REFS.
16523
165242011-11-15 Ulrich Drepper <drepper@gmail.com>
16525
16526 * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16527 O_CLOEXEC.
16528 * locale/loadlocale.c (_nl_load_locale): Likewise.
16529
165302011-11-15 Andreas Schwab <schwab@redhat.com>
16531
16532 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16533 [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16534 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16535 (SYSCALL_GETTIME): Set errno on error.
16536
16537 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16538 count references to noai6ai_cached.
16539
165402011-11-15 Ulrich Drepper <drepper@gmail.com>
16541
16542 * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16543
16544 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16545 FD_CLOEXEC for /proc/self/maps.
16546
16547 * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16548 FD_CLOEXEC for /proc/meminfo.
16549
16550 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16551 gai.conf.
16552
16553 * resolv/res_query.c (res_hostalias): Don't allow cancellation and set
16554 FD_CLOEXEC for given file.
16555
16556 * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16557
16558 * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16559 FD_CLOEXEC for /etc/hosts.
16560 (_gethtent): Likewise.
16561
16562 * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16563
16564 * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16565 cancellation and set FD_CLOEXEC for /etc/netgroup.
16566
16567 * nss/nss_files/files-key.c (search): Don't allow cancellation when
16568 reading /etc/publickey.
16569
16570 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16571 allow cancellation when reading /etc/group.
16572
16573 * nss/nss_files/files-alias.c (internal_setent): Don't allow
16574 cancellation.
16575 (get_next_alias): Likewise for included file. Also set FD_CLOEXEC.
16576
16577 * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16578 when using data file.
16579
16580 * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16581
16582 * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16583 (write_nis_obj): Use "c" and "e" in fopen.
16584
16585 * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16586
16587 * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16588
16589 * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16590
16591 * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16592
16593 * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16594 locale.alias.
16595
16596 * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16597
16598 * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16599
16600 * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16601
16602 * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16603 file parsing and set FD_CLOEXEC.
16604
166052011-11-14 Ulrich Drepper <drepper@gmail.com>
16606
16607 * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16608
166092011-11-14 Andreas Schwab <schwab@redhat.com>
16610
16611 * malloc/arena.c (arena_get2): Don't call reused_arena when
16612 _int_new_arena failed.
16613
166142011-11-14 Ulrich Drepper <drepper@gmail.com>
16615
16616 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16617 (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16618 * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16619 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16620 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16621 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16622 to compile strcasecmp and strncasecmp.
16623 * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16624 * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16625
16626 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16627
166282011-11-13 Ulrich Drepper <drepper@gmail.com>
16629
16630 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16631 locale-defines.sym to gen-as-const-headers.
16632 (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16633 strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16634 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16635 to compile strcasecmp and strncasecmp.
16636 * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16637 strcasecmp_l and strncasecmp_l.
16638 * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16639 * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16640 * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16641 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16642 * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16643 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16644 * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16645 * sysdeps/i386/i686/multiarch/strncase.S: New file.
16646 * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16647 * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16648 * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16649
166502011-11-12 Ulrich Drepper <drepper@gmail.com>
16651
16652 * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16653 result of SYSDEP_GETTIME_CPU to retval.
16654 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16655 parameter list to macro. Remove trailing semicolon. Adjust users.
16656
16657 * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16658 variable.
16659
16660 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16661 mantissa words.
16662 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16663
16664 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16665 from unused variable.
16666
16667 * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16668 DWARF definitions.
16669 * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16670 for assembling.
16671
16672 * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16673 over namespaces.
16674
16675 * sunrpc/rpc_prot.c (rejected): Fix case value.
16676
16677 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16678 unsigned long long int to avoid warnings in shift.
16679
16680 * posix/regex_internal.c (re_string_reconstruct): Actually use result
16681 of use of trans.
16682 * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16683 variable tmp.
16684
16685 * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16686 * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16687 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16688
16689 * nis/nis_table.c (nis_list): Use variable of correct type for
16690 result of __follow_path call.
16691
166922011-11-07 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
16693
16694 * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16695 of math functions ceil, trunc, floor, round, and sqrt, when
16696 avaliable on the platform.
16697 * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16698 name clash.
16699 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16700 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16701 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16702
167032011-10-30 Marek Polacek <mpolacek@redhat.com>
16704
16705 * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16706 * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16707
167082011-11-11 Roland McGrath <roland@hack.frob.com>
16709
16710 * include/unistd.h: Fix __readlink return type.
16711 Reported by Chris Metcalf <cmetcalf@tilera.com>.
16712
167132011-11-11 Ulrich Drepper <drepper@gmail.com>
16714
16715 * stdlib/ucontext.h: Undo last change for makecontext.
16716
167172011-11-11 Andreas Schwab <schwab@redhat.com>
16718
16719 * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16720
16721 * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16722 * setjmp/setjmp.h: Mark functions as non-leaf.
16723 * setjmp/bits/setjmp2.h: Likewise.
16724 * stdlib/ucontext.h: Likewise.
16725
167262011-11-10 Andreas Schwab <schwab@redhat.com>
16727
16728 * malloc/arena.c (_int_new_arena): Don't increment narenas.
16729 (reused_arena): Don't check arena limit.
16730 (arena_get2): Atomically check arena limit.
16731
167322011-11-08 Ulrich Drepper <drepper@gmail.com>
16733
16734 * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16735 * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16736
16737 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16738 instructions.
16739
167402011-11-07 Andreas Schwab <schwab@redhat.com>
16741
16742 * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16743 handler when locking.
16744
16745 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16746 Fix size of allocated buffer.
16747
167482011-11-04 Andreas Schwab <schwab@redhat.com>
16749
16750 [BZ #10103]
16751 * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16752 declarations for long double functions.
16753 * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16754
16755 * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16756
167572011-11-03 Andreas Schwab <schwab@redhat.com>
16758
16759 * nscd/nscd.c (main): Don't start AVC thread until credentials are
16760 installed.
16761
16762 * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16763 is disabled.
16764
167652011-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16766
16767 * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16768
167692011-11-01 Andreas Schwab <schwab@linux-m68k.org>
16770
16771 * include/alloca.h (stackinfo_alloca_round): Define.
16772 (extend_alloca): Use it.
16773 [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16774 * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16775 here.
16776
16777 * scripts/check-local-headers.sh: Ignore libaudit.h.
16778
16779 * nscd/Makefile (extra-objs): Make recursively expanded.
16780
167812011-11-01 Ulrich Drepper <drepper@gmail.com>
16782
16783 * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16784 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16785
16786 * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16787 * posix/tst-rfc3484-2.c: Likewise.
16788 * posix/tst-rfc3484-3.c: Likewise.
16789
16790 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16791 process_vm_writev.
16792 * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16793 process_vm_writev.
16794 * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16795 process_vm_writev from libc using GLIBC_2.15 version.
16796
16797 * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16798
167992011-10-31 Paul Pluzhnikov <ppluzhnikov@google.com>
16800
16801 * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16802 stack usage.
16803
168042011-10-31 Ulrich Drepper <drepper@gmail.com>
16805
16806 [BZ #13367]
16807 * nss/getent.c (initgroups_keys): Show error message in case no group
16808 names are given.
16809
16810 * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16811 * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16812 __bump_nl_timestamp.
16813 * nscd/connections (nscd_init): When host database is served open
16814 netlink socket and request notification about configuration changes.
16815 (main_loop_poll): Track netlink file descriptor and bump timestamp
16816 in case data becomes available.
16817 (main_loop_epoll): Likewise.
16818 * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16819 (database_pers_head): Add extra_data fileds.
16820 Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16821 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16822 * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16823 Adjust caller.
16824 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16825 in6ai data, call __free_in6ai.
16826 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16827 Add -DHAVE_NETLINK.
16828 * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite. Cache the
16829 interface information. Reuse previous data if netlink timestamp
16830 is not changed.
16831 (__bump_nl_timestamp): New function.
16832 (__free_in6ai): New function.
16833
168342011-10-30 Ulrich Drepper <drepper@gmail.com>
16835
16836 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16837 close_not_cancel_no_status here.
16838 (__check_pf): Reorganize code a bit to not call close twice if OOM.
16839
168402011-10-29 Ulrich Drepper <drepper@gmail.com>
16841
16842 [BZ #13276]
16843 * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16844 return value.
16845
16846 * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16847 * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16848 asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16849
168502011-07-03 Andreas Jaeger <aj@suse.de>
16851
16852 [BZ #10709]
16853 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16854 of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16855 * math/libm-test.inc (sin_test): Add test case.
16856
168572011-10-29 Ulrich Drepper <drepper@gmail.com>
16858
16859 [BZ #13337]
16860 * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16861 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16862
16863 * elf/chroot_canon.c (chroot_canon): Cleanups.
16864
16865 * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16866
16867 [BZ #13335]
16868 * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16869 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16870
16871 * string/test-strchr.c: Make usable for strchrnul testing.
16872 * string/test-strchrnul.c: New file.
16873 * string/Makefile (strop-tests): Add strchrnul.
16874
16875 * po/it.po: Update from translation team.
16876 * po/es.po: Likewise.
16877
168782011-10-28 Ulrich Drepper <drepper@gmail.com>
16879
16880 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16881 the three constants needed as parameters. Drop the others.
16882 (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16883 __m128i_strloadu_tolower.
16884 Create and initialize variable zero and use it in all the places
16885 where _mm_setzero_si128 was used.
16886
16887 * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16888 doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16889 mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16890 * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16891 anymore.
16892 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16893 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16894 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16895 __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16896 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16897 __mpranred, __mptan.
16898 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16899 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16900 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16901 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16902 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16903 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16904 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16905 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16906 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16907
169082011-10-28 Andreas Schwab <schwab@redhat.com>
16909
16910 * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16911 redefine if SHARED.
16912 * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16913
16914 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16915 wide char related routines to wcsmbs subdir.
16916
169172011-10-27 Andreas Schwab <schwab@redhat.com>
16918
16919 [BZ #13344]
16920 * misc/sys/cdefs.h (__THROWNL): Define.
16921 * posix/unistd.h: Use __THREADNL instead of __THREAD
16922 for memory synchronization functions.
16923
169242011-10-26 Roland McGrath <roland@hack.frob.com>
16925
16926 [BZ #13349]
16927 * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16928 doesn't exist.
16929 * manual/stdio.texi (Obstack Streams): Node removed.
16930
169312011-10-26 Andreas Schwab <schwab@redhat.com>
16932
16933 * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16934 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16935 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16936
16937 * math/math_private.h (math_force_eval): Allow non-addressable
16938 arguments.
16939 * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16940
169412011-10-25 Ulrich Drepper <drepper@gmail.com>
16942
16943 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16944 file is not needed.
16945
16946 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16947 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16948 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16949 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16950 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16951 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16952 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16953 * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16954 Add AVX variants.
16955 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16956 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16957 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16958 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16959 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16960 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16961 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16962 * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16963 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16964 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16965 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16966 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16967 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16968 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16969 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16970 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16971 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16972 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16973 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16974
16975 * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16976 all the time. Define bit_AVX. Define HAS_* macros using bit_* macros.
16977
16978 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16979 place. Use VEX encoding when compiling for AVX.
16980
169812011-10-25 Andreas Schwab <schwab@redhat.com>
16982
16983 * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16984 * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16985
16986 * string/test-strchr.c (do_test): Don't generate NUL bytes.
16987
169882011-10-25 Ulrich Drepper <drepper@gmail.com>
16989
16990 * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16991 useless if() expression.
16992 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16993 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16994 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16995 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16996 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16997 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16998 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16999 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17000 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17001 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17002 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17003 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17004 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17005 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17006 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17007 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
17008 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17009 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17010 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
17011
17012 * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
17013
170142011-10-25 Andreas Schwab <schwab@redhat.com>
17015
17016 * elf/dl-deps.c (_dl_map_object_deps): Remove always true
17017 condition.
17018 * elf/dl-fini.c (_dl_sort_fini): Likewise.
17019
170202011-10-25 Ulrich Drepper <drepper@gmail.com>
17021
17022 * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
17023 .text section. Avoid duplicate constants.
17024 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
17025 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17026 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17027 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17028 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17029 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17030 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17031 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17032 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
17033 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
17034 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
17035 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
17036 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
17037 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
17038 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
17039 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
17040 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
17041 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
17042 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17043 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17044 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
17045 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
17046 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17047 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
17048 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
17049 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
17050 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
17051 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
17052 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
17053 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17054 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
17055 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17056 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
17057 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
17058 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
17059 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17060 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17061 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
17062 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
17063 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
17064 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
17065 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
17066 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
17067 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17068 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17069
170702011-10-24 Ulrich Drepper <drepper@gmail.com>
17071
17072 * sysdeps/x86_64/dla.h: Move to ...
17073 * sysdeps/x86_64/fpu/dla.h: ...here.
17074 (DLA_FMS): Some compilers fail to inline __builtin_fma in some
17075 situations. Use __builtin_fma only for gcc 4.6 and up.
17076
17077 * config.make.in: Add have-mfma4 entry.
17078 * configure.in: Substitute libc_cv_cc_fma4.
17079 * math/Makefile (dbl-only-routines): Add sincostab.
17080 * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
17081 Use __sincostab not sincos.
17082 * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
17083 name is a macro.
17084 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17085 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17086 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17087 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. Define singArctan2
17088 using __copysign.
17089 * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr. Don't define
17090 __cr and __cpymn. Define __cpy unless NO___CPY is defined. Define
17091 norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
17092 * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
17093 and __inv.
17094 * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
17095 * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
17096 __copysign.
17097 * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos. Don't
17098 define aliases when function name is a macro.
17099 * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
17100 sysdeps/ieee754/dbl-64/sincos.tbl.
17101 * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
17102 fma4-enabled routines.
17103 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
17104 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
17105 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
17106 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
17107 * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
17108 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
17109 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
17110 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
17111 * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
17112 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
17113 * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
17114 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
17115 * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
17116 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
17117 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
17118 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
17119 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
17120 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
17121 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
17122 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
17123 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
17124 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
17125 * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
17126 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
17127 * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
17128 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
17129 * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
17130 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
17131 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
17132 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
17133
17134 * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
17135 rename.
17136 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17137 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17138 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17139 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17140 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17141 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17142 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17143 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17144
171452011-10-24 Andreas Schwab <schwab@redhat.com>
17146
17147 * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
17148
171492011-10-23 Ulrich Drepper <drepper@gmail.com>
17150
17151 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
17152
17153 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
17154 prediction.
17155 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
17156
17157 * string/strnlen.c: Don't define STRNLEN, reverse logic.
17158 Remove unused variable magic_bits.
17159 * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
17160
17161 * string/strnlen.c: Define and use STRNLEN macro.
17162 * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
17163 Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
17164 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
17165 * wcsmbs/wcslen.c: Define and use WCSLEN.
17166 * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
17167 * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
17168 * sysdeps/i386/i686/multiarch/strnlen.S: New file.
17169 * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
17170 * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
17171 * sysdeps/i386/i686/multiarch/wcslen.S: New file.
17172 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17173
171742011-10-20 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
17175
17176 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17177 strnlen-sse2-no-bsf.
17178 Rename strlen-no-bsf to strlen-sse2-no-bsf.
17179 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
17180 * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
17181 Add strnlen support.
17182 (USE_AS_STRNLEN): New macro.
17183 * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
17184 * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
17185 Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
17186 * sysdeps/x86_64/wcslen.S: New file.
17187
171882011-10-20 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
17189
17190 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17191 XMM-moves are used for copying on small sizes.
17192
171932011-10-19 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
17194
17195 * wcsmbs/Makefile (strop-tests): Add wcschr.
17196 * wcsmbs/test-wcschr.c: New file.
17197 * string/test-strchr.c: Update.
17198 Add wcschr support.
17199 (WIDE): New macro.
17200
172012011-10-18 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
17202
17203 * wcsmbs/Makefile (strop-tests): Add wcslen.
17204 * wcsmbs/test-wcslen.c: New file.
17205 * string/test-strlen.c: Update.
17206 Add wcslen support.
17207 (WIDE): New macro.
17208
172092011-10-23 Ulrich Drepper <drepper@gmail.com>
17210
17211 * po/it.po: Update from translation team.
17212
172132011-09-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
17214
17215 * sysdeps/x86_64/wcscmp.S: Update.
17216 Fix wrong comparison semantics.
17217 wcscmp shall use signed comparison not unsigned.
17218 Don't use substraction to avoid overflow bug.
17219 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
17220 * wcsmbc/wcscmp.c: Likewise.
17221 * string/test-strcmp.c: Likewise.
17222 Add new tests to check cases with negative values.
17223
172242011-10-23 Ulrich Drepper <drepper@gmail.com>
17225
17226 * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
17227 * sysdeps/x86_64/dla.h: ...here. New file.
17228 * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
17229 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17230 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17231 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17232 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17233 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17234 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17235 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17236 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17237
172382011-10-23 Andreas Schwab <schwab@linux-m68k.org>
17239
17240 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
17241 __ynl_finite aliases.
17242
172432011-10-22 Ulrich Drepper <drepper@gmail.com>
17244
17245 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17246
17247 * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
17248 define DLA_FMA.
17249 [DLA_FMA] (EMULV): Use DLA_FMA.
17250 [DLA_FMA] (MUL12): Use EMULV.
17251 * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
17252 that are not needed.
17253 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17254 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17255 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17256 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17257 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17258 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17259 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17260
172612011-10-22 Andreas Schwab <schwab@linux-m68k.org>
17262
17263 * math/s_nan.c: Undef __nan.
17264 * math/s_nanf.c: Undef __nanf.
17265 * math/s_nanl.c: Undef __nanl.
17266 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
17267 "math_private.h".
17268
172692011-10-22 Ulrich Drepper <drepper@gmail.com>
17270
17271 * math/s_catan.c: Add branch predictions.
17272 * math/s_catanf.c: Likewise.
17273 * math/s_catanh.c: Likewise.
17274 * math/s_catanhf.c: Likewise.
17275 * math/s_catanhl.c: Likewise.
17276 * math/s_catanl.c: Likewise.
17277 * math/s_cexp.c: Likewise.
17278 * math/s_cexpf.c: Likewise.
17279 * math/s_cexpl.c: Likewise.
17280 * math/s_clog.c: Likewise.
17281 * math/s_clog10.c: Likewise.
17282 * math/s_clog10f.c: Likewise.
17283 * math/s_clog10l.c: Likewise.
17284 * math/s_clogf.c: Likewise.
17285 * math/s_clogl.c: Likewise.
17286 * math/s_csqrt.c: Likewise.
17287 * math/s_csqrtf.c: Likewise.
17288 * math/s_csqrtl.c: Likewise.
17289 * math/s_ctanf.c: Likewise.
17290 * math/s_ctanh.c: Likewise.
17291 * math/s_ctanhf.c: Likewise.
17292 * math/s_ctanhl.c: Likewise.
17293 * math/s_ctanl.c: Likewise.
17294
17295 * math/math_private.h: Define __nan, __nanf, __nanl.
17296 * math/s_cacosh.c: Include <math_private.h>.
17297 * math/s_cacoshl.c: Likewise.
17298 * math/s_casinh.c: Likewise.
17299 * math/s_casinhf.c: Likewise.
17300 * math/s_casinhl.c: Likewise.
17301 * math/s_ccos.c: Rely entire on ccosh.
17302 * math/s_ccosf.c: Rely entire on ccoshf.
17303 * math/s_ccosl.c: Rely entirely on ccoshl.
17304 * math/s_ccosh.c: Add branch predicion helpers. Add branch prediction.
17305 Remove tests for FE_INVALID.
17306 * math/s_ccoshf.c: Likewise.
17307 * math/s_ccoshl.c: Likewise.
17308 * math/s_csin.c: Likewise.
17309 * math/s_csinf.c: Likewise.
17310 * math/s_csinh.c Likewise.
17311 * math/s_csinhf.c: Likewise.
17312 * math/s_csinhl.c: Likewise.
17313 * math/s_csinl.c: Likewise.
17314 * math/s_ctan.c: Likewise.
17315 * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
17316 * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
17317 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
17318
173192011-10-21 Ulrich Drepper <drepper@gmail.com>
17320
17321 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
17322 compilation problems.
17323
17324 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
17325 __builtin_expect.
17326
173272011-10-20 Ulrich Drepper <drepper@gmail.com>
17328
17329 * sysdeps/i386/configure.in: Test for -mfma4 option.
17330 * config.h.in: Add HAVE_FMA4_SUPPORT entry.
17331 * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
17332 COMMON_CPUID_INDEX_80000001.
17333 * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
17334 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
17335 use it if FMA3 is not supported.
17336 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
17337
17338 * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
17339 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
17340
173412011-10-20 Andreas Schwab <schwab@redhat.com>
17342
17343 [BZ #12892]
17344 * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
17345 it would create a cycle with a link time dependency.
17346
173472011-10-19 Ulrich Drepper <drepper@gmail.com>
17348
17349 * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
17350 instruction.
17351 * string/Makefile (strop-tests): Add rawmemchr.
17352 * string/test-rawmemchr.c: New file.
17353
17354 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
17355 * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file. Split out from...
17356 * sysdeps/x86_64/multiarch/strcmp.S: ...here. Include strcmp-sse42.S
17357 when compiling str{,n}casecmp and when AVX is available. Hook up
17358 new optimized code in initializers.
17359
173602011-10-19 Andreas Schwab <schwab@redhat.com>
17361
17362 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
17363 __feraiseexcept instead of feraiseexcept.
17364
173652011-10-18 Ulrich Drepper <drepper@gmail.com>
17366
17367 * math/math_private.h: Define defaults for libc_fetestexcept and
17368 libc_feupdateenv.
17369 * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
17370 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17371 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17372 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17373 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17374 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17375 libc_fetestexcept and libc_feupdateenv.
17376
17377 * math/math_private.h: Define defaults for libc_feholdexcept_setround,
17378 libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
17379 * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
17380 * sysdeps/x86_64/fpu/math_private.h: Define special version of
17381 libc_feholdexcept_setround.
17382
17383 * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
17384 Add s_nearbyint-c and s_nearbyintf-c.
17385 * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
17386 nearbyintf inlines.
17387 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
17388 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
17389 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
17390 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
17391
17392 * math/math_private.h: Define defaults for libc_fegetround,
17393 libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
17394 libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
17395 libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
17396 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
17397 libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
17398 standard functions.
17399 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17400 Remove comments and hacks for old compiler versions.
17401 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17402 libc_fegetround, libc_fesetround, libc_feholdexcept, and
17403 libc_feholdexceptl.
17404
174052011-10-18 Andreas Schwab <schwab@redhat.com>
17406
17407 * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
17408 (__feraiseexcept_renamed): Add __NTH.
17409 (feraiseexcept): Add __NTH. Rename local variables to fix
17410 namespace violations.
17411
174122011-10-17 Ulrich Drepper <drepper@gmail.com>
17413
17414 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
17415
17416 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
17417
17418 * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
17419 recently added interfaces.
17420 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
17421
17422 * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
17423 about macro parameter expansion.
17424
17425 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
17426 __NO_MATH_INLINES is defined. Cleanups.
17427
17428 * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
17429 and __floorf is target has SSE4.1.
17430 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
17431 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
17432 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
17433 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
17434
17435 * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
17436 name.
17437 (floorf): Likewise.
17438
17439 * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
17440
174412011-10-17 Andreas Schwab <schwab@redhat.com>
17442
17443 * misc/sys/cdefs.h: Fix last change.
17444
17445 * grp/initgroups.c (internal_getgrouplist): Fix initgroups
17446 database lookup.
17447
174482011-10-16 Ulrich Drepper <drepper@gmail.com>
17449
17450 * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
17451
17452 * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
17453 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17454 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17455 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17456 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17457 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17458 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17459 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17460 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17461 * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17462 * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17463 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17464 * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17465 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17466 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17467 * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17468 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17469 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17470 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17471 * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17472 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17473 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17474
17475 * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17476 ceil, ceilf, floor, floorf.
17477
17478 * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17479 Perform IRELATIVE relocations last.
17480
17481 * elf/do-rel.h: Add another parameter nrelative, replacing the
17482 local variable with the same name. Change name of the function
17483 to end in Rel or Rela (uppercase).
17484 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17485 nrelative to ranges. Only nonzero for DT_REL/DT_RELA. Pass to the
17486 elf_dynamic_do_##reloc function.
17487
174882011-10-15 Ulrich Drepper <drepper@gmail.com>
17489
17490 * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17491 is sufficient, at least on modern CPUs.
17492
17493 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17494
17495 * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17496 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17497
17498 * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17499 __expl_finite.
17500 * math/bits/math-finite.h: Add entries for exp.
17501 * math/e_expl.c: Add __*_finite alias.
17502 * sysdeps/i386/fpu/e_exp.S: Likewise.
17503 * sysdeps/i386/fpu/e_expf.S: Likewise.
17504 * sysdeps/i386/fpu/e_expl.c: Likewise.
17505 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17506 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17507 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17508 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17509 * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17510 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17511 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17512
17513 * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17514 is sufficient, at least on modern CPUs.
17515
17516 * ctype/ctype-info.c (__ctype_init): Define.
17517 * include/ctype.h (__ctype_init): Declare.
17518 (__ctype_b_loc): The variable is always initialized.
17519 (__ctype_toupper_loc): Likewise.
17520 (__ctype_tolower_loc): Likewise.
17521 * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17522 * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17523
175242011-10-15 Andreas Schwab <schwab@linux-m68k.org>
17525
17526 * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17527
17528 * configure.in: Also look in $cxxmachine/include for C++ system
17529 headers.
17530
175312011-09-27 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
17532
17533 * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17534 memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17535 * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17536 * sysdeps/x86_64/multiarch/memcmp.S: Update. Add __memcmp_ssse3.
17537 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17538 (USE_AS_WMEMCMP): New macro.
17539 Fixing indents.
17540 * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17541 * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17542 * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17543 * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17544 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17545 wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17546 * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17547 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17548 * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17549 * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17550 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17551 (USE_AS_WMEMCMP): New macro.
17552 * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17553 * sysdeps/string/test-memcmp.c: Update.
17554 Fix simple_wmemcmp.
17555 Add new tests.
17556 * wcsmbs/wmemcmp.c: Update.
17557 (WMEMCMP): New macro.
17558 Fix overflow bug.
17559
175602011-10-12 Andreas Jaeger <aj@suse.de>
17561
17562 [BZ #13268]
17563 * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17564
175652011-10-15 Ulrich Drepper <drepper@gmail.com>
17566
17567 * libio/iofwide.c (do_length): Avoid warning.
17568
17569 * ctype/ctype.h (__isctype_f): Add missing __THROW.
17570
175712011-10-14 Ulrich Drepper <drepper@gmail.com>
17572
17573 * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17574
17575 * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17576 * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17577 * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17578 * sysdeps/i386/i686/fpu/e_log.S: New file.
17579 * sysdeps/i386/i686/fpu/e_logf.S: New file.
17580 * sysdeps/i386/i686/fpu/e_logl.S: New file.
17581
17582 * ctype/ctype.h: Add support for inlined isXXX functions when
17583 compiling C++ code.
17584
175852011-10-14 Andreas Schwab <schwab@redhat.com>
17586
17587 * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17588
17589 * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17590
175912011-10-13 Roland McGrath <roland@hack.frob.com>
17592
17593 [BZ #13291]
17594 * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17595
175962011-10-13 Andreas Schwab <schwab@redhat.com>
17597
17598 * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17599 * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17600 feraiseexcept.
17601
17602 * sysdeps/x86_64/memrchr.S: Check for zero size.
17603
17604 * string/stratcliff.c: Add memrchr tests.
17605
176062011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
17607
17608 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17609 memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17610 rawmemchr-sse2 rawmemchr-sse2-bsf.
17611 * sysdeps/i386/i686/multiarch/memchr.S: New file.
17612 * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17613 * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17614 * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17615 * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17616 * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17617 * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17618 * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17619 * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17620 * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17621 * string/memrchr.c (MEMRCHR): New macro.
17622
176232011-10-12 Ulrich Drepper <drepper@gmail.com>
17624
17625 Add integration with gcc's -ffinite-math-only and optimize wrapper
17626 functions in libm.
17627 * Versions.def: Define GLIBC_2.15 version for libm.
17628 * math/Makefile (headers): Add bits/math-finite.h.
17629 * math/bits/math-finite.h: New file.
17630 * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17631 * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17632 * math/e_acoshl.c: Add __*_finite alias.
17633 * math/e_acosl.c: Likewise.
17634 * math/e_asinl.c: Likewise.
17635 * math/e_atan2l.c: Likewise.
17636 * math/e_atanhl.c: Likewise.
17637 * math/e_coshl.c: Likewise.
17638 * math/e_exp10.c: Likewise.
17639 * math/e_exp10f.c: Likewise.
17640 * math/e_exp10l.c: Likewise.
17641 * math/e_exp2l.c: Likewise.
17642 * math/e_fmodl.c: Likewise.
17643 * math/e_gammal_r.c: Likewise.
17644 * math/e_hypotl.c: Likewise.
17645 * math/e_j0l.c: Likewise.
17646 * math/e_j1l.c: Likewise.
17647 * math/e_jnl.c: Likewise.
17648 * math/e_lgammal_r.c: Likewise.
17649 * math/e_log10l.c: Likewise.
17650 * math/e_log2l.c: Likewise.
17651 * math/e_logl.c: Likewise.
17652 * math/e_powl.c: Likewise.
17653 * math/e_sinhl.c: Likewise.
17654 * math/e_sqrtl.c: Likewise.
17655 * math/e_scalb.c: Completely rewritten and optimized.
17656 * math/e_scalbf.c: Likewise.
17657 * math/e_scalbl.c: Likewise.
17658 * math/w_acos.c: Likewise.
17659 * math/w_acosf.c: Likewise.
17660 * math/w_acosl.c: Likewise.
17661 * math/w_acosh.c: Likewise.
17662 * math/w_acoshf.c: Likewise.
17663 * math/w_acoshl.c: Likewise.
17664 * math/w_asin.c: Likewise.
17665 * math/w_asinf.c: Likewise.
17666 * math/w_asinl.c: Likewise.
17667 * math/w_atan2.c: Likewise.
17668 * math/w_atan2f.c: Likewise.
17669 * math/w_atan2l.c: Likewise.
17670 * math/w_atanh.c: Likewise.
17671 * math/w_atanhf.c: Likewise.
17672 * math/w_atanhl.c: Likewise.
17673 * math/w_exp10.c: Likewise.
17674 * math/w_exp10f.c: Likewise.
17675 * math/w_exp10l.c: Likewise.
17676 * math/w_fmod.c: Likewise.
17677 * math/w_fmodf.c: Likewise.
17678 * math/w_fmodl.c: Likewise.
17679 * math/w_j0.c: Likewise.
17680 * math/w_j0f.c: Likewise.
17681 * math/w_j0l.c: Likewise.
17682 * math/w_j1.c: Likewise.
17683 * math/w_j1f.c: Likewise.
17684 * math/w_j1l.c: Likewise.
17685 * math/w_jn.c: Likewise.
17686 * math/w_jnf.c: Likewise.
17687 * math/w_log.c: Likewise.
17688 * math/w_logf.c: Likewise.
17689 * math/w_logl.c: Likewise.
17690 * math/w_log10.c: Likewise.
17691 * math/w_log10f.c: Likewise.
17692 * math/w_log10l.c: Likewise.
17693 * math/w_log2.c: Likewise.
17694 * math/w_log2f.c: Likewise.
17695 * math/w_log2l.c: Likewise.
17696 * math/w_pow.c: Likewise.
17697 * math/w_powf.c: Likewise.
17698 * math/w_powl.c: Likewise.
17699 * math/w_remainder.c: Likewise.
17700 * math/w_remainderf.c: Likewise.
17701 * math/w_remainderl.c: Likewise.
17702 * math/w_scalb.c: Likewise.
17703 * math/w_scalbf.c: Likewise.
17704 * math/w_scalbl.c: Likewise.
17705 * math/w_sqrt.c: Likewise.
17706 * math/w_sqrtf.c: Likewise.
17707 * math/w_sqrtl.c: Likewise.
17708 * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17709 are declared. Include <bits/math-finite.h> if -ffinite-math-only is
17710 used.
17711 * math/math_private.h: Declare __kernel_standard_f.
17712 * math/w_cosh.c: Remove cruft and optimize a bit.
17713 * math/w_coshf.c: Likewise.
17714 * math/w_coshl.c: Likewise.
17715 * math/w_exp2.c: Likewise.
17716 * math/w_exp2f.c: Likewise.
17717 * math/w_exp2l.c: Likewise.
17718 * math/w_hypot.c: Likewise.
17719 * math/w_hypotf.c: Likewise.
17720 * math/w_hypotl.c: Likewise.
17721 * math/w_lgamma.c: Likewise.
17722 * math/w_lgamma_r.c: Likewise.
17723 * math/w_lgammaf.c: Likewise.
17724 * math/w_lgammaf_r.c: Likewise.
17725 * math/w_lgammal.c: Likewise.
17726 * math/w_lgammal_r.c: Likewise.
17727 * math/w_sinh.c: Likewise.
17728 * math/w_sinhf.c: Likewise.
17729 * math/w_sinhl.c: Likewise.
17730 * math/w_tgamma.c: Likewise.
17731 * math/w_tgammaf.c: Likewise.
17732 * math/w_tgammal.c: Likewise.
17733 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17734 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17735 * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17736 Minor optimizations. Pretty printing. Remove cruft.
17737 * sysdeps/i386/fpu/e_acosf.S: Likewise.
17738 * sysdeps/i386/fpu/e_acosh.S: Likewise.
17739 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17740 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17741 * sysdeps/i386/fpu/e_acosl.c: Likewise.
17742 * sysdeps/i386/fpu/e_asin.S: Likewise.
17743 * sysdeps/i386/fpu/e_asinf.S: Likewise.
17744 * sysdeps/i386/fpu/e_atan2.S: Likewise.
17745 * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17746 * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17747 * sysdeps/i386/fpu/e_atanh.S: Likewise.
17748 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17749 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17750 * sysdeps/i386/fpu/e_exp10.S: Likewise.
17751 * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17752 * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17753 * sysdeps/i386/fpu/e_exp2.S: Likewise.
17754 * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17755 * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17756 * sysdeps/i386/fpu/e_fmod.S: Likewise.
17757 * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17758 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17759 * sysdeps/i386/fpu/e_hypot.S: Likewise.
17760 * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17761 * sysdeps/i386/fpu/e_log.S: Likewise.
17762 * sysdeps/i386/fpu/e_log10.S: Likewise.
17763 * sysdeps/i386/fpu/e_log10f.S: Likewise.
17764 * sysdeps/i386/fpu/e_log10l.S: Likewise.
17765 * sysdeps/i386/fpu/e_log2.S: Likewise.
17766 * sysdeps/i386/fpu/e_log2f.S: Likewise.
17767 * sysdeps/i386/fpu/e_log2l.S: Likewise.
17768 * sysdeps/i386/fpu/e_logf.S: Likewise.
17769 * sysdeps/i386/fpu/e_logl.S: Likewise.
17770 * sysdeps/i386/fpu/e_pow.S: Likewise.
17771 * sysdeps/i386/fpu/e_powf.S: Likewise.
17772 * sysdeps/i386/fpu/e_powl.S: Likewise.
17773 * sysdeps/i386/fpu/e_remainder.S: Likewise.
17774 * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17775 * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17776 * sysdeps/i386/fpu/e_scalb.S: Likewise.
17777 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17778 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17779 * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17780 * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17781 * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17782 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17783 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17784 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17785 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17786 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17787 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17788 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17789 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17790 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17791 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17792 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17793 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17794 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17795 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17796 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17797 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17798 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17799 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17800 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17801 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17802 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17803 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17804 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17805 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17806 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17807 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17808 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17809 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17810 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17811 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17812 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17813 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17814 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17815 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17816 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17817 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17818 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17819 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17820 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17821 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17822 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17823 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17824 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17825 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17826 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17827 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17828 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17829 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17830 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17831 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17832 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17833 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17834 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17835 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17836 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17837 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17838 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17839 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17840 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17841 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17842 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17843 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17844 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17845 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17846 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17847 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17848 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17849 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17850 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17851 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17852 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17853 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17854 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17855 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17856 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17857 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17858 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17859 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17860 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17861 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17862 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17863 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17864 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17865 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17866 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17867 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17868 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17869 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17870 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17871 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17872 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17873 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17874 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17875 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17876 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17877 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17878 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17879 * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17880 * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17881 * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17882 * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17883 * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17884 * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17885 * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17886 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17887 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17888 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17889 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17890 * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17891 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17892 * sysdeps/x86_64/fpu/e_sqrt.c: Likewise. Fix parameter order
17893 * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17894 * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17895 (__isnanf): Likewise.
17896 (__isinf_ns): Likewise.
17897 (__isinf_nsf): Likewise.
17898 (__finite): Likewise.
17899 (__finitef): Likewise.
17900 (__ieee754_sqrt): Define as macro.
17901 (__ieee754_sqrtf): Define as macro.
17902 (__ieee754_sqrtl): Define as macro.
17903 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17904 inlined copy.
17905 * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17906 __FINITE_MATH_ONLY__ consistent.
17907 * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17908
179092011-10-10 Andreas Schwab <schwab@linux-m68k.org>
17910
17911 * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17912 of rawmemchr.
17913
17914 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17915
179162011-10-09 Ulrich Drepper <drepper@gmail.com>
17917
17918 * po/ja.po: Update from translation team.
17919
179202011-10-08 Roland McGrath <roland@hack.frob.com>
17921
17922 * locale/programs/locarchive.c (prepare_address_space): New function.
17923 (create_archive, enlarge_archive, open_archive): Use it.
17924
17925 * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17926 inside [SHARED], where it is used.
17927
17928 * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17929
17930 * nss/getent.c (netgroup_keys): Remove unused variable.
17931 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17932
179332011-10-08 Ulrich Drepper <drepper@gmail.com>
17934
17935 * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17936 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17937 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17938 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17939 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17940 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17941 * math/Makefile (libm-calls): Add s_isinf_ns.
17942 * math/divtc3.c: Use __isinf_nsl instead of isinf.
17943 * math/multc3.c: Likewise.
17944 * math/s_casin.c: Likewise.
17945 * math/s_casinf.c: Likewise.
17946 * math/s_casinl.c: Likewise.
17947 * math/s_ccos.c: Likewise.
17948 * math/s_ccosf.c: Likewise.
17949 * math/s_ccosl.c: Likewise.
17950 * math/s_ctan.c: Likewise.
17951 * math/s_ctanf.c: Likewise.
17952 * math/s_ctanh.c: Likewise.
17953 * math/s_ctanhf.c: Likewise.
17954 * math/s_ctanhl.c: Likewise.
17955 * math/s_ctanl.c: Likewise.
17956 * math/w_fmod.c: Likewise.
17957 * math/w_fmodf.c: Likewise.
17958 * math/w_fmodl.c: Likewise.
17959 * math/w_remainder.c: Likewise.
17960 * math/w_remainderf.c: Likewise.
17961 * math/w_remainderl.c: Likewise.
17962 * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17963 * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17964 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17965 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17966 * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17967 * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17968 * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17969 __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17970
17971 * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17972 of the number.
17973 * stdio-common/printf_fphex.c: Likewise.
17974 * stdio-common/printf_size.c: Likewise.
17975
17976 * math/e_exp10.c: Include math_private.h using <...> not "...".
17977 * math/e_exp10f.c: Likewise.
17978 * math/e_exp10l.c: Likewise.
17979 * math/e_exp2l.c: Likewise.
17980 * math/e_j0l.c: Likewise.
17981 * math/e_j1l.c: Likewise.
17982 * math/e_jnl.c: Likewise.
17983 * math/e_lgammal_r.c: Likewise.
17984 * math/e_rem_pio2l.c: Likewise.
17985 * math/e_scalb.c: Likewise.
17986 * math/e_scalbf.c: Likewise.
17987 * math/e_scalbl.c: Likewise.
17988 * math/k_cosl.c: Likewise.
17989 * math/k_sinl.c: Likewise.
17990 * math/k_tanl.c: Likewise.
17991 * math/s_cacoshf.c: Likewise.
17992 * math/s_catan.c: Likewise.
17993 * math/s_catanf.c: Likewise.
17994 * math/s_catanh.c: Likewise.
17995 * math/s_catanhf.c: Likewise.
17996 * math/s_catanhl.c: Likewise.
17997 * math/s_catanl.c: Likewise.
17998 * math/s_ccosh.c: Likewise.
17999 * math/s_ccoshf.c: Likewise.
18000 * math/s_ccoshl.c: Likewise.
18001 * math/s_cexp.c: Likewise.
18002 * math/s_cexpf.c: Likewise.
18003 * math/s_cexpl.c: Likewise.
18004 * math/s_clog.c: Likewise.
18005 * math/s_clog10.c: Likewise.
18006 * math/s_clog10f.c: Likewise.
18007 * math/s_clog10l.c: Likewise.
18008 * math/s_clogf.c: Likewise.
18009 * math/s_clogl.c: Likewise.
18010 * math/s_csin.c: Likewise.
18011 * math/s_csinf.c: Likewise.
18012 * math/s_csinh.c: Likewise.
18013 * math/s_csinhf.c: Likewise.
18014 * math/s_csinhl.c: Likewise.
18015 * math/s_csinl.c: Likewise.
18016 * math/s_csqrt.c: Likewise.
18017 * math/s_csqrtf.c: Likewise.
18018 * math/s_csqrtl.c: Likewise.
18019 * math/s_ctan.c: Likewise.
18020 * math/s_ctanf.c: Likewise.
18021 * math/s_ctanh.c: Likewise.
18022 * math/s_ctanhf.c: Likewise.
18023 * math/s_ctanhl.c: Likewise.
18024 * math/s_ctanl.c: Likewise.
18025 * math/s_ldexp.c: Likewise.
18026 * math/s_ldexpf.c: Likewise.
18027 * math/s_ldexpl.c: Likewise.
18028 * math/s_significand.c: Likewise.
18029 * math/s_significandf.c: Likewise.
18030 * math/s_significandl.c: Likewise.
18031 * math/w_acos.c: Likewise.
18032 * math/w_acosf.c: Likewise.
18033 * math/w_acosh.c: Likewise.
18034 * math/w_acoshf.c: Likewise.
18035 * math/w_acoshl.c: Likewise.
18036 * math/w_acosl.c: Likewise.
18037 * math/w_asin.c: Likewise.
18038 * math/w_asinf.c: Likewise.
18039 * math/w_asinl.c: Likewise.
18040 * math/w_atan2.c: Likewise.
18041 * math/w_atan2f.c: Likewise.
18042 * math/w_atan2l.c: Likewise.
18043 * math/w_atanh.c: Likewise.
18044 * math/w_atanhf.c: Likewise.
18045 * math/w_atanhl.c: Likewise.
18046 * math/w_cosh.c: Likewise.
18047 * math/w_coshf.c: Likewise.
18048 * math/w_coshl.c: Likewise.
18049 * math/w_dremf.c: Likewise.
18050 * math/w_exp10.c: Likewise.
18051 * math/w_exp10f.c: Likewise.
18052 * math/w_exp10l.c: Likewise.
18053 * math/w_exp2.c: Likewise.
18054 * math/w_exp2f.c: Likewise.
18055 * math/w_fmod.c: Likewise.
18056 * math/w_fmodf.c: Likewise.
18057 * math/w_fmodl.c: Likewise.
18058 * math/w_hypot.c: Likewise.
18059 * math/w_hypotf.c: Likewise.
18060 * math/w_hypotl.c: Likewise.
18061 * math/w_j0.c: Likewise.
18062 * math/w_j0f.c: Likewise.
18063 * math/w_j0l.c: Likewise.
18064 * math/w_j1.c: Likewise.
18065 * math/w_j1f.c: Likewise.
18066 * math/w_j1l.c: Likewise.
18067 * math/w_jn.c: Likewise.
18068 * math/w_jnf.c: Likewise.
18069 * math/w_jnl.c: Likewise.
18070 * math/w_lgamma.c: Likewise.
18071 * math/w_lgamma_r.c: Likewise.
18072 * math/w_lgammaf.c: Likewise.
18073 * math/w_lgammaf_r.c: Likewise.
18074 * math/w_lgammal.c: Likewise.
18075 * math/w_lgammal_r.c: Likewise.
18076 * math/w_log.c: Likewise.
18077 * math/w_log10.c: Likewise.
18078 * math/w_log10f.c: Likewise.
18079 * math/w_log10l.c: Likewise.
18080 * math/w_log2.c: Likewise.
18081 * math/w_log2f.c: Likewise.
18082 * math/w_log2l.c: Likewise.
18083 * math/w_logf.c: Likewise.
18084 * math/w_logl.c: Likewise.
18085 * math/w_pow.c: Likewise.
18086 * math/w_powf.c: Likewise.
18087 * math/w_powl.c: Likewise.
18088 * math/w_remainder.c: Likewise.
18089 * math/w_remainderf.c: Likewise.
18090 * math/w_remainderl.c: Likewise.
18091 * math/w_scalb.c: Likewise.
18092 * math/w_scalbf.c: Likewise.
18093 * math/w_scalbl.c: Likewise.
18094 * math/w_sinh.c: Likewise.
18095 * math/w_sinhf.c: Likewise.
18096 * math/w_sinhl.c: Likewise.
18097 * math/w_sqrt.c: Likewise.
18098 * math/w_sqrtf.c: Likewise.
18099 * math/w_sqrtl.c: Likewise.
18100 * math/w_tgamma.c: Likewise.
18101 * math/w_tgammaf.c: Likewise.
18102 * math/w_tgammal.c: Likewise.
18103
18104 * po/ja.po: Update from translation team.
18105
181062011-09-29 Andreas Jaeger <aj@suse.de>
18107
18108 [BZ #13179]
18109 * sunrpc/netname.c (netname2host): Fix logic.
18110
18111 [BZ #6779]
18112 [BZ #6783]
18113 * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
18114 correctly.
18115 * math/w_remainder.c (__remainder): Likewise.
18116 * math/w_remainderf.c (__remainderf): Likewise.
18117 * math/libm-test.inc (remainder_test): Add test cases.
18118
181192011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18120
18121 * stdlib/longlong.h: Update from GCC. Fix zarch smul_ppmm and
18122 sdiv_qrnnd.
18123
181242011-10-07 Ulrich Drepper <drepper@gmail.com>
18125
18126 * string/test-memcmp.c: Avoid unncessary #defines.
18127 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
18128
181292011-08-31 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
18130
18131 * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
18132 Use new sse2 version for core i3 - i7 as it's faster
18133 than sse42 version.
18134 (bit_Prefer_PMINUB_for_stringop): New.
18135 * sysdeps/x86_64/rawmemchr.S: Update.
18136 Replace with faster SSE2 version.
18137 * sysdeps/x86_64/memrchr.S: New file.
18138 * sysdeps/x86_64/memchr.S: Update.
18139 Replace with faster SSE2 version.
18140
181412011-09-12 Marek Polacek <mpolacek@redhat.com>
18142
18143 * elf/dl-load.c (lose): Add cast to avoid warning.
18144
181452011-10-07 Ulrich Drepper <drepper@gmail.com>
18146
18147 * po/ca.po: Update from translation team.
18148
18149 * inet/getnetgrent_r.c: Hook up nscd.
18150 * nscd/Makefile (routines): Add nscd_netgroup.
18151 (nscd-modules): Add netgroupcache.
18152 (CFLAGS-netgroupcache.c): Define.
18153 * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
18154 (cache_search): Add const to second parameter.
18155 * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
18156 INNETGR.
18157 (dbs): Add netgrdb entry.
18158 (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
18159 (verify_persistent_db): Handle netgrdb.
18160 (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
18161 * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
18162 GETFDNETGR.
18163 (netgroup_response_header): Define.
18164 (innetgroup_response_header): Define.
18165 (datahead): Add netgroup_response_header and innetgroup_response_header
18166 elements.
18167 * nscd/nscd.conf: Add entries for netgroup cache.
18168 * nscd/nscd.h (dbtype): Add netgrdb.
18169 (_PATH_NSCD_NETGROUP_DB): Define.
18170 (netgroup_iov_disabled): Declare.
18171 (xmalloc, xcalloc, xrealloc): Move declarations here.
18172 (cache_search): Adjust prototype.
18173 Add netgroup-related prototypes.
18174 * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
18175 * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
18176 (__nscd_innetgr): Declare.
18177 * nscd/selinux.c (perms): Use access_vector_t as element type and
18178 add netgroup-related initializers.
18179 * nscd/netgroupcache.c: New file.
18180 * nscd/nscd_netgroup.c: New file.
18181 * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
18182 * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
18183 For four parameters use innetgr.
18184 * nss/nss_files/files-init.c: Add definition and callback for netgr.
18185 * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
18186 (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
18187 * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
18188
18189 * nscd/connections.c (register_traced_file): Don't register file
18190 for disabled databases.
18191
181922011-10-06 Ulrich Drepper <drepper@gmail.com>
18193
18194 * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
18195
18196 * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
18197 from tree and freeing node.
18198
181992011-09-25 Jiri Olsa <jolsa@redhat.com>
18200
18201 * nss/nsswitch.c (__nss_database_lookup): Handle
18202 nss_parse_service_list out of memory case.
18203
182042011-09-15 Jiri Olsa <jolsa@redhat.com>
18205
18206 * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
18207 out of memory case.
18208
182092011-10-04 Andreas Schwab <schwab@redhat.com>
18210
18211 * include/dlfcn.h (__RTLD_NOIFUNC): Define.
18212 * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
18213 pass it down.
18214 * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
18215 elf_machine_rela, elf_machine_lazy_rel.
18216 (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
18217 (ELF_DYNAMIC_DO_REL): Likewise.
18218 (ELF_DYNAMIC_DO_RELA): Likewise.
18219 (ELF_DYNAMIC_RELOCATE): Likewise.
18220 * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
18221 to ELF_DYNAMIC_DO_REL.
18222 * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
18223 (dl_main): In trace mode always set __RTLD_NOIFUNC.
18224 * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
18225 elf_machine_rela.
18226 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
18227 skip_ifunc, don't call ifunc function if non-zero.
18228 (elf_machine_rela): Likewise.
18229 (elf_machine_lazy_rel): Likewise.
18230 (elf_machine_lazy_rela): Likewise.
18231 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18232 (elf_machine_lazy_rel): Likewise.
18233 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18234 Likewise.
18235 (elf_machine_lazy_rel): Likewise.
18236 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18237 Likewise.
18238 (elf_machine_lazy_rel): Likewise.
18239 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
18240 (elf_machine_lazy_rel): Likewise.
18241 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
18242 (elf_machine_lazy_rel): Likewise.
18243 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18244 (elf_machine_lazy_rel): Likewise.
18245 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
18246 (elf_machine_lazy_rel): Likewise.
18247 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
18248 (elf_machine_lazy_rel): Likewise.
18249 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18250 (elf_machine_lazy_rel): Likewise.
18251
182522011-09-28 Ulrich Drepper <drepper@gmail.com>
18253
18254 * nss/nss_files/files-init.c (_nss_files_init): Use static
18255 initialization for all the *_traced_file variables.
18256
182572011-09-28 Andreas Schwab <schwab@redhat.com>
18258
18259 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18260
182612011-09-27 Roland McGrath <roland@hack.frob.com>
18262
18263 [BZ #13226]
18264 * manual/signal.texi (Longjmp in Handler): Grammar fixes.
18265
182662011-09-27 Andreas Schwab <schwab@redhat.com>
18267
18268 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
18269 Reread the line before reparsing it.
18270
182712011-09-26 Andreas Schwab <schwab@redhat.com>
18272
18273 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
18274
182752011-09-21 Chung-Lin Tang <cltang@codesourcery.com>
18276 Maxim Kuvyrkov <maxim@codesourcery.com>
18277 Joseph Myers <joseph@codesourcery.com>
18278
18279 * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
18280 if needed for __stack_chk_guard.
18281
182822011-09-19 Roland McGrath <roland@hack.frob.com>
18283
18284 * sysdeps/posix/spawni.c (script_execute): Always define it.
18285 It will be optimized away if unused.
18286 (maybe_script_execute): New function.
18287 (__spawni): Call it.
18288
18289 * Makerules: Don't include tls.make.
18290 (config-tls): Always set to thread.
18291 * tls.make.c: File removed.
18292
182932011-09-19 Mike Frysinger <vapier@gentoo.org>
18294
18295 * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
18296 * config.make.in (CPPFLAGS-config): New substituted variable.
18297
182982011-09-15 Ulrich Drepper <drepper@gmail.com>
18299
18300 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
18301
18302 [BZ #13192]
18303 * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
18304 Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
18305
183062011-09-15 Roland McGrath <roland@hack.frob.com>
18307
18308 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
18309 (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
18310 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18311 (CALL_FAIL): Likewise.
18312 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
18313 (CALL_FAIL): Macro removed.
18314 Patch mostly by Mike Frysinger <vapier@gentoo.org>.
18315
183162011-09-15 Ulrich Drepper <drepper@gmail.com>
18317
18318 * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
18319 for __FINITE_MATH_ONLY__ == 1.
18320
183212011-09-15 Andreas Schwab <schwab@redhat.com>
18322
18323 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
18324 __ieee754_sqrt instead of sqrt.
18325 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
18326 __ieee754_sqrtf instead of sqrtf.
18327 * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
18328 __floorf instead of floorf.
18329 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
18330 __floorf, __truncf instead of floorf, truncf.
18331
183322011-09-14 Ulrich Drepper <drepper@gmail.com>
18333
18334 * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
18335
18336 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
18337 __extern_always_inline.
18338 Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
18339 32-bit.
18340
183412011-09-14 Andreas Schwab <schwab@redhat.com>
18342
18343 * elf/rtld.c (dl_main): Also relocate in dependency order when
18344 doing symbol dependency testing.
18345
183462011-09-13 Andreas Schwab <schwab@linux-m68k.org>
18347
18348 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18349 Always define `refsym'.
18350
183512011-09-13 Andreas Schwab <schwab@redhat.com>
18352
18353 * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
18354 (__FD_ELT): Renamed from __FDELT.
18355 * misc/bits/select2.h (__FD_ELT): Likewise.
18356 * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
18357 __FD_MASK instead of __FDELT, __FDMASK.
18358 * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
18359 Likewise.
18360 * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
18361 Likewise.
18362
18363 * elf/Makefile (gen-ldd): Fix pattern.
18364
18365 * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
18366 (init_tls): Likewise.
18367
183682011-09-12 Ulrich Drepper <drepper@gmail.com>
18369
18370 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
18371
183722011-09-12 Andreas Schwab <schwab@redhat.com>
18373
18374 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
18375 `struct cmsghdr *' instead of `void *'.
18376 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
18377 Likewise.
18378
183792011-09-11 Andreas Schwab <schwab@linux-m68k.org>
18380
18381 * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
18382 if non-absolute.
18383 * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
18384 ldd_rewrite_script.
18385
183862011-09-11 Ulrich Drepper <drepper@gmail.com>
18387
18388 * configure.in: Remove --with-tls option.
18389 * config.h.in: Remove HAVE_TLS_SUPPORT entry.
18390 * sysdeps/i386/elf/configure.in: Always test for TLS support and err
18391 out in case it is missing.
18392 * sysdeps/ia64/elf/configure.in: Likewise.
18393 * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
18394 * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
18395 * sysdeps/s390/s390-32/elf/configure.in: Likewise.
18396 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
18397 * sysdeps/sh/elf/configure.in: Likewise.
18398 * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
18399 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
18400 * sysdeps/x86_64/elf/configure.in: Likewise.
18401 * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
18402 * sysdeps/mach/hurd/tls.h: Likewise.
18403
18404 [BZ #13067]
18405 * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
18406
18407 [BZ #13090]
18408 * configure.in: Fix use of AC_INIT.
18409
18410 * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
18411
184122011-09-10 Ulrich Drepper <drepper@gmail.com>
18413
18414 * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
18415 __set_errno.
18416 * malloc/hooks.c: Likewise.
18417
18418 [BZ #11929]
18419 * malloc/arena.c (ptmalloc_init_minimal): Removed. Initialize all
18420 variables statically.
18421 (narenas): Initialize.
18422 (list_lock): Initialize.
18423 (ptmalloc_init): Don't call ptmalloc_init_minimal. Remove
18424 initializtion of main_arena and list_lock. Small cleanups.
18425 Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
18426 * malloc/malloc.c: Remove malloc_getpagesize. Include <ldsodefs.h>.
18427 Add initializers to main_arena and mp_.
18428 (malloc_state): Remove pagesize member. Change all users to use
18429 GLRO(dl_pagesize).
18430
18431 * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
18432 * sysdeps/unix/sysv/linux/getpagesize.c: Simplify. GLRO(dl_pagesize)
18433 is always initialized.
18434
18435 * malloc/malloc.c: Removed unused configurations and dead code.
18436 * malloc/arena.c: Likewise.
18437 * malloc/hooks.c: Likewise.
18438 * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
18439
18440 * include/tls.h: Removed. USE___THREAD must always be defined.
18441 * bits/libc-tsd.h: Don't handle !USE___THREAD.
18442 * elf/dl-libc.c: Likewise.
18443 * elf/dl-tsd.c: Likewise.
18444 * include/errno.h: Likewise.
18445 * include/netdb.h: Likewise.
18446 * include/resolv.h: Likewise.
18447 * inet/herrno-loc.c: Likewise.
18448 * inet/herrno.c: Likewise.
18449 * malloc/arena.c: Likewise.
18450 * malloc/hooks.c: Likewise.
18451 * malloc/malloc.c: Likewise.
18452 * resolv/res-state.c: Likewise.
18453 * resolv/res_libc.c: Likewise.
18454 * sysdeps/i386/dl-machine.h: Likewise.
18455 * sysdeps/ia64/dl-machine.h: Likewise.
18456 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
18457 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18458 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18459 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18460 * sysdeps/sh/dl-machine.h: Likewise.
18461 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18462 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18463 * sysdeps/unix/i386/sysdep.S: Likewise.
18464 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18465 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18466 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18467 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18468 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18469 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18470 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18471 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18472 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18473 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18474 * sysdeps/unix/x86_64/sysdep.S: Likewise.
18475 * sysdeps/x86_64/dl-machine.h: Likewise.
18476 * tls.make.c: Likewise.
18477
18478 * configure.in: Remove --with-__thread option. Make tests for
18479 --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18480 tls_model attribute fail if no support is available. Remove
18481 USE_IN_LIBIO.
18482 * Makeconfig: Adjust for dropped configure option. All features are
18483 now mandatory.
18484 * Makerules: Likewise.
18485 * Versions.def: Likewise.
18486 * argp/argp-fmtstream.c: Likewise.
18487 * argp/argp-fmtstream.h: Likewise.
18488 * argp/argp-help.c: Likewise.
18489 * assert/assert.c: Likewise.
18490 * config.h.in: Likewise.
18491 * config.make.in: Likewise.
18492 * configure: Likewise.
18493 * configure.in: Likewise.
18494 * csu/Versions: Likewise.
18495 * csu/init.c: Likewise.
18496 * elf/tst-audit2.c: Likewise.
18497 * elf/tst-tls10.c: Likewise.
18498 * elf/tst-tls10.h: Likewise.
18499 * elf/tst-tls11.c: Likewise.
18500 * elf/tst-tls12.c: Likewise.
18501 * elf/tst-tls14.c: Likewise.
18502 * elf/tst-tlsmod11.c: Likewise.
18503 * elf/tst-tlsmod12.c: Likewise.
18504 * elf/tst-tlsmod13.c: Likewise.
18505 * elf/tst-tlsmod13a.c: Likewise.
18506 * elf/tst-tlsmod14a.c: Likewise.
18507 * elf/tst-tlsmod15b.c: Likewise.
18508 * elf/tst-tlsmod16a.c: Likewise.
18509 * elf/tst-tlsmod16b.c: Likewise.
18510 * elf/tst-tlsmod7.c: Likewise.
18511 * elf/tst-tlsmod8.c: Likewise.
18512 * elf/tst-tlsmod9.c: Likewise.
18513 * gmon/gmon.c: Likewise.
18514 * grp/fgetgrent_r.c: Likewise.
18515 * grp/putgrent.c: Likewise.
18516 * hurd/fopenport.c: Likewise.
18517 * include/libc-symbols.h: Likewise.
18518 * include/tls.h: Likewise.
18519 * intl/gettextP.h: Likewise.
18520 * intl/loadinfo.h: Likewise.
18521 * locale/global-locale.c: Likewise.
18522 * locale/localeinfo.h: Likewise.
18523 * mach/devstream.c: Likewise.
18524 * malloc/arena.c: Likewise.
18525 * malloc/set-freeres.c: Likewise.
18526 * misc/err.c: Likewise.
18527 * misc/getttyent.c: Likewise.
18528 * misc/mntent_r.c: Likewise.
18529 * posix/getopt.c: Likewise.
18530 * posix/wordexp.c: Likewise.
18531 * pwd/fgetpwent_r.c: Likewise.
18532 * resolv/Versions: Likewise.
18533 * resolv/res_hconf.c: Likewise.
18534 * shadow/fgetspent_r.c: Likewise.
18535 * shadow/putspent.c: Likewise.
18536 * stdio-common/printf_fphex.c: Likewise.
18537 * stdio-common/tmpfile.c: Likewise.
18538 * stdlib/abort.c: Likewise.
18539 * stdlib/fmtmsg.c: Likewise.
18540 * sunrpc/auth_unix.c: Likewise.
18541 * sunrpc/clnt_perr.c: Likewise.
18542 * sunrpc/clnt_tcp.c: Likewise.
18543 * sunrpc/clnt_udp.c: Likewise.
18544 * sunrpc/clnt_unix.c: Likewise.
18545 * sunrpc/openchild.c: Likewise.
18546 * sunrpc/svc_simple.c: Likewise.
18547 * sunrpc/svc_tcp.c: Likewise.
18548 * sunrpc/svc_udp.c: Likewise.
18549 * sunrpc/svc_unix.c: Likewise.
18550 * sunrpc/xdr.c: Likewise.
18551 * sunrpc/xdr_array.c: Likewise.
18552 * sunrpc/xdr_rec.c: Likewise.
18553 * sunrpc/xdr_ref.c: Likewise.
18554 * sunrpc/xdr_stdio.c: Likewise.
18555
185562011-09-09 Ulrich Drepper <drepper@gmail.com>
18557
18558 * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18559
185602011-07-03 Andreas Jaeger <aj@suse.de>
18561
18562 * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18563 * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18564 regenerate with gen-libm-tests.pl.
18565
185662010-05-12 Petr Baudis <pasky@suse.cz>
18567
18568 [BZ #11589]
18569 * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18570 around j0() zero points by switching to j1().
18571 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18572 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18573 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18574 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18575
185762011-09-09 Ulrich Drepper <drepper@gmail.com>
18577
18578 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18579 instead of 0.
18580 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18581 instead of 0. .
18582 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18583 Patch in part by Pavel Roskin <proski@gnu.org>.
18584
18585 [BZ #13138]
18586 * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18587 realloc.
18588 (_IO_vfscanf_internal): Remove reteof. Use errout after setting done.
18589 Free memory block if necessary.
18590
18591 [BZ #12847]
18592 * libio/genops.c (INTDEF): For string streams the _lock pointer can
18593 be NULL. Don't lock in this case.
18594
185952011-09-09 Roland McGrath <roland@hack.frob.com>
18596
18597 * elf/elf.h (ELFOSABI_GNU): New macro.
18598 (ELFOSABI_LINUX): Define to that.
18599
186002011-07-29 Denis Zaitceff <zaitceff@gmail.com>
18601
18602 * string/strncat.c (strncat): Undef the symbol in case it has been
18603 defined in bits/string.h.
18604
186052011-09-09 Ulrich Drepper <drepper@gmail.com>
18606
18607 * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18608
18609 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18610 link map.
18611
186122011-08-17 Andreas Jaeger <aj@suse.de>
18613
18614 * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18615
186162011-08-18 Paul Pluzhnikov <ppluzhnikov@google.com>
18617 Ian Lance Taylor <iant@google.com>
18618
18619 * math/libm-test.inc (lround_test): New testcase.
18620 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18621
186222011-09-08 Ulrich Drepper <drepper@gmail.com>
18623
18624 * Makefile: Remove support for automatic cvs check-ins.
18625 * Makerules: Likewise.
18626 * config.make.in: Likewise.
18627 * configure.in: Likewise.
18628 * intl/Makefile: Likewise.
18629 * locale/Makefile: Likewise.
18630 * po/Makefile: Likewise.
18631 * posix/Makefile: Likewise.
18632 * sysdeps/gnu/Makefile: Likewise.
18633 * sysdeps/mach/hurd/Makefile: Likewise.
18634 * sysdeps/sparc/sparc32/Makefile: Likewise.
18635
18636 [BZ #13118]
18637 * posix/Makefile (bug-regex32-ENV): Define.
18638 Patch by John Stanley <jpsinthemix@verizon.net>.
18639
18640 * misc/Makefile (headers): Add bits/select2.h.
18641 * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18642 * misc/bits/select2.h: New file.
18643 * include/bits/select2.h: New file.
18644 * debug/Makefile (routines): Add fdelt_chk.
18645 * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18646 * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18647 FD_ISSET.
18648 * debug/fdelt_chk.c: New file.
18649
18650 * wcsmbs/test-wcscmp.c: Moved from string/*. Adjust.
18651 * wcsmbs/test-wmemcmp.c: Likewise.
18652 * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18653 * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18654
186552011-09-08 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
18656
18657 * string/Makefile (strop-tests): Add memcmp.
18658 * string/test-wmemcmp.c: New file.
18659 * string/test-memcmp.c: Add wmemcmp support.
18660
186612011-09-08 Roland McGrath <roland@hack.frob.com>
18662
18663 [BZ #13153]
18664 * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18665 2011-07-19 change.
18666
18667 * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18668 garbage value in a __mach_port_mod_refs call in the cases of the
18669 task-self and thread-self ports.
18670
186712011-09-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
18672
18673 * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18674
186752011-09-08 Andreas Schwab <schwab@redhat.com>
18676
18677 * elf/dl-load.c (lose): Check for non-null L.
18678
186792011-09-07 Ulrich Drepper <drepper@gmail.com>
18680
18681 * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18682
18683 * elf/dl-libc.c (dlerror_run): Pass back error code from
18684 dl_catch_error.
18685
18686 [BZ #13123]
18687 * elf/dl-load.c (lose): Free l_origin if it is valid.
18688
18689 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18690 names.
18691 * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18692 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18693 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18694 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18695 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18696 Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18697
186982011-08-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18699
18700 * sysdeps/powerpc/fpu/e_hypot.c: New file.
18701 * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18702 * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18703 * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18704 * sysdeps/powerpc/fpu/k_cosf.c: New file.
18705 * sysdeps/powerpc/fpu/k_sinf.c: New file.
18706 * sysdeps/powerpc/fpu/s_cosf.c: New file.
18707 * sysdeps/powerpc/fpu/s_sinf.c: New file.
18708 * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18709 * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18710
187112011-08-15 Alan Modra <amodra@gmail.com>
18712
18713 [BZ #13092]
18714 * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18715 * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18716 * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here. Add
18717 ppc_mcount to static-only-routines.
18718 * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18719 __mcount_internal.
18720 * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18721 __mcount_internal with usual JUMPTARGET. Remove useless nop.
18722
187232011-08-18 David Flaherty <flaherty@linux.vnet.ibm.com>
18724
18725 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18726 for finite and infinity parameters.
18727
187282011-08-04 Will Schmidt <will_schmidt@vnet.ibm.com>
18729
18730 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18731 and add nop instructions for throughput optimization.
18732 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18733
187342011-07-28 Will Schmidt <will_schmidt@vnet.ibm.com>
18735
18736 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18737 aligned copy for power7 with vector-scalar instructions.
18738 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18739
187402011-07-24 H.J. Lu <hongjiu.lu@intel.com>
18741
18742 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18743 AVX check.
18744
187452011-09-07 Andreas Schwab <schwab@redhat.com>
18746
18747 [BZ #13144]
18748 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18749 last change.
18750
187512011-09-07 Ulrich Drepper <drepper@gmail.com>
18752
18753 * sysdeps/unix/sysv/linux/x86_64/init-first.c
18754 (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18755 syscall wrapper around clock_gettime in __vdso_clock_gettime.
18756 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18757 clock_gettime.
18758
187592011-09-06 Ulrich Drepper <drepper@gmail.com>
18760
18761 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18762 Forgot to demangle the pointer.
18763
18764 * sysdeps/i386/sysdep.h: Define atom_text_section.
18765 * sysdeps/x86_64/sysdep.h: Likewise.
18766 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18767 section with atom_text_section.
18768 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18769 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18770 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18771 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18772 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18773
18774 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18775 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18776 already be defined. Change to take two parameters and don't assign
18777 result to variable. Adjust all users.
18778 Define INTERNAL_GETTIME if not already defined.
18779 Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18780 call.
18781 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18782 HAVE_CLOCK_GETTIME_VSYSCALL.
18783 * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18784
18785 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18786 gettimeofday vsyscall, just use time.
18787
187882011-09-06 Andreas Schwab <schwab@redhat.com>
18789
18790 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18791 <errno.h>.
18792
187932011-09-06 Ulrich Drepper <drepper@gmail.com>
18794
18795 * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18796 syscall on x86-64.
18797 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18798 syscall.
18799 * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18800 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18801 syscall if possible.
18802
188032011-09-05 Ulrich Drepper <drepper@gmail.com>
18804
18805 * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18806 e_ident. Don't pass to find_mapsXX.
18807 * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18808
188092011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
18810
18811 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18812 strchr-sse2-no-bsf strrchr-sse2-no-bsf
18813 * sysdeps/x86_64/multiarch/strchr.S: Update.
18814 Check bit_slow_BSF bit.
18815 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18816 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18817 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18818
188192011-09-05 Ulrich Drepper <drepper@gmail.com>
18820
18821 [BZ #13134]
18822 * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18823 before glibc 2.15.
18824 (tryshell): Define.
18825 (__spawni): Change last parameter to be flag. Test
18826 SPAWN_XFLAGS_USE_PATH flag to use path or not.
18827 Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18828 * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18829 * posix/spawni.c: Likewise.
18830 * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18831 * posix/spawnp.c: Likewise. Change normal version to use
18832 SPAWN_XFLAGS_USE_PATH.
18833 * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18834 SPAWN_XFLAGS_TRY_SHELL.
18835
18836 [BZ #13150]
18837 * posix/glob.h: Remove gcc 1.x support.
18838
18839 [BZ #13068]
18840 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18841
188422011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
18843
18844 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18845 strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18846 strrchr-sse2-bsf
18847 * sysdeps/i386/i686/multiarch/strchr.S: New file.
18848 * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18849 * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18850 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18851 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18852 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18853
188542011-08-29 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
18855
18856 * sysdeps/x86_64/wcscmp.S: New file.
18857
18858 * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18859 wcscmp-c wcscmp-sse2
18860 * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18861 * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18862 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18863 * wcsmbs/wcscmp.c: Allow renaming.
18864
188652011-09-05 David S. Miller <davem@davemloft.net>
18866
18867 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18868 stack slot, rather than the struct return pointer slot.
18869 * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18870 * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18871 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18872 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18873
188742011-09-05 Ulrich Drepper <drepper@gmail.com>
18875
18876 * po/ja.po: Update from translation team.
18877
18878 [BZ #13144]
18879 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18880 kernel in 64-bit binaries.
18881
188822011-09-01 David S. Miller <davem@davemloft.net>
18883
18884 * elf/elf.h (HWCAP_SPARC_*): Move to..
18885 * sysdeps/sparc/sysdep.h: this new file and add new values.
18886 * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18887 * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18888 _DL_HWCAP_COUNT to 24.
18889 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18890 entries.
18891 * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18892 __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18893 * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18894 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18895 instead of magic constants.
18896 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18897
188982011-08-31 David S. Miller <davem@davemloft.net>
18899
18900 * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18901 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18902 Reimplement to do errno handling inline.
18903 (SYSCALL_ERROR_HANDLER): New macro.
18904 (__SYSCALL_STRING): Do not do errno handling in asm.
18905 (__CLONE_SYSCALL_STRING): Delete.
18906 (__INTERNAL_SYSCALL_STRING): Delete.
18907 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18908 sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18909 (PSEUDO): Reimplement to do errno handling inline.
18910 (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18911 (SYSCALL_ERROR_HANDLER): New macro.
18912 (__SYSCALL_STRING): Do not do errno handling in asm.
18913 (__CLONE_SYSCALL_STRING): Delete.
18914 (__INTERNAL_SYSCALL_STRING): Delete.
18915 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18916 Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18917 i386.
18918 (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18919 (inline_syscall*): Add 'err' argument.
18920 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18921 INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18922 (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18923 INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18924
18925 * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18926 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18927
189282011-08-30 Andreas Schwab <schwab@redhat.com>
18929
18930 * elf/rtld.c (dl_main): Relocate objects in dependency order.
18931
189322011-08-29 Jiri Olsa <jolsa@redhat.com>
18933
18934 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18935 directive.
18936
189372011-08-24 David S. Miller <davem@davemloft.net>
18938
18939 * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18940
189412011-08-24 Andreas Schwab <schwab@redhat.com>
18942
18943 * elf/Makefile: Add rules to build and run unload8 test.
18944 * elf/unload8.c: New file.
18945 * elf/unload8mod1.c: New file.
18946 * elf/unload8mod1x.c: New file.
18947 * elf/unload8mod2.c: New file.
18948 * elf/unload8mod3.c: New file.
18949
18950 * elf/dl-close.c (_dl_close_worker): Reset private search list if
18951 it wasn't used.
18952
189532011-08-23 David S. Miller <davem@davemloft.net>
18954
18955 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18956 subtract stack bias.
18957 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18958 %sp not %fp in calculations.
18959 (_JMPBUF_UNWINDS_ADJ): Likewise.
18960
18961 * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18962 (aio_suspend): Call it to force an exception region around the
18963 AIO_MISC_WAIT() invocation.
18964
189652011-08-23 Andreas Schwab <schwab@redhat.com>
18966
18967 * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18968 backslash.
18969
189702011-07-04 Aurelien Jarno <aurelien@aurel32.net>
18971
18972 * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18973 protection macro.
18974 * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18975 and <dl-machine.h>.
18976 (Elf64_FuncDesc): Remove.
18977
189782011-08-22 David S. Miller <davem@davemloft.net>
18979
18980 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18981 sigaltstack check, add missing cfi directives.
18982 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18983 missing cfi directives, and sigaltstack handling.
18984
189852011-08-16 Andreas Schwab <schwab@redhat.com>
18986
18987 [BZ #11724]
18988 * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18989 object is seen twice.
18990 * elf/dl-fini.c (_dl_sort_fini): Likewise.
18991
18992 * elf/Makefile (distribute): Add tst-initorder2.c.
18993 (tests): Add tst-initorder2.
18994 (modules-names): Add tst-initorder2a tst-initorder2b
18995 tst-initorder2c tst-initorder2d. Add rules to build them.
18996 ($(objpfx)tst-initorder2.out): New rule.
18997 * elf/tst-initorder2.c: New file.
18998 * elf/tst-initorder2.exp: New file.
18999
190002011-08-22 Andreas Schwab <schwab@redhat.com>
19001
19002 * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
19003
19004 * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
19005 dependencies back to end of function.
19006
19007 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19008 $(elfobjdir)/ld.so.
19009
190102011-08-21 Ulrich Drepper <drepper@gmail.com>
19011
19012 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
19013 * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
19014 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
19015 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
19016 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
19017 of __vdso_gettimeofday.
19018 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
19019 __vdso_gettimeofday and __vdso_time. Define __vdso_getcpu with
19020 attribute_hidden.
19021 (_libc_vdso_platform_setup): Remove initialization of
19022 __vdso_gettimeofday and __vdso_time.
19023
190242011-08-20 Ulrich Drepper <drepper@gmail.com>
19025
19026 * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
19027 and fgetc_unlocked.
19028 * nss/nss_files/files-key.c (search): Use fgets_unlocked and
19029 getc_unlocked.
19030
19031 * elf/dl-open.c (add_to_global): Report additions to the global scope
19032 for LD_DEBUG=scopes.
19033 (dl_open_worker): Also print scope of newly loaded dependencies.
19034 (_dl_show_scope): Indicate if there is no scope.
19035
19036 [BZ #13114]
19037 * stdio-common/Makefile (tests): Add bug24.
19038 * stdio-common/bug24.c: New file.
19039
190402011-08-19 Andreas Jaeger <aj@suse.de>
19041
19042 [BZ #13114]
19043 * libio/fileops.c (_IO_new_file_fopen): Fix handling of
19044 non-existant file when using close-on-exec mode.
19045
190462011-08-20 Ulrich Drepper <drepper@gmail.com>
19047
19048 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
19049 the very first instruction.
19050
19051 * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
19052 the CFI state in the end.
19053 * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
19054 inclusion of dl-trampoline.h.
19055 Based on a patch by Jiri Olsa <jolsa@redhat.com>.
19056
190572011-08-19 Andreas Schwab <schwab@redhat.com>
19058
19059 * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
19060 expectations for long double.
19061
19062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
19063 from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
19064
190652011-08-14 David S. Miller <davem@davemloft.net>
19066
19067 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
19068 artificual limit depends upon the system page size.
19069
190702011-08-17 Ulrich Drepper <drepper@gmail.com>
19071
19072 * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
19073 * resolv/Makefile: Define CFLAGS-libresolv.
19074
190752011-08-17 Andreas Schwab <schwab@redhat.com>
19076
19077 * nss/makedb.c (compute_tables): Make variables used in nested
19078 function static.
19079
190802011-08-17 Ulrich Drepper <drepper@gmail.com>
19081
19082 * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
19083 * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
19084 if buffer was too small.
19085
19086 * elf/pldd.c (main): Attach to all threads in the process.
19087 Rewrite /proc handling to use *at functions.
19088
190892011-08-16 Ulrich Drepper <drepper@gmail.com>
19090
19091 * elf/dl-open.c (_dl_show_scope): Take additional parameter which
19092 specifies first scope to show.
19093 (dl_open_worker): Update callers. Move printing scope of new
19094 object to before the relocation.
19095 * elf/rtld.c (dl_main): Update _dl_show_scope call.
19096 * sysdeps/generic/ldsodefs.h: Update declaration.
19097
19098 * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
19099 string for the scope number.
19100
191012011-08-14 Ulrich Drepper <drepper@gmail.com>
19102
19103 * nscd/servicescache.c (cache_addserv): Make sure written is always
19104 initialized.
19105
191062011-08-14 Roland McGrath <roland@hack.frob.com>
19107
19108 * sysdeps/i386/i486/bits/atomic.h
19109 (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
19110 statement expression, so as to suppress "set but not used" warning.
19111 (__arch_c_compare_and_exchange_val_64_acq): Likewise.
19112
19113 * string/strncat.c (STRNCAT): Use prototype definition.
19114
19115 * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
19116 (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
19117 -Iprograms here.
19118 (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
19119 (localedef-modules): Add localedef.
19120 (locale-modules): Add locale.
19121
19122 * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
19123 * elf/rtld.c (dl_main): Invert order of assignment in last change,
19124 to avoid a warning.
19125
191262011-08-14 David S. Miller <davem@davemloft.net>
19127
19128 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
19129 RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
19130
191312011-08-13 Ulrich Drepper <drepper@gmail.com>
19132
19133 * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
19134 (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
19135 * elf/rtld.c (dl_main): Set l_name of vDSO.
19136 Call _dl_show_scope when DL_DEBUG_SCOPES.
19137 (process_dl_debug): Recognize scopes flag and also set it for all.
19138 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
19139 Declare _dl_show_scope.
19140
19141 * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
19142 (do_dlopen): Pass caller_dlopen to dl_open.
19143 (__libc_dlopen_mode): Initialize caller_dlopen.
19144
19145 * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
19146 of libc. Make tolower call locale-independent. Optimize a bit by
19147 using isdigit instead of isalnum.
19148 * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
19149
191502011-08-12 Ulrich Drepper <drepper@gmail.com>
19151
19152 * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
19153 was a dependency or dynamically loaded.
19154
191552011-08-11 Ulrich Drepper <drepper@gmail.com>
19156
19157 * intl/l10nflist.c: Allow architecture-specific pop function.
19158 * sysdeps/x86_64/l10nflist.c: New file.
19159
19160 * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
19161 classification.
19162
191632011-08-10 Andreas Schwab <schwab@redhat.com>
19164
19165 * include/dirent.h: Add libc_hidden_proto for scandirat and
19166 scandirat64. Don't declare __scandirat64.
19167 * dirent/scandirat.c: Add libc_hidden_def.
19168 * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
19169 * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
19170
191712011-08-10 David S. Miller <davem@davemloft.net>
19172
19173 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
19174 enum.
19175 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19176 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19177 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19178
191792011-08-09 Ulrich Drepper <drepper@gmail.com>
19180
19181 * Versions.def [libc]: Add GLIBC_2.15.
19182 * dirent/Makefile (routines): Add scandirat and scandirat64.
19183 * dirent/Versions [libc]: Export scandirat and scandirat64 for
19184 GLIBC_2.15.
19185 * dirent/dirent.h: Declare scandirat and scandirat64.
19186 * dirent/scandirat.c: New file.
19187 * dirent/scandirat64.c: New file.
19188 * sysdeps/wordsize-64/scandirat.c: New file.
19189 * sysdeps/wordsize-64/scandirat64.c: New file.
19190 * dirent/opendir.c: Define opendirat.
19191 * dirent/scandir.c: Move code to scandirat.c. Implement scandir
19192 using scandirat.
19193 * dirent/scandir64.c: Adjust for scandir.c change.
19194 * include/dirent.h: Define scandir_cancel_struct. Declare __opendirat,
19195 __scandirat64, and __scandir_cancel_handler.
19196 * sysdeps/unix/opendir.c: Rename __opendir to __opendirat. Take
19197 additional parameter and use openat instead of open (outside of ld.so).
19198 Add new __opendir as wrapper around __opendirat.
19199 * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
19200 here without requiring old scandirat implementation.
19201
192022011-08-08 Ulrich Drepper <drepper@gmail.com>
19203
19204 * dirent/scandir.c (cancel_handler): Renamed to
19205 __scandir_cancel_handler. Do not define if SKIP_SCANDIR_CANCEL is
19206 defined. Adjust users.
19207 * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
19208 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
19209
192102011-08-04 Ulrich Drepper <drepper@gmail.com>
19211
19212 * string/test-string.h (IMPL): Use __STRING to expand name and then
19213 stringify it.
19214
19215 * string/test-strcmp.c: Unify most of the WIDE and !WIDE code. Lots
19216 of cleanups.
19217
192182011-07-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
19219
19220 * string/Makefile: Update.
19221 (strop-tests): Append strncat.
19222 * string/test-wcscmp.c: New file.
19223 New comprehensive test for wcscmp.
19224 * string/test-strcmp.c: Update.
19225 (WIDE): New define.
19226
192272011-07-22 Andreas Schwab <schwab@redhat.com>
19228
19229 * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
19230 line.
19231
192322011-07-26 Andreas Schwab <schwab@redhat.com>
19233
19234 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19235 encoding to ACE if AI_IDN.
19236
192372011-08-01 Jakub Jelinek <jakub@redhat.com>
19238
19239 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
19240 to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
19241
192422011-07-22 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
19243
19244 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
19245 Fix overflow bug in strncat.
19246 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
19247
19248 * string/test-strncat.c: Update.
19249 Add new tests for checking overflow bugs.
19250
192512011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
19252
19253 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19254 strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
19255 * sysdeps/i386/i686/multiarch/strcat.S: New file.
19256 * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
19257 * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
19258 * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
19259 * sysdeps/i386/i686/multiarch/strncat.S: New file.
19260 * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
19261 * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
19262
19263 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
19264 (USE_AS_STRCAT): Define.
19265 Add strcat and strncat support.
19266 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
19267
192682011-07-25 Andreas Schwab <schwab@redhat.com>
19269
19270 * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
19271 __n bigger than INT_MAX+1.
19272 (__strncmp_g): Likewise.
19273
192742011-07-23 Ulrich Drepper <drepper@gmail.com>
19275
19276 * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
19277 * libio/stido.h: Likewise.
19278
19279 * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
19280 (AF_NFC): Define.
19281 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
19282 (AF_NFC): Define.
19283
19284 * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
19285 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19286 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19287 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19288 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19289
19290 [BZ #13021]
19291 * scripts/test-installation.pl: Don't expect libnss_test1 to be
19292 installed.
19293
19294 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
19295 typo.
19296 (_dl_x86_64_save_sse): Likewise.
19297
192982011-07-22 Ulrich Drepper <drepper@gmail.com>
19299
19300 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
19301 OSXSAVE.
19302 (_dl_x86_64_save_sse): Likewise.
19303
19304 * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
19305
19306 * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
19307
193082011-07-21 Andreas Schwab <schwab@redhat.com>
19309
19310 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
19311 change.
19312 (_dl_x86_64_save_sse): Use correct AVX check.
19313
193142011-07-21 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
19315
19316 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
19317 bug in strncpy/strncat.
19318 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
19319
193202011-07-21 Ulrich Drepper <drepper@gmail.com>
19321
19322 * string/tester.c (test_strcat): Add tests for different alignments
19323 of source and destination.
19324 (test_strncat): Likewise.
19325
193262011-07-20 Ulrich Drepper <drepper@gmail.com>
19327
19328 [BZ #12852]
19329 * posix/glob.c (glob): Check passed in values before using them in
19330 expressions to avoid some overflows.
19331 (glob_in_dir): Likewise.
19332
19333 [BZ #13007]
19334 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
19335 check for AVX enablement so that we don't crash with old kernels and
19336 new hardware.
19337 * elf/tst-audit4.c: Add same checks here.
19338 * elf/tst-audit6.c: Likewise.
19339
19340 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
19341
193422011-07-09 Andreas Schwab <schwab@linux-m68k.org>
19343
19344 * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
19345
193462011-07-20 Ulrich Drepper <drepper@gmail.com>
19347
19348 * po/cs.po: Update from translation team.
19349 * po/bg.po: Likewise.
19350
193512011-07-12 Marek Polacek <mpolacek@redhat.com>
19352
19353 * misc/sys/cdefs.h: Add support for const attribute.
19354 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
19355 to gnu_dev_{major,minor,makedev} functions.
19356
193572011-07-20 Marek Polacek <mpolacek@redhat.com>
19358
19359 * intl/dcigettext.c (get_output_charset): Add missing bracket.
19360
193612011-07-20 Andreas Schwab <schwab@redhat.com>
19362
19363 * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
19364 strlen results.
19365
193662011-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19367
19368 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
19369 (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
19370 register in order to avoid conflicts with the soft frame pointer
19371 being held in r11 when necessary.
19372 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19373 (INTERNAL_VSYSCALL_NCS): Likewise.
19374
193752011-07-14 Marek Polacek <mpolacek@redhat.com>
19376
19377 * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
19378 * elf/dl-fini.c (_dl_fini): Adjust caller.
19379 * elf/dl-close.c (_dl_close_worker): Likewise.
19380 * sysdeps/generic/ldsodefs.h: Adjust declaration.
19381
193822011-07-15 Marek Polacek <mpolacek@redhat.com>
19383
19384 * elf/cache.c (load_aux_cache): Remove unnecessary condition of
19385 "aux_cache->nlibs < 0".
19386
19387 * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
19388 in the reload-count case.
19389
193902011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
19391
19392 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19393 strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
19394 strncat-sse2-unaligned strncat-c strlen-sse2-pminub
19395 * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
19396 * sysdeps/x86_64/multiarch/strcat.S: New file.
19397 * sysdeps/x86_64/multiarch/strncat.S: New file.
19398 * sysdeps/x86_64/multiarch/strncat-c.c: New file.
19399 * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
19400 * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
19401 * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
19402 * sysdeps/x86_64/multiarch/strcpy-ssse3.S
19403 (USE_AS_STRCAT): Define.
19404 Add strcat and strncat support.
19405 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
19406 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
19407 * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
19408 * string/strncat.c: Update.
19409 (USE_AS_STRNCAT): Define.
19410 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19411 Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
19412 and i7.
19413 * sysdeps/x86_64/multiarch/init-arch.h
19414 (bit_Prefer_PMINUB_for_stringop): New.
19415 (index_Prefer_PMINUB_for_stringop): Likewise.
19416 * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
19417 bit_Prefer_PMINUB_for_stringop.
19418
194192011-07-19 Ulrich Drepper <drepper@gmail.com>
19420
19421 * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
19422 buffer64.
19423 * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
19424 of casting of buffer.
19425 * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
19426 buffer32 and buffer64.
19427 * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
19428 writes instead of casting of buffer.
19429 * crypt/md5.h (struct md5_ctx): Move buffer into union and add
19430 buffer32.
19431 * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
19432 casting of buffer.
19433
194342011-07-19 Andreas Schwab <schwab@redhat.com>
19435
19436 * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
19437
194382011-07-19 Ulrich Drepper <drepper@gmail.com>
19439
19440 * nscd/nscd.c (termination_handler): Don't do anything for a database
19441 if it has not yet been initialized.
19442
194432011-07-18 Ulrich Drepper <drepper@gmail.com>
19444
19445 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19446
194472011-07-15 Marek Polacek <mpolacek@redhat.com>
19448
19449 * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19450
194512011-07-18 Ulrich Drepper <drepper@gmail.com>
19452
19453 * po/nl.po: Update from translation team.
19454 * po/sv.po: Likewise.
19455
194562011-07-16 Roland McGrath <roland@hack.frob.com>
19457
19458 * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19459 now disallowed by GCC.
19460
19461 * configure.in (use-default-link): Default to yes if a test -shared
19462 link meets our qualifications.
19463 * configure: Regenerated.
19464
19465 * config.make.in (output-format): New variable.
19466 * configure.in: Check for ld --print-output-format support.
19467 * configure: Regenerated.
19468 * Makerules ($(common-objpfx)format.lds)
19469 [$(output-format) != unknown]: Just use $(output-format),
19470 instead of the linker-script munging.
19471
194722011-07-14 Roland McGrath <roland@hack.frob.com>
19473
19474 * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19475 of $(common-objpfx)shlib.lds.
19476 * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19477
19478 * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19479 Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19480
19481 * configure.in (-z relro check): Adjust test code to add a large
19482 writable data section after it.
19483 * configure: Regenerated.
19484
194852011-07-11 Roland McGrath <roland@hack.frob.com>
19486
19487 * configure.in (-z relro check): Fix test code to make the variable
19488 truly const.
19489 * configure: Regenerated.
19490
194912011-07-11 Ulrich Drepper <drepper@gmail.com>
19492
19493 * nscd/nscd.h (struct traced_file): Define.
19494 (struct database_dyn): Remove inotify_descr, reset_res, and filename
19495 elements. Add traced_files.
19496 (inotify_fd): Declare.
19497 (register_traced_file): Declare.
19498 * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19499 (inotify_fd): Export.
19500 (resolv_conf_descr): Remove.
19501 (nscd_init): Move inotify descriptor creation to main.
19502 Don't register files for notification here.
19503 (register_traced_file): New function.
19504 (invalidate_cache): Don't use reset_res to determine whether to call
19505 res_init, go through the list of registered files.
19506 (main_loop_poll): The inotify descriptors are now stored in the
19507 structures for the traced files.
19508 (main_loop_epoll): Likewise
19509 * nscd/nscd.c (main): Create inotify socket here. Pass extra argument
19510 to __nss_disable_nscd.
19511 * nscd/cache.c (prune_cache): There is no single inotify descriptor
19512 for a database anymore. Check the records for all the registered
19513 files instead.
19514 * nss/Makefile (libnss_files-routines): Add files-init.
19515 (libnss_db-routines): Add db-init.
19516 * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19517 [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19518 * nss/nss_db/db-init.c: New file.
19519 * nss/nss_files/files-init.c: New file.
19520 * nss/nsswitch.c (nss_load_library): New function. Broken out of
19521 __nss_lookup_function.
19522 (__nss_lookup_function): Call nss_load_library.
19523 (nss_load_all_libraries): New function.
19524 (__nss_disable_nscd): Take parameter with callback function for files
19525 to register. Set is_nscd. Load all the DSOs for the NSS modules
19526 used for the cached services.
19527 * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19528 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19529 options for features to all the files in nscd.
19530
19531 * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19532
195332011-07-10 Roland McGrath <roland@hack.frob.com>
19534
19535 * csu/elf-init.c (__libc_csu_init): Comment typo.
19536
195372011-07-09 Ulrich Drepper <drepper@gmail.com>
19538
19539 * po/pl.po: Update from translation team.
19540 * po/ja.po: Likewise.
19541 * po/ru.po: Likewise.
19542 * po/ko.po: Likewise.
19543 * po/fr.po: Likewise.
19544
195452011-07-09 Roland McGrath <roland@hack.frob.com>
19546
19547 * configure.in (.ctors/.dtors header and trailer check):
19548 Use an empirical test on a built program.
19549 * configure: Regenerated.
19550
19551 * configure.in (-z relro check): Use an empirical test on a built DSO.
19552 Detect, but do not require, on ia64.
19553 * configure: Regenerated.
19554
19555 * configure.in (READELF): Find it with AC_CHECK_TOOL.
19556 Update tests that use readelf to use $READELF instead.
19557 * configure: Regenerated.
19558
195592011-07-08 Ulrich Drepper <drepper@gmail.com>
19560
19561 * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19562 if the result is not used.
19563
195642011-07-05 Andreas Jaeger <aj@suse.de>
19565
19566 [BZ#9696]
19567 * stdlib/tst-strtod.c: Add testcase.
19568
195692011-07-07 Ulrich Drepper <drepper@gmail.com>
19570
19571 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19572 (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19573 The latter has a higher limit. Take additional parameter to pass to
19574 the new function.
19575 (__pathconf): Pass file to __statfs_link_max.
19576 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19577 __statfs_link_max.
19578 * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19579 __statfs_link_max.
19580
19581 [BZ #12868]
19582 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19583 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19584 Handle Lustre.
19585 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19586 (__statfs_filesize_max): Likewise.
19587 Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19588
195892011-07-05 Andreas Jaeger <aj@suse.de>
19590
19591 * resolv/res_comp.c (dn_skipname): Remove unused variable.
19592
195932011-07-06 Marek Polacek <mpolacek@redhat.com>
19594
19595 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19596 `status' variable.
19597 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19598 Likewise.
19599
196002011-07-04 H.J. Lu <hongjiu.lu@intel.com>
19601
19602 * Makefile (strop-tests): Add strncat.
19603 * string/test-strncat.c: New file.
19604
196052011-06-30 Marek Polacek <mpolacek@redhat.com>
19606
19607 * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19608
196092011-06-21 Andreas Jaeger <aj@suse.de>
19610
19611 * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19612 Copy rule from iconvdata/Makefile.
19613
196142011-07-06 Ulrich Drepper <drepper@gmail.com>
19615
19616 [BZ #12922]
19617 * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19618 but no long options are defined, just return 'W'.
19619
196202011-06-22 Marek Polacek <mpolacek@redhat.com>
19621
19622 [BZ #9696]
19623 * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19624
196252011-07-06 Ulrich Drepper <drepper@gmail.com>
19626
19627 * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19628 netgroups to read.
19629 (innetgr): Likewise.
19630
196312011-07-05 Roland McGrath <roland@hack.frob.com>
19632
19633 * config.make.in (install_root): Default to $(DESTDIR).
19634
196352011-07-05 Ulrich Drepper <drepper@gmail.com>
19636
19637 * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19638
196392011-07-02 Roland McGrath <roland@hack.frob.com>
19640
19641 * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19642
19643 * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19644 containing directory rather than embedding absolute directory names.
19645
19646 * scripts/check-local-headers.sh: Rewritten using awk.
19647 Match by word, not by line. Print error messages for matches.
19648 * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19649
19650 * Makerules [shlib-lds-flags empty]:
19651 ($(common-objpfx)libc_pic.opts): New target.
19652 ($(common-objpfx)libc_pic.os.clean): New target.
19653 ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19654
19655 * config.make.in (OBJCOPY): New variable.
19656 * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19657 * configure: Regenerated.
19658
19659 * config.make.in (use-default-link): New variable.
19660 * configure.in (use_default_link): Grok --with-default-link to set it.
19661 * configure: Regenerated.
19662 * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19663 (shlib-lds, shlib-lds-flags): Define to empty.
19664
19665 * Makerules (shlib-lds): New variable.
19666 (shlib-lds-flags): New variable.
19667 (build-shlib, build-moduile, build-module-asneeded): Use it.
19668 ($(common-objpfx)libc.so): Use $(shlib-lds).
19669 ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19670 * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19671
19672 * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19673 DT_FLAGS/DT_FLAGS_1 with zero flags.
19674
19675 * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19676 linker script munging.
19677
196782011-07-02 Ulrich Drepper <drepper@gmail.com>
19679
19680 * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19681 as 128-bit value.
19682 * crypt/sha512.c (sha512_process_block): Perform total addition using
19683 128-bit if possible.
19684 (__sha512_finish_ctx): Likewise.
19685 * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19686 as 64-bit value.
19687 * crypt/sha256.c (SWAP64): Define.
19688 (sha256_process_block): Perform total addition using 64-bit if
19689 possible.
19690 (__sha256_finish_ctx): Likewise.
19691
196922011-07-01 Ulrich Drepper <drepper@gmail.com>
19693
19694 * nscd/pwdcache.c (cache_addpw): Cleanup. Add branch prediction.
19695 * nscd/initgrcache.c (addinitgroupsX): Likewise.
19696 * nscd/hstcache.c (cache_addhst): Likewise.
19697 * nscd/grpcache.c (cache_addgr): Likewise.
19698 * nscd/aicache.c (addhstaiX): Likewise
19699 * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19700
197012011-07-01 Thorsten Kukuk <kukuk@suse.de>
19702
19703 * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19704 * nscd/initgrcache.c (addinitgroupsX): Likewise.
19705 * nscd/hstcache.c (cache_addhst): Likewise.
19706 * nscd/grpcache.c (cache_addgr): Likewise.
19707 * nscd/aicache.c (addhstaiX): Likewise
19708
197092011-07-01 Andreas Schwab <schwab@redhat.com>
19710
19711 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19712 domain only when needed.
19713
197142011-06-30 Andreas Schwab <schwab@redhat.com>
19715
19716 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19717 is always restored.
19718
197192011-06-29 Ulrich Drepper <drepper@gmail.com>
19720
19721 * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19722 are re-adding the entry.
19723 * nscd/servicescache.c (cache_addserv): Likewise.
19724
197252011-06-30 Aurelien Jarno <aurelien@aurel32.net>
19726
19727 * sysdeps/generic/dl-irel.h: fix protection against multiple
19728 inclusions.
19729 * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19730
197312011-06-28 Ulrich Drepper <drepper@gmail.com>
19732
19733 [BZ #12935]
19734 * malloc/memusage.sh: Fix quoting in message.
19735 * debug/xtrace.sh: Likewise.
19736
19737 * configure.in: Remove support for --experimental-malloc option, make
19738 it the default.
19739 * config.make.in: Likewise.
19740 * malloc/Makefile: Likewise.
19741
197422011-06-27 Andreas Schwab <schwab@redhat.com>
19743
19744 * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19745 two-byte characters.
19746
197472011-06-27 Roland McGrath <roland@hack.frob.com>
19748
19749 * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19750 AC_CACHE_CHECK invocation.
19751 * configure: Regenerated.
19752
19753 * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19754
197552011-06-27 Ulrich Drepper <drepper@gmail.com>
19756
19757 [BZ #12350]
19758 * nscd/aicache.c (addhstaiX): Restore only RES_USE_INET6
19759 bit from old_res_options.
19760
19761 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19762
19763 * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19764 value type for setfct.
19765
197662011-06-23 H.J. Lu <hongjiu.lu@intel.com>
19767
19768 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19769 __gettimeofday instead of gettimeofday.
19770
197712011-06-26 Ulrich Drepper <drepper@gmail.com>
19772
19773 * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19774
197752011-06-24 H.J. Lu <hongjiu.lu@intel.com>
19776
19777 * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19778
19779 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19780 info.
19781
197822011-06-22 H.J. Lu <hongjiu.lu@intel.com>
19783
19784 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19785 strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19786 strcpy-sse2-unaligned strncpy-sse2-unaligned
19787 stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19788 * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19789 * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19790 * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19791 * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19792 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19793 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19794 * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19795 * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19796 * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19797 (STRCPY): Support SSE2 and SSSE3 versions.
19798
197992011-06-24 Ulrich Drepper <drepper@gmail.com>
19800
19801 [BZ #12874]
19802 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19803 * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19804 kernels which artificially limit size of requests.
19805
198062011-06-22 H.J. Lu <hongjiu.lu@intel.com>
19807
19808 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19809 strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19810 strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19811 * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19812 * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19813 * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19814 * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19815 * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19816 * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19817 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19818 * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19819 * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19820 * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19821 * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19822 * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19823 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19824 Enable unaligned load optimization for Intel Core i3, i5 and i7
19825 processors.
19826 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19827 Define.
19828 (index_Fast_Unaligned_Load): Define.
19829 (HAS_FAST_UNALIGNED_LOAD): Define.
19830
198312011-06-23 Marek Polacek <mpolacek@redhat.com>
19832
19833 * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19834
198352011-06-22 Ulrich Drepper <drepper@gmail.com>
19836
19837 [BZ #12907]
19838 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19839 until it is clear that the information is realy needed.
19840 Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19841
198422011-06-22 Andreas Schwab <schwab@redhat.com>
19843
19844 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19845
198462011-06-22 Ulrich Drepper <drepper@gmail.com>
19847
19848 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19849 /sys/devices/system/cpu/online if it is usable.
19850
19851 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19852 reading the information from the /proc filesystem to once a second.
19853
198542011-06-21 Andreas Jaeger <aj@suse.de>
19855
19856 * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19857 NULL after inclusion of kernel headers.
19858
198592011-06-21 Ulrich Drepper <drepper@gmail.com>
19860
19861 * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19862 calls to internal_setent.
19863
19864 [BZ #12885]
19865 * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19866 addresses using gethostbyname4_r ignore IPv4 addresses.
19867
19868 * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19869 branch using gethostbyname2 is only for AF_INET. Optimize accordingly.
19870
19871 * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19872
198732011-06-20 David S. Miller <davem@davemloft.net>
19874
19875 * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19876 inclusions.
19877 * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19878
19879 * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19880 (elf_irel): Use it.
19881 * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19882 * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19883 * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19884 * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19885 * sysdeps/x86_64/dl-irel.h: Likewise.
19886
19887 * elf/dl-runtime.c: Use elf_ifunc_invoke.
19888 * elf/dl-sym.c: Likewise.
19889
198902011-06-15 Ulrich Drepper <drepper@gmail.com>
19891
19892 * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch. We
19893 need to dereference resplen2.
19894
198952011-06-14 Andreas Schwab <schwab@redhat.com>
19896
19897 * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19898
198992011-06-15 Ulrich Drepper <drepper@gmail.com>
19900
19901 * Makeconfig: Define vardbdir and inst_vardbdir.
19902 * nss/Makefile: Add rules to install db-Makefile.
19903
19904 * nss/nss_db/db-XXX.c: Cleanup.
19905
19906 * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19907 * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19908 GLIBC_PRIVATE.
19909 * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19910 * nss/makedb.c: Implement -g option to specify that value strings
19911 are generated and should not be added to table iterated over for
19912 get*ent calls.
19913 * nss/nss_db/db-initgroups.c: New file.
19914
19915 * nss/getent.c: Add support for initgroups lookups through getgrouplist
19916 interface.
19917
19918 * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19919 (internal_getgrouplist): Adjust to name change.
19920 Update use_initgroups_entry if this is not the first call.
19921 * nss/databases.def: Add initgroups entry.
19922
19923 * nss/makedb.c (compute_tables): Check result of multiple hash table
19924 sizes to minimize maximum chain length.
19925
199262011-06-14 Ulrich Drepper <drepper@gmail.com>
19927
19928 * Versions.def: Add entry for libnss_db.
19929 * shlib-versions: Likewise.
19930 * nss/Makefile: Add rules to build libnss_db.
19931 * nss/Versions: Add libnss_db information. Organize libnss_files
19932 entries better.
19933 * nss/db-Makefile: Add gshadow support. Change rules for the new
19934 makedb progra. Some minor improvements to generate smaller files.
19935 * nss/nss_db/nss_db.h: Move NSS database header data structures to
19936 here from...
19937 * nss/makedb.c: ...here.
19938 Improve database format to be smaller and require less memory at
19939 runtime.
19940 * nss/nss_db/db-XXX.x: Adjust for new database format. Don't use
19941 db anymore.
19942 * nss/nss_db/db-netgrp.c: Likewise.
19943 * nss/nss_db/db-open.c: Likewise.
19944 * nss/nss_files/flies-XXX.x: Adjust comments.
19945 * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19946 * nss/nss_files/files-grp.c: Likewise.
19947 * nss/nss_files/files-hosts.c: Likewise.
19948 * nss/nss_files/files-network.c: Likewise.
19949 * nss/nss_files/files-proto.c: Likewise.
19950 * nss/nss_files/files-pwd.c: Likewise.
19951 * nss/nss_files/files-rpc.c: Likewise.
19952 * nss/nss_files/files-service.c: Likewise.
19953 * nss/nss_files/files-sgrp.c: Likewise.
19954 * nss/nss_files/files-spwd.c: Likewise.
19955 * nss/nss_db/db-alias.c: Removed.
19956 * nss/nss_db/dummy-db.h: Removed.
19957
199582011-06-02 Ulrich Drepper <drepper@gmail.com>
19959
19960 * nss/makedb.c: Rewritten to not use database library.
19961 * nss/Makefile: Update to build new makedb program.
19962
199632011-06-14 Andreas Jaeger <aj@suse.de>
19964
19965 * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19966 memset declaration.
19967
199682011-06-10 Andreas Schwab <schwab@redhat.com>
19969
19970 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19971 tmpbuf.
19972
199732011-06-10 Roland McGrath <roland@hack.frob.com>
19974
19975 * Makerules (shlib.lds): Fail if the linker script comes out empty.
19976 * elf/Makefile ($(objpfx)ld.so): Likewise.
19977
19978 * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19979 Don't list ld.so twice in dependencies.
19980
19981 * posix/bug-regex31.c: Include <stdlib.h>.
19982
19983 * nscd/hstcache.c (cache_addhst): Remove unused variable.
19984
19985 * nis/nss_compat/compat-spwd.c
19986 (getspent_next_nss_netgr): Remove unused variable.
19987 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19988
19989 * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19990 nonmembers" output to use the right array.
19991
19992 * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19993
19994 * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19995
19996 * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19997 * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19998 * catgets/gencat.c (read_input_file): Likewise.
19999 * locale/programs/locarchive.c (enlarge_archive): Likewise.
20000
20001 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
20002 variable definition inside #if's controlling its use.
20003
20004 * inet/getnetgrent_r.c (innetgr): Remove unused variable.
20005
20006 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
20007
20008 * misc/syslog.c (__vsyslog_chk): Remove unused variable.
20009
20010 * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
20011 unreachable code.
20012
20013 * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
20014
20015 * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
20016 * configure: Regenerated.
20017
20018 * Makerules: Revert last change.
20019 * elf/Makefile: Likewise.
20020
200212011-06-09 Roland McGrath <roland@hack.frob.com>
20022
20023 * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
20024 * elf/Makefile ($(objpfx)librtld.os): Likewise.
20025 (reloc-link): Likewise.
20026
200272011-06-09 Ulrich Drepper <drepper@gmail.com>
20028
20029 * elf/Makefile: Add rules to build pldd.
20030 * elf/pldd.c: New file.
20031 * elf/pldd-xx.c: New file.
20032
200332011-06-07 Ulrich Drepper <drepper@gmail.com>
20034
20035 * version.h: Update for 2.15 development version.
20036
200372011-06-07 David S. Miller <davem@davemloft.net>
20038
20039 * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
20040 ifuncs.
20041 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
20042 elf_machine_lazy_rel): Likewise.
20043 * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
20044 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
20045 elf_machine_lazy_rel): Likewise.
20046 * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
20047 dl_hwcap via passed in argument.
20048 * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
20049 Likewise.
20050
200512011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20052
20053 * stdlib/longlong.h: Update from GCC. Fix smul_ppmm for S/390.
20054
200552011-06-06 Roland McGrath <roland@hack.frob.com>
20056
20057 [BZ #12849]
20058 * manual/fdl-1.1.texi: New file, verbatim from:
20059 http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
20060 * manual/lgpl-2.1.texi: New file, verbatim from:
20061 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
20062 * manual/Makefile (licenses): New variable, list those new file names.
20063 (texis): Use it.
20064 (chapters.% top-menu.%): Include $(licenses) with $(appendices).
20065
20066 * manual/fdl.texi: File removed.
20067 * manual/lesser.texi: File removed.
20068 * manual/libc.texinfo (Copying, Documentation License):
20069 Use new @include file names, put @appendix directive before @include.
20070
200712011-06-04 Jakub Jelinek <jakub@redhat.com>
20072
20073 [BZ #12841]
20074 * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
20075 (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
20076 (mq_open): Add __NTH.
20077
200782011-06-02 H.J. Lu <hongjiu.lu@intel.com>
20079
20080 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20081 Assume Intel Core i3/i5/i7 processor if AVX is available.
20082
200832011-05-31 Ulrich Drepper <drepper@gmail.com>
20084
20085 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
20086 typo.
20087
200882011-05-31 Andreas Schwab <schwab@redhat.com>
20089
20090 * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
20091 memory. Use alloca_account. Fix memory leak when retrying.
20092
200932011-05-31 Ulrich Drepper <drepper@gmail.com>
20094
20095 * version.h (RELEASE): Bump for 2.14 release.
20096 * include/features.h (__GLIBC_MINOR__): Bump to 14.
20097
20098 * config.make.in (RANLIB): Remove entry.
20099
201002011-05-30 Ulrich Drepper <drepper@gmail.com>
20101
20102 * po/Makefile (po-sed-cmd): Add ksh to extensions.
20103 (libc.pot): Work around missing support for .ksh extension in xgettext.
20104
20105 [BZ #12684]
20106 * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
20107 if both request failed.
20108 (send_dg): In case of server errors clear resplen or *resplen2.
20109
20110 [BZ #12454]
20111 * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
20112 when there are multiple maps.
20113 * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
20114 (_dl_fini): Remove test here.
20115
20116 * elf/rtld.c (dl_main): Don't allow the loader to load itself.
20117
201182011-05-29 Ulrich Drepper <drepper@gmail.com>
20119
20120 [BZ #12350]
20121 * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
20122 bit from old_res_options.
20123 (gaih_inet): Likewise.
20124
20125 [BZ #11099]
20126 * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
20127 as signed.
20128
20129 * resolv/res_init.c (res_setoptions): Make the code more compact.
20130
20131 [BZ #11558]
20132 * resolv/res_init.c (res_setoptions): Recognize use-vc option and
20133 set RES_USEVC.
20134
20135 [BZ #11634]
20136 * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
20137
20138 * malloc/malloc.h: Mark malloc hook variables as deprecated.
20139
20140 [BZ #11781]
20141 * malloc/malloc.h: Declare malloc hook variables as volatile.
20142
20143 * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
20144 in last patch.
20145
20146 [BZ #11799]
20147 * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
20148 raise in the comment.
20149 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20150 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20151 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
20152
201532011-05-28 Ulrich Drepper <drepper@gmail.com>
20154
20155 [BZ #12811]
20156 * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
20157 grow the buffers more if it already has to be sufficient.
20158 (build_wcs_upper_buffer): Likewise.
20159 * posix/regexec.c (check_matching): Likewise.
20160 (clean_state_log_if_needed): Likewise.
20161 (extend_buffers): Don't enlarge buffers beyond size of the input
20162 buffer.
20163 Patches mostly by Emil Wojak <emil@wojak.eu>.
20164 * posix/bug-regex32.c: New file.
20165 * posix/Makefile (tests): Add bug-regex32.
20166
20167 * locale/findlocale.c (_nl_find_locale): Return right away if
20168 _nl_explode_name failed.
20169 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
20170
20171 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
20172
20173 * debug/xtrace.sh: Unify messages.
20174 * malloc/memusage.sh: Likewise.
20175
20176 [BZ #12813]
20177 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
20178 time symbol from vDSO. Substitute with vsyscall if not available.
20179 * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
20180 __vdso_time.
20181
20182 * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
20183 * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
20184 * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
20185 Add sendmmsg and internal_sendmmsg.
20186 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
20187 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
20188 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
20189
20190 * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
20191 * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
20192 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
20193
201942011-05-27 Ulrich Drepper <drepper@gmail.com>
20195
20196 [BZ #12813]
20197 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
20198 Retrieve getcpu symbol from vDSO. Substitute with vsyscall if not
20199 available.
20200 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
20201 __vdso_getcpu.
20202
20203 [BZ #12814]
20204 * iconvdata/Makefile (tests): Add bug-iconv9.
20205 * iconvdata/bug-iconv9.c: New file.
20206
202072011-05-27 Andreas Schwab <schwab@redhat.com>
20208
20209 [BZ #12814]
20210 * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
20211
202122011-05-25 Jakub Jelinek <jakub@redhat.com>
20213
20214 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
20215 (struct user_regs_struct): Change intcs field back to cs.
20216
202172011-05-25 Ulrich Drepper <drepper@gmail.com>
20218
20219 * po/ja.po: Update from translation team.
20220
202212011-05-23 Ulrich Drepper <drepper@gmail.com>
20222
20223 [BZ #12795]
20224 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
20225 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
20226
202272011-05-20 Andreas Schwab <schwab@redhat.com>
20228
20229 * stdlib/longlong.h: Update from GCC.
20230
202312011-05-23 Andreas Schwab <schwab@redhat.com>
20232
20233 * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
20234 parameter name.
20235 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
20236 Add parameter name.
20237 (__sysconf): Pass it down.
20238
202392011-05-22 Ulrich Drepper <drepper@gmail.com>
20240
20241 [BZ #12671]
20242 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
20243 some situations.
20244 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
20245 * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
20246 add in in __libc_use_alloca calls. Adjust callers.
20247 (glob): Use malloc in some situations.
20248
20249 * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
20250 and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
20251 pltexit.
20252
202532011-05-21 Ulrich Drepper <drepper@gmail.com>
20254
20255 * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
20256 and CLOCK_BOOTTIME_ALARM.
20257
20258 [BZ #12782]
20259 * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
20260 is returned.
20261
20262 * string/_strerror.c (__strerror_r): Print negative errors as signed
20263 numbers.
20264
20265 [BZ #12777]
20266 * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
20267 (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
20268 * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
20269
20270 * configure.in: Fix typo in redirection and correct removal of test
20271 files in two cases.
20272
20273 [BZ #12788]
20274 * locale/setlocale.c (new_composite_name): Fix test to check for
20275 identical name of all categories.
20276
20277 [BZ #12792]
20278 * libio/filedoalloc.c (local_isatty): New function.
20279 (_IO_file_doallocate): Use local_isatty.
20280 * stdio-common/perror.c (perror): In case a new stream is used
20281 forward the stream error.
20282 * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
20283 error flag.
20284
202852011-05-20 Ulrich Drepper <drepper@gmail.com>
20286
20287 [BZ #11869]
20288 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
20289 alloca.
20290 * include/alloca.h (extend_alloca_account): Define.
20291
20292 [BZ #11857]
20293 * posix/regex.h: Fix comments with documentation of user-accessible
20294 fields after compilation and describe correct free'ing of pattern
20295 after re_compile_pattern.
20296 Patch by Reuben Thomas <rrt@sc3d.org>.
20297
202982011-05-18 Ryan S. Arnold <rsa@us.ibm.com>
20299
20300 * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
20301 and -mno-altivec to prevent the compiler from using Altivec and/or
20302 VSX instructions when the corresponding registers are not available.
20303
203042011-05-19 Andreas Schwab <schwab@redhat.com>
20305
20306 * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
20307
203082011-05-19 Ulrich Drepper <drepper@gmail.com>
20309
20310 * libio/freopen.c (freopen): Use __dup2, not dup2.
20311 * libio/freopen64.c (freopen64): Likewise.
20312
203132011-05-17 H.J. Lu <hongjiu.lu@intel.com>
20314
20315 [BZ #12775]
20316 * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
20317 * math/Makefile (tests): Add test-powl.
20318 (CFLAGS-test-powl.c): Define.
20319 * math/test-powl.c: New file.
20320
203212011-05-16 H.J. Lu <hongjiu.lu@intel.com>
20322
20323 * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
20324
203252011-05-17 Ulrich Drepper <drepper@gmail.com>
20326
20327 [BZ #11837]
20328 * iconvdata/gb18030.c: Update to GB18020-2005.
20329
203302011-05-16 Ulrich Drepper <drepper@gmail.com>
20331
20332 * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
20333 RE_SYNTAX_POSIX_AWK): Update to match recent development.
20334 Patch by Aharon Robbins <arnold@skeeve.com>.
20335
20336 [BZ #11892]
20337 * stdlib/putenv.c (putenv): Don't always create copy of the variable
20338 on the stack.
20339
20340 [BZ #11895]
20341 * misc/pselect.c (__pselect): Handle timeout value errors hidden
20342 through underflows.
20343
20344 [BZ #12766]
20345 * misc/error.c (error_at_line): Ensure file_name and old_file_name
20346 point to strings before performing equality test for error_one_per_line
20347 mode.
20348
20349 [BZ #11697]
20350 * login/programs/pt_chown.c (do_pt_chown): Always call chown.
20351
20352 [BZ #11820]
20353 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
20354 (struct user_fpregs_struct): Avoid __uint*_t types.
20355
20356 [BZ #6420]
20357 * malloc/mtrace.c (tr_where): Add additional parameter to point to
20358 symbol info. Use it instead of calling _dl_addr locally.
20359 (lock_and_info): New function.
20360 (tr_freehook): Call lock_and_info and pass symbol info as additional
20361 parameter to tr_where.
20362 (tr_mallochook): Likewise.
20363 (tr_reallochook): Likewise.
20364 (tr_memalignhook): Likewise.
20365
20366 * malloc/mtrace.c: Remove support for USE_MTRACE_FILE. It is not
20367 used and couldn't be at all thread-safe.
20368
203692011-05-15 Ulrich Drepper <drepper@gmail.com>
20370
20371 * libio/freopen.c (freopen): Don't close old file descriptor
20372 before the new one is opened. Instead dup the new file descriptor
20373 to the old one after the new stream is created.
20374 * libio/freopen64.c (freopen64): Likewise.
20375 * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
20376 * libio/fileops.c (_IO_new_file_close_it): Handle new
20377 _IO_FLAGS2_NOCLOSE flag.
20378 (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
20379 If _IO_file_open didn't set FD_CLOEXEC do it after the call.
20380 * libio/oldfileops.c (_IO_old_file_close_it): Handle new
20381 _IO_FLAGS2_NOCLOSE flag.
20382 * include/unistd.h: Add hidden_proto for dup3.
20383 Define __have_dup3.
20384 * io/dup3.c: Define hidden symbol.
20385 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
20386
20387 [BZ #7101]
20388 * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
20389 when an incomplete long option is used.
20390 * posix/tst-getopt_long1.c: New file.
20391 * posix/Makefile (tests): Add tst-getopt_long1.
20392
20393 [BZ #10138]
20394 * scripts/config.guess: Update from autoconf-2.68.
20395 * scripts/config.sub: Likewise.
20396
20397 [BZ #10157]
20398 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
20399 tests into ...
20400 (has_cpuclock): ...this. New function.
20401 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
20402 macro here based on has_cpuclock code.
20403
20404 [BZ #10149]
20405 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20406 First byte (not low byte) is now always NUL.
20407 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
20408
20409 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20410 Use non-cancelable interfaces.
20411
20412 [BZ #9809]
20413 * locale/iso-639.def: Add entry for Sorani.
20414
20415 [BZ #11901]
20416 * include/stdlib.h: Move include protection to the right place.
20417 Define abort_msg_s. Declare __abort_msg with it.
20418 * stdlib/abort.c (__abort_msg): Adjust type.
20419 * assert/assert.c (__assert_fail_base): New function. Majority
20420 of code from __assert_fail. Allocate memory for __abort_msg with
20421 mmap.
20422 (__assert_fail): Now call __assert_fail_base.
20423 * assert/assert-perr.c: Remove bulk of implementation. Use
20424 __assert_fail_base.
20425 * include/assert.hL Declare __assert_fail_base.
20426 * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
20427 mmap.
20428 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
20429
204302011-05-14 Ulrich Drepper <drepper@gmail.com>
20431
20432 [BZ #11952]
20433 [BZ #12453]
20434 * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
20435 until all modules are registered in the DTV.
20436 * elf/Makefile: Add rules to build and run tst-tls19.
20437 * elf/tst-tls19.c: New file.
20438 * elf/tst-tls19mod1.c: New file.
20439 * elf/tst-tls19mod2.c: New file.
20440 * elf/tst-tls19mod3.c: New file.
20441 Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
20442
20443 [BZ #12083]
20444 * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
20445 correctly.
20446
20447 [BZ #12601]
20448 * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
20449 two-byte sequence errors.
20450 * iconvdata/Makefile (tests): Add bug-iconv8.
20451 * iconvdata/bug-iconv8.c: New file.
20452
20453 [BZ #12626]
20454 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
20455 buf2 definition.
20456
20457 * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20458
20459 [BZ #12432]
20460 * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20461 (dummy_getcfa): New function.
20462 (init): Get _Unwind_GetCFA address, use dummy if not found.
20463 (backtrace_helper): In recursion check, also check whether CFA changes.
20464 (__backtrace): Completely initialize arg.
20465
20466 * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20467 storing incomplete byte sequence in state object. Avoid testing for
20468 guaranteed too small input if we know there is enough data available.
20469
204702011-05-11 Andreas Schwab <schwab@redhat.com>
20471
20472 * Makeconfig (+link-pie): Indent.
20473 * Rules (binaries-pie): Define if $(have-fpie) and
20474 $(build-shared).
20475 (binaries-shared): Also filter out $(binaries-pie).
20476 ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20477 * nscd/Makefile (others-pie): Add nscd.
20478 (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20479 ($(objpfx)nscd): Remove command override.
20480 * login/Makefile (others-pie): Add pt_chown.
20481 ($(objpfx)pt_chown): Remove command override.
20482 * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20483 remove command overrides.
20484
204852011-05-13 Ulrich Drepper <drepper@gmail.com>
20486
20487 * libio/tst_putwc.c: Fix error messages.
20488
20489 [BZ #12724]
20490 * libio/fileops.c (_IO_new_file_close_it): Always flush when
20491 currently writing and seek to current position when not.
20492 * libio/Makefile (tests): Add bug-fclose1.
20493 * libio/bug-fclose1.c: New file.
20494
204952011-05-12 Ulrich Drepper <drepper@gmail.com>
20496
20497 [BZ #12511]
20498 * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20499 don't set DF_1_NODELETE here.
20500 (do_lookup_x): When entering new entry test for copy relocation
20501 and if necessary set DF_1_NODELETE flag.
20502 * elf/tst-unique4.cc: New file.
20503 * elf/tst-unique4.h: New file.
20504 * elf/tst-unique4lib.cc: New file.
20505 * elf/Makefile: Add rules to build and run tst-unique4.
20506 Patch by Piotr Bury <pbury@goahead.com>.
20507
205082011-05-11 Ulrich Drepper <drepper@gmail.com>
20509
20510 [BZ #12052]
20511 * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20512
20513 [BZ #12625]
20514 * misc/mntent_r.c (addmntent): Flush the stream after the output
20515
20516 [BZ #12393]
20517 * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20518 (is_trusted_path_normalize): Skip initial colon. Append slash
20519 to empty buffer. Duplicate is_trusted_path code but allow
20520 constructed patch to be prefix.
20521 (is_dst): Allow $ORIGIN followed by /.
20522 (_dl_dst_substitute): Correct clearing of check_for_trusted.
20523 Correct testing of result of is_trusted_path_normalize
20524 (decompose_rpath): Fix warning.
20525
205262011-05-10 Ulrich Drepper <drepper@gmail.com>
20527
20528 [BZ #11257]
20529 * grp/initgroups.c (internal_getgrouplist): When we found the service
20530 list through the initgroups entry in nsswitch.conf do not always
20531 continue on a successful lookup. Don't always use the
20532 __nss_group_database value if it is set.
20533 * nss/nsswitch.conf (initgroups): Change action for successful db
20534 lookup to continue for compatibility.
20535
205362011-05-09 Ulrich Drepper <drepper@gmail.com>
20537
20538 [BZ #11532]
20539 * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20540 and CP774 modules.
20541 * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20542 and CP774 modules.
20543 * iconvdata/tst-tables.sh: Likewise.
20544 * iconvdata/cp770.c: New file.
20545 * iconvdata/cp771.c: New file.
20546 * iconvdata/cp772.c: New file.
20547 * iconvdata/cp773.c: New file.
20548 * iconvdata/cp774.c: New file.
20549 * iconvdata/testdata/CP770: New file.
20550 * iconvdata/testdata/CP770..UTF8: New file.
20551 * iconvdata/testdata/CP771: New file.
20552 * iconvdata/testdata/CP771..UTF8: New file.
20553 * iconvdata/testdata/CP772: New file.
20554 * iconvdata/testdata/CP772..UTF8: New file.
20555 * iconvdata/testdata/CP773: New file.
20556 * iconvdata/testdata/CP773..UTF8: New file.
20557 * iconvdata/testdata/CP774: New file.
20558 * iconvdata/testdata/CP774..UTF8: New file.
20559
20560 * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20561 END CHARMAP line.
20562 * iconvdata/gen-8bit-gap.sh: Likewise.
20563 * iconvdata/gen-8bit.sh: Likewise.
20564
20565 * locale/iso-639.def: Add ary entry.
20566
20567 [BZ #11258]
20568 * locale/C-translit.h.in: Add U20A1 transliteration.
20569
20570 [BZ #12178]
20571 * locale/iso-639.def: Add wae entry.
20572 Patch by Kevin Bortis <bortis@translate-wae.ch>.
20573
20574 [BZ #12545]
20575 * locale/programs/localedef.c (construct_output_path): Use ssize_t
20576 for n.
20577
20578 [BZ #12711]
20579 * locale/C-translit.h.in: Add entry for U20B9.
20580 Patch by pravin.d.s@gmail.com.
20581
205822011-05-08 Ulrich Drepper <drepper@gmail.com>
20583
20584 [BZ #12713]
20585 * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20586 ENAMETOOLONG use generic getcwd.
20587 * sysdeps/posix/getcwd.c: Add support to use openat. Make usable
20588 in rtld. Use *stat64.
20589 * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20590 Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20591 * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20592 * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20593 * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20594 * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20595 * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20596 __fstatat64 macros.
20597 * include/dirent.h: Add libc_hidden_proto for rewinddir.
20598 * dirent/rewinddir.c: Add libc_hidden_def.
20599 * sysdeps/mach/hurd/rewinddir.c: Likewise.
20600 * sysdeps/unix/rewinddir.c: Likewise. Don't do locking outside libc.
20601
20602 * include/dirent.h (__alloc_dir): Add flags parameter.
20603 * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20604 * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20605 __alloc_dir.
20606 (__alloc_dir): Take new parameter. Don't call fcntl for invocations
20607 from fdopendir if O_CLOEXEC is already set.
20608
206092011-03-15 Alan Modra <amodra@gmail.com>
20610
20611 * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20612 l_tls_firstbyte_offset non-zero. Save padding offset in
20613 l_tls_firstbyte_offset for later use.
20614 * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20615 freeing static tls block.
20616
206172011-03-05 Jonathan Nieder <jrnieder@gmail.com>
20618
20619 * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20620 where #ifdef was intended. The intent is to prevent ARG_MAX from
20621 being defined by the kernel headers.
20622
206232011-05-07 Ulrich Drepper <drepper@gmail.com>
20624
20625 [BZ #12734]
20626 * resolv/resolv.h: Define RES_NOTLDQUERY.
20627 * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20628 no-tld-query and set RES_NOTLDQUERY.
20629 * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20630 * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20631 modern BIND to search name as TLD unless forbidden.
20632
206332011-05-07 Petr Baudis <pasky@suse.cz>
20634 Ulrich Drepper <drepper@gmail.com>
20635
20636 [BZ #12393]
20637 * elf/dl-load.c (fillin_rpath): Move trusted path check...
20638 (is_trusted_path): ...to here.
20639 (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20640 (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20641 using is_trusted_path_normalize() in setuid scripts.
20642
206432011-05-06 Paul Pluzhnikov <ppluzhnikov@google.com>
20644
20645 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20646 __BEGIN/__END_DECLS.
20647
206482011-05-06 Ulrich Drepper <drepper@gmail.com>
20649
20650 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20651 NSS_STATUS_NOTFOUND if no record was found.
20652
206532011-05-05 Andreas Schwab <schwab@redhat.com>
20654
20655 * sunrpc/Makefile (headers): Add rpc/netdb.h.
20656 (headers-not-in-tirpc): Remove rpc/netdb.h
20657 * resolv/netdb.h: Revert last change.
20658
206592011-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
20660
20661 * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20662 circular dependency between libgcc.a and libc.a.
20663
206642011-05-05 Andreas Schwab <schwab@redhat.com>
20665
20666 * resolv/netdb.h: Don't include <rpc/netdb.h>.
20667 * nis/Makefile: Don't install rpcsvc/*.
20668 * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20669 instead of <rpc/types.h>.
20670 (MAXHOSTNAMELEN): Define.
20671
206722011-05-03 Andreas Schwab <schwab@redhat.com>
20673
20674 * elf/ldconfig.c (add_dir): Don't crash on empty path.
20675
206762011-04-28 Maciej Babinski <mbabinski@google.com>
20677
20678 [BZ #12714]
20679 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20680 gethostbyname4_r when IPv6 results are possible.
20681
206822011-05-02 Ulrich Drepper <drepper@gmail.com>
20683
20684 [BZ #12723]
20685 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20686 _PC_PIPE_BUF handling.
20687
206882011-04-30 Bruno Haible <bruno@clisp.org>
20689
20690 [BZ #12717]
20691 * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20692 * resolv/netdb.h (getnameinfo): Change type of flags parameter
20693 to 'int'.
20694 * inet/getnameinfo.c (getnameinfo): Likewise.
20695
206962011-04-29 Ulrich Drepper <drepper@gmail.com>
20697
20698 * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20699 to groups setting in database lookup.
20700 * nss/nsswitch.conf: Add initgroups entry.
20701
207022011-04-22 Ulrich Drepper <drepper@gmail.com>
20703
20704 [BZ #12685]
20705 * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20706 mode string.
20707 Patch by Eric Blake <eblake@redhat.com>.
20708
207092011-04-20 H.J. Lu <hongjiu.lu@intel.com>
20710
20711 * sunrpc/Makefile (need-export-routines): Add svc_run.
20712 (routines): Remove svc_run.
20713 ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20714 * sunrpc/clnt_perr.c (clnt_perrno): Export.
20715 * sunrpc/svc_run.c (svc_run): Likewise.
20716 * sunrpc/svc_udp.c (svcudp_create): Likewise.
20717
207182011-04-21 Ulrich Drepper <drepper@gmail.com>
20719
20720 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20721 problem in reallocation in last patch.
20722
207232011-04-20 Ulrich Drepper <drepper@gmail.com>
20724
20725 * sunrpc/Makefile: Move inclusion of Rules.
20726
207272011-04-19 Ulrich Drepper <drepper@gmail.com>
20728
20729 * nss/nss_files/files-initgroups.c: New file.
20730 * nss/Makefile (libnss_files-routines): Add files-initgroups.
20731 * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20732 _nss_files_initgroups_dyn.
20733
207342011-03-31 Richard Sandiford <richard.sandiford@linaro.org>
20735
20736 * elf/elf.h (R_ARM_IRELATIVE): Define.
20737
207382011-04-19 Ulrich Drepper <drepper@gmail.com>
20739
20740 * po/ru.po: Update from translation team.
20741
207422011-04-17 Ulrich Drepper <drepper@gmail.com>
20743
20744 * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20745 dependencies.
20746
207472011-02-06 Mike Frysinger <vapier@gentoo.org>
20748
20749 [BZ #12653]
20750 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20751 MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20752 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20753 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20754 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20755
207562011-03-28 Andreas Schwab <schwab@linux-m68k.org>
20757
20758 * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20759 differing bytes.
20760 * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20761 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20762 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20763
207642011-04-17 Ulrich Drepper <drepper@gmail.com>
20765
20766 [BZ #12420]
20767 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20768 storing it.
20769 * stdlib/bug-getcontext.c: New file.
20770 * stdlib/Makefile: Add rules to build and run bug-getcontext.
20771
207722011-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20773
20774 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20775 instructions into .machine "z9-109".
20776 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20777 * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20778
207792011-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20780
20781 * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20782 between environment variables and auxiliary vector.
20783
207842011-04-16 Ulrich Drepper <drepper@gmail.com>
20785
20786 * Makefile: Add rules to build linkobj/libc.so.
20787 * include/libc-symbols.h: Define libc_hidden_nolink.
20788 * include/rpc/auth.h: Mark functions which are to be hidden.
20789 * include/rpc/auth_des.h: Likewise.
20790 * include/rpc/auth_unix.h: Likewise.
20791 * include/rpc/clnt.h: Likewise.
20792 * include/rpc/des_crypt.h: Likewise.
20793 * include/rpc/key_prot.h: Likewise.
20794 * include/rpc/pmap_clnt.h: Likewise.
20795 * include/rpc/pmap_prot.h: Likewise.
20796 * include/rpc/pmap_rmt.h: Likewise.
20797 * include/rpc/rpc_msg.h: Likewise.
20798 * include/rpc/svc.h: Likewise.
20799 * include/rpc/svc_auth.h: Likewise.
20800 * include/rpc/xdr.h: Likewise.
20801 * nis/Makefile: Link all DSOs against linkobj/libc.so.
20802 * nss/Makefile: Likewise.
20803 * sunrpc/Makefile: Don't install headers. Build library with normal
20804 entry points. Don't build rpcinfo. Link RPC tests appropriately.
20805 * sunrpc/auth_des.c: Hide exported symbols by default, export some
20806 for the compat linking library. Remove use of INTDEF/INTUSE.
20807 * sunrpc/auth_none.c: Likewise.
20808 * sunrpc/auth_unix.c: Likewise.
20809 * sunrpc/authdes_prot.c: Likewise.
20810 * sunrpc/authuxprot.c: Likewise.
20811 * sunrpc/clnt_gen.c: Likewise.
20812 * sunrpc/clnt_perr.c: Likewise.
20813 * sunrpc/clnt_raw.c: Likewise.
20814 * sunrpc/clnt_simp.c: Likewise.
20815 * sunrpc/clnt_tcp.c: Likewise.
20816 * sunrpc/clnt_udp.c: Likewise.
20817 * sunrpc/clnt_unix.c: Likewise.
20818 * sunrpc/des_crypt.c: Likewise.
20819 * sunrpc/des_soft.c: Likewise.
20820 * sunrpc/get_myaddr.c: Likewise.
20821 * sunrpc/key_call.c: Likewise.
20822 * sunrpc/key_prot.c: Likewise.
20823 * sunrpc/netname.c: Likewise.
20824 * sunrpc/pm_getmaps.c: Likewise.
20825 * sunrpc/pm_getport.c: Likewise.
20826 * sunrpc/pmap_clnt.c: Likewise.
20827 * sunrpc/pmap_prot.c: Likewise.
20828 * sunrpc/pmap_prot2.c: Likewise.
20829 * sunrpc/pmap_rmt.c: Likewise.
20830 * sunrpc/publickey.c: Likewise.
20831 * sunrpc/rpc_cmsg.c: Likewise.
20832 * sunrpc/rpc_common.c: Likewise.
20833 * sunrpc/rpc_dtable.c: Likewise.
20834 * sunrpc/rpc_prot.c: Likewise.
20835 * sunrpc/rpc_thread.c: Likewise.
20836 * sunrpc/rtime.c: Likewise.
20837 * sunrpc/svc.c: Likewise.
20838 * sunrpc/svc_auth.c: Likewise.
20839 * sunrpc/svc_authux.c: Likewise.
20840 * sunrpc/svc_raw.c: Likewise.
20841 * sunrpc/svc_run.c: Likewise.
20842 * sunrpc/svc_simple.c: Likewise.
20843 * sunrpc/svc_tcp.c: Likewise.
20844 * sunrpc/svc_udp.c: Likewise.
20845 * sunrpc/svc_unix.c: Likewise.
20846 * sunrpc/svcauth_des.c: Likewise.
20847 * sunrpc/xcrypt.c: Likewise.
20848 * sunrpc/xdr.c: Likewise.
20849 * sunrpc/xdr_array.c: Likewise.
20850 * sunrpc/xdr_float.c: Likewise.
20851 * sunrpc/xdr_intXX_t.c: Likewise.
20852 * sunrpc/xdr_mem.c: Likewise.
20853 * sunrpc/xdr_rec.c: Likewise.
20854 * sunrpc/xdr_ref.c: Likewise.
20855 * sunrpc/xdr_sizeof.c: Likewise.
20856 * sunrpc/xdr_stdio.c: Likewise.
20857
208582011-04-10 Ulrich Drepper <drepper@gmail.com>
20859
20860 [BZ #12650]
20861 * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20862 * sysdeps/ia64/dl-tls.h: Likewise.
20863 * sysdeps/powerpc/dl-tls.h: Likewise.
20864 * sysdeps/s390/dl-tls.h: Likewise.
20865 * sysdeps/sh/dl-tls.h: Likewise.
20866 * sysdeps/sparc/dl-tls.h: Likewise.
20867 * sysdeps/x86_64/dl-tls.h: Likewise.
20868 * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20869
208702011-03-14 Andreas Schwab <schwab@redhat.com>
20871
20872 * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20873 rpath element also skip the following colon.
20874 (expand_dynamic_string_token): Add is_path parameter and pass
20875 down to DL_DST_REQUIRED and _dl_dst_substitute.
20876 (decompose_rpath): Call expand_dynamic_string_token with
20877 non-zero is_path. Ignore empty rpaths.
20878 (_dl_map_object_from_fd): Call expand_dynamic_string_token
20879 with zero is_path.
20880
208812011-04-08 Andreas Schwab <schwab@linux-m68k.org>
20882
20883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20884 Make cancelable.
20885
208862011-04-09 Ulrich Drepper <drepper@gmail.com>
20887
20888 [BZ #12655]
20889 * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20890 Patch by Filipe David Manana <fdmanana@apache.org>.
20891
208922011-04-07 Andreas Schwab <schwab@redhat.com>
20893
20894 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20895 Maintain aligned stack.
20896 (CHECK_RSP): Remove unused macro.
20897
208982011-04-03 Ulrich Drepper <drepper@gmail.com>
20899
20900 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20901 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20902
209032011-04-02 Ulrich Drepper <drepper@gmail.com>
20904
20905 * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20906
20907 * include/features.h: Mention __USE_XOPEN2K8 in comment.
20908
209092011-03-26 H.J. Lu <hongjiu.lu@intel.com>
20910
20911 [BZ #12518]
20912 * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20913 * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20914 * sysdeps/x86_64/memmove.c: New file.
20915 * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20916 (memcpy): Renamed to ...
20917 (__new_memcpy): This.
20918 (memcpy): Provide GLIBC_2_14 memcpy.
20919 * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20920 (memcpy): Provide GLIBC_2_2_5 memcpy.
20921
209222011-04-01 Ulrich Drepper <drepper@gmail.com>
20923
20924 [BZ #12631]
20925 * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20926
209272011-03-30 Andreas Schwab <schwab@redhat.com>
20928
20929 * misc/syncfs.c: New file.
20930 * misc/Makefile (routines): Add syncfs.
20931 * posix/unistd.h: Declare syncfs.
20932 * sysdeps/unix/syscalls.list: Add syncfs.
20933
209342011-04-01 Andreas Schwab <schwab@redhat.com>
20935
20936 * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20937 open_by_handle_at.
20938 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20939 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20940 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20941 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20942 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20943 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20944 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20945
209462011-04-01 Ulrich Drepper <drepper@gmail.com>
20947
20948 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20949 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20950 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20951 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20952 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20953 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20954 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20955
20956 * io/Makefile: Compile fallocate.c, fallocate64.c, and
20957 sync_file_range.c with -fexceptions.
20958 * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20959 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20960 * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20961 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20962 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20963 * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20964 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20965 sync_file_range as cancellation point
20966 * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file. This is
20967 now a wrapper around __call_sync_file_range with cancellation handling.
20968 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20969 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this. Change
20970 function name to __call_sync_file_range.
20971 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20972 Add call_sync_file_range.
20973
209742011-04-01 Andreas Schwab <schwab@redhat.com>
20975
20976 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20977 bits/timex.h.
20978
209792011-04-01 Ulrich Drepper <drepper@gmail.com>
20980
20981 * iconv/iconv.h: Fix typo in comment.
20982 * io/fcntl.h: Likewise.
20983 * libio/stdio.h: Likewise.
20984 * posix/spawn.h: Likewise.
20985 * posix/unistd.h: Likewise.
20986 * stdlib/stdlib.h: Likewise.
20987 * time/time.h: Likewise.
20988 * wcsmbs/wchar.h: Likewise.
20989
20990 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20991 open_by_handle): Add.
20992 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20993 and MAX_HANDLE_SZ. Declare name_to_handle_at and open_by_handle.
20994 Augment a few comments.
20995 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20996 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20997 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20998 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20999 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21000 * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
21001 open_by_handle.
21002
21003 * io/fcntl.h (AT_EMPTY_PATH): Define.
21004
210052011-03-30 Ulrich Drepper <drepper@gmail.com>
21006
21007 * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
21008 * sysdeps/unix/sysv/linux/bits/time.h: New file.
21009 * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
21010 to...
21011 * sysdeps/unix/sysv/linux/bits/timex.h: ...here. New file.
21012 * Versions.def: Add GLIBC_2.14.
21013 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
21014 Export.
21015
210162011-03-22 Ulrich Drepper <drepper@gmail.com>
21017
21018 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
21019 round counter.
21020 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
21021
210222011-03-20 H.J. Lu <hongjiu.lu@intel.com>
21023
21024 [BZ #12597]
21025 * string/test-strncmp.c (do_page_test): New function.
21026 (check2): Likewise.
21027 (test_main): Call check2.
21028 * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
21029
210302011-03-20 Ulrich Drepper <drepper@gmail.com>
21031
21032 [BZ #12587]
21033 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
21034 Handle cache information in CPU leaf 4.
21035 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
21036
210372011-03-18 Ulrich Drepper <drepper@gmail.com>
21038
21039 [BZ #12583]
21040 * posix/fnmatch.c (fnmatch): Check size of pattern in wide
21041 character representation.
21042 Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
21043
210442011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
21045
21046 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
21047 END(__isnan) to END(__isnanf) to match function entry point/label
21048 EALIGN(__isnanf,...).
21049
210502011-03-10 Jakub Jelinek <jakub@redhat.com>
21051
21052 * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
21053
210542011-03-10 Ulrich Drepper <drepper@gmail.com>
21055
21056 [BZ #12510]
21057 * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
21058 copy from the symbol referenced in the relocation to initialize the
21059 used variable.
21060 Patch by Piotr Bury <pbury@goahead.com>.
21061 * elf/Makefile: Add rules to build and tst-unique3.
21062 * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
21063 * elf/tst-unique3.cc: New file.
21064 * elf/tst-unique3.h: New file.
21065 * elf/tst-unique3lib.cc: New file.
21066 * elf/tst-unique3lib2.cc: New file.
21067
21068 * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
21069
210702011-03-10 Mike Frysinger <vapier@gentoo.org>
21071
21072 * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
21073 $LDFLAGS and -nostdlib -nostartfiles to linking step. Change main
21074 to _start.
21075
210762011-03-06 Ulrich Drepper <drepper@gmail.com>
21077
21078 * elf/dl-load.c (_dl_map_object): If we are looking for the first
21079 to-be-loaded object along a path to loader is ld.so.
21080
210812011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
21082 Ulrich Drepper <drepper@gmail.com>
21083
21084 * sysdeps/x86_64/memset.S: After aligning destination, code
21085 branches to different locations depending on the value of
21086 misalignment, when multiarch is enabled. Fix this.
21087
210882011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
21089
21090 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
21091 Set _x86_64_preferred_memory_instruction for AMD processsors.
21092 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21093 Set bit_Prefer_SSE_for_memop for AMD processors.
21094
210952011-03-04 Ulrich Drepper <drepper@gmail.com>
21096
21097 * libio/fmemopen.c (fmemopen): Optimize a bit.
21098
210992011-03-03 Andreas Schwab <schwab@redhat.com>
21100
21101 * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
21102
211032011-03-03 Roland McGrath <roland@redhat.com>
21104
21105 * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
21106
211072011-02-28 Aurelien Jarno <aurelien@aurel32.net>
21108
21109 * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
21110 __bzero_ultra1 instead of __memset_ultra1.
21111
211122011-02-23 Andreas Schwab <schwab@redhat.com>
21113 Ulrich Drepper <drepper@gmail.com>
21114
21115 [BZ #12509]
21116 * include/link.h (struct link_map): Add l_orig_initfini.
21117 * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
21118 returning unsuccessfully.
21119 * elf/dl-close.c (_dl_close_worker): If this is the last explicit
21120 close of a file loaded at startup, restore the original l_initfini
21121 list.
21122 * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
21123 list, store the pointer.
21124 * elf/Makefile ($(objpfx)noload-mem): New rule.
21125 (noload-ENV): Define.
21126 (tests): Add $(objpfx)noload-mem.
21127 * elf/noload.c: Include <memcheck.h>.
21128 (main): Call mtrace. Close all opened handles.
21129
211302011-02-17 Andreas Schwab <schwab@redhat.com>
21131
21132 [BZ #12454]
21133 * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
21134 dependencies are missing.
21135
211362011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
21137
21138 Fix __if_freereq crash: Unlike the generic version which uses free,
21139 Hurd needs munmap.
21140 * sysdeps/mach/hurd/ifreq.h: New file.
21141
211422011-01-27 Petr Baudis <pasky@suse.cz>
21143 Ulrich Drepper <drepper@gmail.com>
21144
21145 [BZ 12445]#
21146 * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
21147 to extend_alloca().
21148 * stdio-common/bug23.c: New file.
21149 * stdio-common/Makefile (tests): Add bug23.
21150
211512010-09-28 Andreas Schwab <schwab@redhat.com>
21152 Ulrich Drepper <drepper@gmail.com>
21153
21154 [BZ #12489]
21155 * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
21156 before performing relro protection. At old place add assertion
21157 to make sure nothing changed.
21158
211592011-02-17 Nathan Sidwell <nathan@codesourcery.com>
21160 Glauber de Oliveira Costa <glommer@gmail.com>
21161
21162 * elf/elf.h: Add new ARM TLS relocs.
21163
211642011-02-16 Ryan S. Arnold <rsa@us.ibm.com>
21165
21166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
21167 (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
21168 cast from r3.
21169 * sysdeps/wordsize-64/Makefile: New file. Add tst-writev to
21170 'tests' variable.
21171 * sysdeps/wordsize-64/tst-writev.c: New file.
21172
211732011-02-15 Ryan S. Arnold <rsa@us.ibm.com>
21174
21175 * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
21176 -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
21177 insns in _dl_start to prevent a TOC reference before relocs are
21178 resolved.
21179
211802011-02-15 Ulrich Drepper <drepper@gmail.com>
21181
21182 [BZ #12469]
21183 * Makeconfig: Remove RANLIB definition.
21184 * Makerules: Don't use RANLIB.
21185 * aclocal.m4: Remove ranlib test.
21186 * configure.in: No need to check for ranlib.
21187 * elf/rtld-Rules: Don't use RANLIB.
21188
211892011-02-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
21190
21191 * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
21192 protection macro.
21193 * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
21194 inclusion protection macro.
21195
21196 * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
21197 SIGRTMIN and SIGRTMAX and print information in that case only when
21198 SIGRTMIN is defined.
21199
212002011-02-11 Jakub Jelinek <jakub@redhat.com>
21201
21202 * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
21203 arginfo fn returning -1.
21204
21205 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
21206 and thousands string is zero terminated.
21207
212082011-02-03 Andreas Schwab <schwab@redhat.com>
21209
21210 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
21211 sysdeps/unix/sysv/linux/bits/socket.h.
21212
212132011-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
21214
21215 * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
21216 (__CPU_COUNT): Remove old macros.
21217 (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
21218 (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
21219 (__CPU_ALLOC, __CPU_FREE): Add macros.
21220 (__sched_cpualloc, __sched_cpufree): Add declarations.
21221
212222011-02-05 Ulrich Drepper <drepper@gmail.com>
21223
21224 * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
21225 (struct datahead): Reuse 32 bits of the alignment for a TTL field.
21226 * nscd/aicache.c (addhstaiX): Return timeout of added value.
21227 (readdhstai): Return value of addhstaiX call.
21228 * nscd/grpcache.c (cache_addgr): Return timeout of added value.
21229 (addgrbyX): Return value returned by cache_addgr.
21230 (readdgrbyname): Return value returned by addgrbyX.
21231 (readdgrbygid): Likewise.
21232 * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
21233 (addpwbyX): Return value returned by cache_addpw.
21234 (readdpwbyname): Return value returned by addhstbyX.
21235 (readdpwbyuid): Likewise.
21236 * nscd/servicescache.c (cache_addserv): Return timeout of added value.
21237 (addservbyX): Return value returned by cache_addserv.
21238 (readdservbyname): Return value returned by addservbyX:
21239 (readdservbyport): Likewise.
21240 * nscd/hstcache.c (cache_addhst): Return timeout of added value.
21241 (addhstbyX): Return value returned by cache_addhst.
21242 (readdhstbyname): Return value returned by addhstbyX.
21243 (readdhstbyaddr): Likewise.
21244 (readdhstbynamev6): Likewise.
21245 (readdhstbyaddrv6): Likewise.
21246 * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
21247 (readdinitgroups): Return value returned by addinitgroupsX.
21248 * nscd/cache.c (readdfcts): Change return value of functions to time_t.
21249 (prune_cache): Keep track of timeout value of re-added entries.
21250 * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
21251 * nscd/nscd.h: Adjust prototypes of readd* functions.
21252
212532011-02-04 Roland McGrath <roland@redhat.com>
21254
21255 * nis/nis_server.c (nis_servstate): Use the right name for 0.
21256 (nis_stats): Likewise.
21257 * nis/nis_modify.c (nis_modify): Likewise.
21258 * nis/nis_remove.c (nis_remove): Likewise.
21259 * nis/nis_add.c (nis_add): Likewise.
21260
21261 * elf/dl-object.c (_dl_new_object): Remove unused variable L.
21262
21263 * posix/fnmatch_loop.c: Add some consts.
21264
21265 * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
21266
212672011-02-02 H.J. Lu <hongjiu.lu@intel.com>
21268
21269 [BZ #12460]
21270 * config.make.in (config-cflags-novzeroupper): Define.
21271 * configure.in: Substitute libc_cv_cc_novzeroupper.
21272 * elf/Makefile (AVX-CFLAGS): Define.
21273 (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
21274 (CFLAGS-tst-auditmod4a.c): Likewise.
21275 (CFLAGS-tst-auditmod4b.c): Likewise.
21276 (CFLAGS-tst-auditmod6b.c): Likewise.
21277 (CFLAGS-tst-auditmod6c.c): Likewise.
21278 (CFLAGS-tst-auditmod7b.c): Likewise.
21279 * sysdeps/i386/configure.in: Check -mno-vzeroupper.
21280
212812011-02-02 Ulrich Drepper <drepper@gmail.com>
21282
21283 * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
21284 function to the callback.
21285 Patch partly by Jiri Olsa <jolsa@redhat.com>.
21286
212872011-02-02 Andreas Schwab <schwab@redhat.com>
21288
21289 * shadow/sgetspent.c: Check return value of __sgetspent_r instead
21290 of errno.
21291
212922011-01-19 Ulrich Drepper <drepper@gmail.com>
21293
21294 [BZ #11724]
21295 * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
21296 of constructors.
21297 * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
21298 of destructors.
21299 (_dl_fini): Don't call _dl_sort_fini if there is only one object.
21300
21301 [BZ #11724]
21302 * elf/Makefile: Add rules to build and run new test.
21303 * elf/tst-initorder.c: New file.
21304 * elf/tst-initorder.exp: New file.
21305 * elf/tst-initordera1.c: New file.
21306 * elf/tst-initordera2.c: New file.
21307 * elf/tst-initordera3.c: New file.
21308 * elf/tst-initordera4.c: New file.
21309 * elf/tst-initorderb1.c: New file.
21310 * elf/tst-initorderb2.c: New file.
21311 * elf/tst-order-a1.c: New file.
21312 * elf/tst-order-a2.c: New file.
21313 * elf/tst-order-a3.c: New file.
21314 * elf/tst-order-a4.c: New file.
21315 * elf/tst-order-b1.c: New file.
21316 * elf/tst-order-b2.c: New file.
21317 * elf/tst-order-main.c: New file.
21318 New test case by George Gensure <werkt0@gmail.com>.
21319
213202010-10-01 Andreas Schwab <schwab@redhat.com>
21321
21322 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
21323 decoding ACE if AI_CANONIDN.
21324
213252011-01-18 Ulrich Drepper <drepper@gmail.com>
21326
21327 * elf/Makefile: Build IFUNC tests unless multi-arch = no.
21328
213292011-01-17 Ulrich Drepper <drepper@gmail.com>
21330
21331 * version.h (RELEASE): Bump for 2.13 release.
21332 * include/features.h: (__GLIBC_MINOR__): Bump to 13.
21333
21334 * io/fcntl.h: Define AT_NO_AUTOMOUNT.
21335
21336 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
21337 MADV_NOHUGEPAGE.
21338 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
21339 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
21340 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
21341 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
21342 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21343 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21344
21345 * posix/getconf.c: Update copyright year.
21346 * catgets/gencat.c: Likewise.
21347 * csu/version.c: Likewise.
21348 * debug/catchsegv.sh: Likewise.
21349 * debug/xtrace.sh: Likewise.
21350 * elf/ldconfig.c: Likewise.
21351 * elf/ldd.bash.in: Likewise.
21352 * elf/sprof.c (print_version): Likewise.
21353 * iconv/iconv_prog.c: Likewise.
21354 * iconv/iconvconfig.c: Likewise.
21355 * locale/programs/locale.c: Likewise.
21356 * locale/programs/localedef.c: Likewise.
21357 * malloc/memusage.sh: Likewise.
21358 * malloc/mtrace.pl: Likewise.
21359 * nscd/nscd.c (print_version): Likewise.
21360 * nss/getent.c: Likewise.
21361
21362 * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
21363 PF_CAIF, and PF_ALG.
21364 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21365
213662011-01-16 Andreas Schwab <schwab@linux-m68k.org>
21367
21368 * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
21369 (modules-names): Use them.
21370 (ifunc-test-modules, ifunc-pie-tests): Define.
21371 (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
21372 tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
21373 (test-extras): Likewise.
21374 ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
21375 $(compile-command.c).
21376 ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
21377 (all-built-dso): Define.
21378 (check-textrel.out, check-execstack.out): Depend on it.
21379
21380 * configure.in: Don't override --enable-multi-arch.
21381
213822011-01-15 Ulrich Drepper <drepper@gmail.com>
21383
21384 [BZ #6812]
21385 * nscd/hstcache.c (tryagain): Define.
21386 (cache_addhst): Return tryagain not notfound for temporary errors.
21387 (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
21388 failed.
21389
213902011-01-14 Ulrich Drepper <drepper@gmail.com>
21391
21392 [BZ #10563]
21393 * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
21394 to make the syscall.
21395 * sysdeps/unix/sysv/linux/setgroups.c: New file.
21396
21397 [BZ #12378]
21398 * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
21399 and fall back to matching as normal character if the string ends before
21400 the matching ']' is found. This is what POSIX requires.
21401 * posix/testfnm.c: Adjust test result.
21402 * posix/globtest.sh: Adjust test result. Add new test.
21403 * posix/tst-fnmatch.input: Likewise.
21404 * posix/tst-fnmatch2.c: Add new test.
21405
214062010-12-28 Andreas Schwab <schwab@linux-m68k.org>
21407
21408 * elf/Makefile (check-execstack): Revert last change. Depend on
21409 check-execstack.h.
21410 (check-execstack.h): New target.
21411 (generated): Add check-execstack.h.
21412 * elf/check-execstack.c: Include "check-execstack.h".
21413 (main): Revert last change.
21414 (handle_file): Return zero if GNU_STACK is absent and
21415 DEFAULT_STACK_PERMS doesn't include PF_X.
21416
214172011-01-13 Ulrich Drepper <drepper@gmail.com>
21418
21419 * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
21420 in child fails because the descriptor is already closed.
21421 * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
21422 * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
21423 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
21424
21425 [BZ #12397]
21426 * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
21427 syscall.
21428
21429 [BZ #10484]
21430 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
21431 temporary buffer used to handle multi lookups locally.
21432 * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
21433
214342011-01-12 Ulrich Drepper <drepper@gmail.com>
21435
21436 * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
21437 loader is ld.so.
21438
214392011-01-10 Paul Pluzhnikov <ppluzhnikov@google.com>
21440
21441 * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
21442 alignment for SSE2.
21443
214442011-01-12 Ulrich Drepper <drepper@gmail.com>
21445
21446 [BZ #12394]
21447 * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
21448 characters. When rounding increased number of integer digits recompute
21449 number of groups.
21450 * stdio-common/tst-grouping.c: New file.
21451 * stdio-common/Makefile: Add rules to build and run tst-grouping.
21452
214532011-01-09 Ulrich Drepper <drepper@gmail.com>
21454
21455 * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
21456 __FD_CLR, and __FS_ISSET. gcc generates better code on its own.
21457
21458 * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21459 void.
21460 * bits/select.h: Likewise.
21461
214622011-01-08 Ulrich Drepper <drepper@gmail.com>
21463
21464 * po/ja.po: Update from translation team.
21465
214662011-01-04 David S. Miller <davem@sunset.davemloft.net>
21467
21468 [BZ #11155]
21469 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21470 implementation just like for lxstat, fxstatat, et al.
21471
214722010-12-27 Jim Meyering <meyering@redhat.com>
21473
21474 [BZ #12348]
21475 * posix/regexec.c (build_trtable): Return failure indication upon
21476 calloc failure. Otherwise, re_search_internal could infloop on OOM.
21477
214782010-12-25 Ulrich Drepper <drepper@gmail.com>
21479
21480 [BZ #12201]
21481 * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21482 * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21483 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21484 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21485
21486 [BZ #12207]
21487 * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21488
21489 [BZ #12204]
21490 * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21491 * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21492
214932010-12-15 H.J. Lu <hongjiu.lu@intel.com>
21494
21495 * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21496 * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21497 script has SORT_BY_INIT_PRIORITY.
21498 * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21499 NO_CTORS_DTORS_SECTIONS is defined.
21500 * elf/soinit.c: Likewise.
21501 * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21502 NO_CTORS_DTORS_SECTIONS is defined.
21503 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21504 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21505 * sysdeps/sh/init-first.c: Likewise.
21506 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21507
215082010-12-24 Ulrich Drepper <drepper@gmail.com>
21509
21510 * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21511 always use the slow path.
21512
215132010-12-15 Ryan S. Arnold <rsa@us.ibm.com>
21514
21515 * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21516 similar rule which adds the sysdep directories to the header search in
21517 order to pick up the correct platform stackinfo.h.
21518 * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21519 perform test if it is, otherwise return successfully without testing.
21520 * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21521 DEFAULT_STACK_PERMS define in stackinfo.h.
21522 * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21523 defined in stackinfo.h.
21524 * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21525 DEFAULT_STACK_PERMS defined in stackinfo.h.
21526 * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21527 * sysdeps/ia64/stackinfo.h: Likewise.
21528 * sysdeps/s390/stackinfo.h: Likewise.
21529 * sysdeps/sh/stackinfo.h: Likewise.
21530 * sysdeps/sparc/stackinfo.h: Likewise.
21531 * sysdeps/x86_64/stackinfo.h: Likewise.
21532 * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21533 PF_X for powerpc64. Retain PF_X for powerpc32.
21534
215352010-12-19 Ulrich Drepper <drepper@gmail.com>
21536
21537 * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21538 accurately.
21539 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21540 GETDENTS_64BIT_ALIGNED.
21541
215422010-12-14 Ulrich Drepper <dreper@gmail.com>
21543
21544 * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21545
215462010-12-10 Andreas Schwab <schwab@redhat.com>
21547
21548 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21549 _GNU_SOURCE.
21550
21551 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21552 * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21553 Remove __restrict.
21554 (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21555 (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21556
215572010-12-09 Ulrich Drepper <drepper@gmail.com>
21558
21559 [BZ #11655]
21560 * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21561 are initialized.
21562
215632010-12-09 Jakub Jelinek <jakub@redhat.com>
21564
21565 * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21566
215672010-12-03 Ulrich Drepper <drepper@gmail.com>
21568
21569 * po/it.po: Update from translation team.
21570
215712010-12-01 H.J. Lu <hongjiu.lu@intel.com>
21572
21573 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21574 unused codes.
21575
215762010-11-30 Ulrich Drepper <drepper@gmail.com>
21577
21578 * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21579
215802010-11-24 Andreas Schwab <schwab@redhat.com>
21581
21582 * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21583 specially.
21584 (gaih_getanswer_slice): Likewise.
21585
215862010-10-20 Jakub Jelinek <jakub@redhat.com>
21587
21588 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21589
215902010-05-31 Petr Baudis <pasky@suse.cz>
21591
21592 [BZ #11149]
21593 * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21594 silently even in the chroot mode.
21595
215962010-11-22 Ulrich Drepper <drepper@gmail.com>
21597
21598 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21599 last patch a bit. Pretty printing
21600
216012010-05-31 Petr Baudis <pasky@suse.cz>
21602
21603 [BZ #10085]
21604 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21605 initialization of skip_initgroups_dyn.
21606
216072010-11-19 Ulrich Drepper <drepper@gmail.com>
21608
21609 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21610 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21611
216122010-11-16 Ulrich Drepper <drepper@gmail.com>
21613
21614 * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21615
216162010-11-11 Andreas Schwab <schwab@redhat.com>
21617
21618 * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21619 * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21620 (tst-fnmatch-ENV): Set MALLOC_TRACE.
21621 ($(objpfx)tst-fnmatch-mem): New rule.
21622 (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21623 * posix/tst-fnmatch.c (main): Call mtrace.
21624
216252010-11-11 H.J. Lu <hongjiu.lu@intel.com>
21626
21627 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21628 Support Intel processor model 6 and model 0x2c.
21629
216302010-11-10 Luis Machado <luisgpm@br.ibm.com>
21631
21632 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21633 signed comparison.
21634
216352010-11-09 H.J. Lu <hongjiu.lu@intel.com>
21636
21637 [BZ #12205]
21638 * string/test-strncasecmp.c (check_result): New function.
21639 (do_one_test): Use it.
21640 (check1): New function.
21641 (test_main): Use it.
21642 * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21643 Support strcasecmp and strncasecmp.
21644
216452010-11-08 Ulrich Drepper <drepper@gmail.com>
21646
21647 [BZ #12194]
21648 * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21649 * sysdeps/x86_64/bits/byteswap.h: Likewise.
21650
216512010-11-07 H.J. Lu <hongjiu.lu@intel.com>
21652
21653 * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21654 IFUNC support.
21655 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21656 memset-x86-64.
21657 * sysdeps/x86_64/multiarch/bzero.S: New file.
21658 * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21659 * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21660 * sysdeps/x86_64/multiarch/memset.S: New file.
21661 * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21662 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21663 Set bit_Prefer_SSE_for_memop for Intel processors.
21664 * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21665 Define.
21666 (index_Prefer_SSE_for_memop): Define.
21667 (HAS_PREFER_SSE_FOR_MEMOP): Define.
21668
216692010-11-04 Luis Machado <luisgpm@br.ibm.com>
21670
21671 * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21672 * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21673
216742010-11-03 H.J. Lu <hongjiu.lu@intel.com>
21675
21676 [BZ #12191]
21677 * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21678 (__x86_64_raw_data_cache_size_half): Likewise.
21679 (__x86_64_raw_shared_cache_size): Likewise.
21680 (__x86_64_raw_shared_cache_size_half): Likewise.
21681
21682 * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21683 (__x86_64_raw_data_cache_size_half): Likewise.
21684 (__x86_64_raw_shared_cache_size): Likewise.
21685 (__x86_64_raw_shared_cache_size_half): Likewise.
21686 (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21687 __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21688 and __x86_64_raw_shared_cache_size_half. Round
21689 __x86_64_data_cache_size_half, __x86_64_data_cache_size
21690 __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21691 to multiple of 256 bytes.
21692
216932010-11-03 Ulrich Drepper <drepper@gmail.com>
21694
21695 [BZ #12167]
21696 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21697 of inacessible symlinks. Verify result of symlink before returning it.
21698 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21699 Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21700
217012010-10-28 Erich Ritz <erichritz@gmail.com>
21702
21703 * math/math.h (isinf): Fix typo in comment.
21704
217052010-11-01 Ulrich Drepper <drepper@gmail.com>
21706
21707 * po/da.po: Update from translation team.
21708
217092010-10-26 Ulrich Drepper <drepper@gmail.com>
21710
21711 * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21712 is added to the list.
21713
217142010-10-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21715 Ulrich Drepper <drepper@gmail.com>
21716
21717 * elf/dl-object.c (_dl_new_object): Don't append the new object to
21718 the global list here. Move code to...
21719 (_dl_add_to_namespace_list): ...here. New function.
21720 * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21721 * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21722 * elf/dl-load.c (lose): Don't remove the element from the list.
21723 (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21724 (_dl_map_object): Likewise.
21725
217262010-10-25 Ulrich Drepper <drepper@gmail.com>
21727
21728 [BZ #12159]
21729 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21730 into all bytes of SSE register.
21731 Patch by Richard Li <richardpku@gmail.com>.
21732
217332010-10-24 Ulrich Drepper <drepper@gmail.com>
21734
21735 [BZ #12140]
21736 * malloc/malloc.c (_int_free): Fill correct number of bytes when
21737 perturbing.
21738
217392010-10-20 Michael B. Brutman <brutman@us.ibm.com>
21740
21741 * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21742 * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21743 * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21744 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21745 * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21746 submachine.
21747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21748
217492010-10-22 Andreas Schwab <schwab@redhat.com>
21750
21751 * include/dlfcn.h (__RTLD_SECURE): Define.
21752 * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use
21753 mode & __RTLD_SECURE instead.
21754 (open_path): Rename preloaded parameter to secure.
21755 * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21756 * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21757 * elf/dl-deps.c (openaux): Likewise.
21758 * elf/rtld.c (struct map_args): Remove is_preloaded.
21759 (map_doit): Don't use it.
21760 (dl_main): Likewise.
21761 (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21762 (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21763
217642010-09-09 Andreas Schwab <schwab@redhat.com>
21765
21766 * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21767 (sysd-rules-targets): Remove duplicates.
21768 * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21769 rtld-%.$o dependency.
21770
217712010-10-18 Andreas Schwab <schwab@redhat.com>
21772
21773 * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21774 _dl_map_object do it.
21775
217762010-10-19 Ulrich Drepper <drepper@gmail.com>
21777
21778 * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21779 fast fma builtins, define the macros in the C99 standard.
21780 (FP_FAST_FMAF): Likewise.
21781 (FP_FAST_FMAL): Likewise.
21782 * sysdeps/x86_64/bits/mathdef.h: Likewise.
21783
21784 * bits/mathdef.h: Update copyright year.
21785 * sysdeps/powerpc/bits/mathdef.h: Likewise.
21786
217872010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
21788
21789 * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21790 builtins, define the macros in the C99 standard.
21791 (FP_FAST_FMAF): Likewise.
21792 (FP_FAST_FMAL): Likewise.
21793 * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21794 multiply/add.
21795 (FP_FAST_FMAF): Likewise.
21796
217972010-10-15 Jakub Jelinek <jakub@redhat.com>
21798
21799 [BZ #3268]
21800 * math/libm-test.inc (fma_test): Some new testcases.
21801 * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21802 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21803 y and infinite z. Do multiplication by C already in long double.
21804 * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21805 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21806 y and infinite z. Do bitwise or of inexact bit into u.d.
21807 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21808 * sysdeps/i386/fpu/s_fmaf.S: Removed.
21809 * sysdeps/i386/fpu/s_fma.S: Removed.
21810 * sysdeps/i386/fpu/s_fmal.S: Removed.
21811
218122010-10-16 Jakub Jelinek <jakub@redhat.com>
21813
21814 [BZ #3268]
21815 * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21816 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21817 computation is not scheduled after fetestexcept. Fix value
21818 of minimum denormal long double.
21819
218202010-10-14 Jakub Jelinek <jakub@redhat.com>
21821
21822 [BZ #3268]
21823 * math/libm-test.inc (fma_test): Add some more tests.
21824 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21825 correctly.
21826
218272010-10-15 Andreas Schwab <schwab@redhat.com>
21828
21829 * scripts/data/localplt-s390-linux-gnu.data: New file.
21830 * scripts/data/localplt-s390x-linux-gnu.data: New file.
21831
218322010-10-13 Jakub Jelinek <jakub@redhat.com>
21833
21834 [BZ #3268]
21835 * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21836 * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21837 instead of dbl-64.
21838 * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21839 inlines.
21840 * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21841 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21842 if one of x and y is very large and the other is subnormal.
21843 * sysdeps/s390/fpu/s_fmaf.c: New file.
21844 * sysdeps/s390/fpu/s_fma.c: New file.
21845 * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21846 * sysdeps/powerpc/fpu/s_fma.S: New file.
21847 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21848 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21849 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21850
218512010-10-12 Jakub Jelinek <jakub@redhat.com>
21852
21853 [BZ #3268]
21854 * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21855 fma tests.
21856 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21857 * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21858 * sysdeps/i386/i686/multiarch/s_fma.c: Include
21859 sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21860 * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21861 * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21862 * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21863
218642010-10-12 Ulrich Drepper <drepper@redhat.com>
21865
21866 [BZ #12078]
21867 * posix/regcomp.c (parse_branch): One more memory leak plugged.
21868 * posix/bug-regex31.input: Add test case.
21869
218702010-10-11 Ulrich Drepper <drepper@gmail.com>
21871
21872 * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21873 * posix/bug-regex31.input: New file.
21874
21875 [BZ #12078]
21876 * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21877 (parse_sub_exp): Fix last change, use postorder.
21878
21879 * posix/bug-regex31.c: New file.
21880 * posix/Makefile: Add rules to build and run bug-regex31.
21881
21882 * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21883
21884 [BZ #12078]
21885 * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21886
21887 [BZ #12108]
21888 * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21889 to have entries in sys_siglist.
21890
21891 [BZ #12093]
21892 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21893 be NULL.
21894
218952010-10-07 Jakub Jelinek <jakub@redhat.com>
21896
21897 [BZ #3268]
21898 * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21899 * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21900 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21901 sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21902 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21903 * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21904 * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21905 * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21906 * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21907 * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21908 * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21909 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21910 * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21911 * math/ftestexcept.c (fetestexcept): Likewise.
21912 * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21913 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21914 * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21915 * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21916 * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21917 * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21918 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21919
219202010-10-11 Ulrich Drepper <drepper@gmail.com>
21921
21922 [BZ #12107]
21923 * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21924 newline.
21925
219262010-10-06 Ulrich Drepper <drepper@gmail.com>
21927
21928 * string/bug-strstr1.c: New file.
21929 * string/Makefile: Add rules to build and run bug-strstr1.
21930
219312010-10-05 Eric Blake <eblake@redhat.com>
21932
21933 [BZ #12092]
21934 * string/str-two-way.h (two_way_long_needle): Always clear memory
21935 when skipping input due to the shift table.
21936
219372010-10-03 Ulrich Drepper <drepper@gmail.com>
21938
21939 [BZ #12005]
21940 * malloc/mcheck.c: Handle large requests.
21941
21942 [BZ #12077]
21943 * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21944 for strncmp and strncasecmp.
21945 * string/stratcliff.c: Add tests for strcmp and strncmp.
21946 * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21947
219482010-09-28 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
21949
21950 * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21951 __set_fpscr.
21952
219532010-09-30 Andreas Jaeger <aj@suse.de>
21954
21955 * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21956 (CGROUP_SUPER_MAGIC): Define.
21957 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21958 Handle btrfs and cgroup file systems.
21959 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21960 Likewise.
21961
219622010-09-27 Luis Machado <luisgpm@br.ibm.com>
21963
21964 * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21965 * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21966
219672010-09-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21968
21969 [BZ #12067]
21970 * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21971 trying to locate the ELF header.
21972
219732010-09-27 Andreas Schwab <schwab@redhat.com>
21974
21975 [BZ #11611]
21976 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21977 Mask out sign-bit copies when constructing f_fsid.
21978
219792010-09-24 Petr Baudis <pasky@suse.cz>
21980
21981 * debug/stack_chk_fail_local.c: Add missing licence exception.
21982 * debug/warning-nop.c: Likewise.
21983
219842010-09-15 Joseph Myers <joseph@codesourcery.com>
21985
21986 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21987 implementing getdents64 using getdents syscall, set d_type if
21988 __ASSUME_GETDENTS32_D_TYPE.
21989
219902010-09-16 Andreas Schwab <schwab@redhat.com>
21991
21992 * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21993 * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21994
219952010-09-21 Ulrich Drepper <drepper@redhat.com>
21996
21997 [BZ #12037]
21998 * posix/unistd.h: Undo change of feature selection for ftruncate from
21999 2010-01-11.
22000
220012010-09-20 Ulrich Drepper <drepper@redhat.com>
22002
22003 * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
22004 detection.
22005
220062010-09-20 Andreas Schwab <schwab@redhat.com>
22007
22008 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
22009 fanotify_mark.
22010 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22011
220122010-09-14 Andreas Schwab <schwab@redhat.com>
22013
22014 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
22015 variables after CHECK_SP call.
22016 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
22017
220182010-09-13 Andreas Schwab <schwab@redhat.com>
22019 Ulrich Drepper <drepper@redhat.com>
22020
22021 * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
22022 re-relocationg ld.so.
22023 * elf/dl-support.c (_dl_non_dynamic_init): And here after the
22024 _dl_init_paths call.
22025 * elf/dl-load.c (_dl_init_paths). Don't set GLRO(dl_init_all_dirs)
22026 here anymore.
22027
220282010-09-14 Ulrich Drepper <drepper@redhat.com>
22029
22030 * resolv/res_init.c (__res_vinit): Count the default server we added.
22031
220322010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
22033 Ulrich Drepper <drepper@redhat.com>
22034
22035 [BZ #11968]
22036 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
22037 (____longjmp_chk): Use %ebx for saving value across system call.
22038 Add unwind info.
22039
220402010-09-06 Andreas Schwab <schwab@redhat.com>
22041
22042 * manual/Makefile: Don't mix pattern rules with normal rules.
22043
220442010-09-05 Andreas Schwab <schwab@linux-m68k.org>
22045
22046 * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
22047 operation.
22048 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
22049 * libio/iofopncook.c (_IO_cookie_init): Likewise.
22050 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22051 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22052 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22053 Likewise.
22054
220552010-09-04 Ulrich Drepper <drepper@redhat.com>
22056
22057 [BZ #11979]
22058 * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
22059 IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
22060
220612010-09-02 Ulrich Drepper <drepper@redhat.com>
22062
22063 * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
22064 * sysdeps/x86_64/addmul_1.S: Likewise.
22065 * sysdeps/x86_64/lshift.S: Likewise.
22066 * sysdeps/x86_64/mul_1.S: Likewise.
22067 * sysdeps/x86_64/rshift.S: Likewise.
22068 * sysdeps/x86_64/sub_n.S: Likewise.
22069 * sysdeps/x86_64/submul_1.S: Likewise.
22070
220712010-09-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
22072
22073 This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
22074 Define __sched_param instead of SCHED_* and sched_param when
22075 <bits/sched.h> is included with __need_schedparam defined.
22076 * bits/sched.h [__need_schedparam]
22077 (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
22078 [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
22079 (__defined_schedparam): Define to 1.
22080 (__sched_param): New structure, identical to sched_param.
22081 (__need_schedparam): Undefine.
22082
220832010-08-31 Mike Frysinger <vapier@gentoo.org>
22084
22085 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
22086 (epoll_create1): Declare.
22087
22088 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
22089
220902010-08-31 Andreas Schwab <schwab@redhat.com>
22091
22092 [BZ #7066]
22093 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
22094 shifting retval into place.
22095
220962010-09-01 Ulrich Drepper <drepper@redhat.com>
22097
22098 * nis/rpcsvc/nis.h: Update copyright notice.
22099 * nis/rpcsvc/nis.x: Likewise.
22100 * nis/rpcsvc/nis_callback.h: Likewise.
22101 * nis/rpcsvc/nis_callback.x: Likewise.
22102 * nis/rpcsvc/nis_object.x: Likewise.
22103 * nis/rpcsvc/nis_tags.h: Likewise.
22104 * nis/rpcsvc/yp.h: Likewise.
22105 * nis/rpcsvc/yp.x: Likewise.
22106 * nis/rpcsvc/ypupd.h: Likewise.
22107 * nis/yp_xdr.c: Likewise.
22108 * nis/ypupdate_xdr.c: Likewise.
22109
22110 * sunrpc/pm_getport.c (__libc_rpc_getport): New function. This is
22111 mainly the body of pmap_getport. Add parameters to specify timeouts.
22112 (pmap_getport): Use __libc_rpc_getport.
22113 * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
22114 * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
22115 * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
22116
221172010-08-31 Andreas Schwab <schwab@linux-m68k.org>
22118
22119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
22120 fanotify_mark.
22121
221222010-08-27 Roland McGrath <roland@redhat.com>
22123
22124 * sysdeps/i386/i686/multiarch/Makefile
22125 (CFLAGS-varshift.c): New variable.
22126
221272010-08-27 Ulrich Drepper <drepper@redhat.com>
22128
22129 * sysdeps/i386/i686/multiarch/varshift.S: File removed.
22130 * sysdeps/i386/i686/multiarch/varshift.c: New file.
22131
22132 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
22133
22134 * sysdeps/x86_64/strlen.S: Minimal code improvement.
22135
221362010-08-26 H.J. Lu <hongjiu.lu@intel.com>
22137
22138 * sysdeps/x86_64/strlen.S: Unroll the loop.
22139 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22140 strlen-sse2 strlen-sse2-bsf.
22141 * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
22142 __strlen_no_bsf if bit_Slow_BSF is set.
22143 (__strlen_sse42): Removed.
22144 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
22145 * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
22146
221472010-08-25 Roland McGrath <roland@redhat.com>
22148
22149 * sysdeps/x86_64/multiarch/varshift.S: File removed.
22150 * sysdeps/x86_64/multiarch/varshift.c: New file.
22151 * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
22152 * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
22153 * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
22154 * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
22155
221562010-08-25 H.J. Lu <hongjiu.lu@intel.com>
22157
22158 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22159 strlen-sse2 strlen-sse2-bsf.
22160 * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
22161 __strlen_sse2_bsf if bit_Slow_BSF is unset.
22162 (__strlen_sse2): Removed.
22163 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
22164 * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
22165 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
22166 bit_Slow_BSF for Atom.
22167 * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
22168 (index_Slow_BSF): Define.
22169 (HAS_SLOW_BSF): Define.
22170
221712010-08-25 Ulrich Drepper <drepper@redhat.com>
22172
22173 [BZ #10851]
22174 * resolv/res_init.c (__res_vinit): When no server address at all
22175 is given default to loopback.
22176
221772010-08-24 Roland McGrath <roland@redhat.com>
22178
22179 * configure.in: Remove config-name.h generation.
22180 * configure: Regenerated.
22181 * config-name.in: File removed.
22182 * scripts/config-uname.sh: New file.
22183 * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
22184 ($(objdir)config-name.h): New target.
22185
22186 * sunrpc/rpc_parse.h: Avoid nested comment.
22187
221882010-08-24 Richard Henderson <rth@redhat.com>
22189 Ulrich Drepper <drepper@redhat.com>
22190 H.J. Lu <hongjiu.lu@intel.com>
22191
22192 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
22193 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
22194 * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
22195 Replace _mm_srli_si128 with __m128i_shift_right. Replace
22196 _mm_alignr_epi8 with _mm_loadu_si128.
22197 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
22198 * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
22199 (__m128i_shift_right): Removed.
22200 * sysdeps/i386/i686/multiarch/varshift.h: New file.
22201 * sysdeps/i386/i686/multiarch/varshift.S: New file.
22202 * sysdeps/x86_64/multiarch/varshift.h: New file.
22203 * sysdeps/x86_64/multiarch/varshift.S: New file.
22204
222052010-08-21 Mike Frysinger <vapier@gentoo.org>
22206
22207 * configure.in: Move assembler checks to before sysdep dir checking.
22208
222092010-08-20 Petr Baudis <pasky@suse.cz>
22210
22211 * LICENSES: Sync the sunrpc license.
22212
222132010-08-19 Ulrich Drepper <drepper@redhat.com>
22214
22215 * sunrpc/auth_des.c: Update copyright notice once again.
22216 * sunrpc/auth_none.c: Likewise.
22217 * sunrpc/auth_unix.c: Likewise.
22218 * sunrpc/authdes_prot.c: Likewise.
22219 * sunrpc/authuxprot.c: Likewise.
22220 * sunrpc/bindrsvprt.c: Likewise.
22221 * sunrpc/clnt_gen.c: Likewise.
22222 * sunrpc/clnt_perr.c: Likewise.
22223 * sunrpc/clnt_raw.c: Likewise.
22224 * sunrpc/clnt_simp.c: Likewise.
22225 * sunrpc/clnt_tcp.c: Likewise.
22226 * sunrpc/clnt_udp.c: Likewise.
22227 * sunrpc/clnt_unix.c: Likewise.
22228 * sunrpc/des_crypt.c: Likewise.
22229 * sunrpc/des_soft.c: Likewise.
22230 * sunrpc/get_myaddr.c: Likewise.
22231 * sunrpc/getrpcport.c: Likewise.
22232 * sunrpc/key_call.c: Likewise.
22233 * sunrpc/key_prot.c: Likewise.
22234 * sunrpc/openchild.c: Likewise.
22235 * sunrpc/pm_getmaps.c: Likewise.
22236 * sunrpc/pm_getport.c: Likewise.
22237 * sunrpc/pmap_clnt.c: Likewise.
22238 * sunrpc/pmap_prot.c: Likewise.
22239 * sunrpc/pmap_prot2.c: Likewise.
22240 * sunrpc/pmap_rmt.c: Likewise.
22241 * sunrpc/rpc/auth.h: Likewise.
22242 * sunrpc/rpc/auth_unix.h: Likewise.
22243 * sunrpc/rpc/clnt.h: Likewise.
22244 * sunrpc/rpc/des_crypt.h: Likewise.
22245 * sunrpc/rpc/key_prot.h: Likewise.
22246 * sunrpc/rpc/netdb.h: Likewise.
22247 * sunrpc/rpc/pmap_clnt.h: Likewise.
22248 * sunrpc/rpc/pmap_prot.h: Likewise.
22249 * sunrpc/rpc/pmap_rmt.h: Likewise.
22250 * sunrpc/rpc/rpc.h: Likewise.
22251 * sunrpc/rpc/rpc_des.h: Likewise.
22252 * sunrpc/rpc/rpc_msg.h: Likewise.
22253 * sunrpc/rpc/svc.h: Likewise.
22254 * sunrpc/rpc/svc_auth.h: Likewise.
22255 * sunrpc/rpc/types.h: Likewise.
22256 * sunrpc/rpc/xdr.h: Likewise.
22257 * sunrpc/rpc_clntout.c: Likewise.
22258 * sunrpc/rpc_cmsg.c: Likewise.
22259 * sunrpc/rpc_common.c: Likewise.
22260 * sunrpc/rpc_cout.c: Likewise.
22261 * sunrpc/rpc_dtable.c: Likewise.
22262 * sunrpc/rpc_hout.c: Likewise.
22263 * sunrpc/rpc_main.c: Likewise.
22264 * sunrpc/rpc_parse.c: Likewise.
22265 * sunrpc/rpc_parse.h: Likewise.
22266 * sunrpc/rpc_prot.c: Likewise.
22267 * sunrpc/rpc_sample.c: Likewise.
22268 * sunrpc/rpc_scan.c: Likewise.
22269 * sunrpc/rpc_scan.h: Likewise.
22270 * sunrpc/rpc_svcout.c: Likewise.
22271 * sunrpc/rpc_tblout.c: Likewise.
22272 * sunrpc/rpc_util.c: Likewise.
22273 * sunrpc/rpc_util.h: Likewise.
22274 * sunrpc/rpcinfo.c: Likewise.
22275 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
22276 * sunrpc/rpcsvc/key_prot.x: Likewise.
22277 * sunrpc/rpcsvc/klm_prot.x: Likewise.
22278 * sunrpc/rpcsvc/mount.x: Likewise.
22279 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
22280 * sunrpc/rpcsvc/nlm_prot.x: Likewise.
22281 * sunrpc/rpcsvc/rex.x: Likewise.
22282 * sunrpc/rpcsvc/rstat.x: Likewise.
22283 * sunrpc/rpcsvc/rusers.x: Likewise.
22284 * sunrpc/rpcsvc/sm_inter.x: Likewise.
22285 * sunrpc/rpcsvc/spray.x: Likewise.
22286 * sunrpc/rpcsvc/yppasswd.x: Likewise.
22287 * sunrpc/rtime.c: Likewise.
22288 * sunrpc/svc.c: Likewise.
22289 * sunrpc/svc_auth.c: Likewise.
22290 * sunrpc/svc_authux.c: Likewise.
22291 * sunrpc/svc_raw.c: Likewise.
22292 * sunrpc/svc_run.c: Likewise.
22293 * sunrpc/svc_simple.c: Likewise.
22294 * sunrpc/svc_tcp.c: Likewise.
22295 * sunrpc/svc_udp.c: Likewise.
22296 * sunrpc/svc_unix.c: Likewise.
22297 * sunrpc/svcauth_des.c: Likewise.
22298 * sunrpc/xcrypt.c: Likewise.
22299 * sunrpc/xdr.c: Likewise.
22300 * sunrpc/xdr_array.c: Likewise.
22301 * sunrpc/xdr_float.c: Likewise.
22302 * sunrpc/xdr_mem.c: Likewise.
22303 * sunrpc/xdr_rec.c: Likewise.
22304 * sunrpc/xdr_ref.c: Likewise.
22305 * sunrpc/xdr_sizeof.c: Likewise.
22306 * sunrpc/xdr_stdio.c: Likewise.
22307
22308 * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
22309 handling.
22310
223112010-08-19 Andreas Schwab <schwab@redhat.com>
22312
22313 * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
22314
223152010-08-19 Luis Machado <luisgpm@br.ibm.com>
22316
22317 * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
22318 * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
22319 * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
22320 * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
22321 * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
22322 * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
22323 * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
22324 * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
22325 * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
22326 * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
22327 * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
22328 * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
22329 * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
22330 * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
22331
223322010-07-26 Anton Blanchard <anton@samba.org>
22333
22334 * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
22335 * malloc/arena.c (heap_trim): Likewise.
22336
223372010-08-16 Ulrich Drepper <drepper@redhat.com>
22338
22339 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
22340 here. Not...
22341 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
22342 * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
22343
223442010-08-12 H.J. Lu <hongjiu.lu@intel.com>
22345
22346 * sysdeps/i386/elf/Makefile: New file.
22347
223482010-08-14 Andreas Schwab <schwab@linux-m68k.org>
22349
22350 * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
22351 from fanotify_init.
22352 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
22353 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22354
223552010-08-15 Ulrich Drepper <drepper@redhat.com>
22356
22357 * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
22358 of strncasecmp_l.
22359 * sysdeps/multiarch/strcmp.S: Likewise.
22360
223612010-08-14 Ulrich Drepper <drepper@redhat.com>
22362
22363 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22364 strncase_l-nonascii.
22365 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22366 Add strncase_l-ssse3.
22367 * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
22368 * sysdeps/x86_64/strcmp.S: Likewise.
22369 * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
22370 * sysdeps/x86_64/multiarch/strncase_l.S: New file.
22371 * sysdeps/x86_64/strncase.S: New file.
22372 * sysdeps/x86_64/strncase_l-nonascii.c: New file.
22373 * sysdeps/x86_64/strncase_l.S: New file.
22374 * string/Makefile (strop-tests): Add strncasecmp.
22375 * string/test-strncasecmp.c: New file.
22376
22377 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
22378 warning.
22379
22380 * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
22381 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
22382
223832010-08-14 Andreas Schwab <schwab@linux-m68k.org>
22384
22385 * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
22386
223872010-08-12 Ulrich Drepper <drepper@redhat.com>
22388
22389 * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
22390 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
22391 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
22392
223932010-05-01 Alan Modra <amodra@gmail.com>
22394
22395 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
22396 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
22397 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
22398 * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
22399 * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
22400 tidying. Don't tail-call __sigjmp_save for static lib.
22401 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
22402 save location.
22403 (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
22404 (CALL_MCOUNT): Add eh info, and nop after bl.
22405 (TAIL_CALL_SYSCALL_ERROR): New macro.
22406 (PSEUDO_RET): Use it.
22407 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
22408 Correct save location of integer regs and cr.
22409 (_dl_profile_resolve): Correct cr save location. Delete nops
22410 after bl when SHARED. Reduce cfi size a little by better
22411 placement of cfi directives.
22412 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
22413 make a stack frame. Instead use parm save area as a temp.
22414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
22415 make a stack frame. Use TAIL_CALL_SYSCALL_ERROR.
22416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
22417 Don't make a stack frame for parent, use parm save area.
22418 Increase child stack frame to 112 bytes. Don't save unused reg,
22419 and adjust reg usage. Set up cfi on error recovery and
22420 epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
22421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
22422 (__makecontext): Add dummy nop after jump to exit.
22423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
22424 Use correct parm save area and cr save, reduce stack frame.
22425 Correct cfi for possible PSEUDO_RET frame setup.
22426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
22427 Branch to local label emitted by PSEUDO_RET rather than
22428 __syscall_error.
22429
224302010-08-12 Andreas Schwab <schwab@redhat.com>
22431
22432 [BZ #11904]
22433 * locale/programs/locale.c (print_assignment): New function.
22434 (show_locale_vars): Use it.
22435
224362010-08-11 Ulrich Drepper <drepper@redhat.com>
22437
22438 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
22439 field.
22440 (struct statfs64): Likewise.
22441 (_STATFS_F_FLAGS): Define.
22442 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
22443 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22444 Don't define if __ASSUME_STATFS_F_FLAGS is defined.
22445 (ST_VALID): Define locally.
22446 (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
22447 __statvfs_getflags, use the provided value.
22448 * sysdeps/unix/sysv/linux/kernel-features.h: Define
22449 __ASSUME_STATFS_F_FLAGS.
22450
22451 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
22452
22453 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
22454 Add sys/fanotify.h.
22455 * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
22456 fanotify_mask for GLIBC_2.13.
22457 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22458 fanotify_init and fanotify_mark.
22459 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22460 * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22461
22462 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22463 Add prlimit.
22464 * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22465 prlimit64 for GLIBC_2.13.
22466 * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22467 prlimit64.
22468 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22469 syscall.
22470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22471 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22472 * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22473 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22474 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise. Also
22475 add prlimit alias.
22476 * sysdeps/unix/sysv/linux/prlimit.c: New file.
22477
22478 [BZ #11903]
22479 * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22480 Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22481
22482 * nss/Makefile: Add rules to build and run tst-nss-test1.
22483 * shlib-versions: Add entry for libnss_test1.
22484 * nss/nss_test1.c: New file.
22485 * nss/tst-nss-test1.c: New file.
22486
22487 * nss/nsswitch.c (__nss_database_custom): Define new variable.
22488 (__nss_configure_lookup): Set appropriate entry in
22489 __nss_configure_lookup to true.
22490 * nss/nsswitch.h: Define enum with indeces of databases in
22491 databases and __nss_database_custom arrays. Declare
22492 __nss_database_custom.
22493 * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22494 to avoid using nscd when custom rules are installed.
22495 * nss/getXXbyYY_r.c: Likewise.
22496 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22497
22498 * nss/nss_files/files-parse.c: Whitespace fixes.
22499
225002010-08-09 Ulrich Drepper <drepper@redhat.com>
22501
22502 [BZ #11883]
22503 * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22504 * posix/fnmatch_loop.c: Likewise.
22505
225062010-07-17 Andi Kleen <ak@linux.intel.com>
22507
22508 * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22509 * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22510 * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22511 * Versions.def [GLIBC_2.13]: Add.
22512
225132010-08-06 Ulrich Drepper <drepper@redhat.com>
22514
22515 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22516 Also fail if tpwd after pwuid call is NULL.
22517
225182010-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
22519
22520 * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22521 when converting to ms.
22522
225232010-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
22524
22525 * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22526 EOPNOTSUPP errors with ENOTTY.
22527 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22528 EOPNOTSUPP errors with ENOTTY.
22529
225302010-07-31 Ulrich Drepper <drepper@redhat.com>
22531
22532 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22533 Add strcasecmp_l-ssse3.
22534 * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22535 strcasecmp.
22536 * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22537 * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22538 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22539
225402010-07-30 Ulrich Drepper <drepper@redhat.com>
22541
22542 * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22543
22544 * string/Makefile (strop-tests): Add strcasecmp.
22545 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22546 strcasecmp_l-nonascii.
22547 (gen-as-const-headers): Add locale-defines.sym.
22548 * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22549 * sysdeps/x86_64/strcasecmp.S: New file.
22550 * sysdeps/x86_64/strcasecmp_l.S: New file.
22551 * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22552 * sysdeps/x86_64/locale-defines.sym: New file.
22553 * string/test-strcasecmp.c: New file.
22554
22555 * string/test-strcasestr.c: Test both ends of the range of characters.
22556 * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22557
225582010-07-29 Roland McGrath <roland@redhat.com>
22559
22560 [BZ #11856]
22561 * manual/locale.texi (Yes-or-No Questions): Fix example code.
22562
225632010-07-27 Ulrich Drepper <drepper@redhat.com>
22564
22565 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22566 for ld.so.
22567
225682010-07-27 Andreas Schwab <schwab@redhat.com>
22569
22570 * manual/memory.texi (Malloc Tunable Parameters): Document
22571 M_PERTURB.
22572
225732010-07-26 Roland McGrath <roland@redhat.com>
22574
22575 [BZ #11840]
22576 * configure.in (-fgnu89-inline check): Set and substitute
22577 gnu89_inline, not libc_cv_gnu89_inline.
22578 * configure: Regenerated.
22579 * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22580
225812010-07-26 Ulrich Drepper <drepper@redhat.com>
22582
22583 * string/test-strnlen.c: New file.
22584 * string/Makefile (strop-tests): Add strnlen.
22585 * string/tester.c (test_strnlen): Add a few more test cases.
22586 * string/tst-strlen.c: Better error reporting.
22587
22588 * sysdeps/x86_64/strnlen.S: New file.
22589
225902010-07-24 Ulrich Drepper <drepper@redhat.com>
22591
22592 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22593 lower-latency instructions.
22594
225952010-07-23 Ulrich Drepper <drepper@redhat.com>
22596
22597 * string/test-strcasestr.c: New file.
22598 * string/test-strstr.c: New file.
22599 * string/Makefile (strop-tests): Add strstr and strcasestr.
22600 * string/str-two-way.h: Don't undefine MAX.
22601 * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22602
226032010-07-21 Andreas Schwab <schwab@redhat.com>
22604
22605 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22606 strcasestr-nonascii.
22607 (CFLAGS-strcasestr-nonascii.c): Define.
22608 * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22609 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22610 Remove unused attribute.
22611
226122010-07-20 Roland McGrath <roland@redhat.com>
22613
22614 * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22615 dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in
22616 ld.so.cache was broken. With it, there is no way to disable dsocaps
22617 like LD_HWCAP_MASK can disable hwcaps.
22618
226192010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
22620
22621 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22622
226232010-07-16 Ulrich Drepper <drepper@redhat.com>
22624
22625 * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22626 call in strcasestr.
22627 * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22628 __strcasestr_sse42_nonascii.
22629 * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22630 strcasestr-nonascii.c.
22631 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22632
226332010-06-15 Luis Machado <luisgpm@br.ibm.com>
22634
22635 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22636 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22637 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22638 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22639
226402010-07-09 Ulrich Drepper <drepper@redhat.com>
22641
22642 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22643 fcntl.
22644
226452010-07-06 Andreas Schwab <schwab@redhat.com>
22646
22647 [BZ #11577]
22648 * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22649 dl_signal_cerror.
22650
226512010-07-06 Ulrich Drepper <drepper@redhat.com>
22652
22653 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22654 _PC_PIPE_BUF using F_GETPIPE_SZ.
22655
226562010-07-05 Roland McGrath <roland@redhat.com>
22657
22658 * manual/arith.texi (Rounding Functions): Fix rint description
22659 implicit in round description.
22660
226612010-07-02 Ulrich Drepper <drepper@redhat.com>
22662
22663 * elf/Makefile: Fix linking for a few tests to make recent linker
22664 happy.
22665
226662010-06-30 Andreas Schwab <schwab@redhat.com>
22667
22668 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22669 $(common-objpfx)libc_nonshared.a.
22670
226712010-06-21 Luis Machado <luisgpm@br.ibm.com>
22672
22673 * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22674 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22675 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22676 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22677 * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22678 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22679 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22680 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22695 * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22696 * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22697 * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22698 * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22699 * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22700 * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22701 * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22702 * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22703 * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22704 * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22705 * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22706 * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22715 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22721
227222010-06-25 H.J. Lu <hongjiu.lu@intel.com>
22723
22724 * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22725 (MEMMOVE_CHK): ...this. Default to __memmove_chk.
22726 * string/memmove.c (memmove): Renamed to ...
22727 (MEMMOVE): ...this. Default to memmove.
22728 * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22729 * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22730 (END_CHK): Define.
22731 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22732 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22733 mempcpy-ssse3-back memmove-ssse3-back.
22734 * sysdeps/x86_64/multiarch/bcopy.S: New file .
22735 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22736 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22737 * sysdeps/x86_64/multiarch/memcpy.S: New file.
22738 * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22739 * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22740 * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22741 * sysdeps/x86_64/multiarch/memmove.c: New file.
22742 * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22743 * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22744 * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22745 * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22746 * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22747 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22748 Define.
22749 (index_Fast_Copy_Backward): Define.
22750 (HAS_ARCH_FEATURE): Define.
22751 (HAS_FAST_REP_STRING): Define.
22752 (HAS_FAST_COPY_BACKWARD): Define.
22753
227542010-06-21 Andreas Schwab <schwab@redhat.com>
22755
22756 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22757 Restore proper fallback handling.
22758
227592010-06-19 Ulrich Drepper <drepper@redhat.com>
22760
22761 [BZ #11701]
22762 * posix/group_member.c (__group_member): Correct checking loop.
22763
22764 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22765 OOM in getpwuid_r correctly. Return error number when the caller
22766 should return, otherwise -1.
22767 (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22768 call returning > 0 value.
22769 * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22770
227712010-06-07 Andreas Schwab <schwab@redhat.com>
22772
22773 * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22774 libc_nonshared.a from targets in modules-names.
22775
227762010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
22777
22778 * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22779 requires it.
22780
227812010-06-10 Luis Machado <luisgpm@br.ibm.com>
22782
22783 * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22784 * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22785 * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22786 * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22787
227882010-06-02 Andreas Schwab <schwab@redhat.com>
22789
22790 * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22791
227922010-06-14 Ulrich Drepper <drepper@redhat.com>
22793
22794 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22795 and F_GETPIPE_SZ.
22796 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22797 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22798 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22799 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22800 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22801 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22802
228032010-06-14 Roland McGrath <roland@redhat.com>
22804
22805 * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22806
228072010-06-07 Jakub Jelinek <jakub@redhat.com>
22808
22809 * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22810 __REDIRECT followed by __THROW.
22811 * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22812 * posix/getopt.h (getopt): Likewise.
22813
228142010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
22815
22816 * hurd/lookup-at.c (__file_name_lookup_at): Accept
22817 AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both
22818 AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22819 in AT_FLAGS.
22820 * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22821 * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22822
228232010-05-28 Luis Machado <luisgpm@br.ibm.com>
22824
22825 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22826
228272010-05-26 H.J. Lu <hongjiu.lu@intel.com>
22828
22829 [BZ #11640]
22830 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22831 Properly check family and model.
22832
228332010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
22834
22835 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22836
228372010-05-24 Luis Machado <luisgpm@br.ibm.com>
22838
22839 * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22840
228412010-05-21 Ulrich Drepper <drepper@redhat.com>
22842
22843 * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22844 symbol reference.
22845
228462010-05-19 Andreas Schwab <schwab@redhat.com>
22847
22848 * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22849 symbol reference.
22850
228512010-05-21 Andreas Schwab <schwab@redhat.com>
22852
22853 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22854 and internal_recvmmsg.
22855 * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22856 * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22857 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22858 * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22859
22860 * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22861 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22862 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22863
228642010-05-20 Andreas Schwab <schwab@redhat.com>
22865
22866 * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22867
228682010-05-17 Luis Machado <luisgpm@br.ibm.com>
22869
22870 POWER7 optimizations.
22871 * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22872 * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22873
228742010-05-19 Ulrich Drepper <drepper@redhat.com>
22875
22876 * version.h: Update for 2.13 development version.
22877
228782010-05-12 Andrew Stubbs <ams@codesourcery.com>
22879
22880 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22881 exceptions. Return 0.
22882
228832010-05-07 Roland McGrath <roland@redhat.com>
22884
22885 * elf/ldconfig.c (main): Add a const.
22886
228872010-05-06 Ulrich Drepper <drepper@redhat.com>
22888
22889 * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22890 (args_options): Add no-idn option.
22891 (ahosts_keys_int): Add idn_flags to ai_flags.
22892 (parse_option): Handle 'i' option to clear idn_flags.
22893
22894 * malloc/malloc.c (_int_free): Possible race in the most recently
22895 added check. Only act on the data if no current modification
22896 happened.
22897
22898See ChangeLog.17 for earlier changes.