]> git.ipfire.org Git - thirdparty/glibc.git/blame_incremental - ChangeLog
Update sparc ULPs.
[thirdparty/glibc.git] / ChangeLog
... / ...
CommitLineData
12012-03-02 David S. Miller <davem@davemloft.net>
2
3 * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
4
52012-03-02 Joseph Myers <joseph@codesourcery.com>
6
7 [BZ #3976]
8 * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
9 (__sin): Save and restore rounding mode and use round-to-nearest
10 for all computations.
11 (__cos): Save and restore rounding mode and use round-to-nearest
12 for all computations.
13 * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
14 <fenv.h>.
15 (tan): Save and restore rounding mode and use round-to-nearest for
16 all computations.
17 * math/libm-test.inc (cos_test_tonearest): New function.
18 (cos_test_towardzero): Likewise.
19 (cos_test_downward): Likewise.
20 (cos_test_upward): Likewise.
21 (sin_test_tonearest): Likewise.
22 (sin_test_towardzero): Likewise.
23 (sin_test_downward): Likewise.
24 (sin_test_upward): Likewise.
25 (tan_test_tonearest): Likewise.
26 (tan_test_towardzero): Likewise.
27 (tan_test_downward): Likewise.
28 (tan_test_upward): Likewise.
29 (main): Call the new functions.
30 * sysdeps/i386/fpu/libm-test-ulps: Update.
31 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32
33 [BZ #10135]
34 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
35 small n, then large n, before computing and testing k+n.
36 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38 Likewise.
39 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
40 Likewise.
41 * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
42 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
43 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
44 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
45 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
46 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
47 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
48 * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
49 * math/libm-test.inc (scalbn_test): Add more tests.
50 (scalbln_test): Likewise.
51
52 * manual/filesys.texi (mode_t): Describe constraints on size and
53 signedness, not exact equivalence to a particular type.
54 (ino_t): Likewise.
55 (ino64_t): Likewise.
56 (dev_t): Likewise.
57 (nlink_t): Likewise.
58 (blkcnt_t): Likewise.
59 (blkcnt64_t): Likewise.
60 * manual/llio.texi (off_t): Likewise.
61
62 [BZ #3976]
63 * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
64 (__ieee754_exp): Save and restore rounding mode and use
65 round-to-nearest for all computations.
66 * math/libm-test.inc (exp_test_tonearest): New function.
67 (exp_test_towardzero): Likewise.
68 (exp_test_downward): Likewise.
69 (exp_test_upward): Likewise.
70 (main): Call the new functions.
71 * sysdeps/i386/fpu/libm-test-ulps: Update.
72 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73
742012-03-01 Chris Demetriou <cgd@google.com>
75
76 * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
77 have predictable order.
78
792012-03-01 David S. Miller <davem@davemloft.net>
80
81 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
82
83 * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
84 * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
85 * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
86 * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
87
88 * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
89 * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
90 * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
91 * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
92 * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
93 * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
94 * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
95 * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
96 * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
97
98 * sysdeps/sparc/fpu/libm-test-ulps: Update.
99
100 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
101 * sysdeps/sparc/fpu/libm-test-ulps: to here.
102 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
103
104 * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
105 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
106 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
107 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
108 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
109 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
110 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
111 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
112 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
113 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
114 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
115 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
116 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
117 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
118 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
119 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
120 * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
121 * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
122 * sysdeps/sparc/elf/configure: Regenerated.
123
1242012-03-01 Joseph Myers <joseph@codesourcery.com>
125
126 * configure.in (AS, LD): Require binutils 2.20 or later.
127 * configure: Regenerated.
128 * manual/install.texi (Tools for Compilation): Give binutils 2.20
129 as required minimum version.
130 * INSTALL: Regenerated.
131
132 [BZ #2541]
133 [BZ #4108]
134 * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
135 before squaring exponent.
136 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
137 bottom long double and 27 bits of top long double before squaring
138 exponent.
139 * math/libm-test.inc (erfc_test): Add more tests.
140 * sysdeps/i386/fpu/libm-test-ulps: Update.
141 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
142 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
143
1442012-03-01 Kai Tietz <ktietz@redhat.com>
145
146 * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
147 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
148 containing bit-fields.
149 * soft-fp/extended.h (_FP_UNION_E): Likewise.
150 * soft-fp/single.h (_FP_UNION_S): Likewise.
151 * soft-fp/double.h (_FP_UNION_D): Likewise.
152
1532012-02-29 Joseph Myers <joseph@codesourcery.com>
154
155 [BZ #13786]
156 * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
157 not include ../strcmp.S.
158 [USE_AS_STRNCASECMP_L]: Likewise.
159 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
160 (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
161 * sysdeps/i386/i686/multiarch/strncase_l-c.c
162 (__strncasecmp_l_ia32): Define as alias to
163 __strncasecmp_l_nonascii.
164
165 [BZ #5794]
166 * math/libm-test.inc (expm1_test): Add test for bug 5794.
167 * sysdeps/i386/fpu/libm-test-ulps: Update.
168 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
169
170 * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
171 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
172
1732012-02-29 Jeff Law <law@redhat.com>
174
175 * resolv/res_query.c (__libc_res_nquerydomain): Avoid
176 out of bounds read.
177
1782012-02-29 Marek Polacek <polacek@redhat.com>
179
180 [BZ #13706]
181 * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
182 * elf/Makefile: Add rules to run tst-unused-dep.out.
183
1842012-02-28 David S. Miller <davem@davemloft.net>
185
186 * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
187 * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
188 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
189 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
190 * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
191 * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
192
1932012-02-29 Joseph Myers <joseph@codesourcery.com>
194
195 * math/libm-test.inc (llround_test): Move one test from
196 lround_test. Use TEST_f_L in moved test.
197 (lround_test): Move misplaced test to llround_test. Add testcase
198 from bug 2561.
199
2002012-02-28 Ulrich Drepper <drepper@gmail.com>
201
202 * sysdeps/x86_64/fpu/e_expf.S: New file.
203 Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
204
2052012-02-28 Stanislav Brabec <sbrabec@suse.cz>
206
207 [BZ #13637]
208 * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
209 of remain_len that may cause incomplete multi-byte character and
210 false match.
211 * posix/bug-regex33.c: New file.
212 * posix/Makefile (tests): Add bug-regex33.
213
2142012-02-28 Joseph Myers <joseph@codesourcery.com>
215
216 * manual/macros.texi: New file.
217 * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
218 * manual/libc.texinfo: Include macros.texi.
219 * manual/creatute.texi: Likewise.
220 * manual/install.texi: Likewise.
221 * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
222 @glibcadj{} in references to the GNU C Library.
223 * manual/charset.texi: Likewise.
224 * manual/conf.texi: Likewise.
225 * manual/contrib.texi: Likewise. Consistently use "GNU C Library"
226 when not using those macros.
227 * manual/creature.texi: Likewise.
228 * manual/crypt.texi: Likewise.
229 * manual/errno.texi: Likewise.
230 * manual/filesys.texi: Likewise.
231 * manual/header.texi: Likewise.
232 * manual/install.texi: Likewise.
233 * manual/intro.texi: Likewise.
234 * manual/io.texi: Likewise.
235 * manual/job.texi: Likewise.
236 * manual/lang.texi: Likewise.
237 * manual/libc.texiinfo: Likewise.
238 * manual/llio.texi: Likewise.
239 * manual/locale.texi: Likewise.
240 * manual/maint.texi: Likewise.
241 * manual/math.texi: Likewise.
242 * manual/memory.texi: Likewise.
243 * manual/message.texi: Likewise.
244 * manual/nss.texi: Likewise.
245 * manual/pattern.texi: Likewise.
246 * manual/process.texi: Likewise.
247 * manual/resource.texi: Likewise.
248 * manual/search.texi: Likewise.
249 * manual/setjmp.texi: Likewise.
250 * manual/signal.texi: Likewise.
251 * manual/socket.texi: Likewise.
252 * manual/startup.texi: Likewise.
253 * manual/stdio.texi: Likewise.
254 * manual/string.texi: Likewise.
255 * manual/sysinfo.texi: Likewise.
256 * manual/syslog.texi: Likewise.
257 * manual/terminal.texi: Likewise.
258 * manual/time.texi: Likewise.
259 * manual/users.texi: Likewise.
260 * INSTALL: Regenerated.
261 * NOTES: Regenerated.
262 * sysdeps/gnu/errlist.c: Regenerated.
263
2642012-02-28 Andreas Schwab <schwab@linux-m68k.org>
265
266 * include/dirent.h: Include <dirstream.h> before
267 <dirent/dirent.h>.
268
2692012-02-28 David S. Miller <davem@davemloft.net>
270
271 * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
272 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
273 * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
274 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
275
2762012-02-27 David S. Miller <davem@davemloft.net>
277
278 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
279 * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
280 * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
281 * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
282
283 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
284 frame pointer instead of stack pointer relative arg slot.
285 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
286 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
287 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
288
2892012-02-27 Carlos O'Donell <carlos_odonell@mentor.com>
290
291 [BZ #3992]
292 * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
293
2942012-02-27 David S. Miller <davem@davemloft.net>
295
296 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
297 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
298 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
299 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
300 * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
301 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
302 * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
303 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
304
3052012-02-27 Joseph Myers <joseph@codesourcery.com>
306
307 * configure.in (CC): Restrict allowed GCC versions to 4.3 and
308 later. Allow versions 5-9.
309 * configure: Regenerated.
310 * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
311 required minimum version and 4.6 as recommended version. Do not
312 mention bugs in GCC 2.7 and 2.8.
313 * INSTALL: Regenerated.
314
3152012-02-27 David S. Miller <davem@davemloft.net>
316
317 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
318 * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
319 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
320 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
321 * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
322 * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
323 * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
324 * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
325
326 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
327 manipulate bits before adding and subtracting TWO112[sx].
328 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
329
3302012-02-27 Roland McGrath <roland@hack.frob.com>
331
332 [BZ #13775]
333 * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
334 [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
335 * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
336 being in POSIX, because they are in 1003.1-2008.
337
338 * rt/tst-aio.c: Include <fcntl.h>.
339 * rt/tst-aio7.c: Likewise.
340 * rt/tst-aio64.c: Likewise.
341
342 * stdio-common/tst-fmemopen.c (main): Remove spurious const.
343
3442012-02-27 Joseph Myers <joseph@codesourcery.com>
345
346 * manual/install.texi (--with-headers): Describe headers as
347 interface headers, not private headers.
348 (Specific advice for GNU/Linux systems): Describe use of headers
349 from "make headers_install", not private headers from older
350 kernels.
351 * INSTALL: Regenerated.
352 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
353 Change to 2.6.19.
354 * sysdeps/unix/sysv/linux/configure: Regenerated.
355
356 * manual/llio.texi (fclean): Remove documentation.
357
358 * manual/Makefile (libc-texi-generated): New variable. Include
359 version.texi.
360 (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
361 $(libc-texi-generated), not duplicated list of files.
362 (version.texi, stamp-version): New rules.
363 (realclean): Remove $(libc-texi-generated), not individual files
364 from that list. Do not remove dir-add.texinfo.
365 * manual/libc.texinfo: Comment out uses of edition numbers and
366 references to printed manual. Remove last-updated dates.
367 (EDITION): Comment out.
368 (ISBN): Likewise.
369 (VERSION, UPDATED): Remove.
370 (version.texi): Include.
371
3722012-02-27 Andreas Schwab <schwab@linux-m68k.org>
373
374 * sysdeps/posix/spawni.c: Include <signal.h>.
375 * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
376 * sysdeps/pthread/aio_fsync.c: Likewise.
377
3782012-02-26 Ulrich Drepper <drepper@gmail.com>
379
380 * conform/Makefile (tests): Run only when not cross-compiling and
381 when fast-check is not defined.
382
383 * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
384 * conform/data/limits.h-data: Fixes for POSIX2008.
385 * conform/run-conformtest.sh: Run all tests.
386 * include/arpa/inet.h: Changes to allow conformtest.pl to use the
387 headers.
388 * include/bits/dlfcn.h: Likewise.
389 * include/langinfo.h: Likewise.
390 * include/monetary.h: Likewise.
391 * include/sys/poll.h: Likewise.
392
393 * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
394 for __USE_GNU.
395 * posix/spawn.h: Define __need_sigset_t.
396 * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
397 * posix/unistd.h: Declare ctermid only for XPG before XPG6.
398 * rt/aio.h: Don't include fcntl.h and signal.h. Use bits/siginfo.h
399 to get sigevent_t only.
400 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
401 only for __USE_GNU.
402 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
403 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
404 process_vm_writev only for __USE_GNU.
405 * termios/termios.h: Declare tcgetsid also for POSIX2008.
406
407 * conform/Makefile: For now ignore errors from run-conformtest.
408 * conform/conformtest.pl: Simplify code. Add -ansi to CFLAGS for
409 POSIX to avoid namespace pollution. Don't prepend headers.
410 * conform/data/aio.h-data: Fixes for POSIX testing.
411 * conform/data/fcntl.h-data: Likewise.
412 * conform/data/glob.h-data: Likewise.
413 * conform/data/grp.h-data: Likewise.
414 * conform/data/pthread.h-data: Likewise.
415 * conform/data/pwd.h-data: Likewise.
416 * conform/data/signal.h-data: Likewise.
417 * conform/data/spawn.h-data: Likewise.
418 * conform/data/stdio.h-data: Likewise.
419 * conform/data/stdlib.h-data: Likewise.
420 * conform/data/stropts.h-data: Likewise.
421 * conform/data/sys/mman.h-data: Likewise.
422 * conform/data/sys/stat.h-data: Likewise.
423 * conform/data/sys/types.h-data: Likewise.
424 * conform/data/sys/wait.h-data: Likewise.
425 * conform/data/time.h-data: Likewise.
426 * conform/data/unistd.h-data: Likewise.
427 * conform/data/utime.h-data: Likewise.
428
429 * io/sys/stat.h: fchmod was always in POSIX.
430 * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
431 * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
432 * rt/aio.h: Define __need_timespec before including <time.h>.
433 * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
434 struct. Add forward declaration of pthread_attr_t and use it in
435 sigevent.
436 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
437 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
438 * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
439 always remove CLK_TCK definition.
440
4412012-02-26 Andreas Schwab <schwab@linux-m68k.org>
442
443 * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
444
4452012-02-25 Ulrich Drepper <drepper@gmail.com>
446
447 * conform/run-conformtest.sh: New file.
448 * conform/Makefile: Run run-conformtest for tests.
449 * conform/conformtest.pl: Many bug fixes. Add ISO C99, ISO C11
450 support.
451
452 * conform/data/uchar.h-data: New file.
453 * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
454 * conform/data/arpa/inet.h-data: Likewise.
455 * conform/data/assert.h-data: Likewise.
456 * conform/data/complex.h-data: Likewise.
457 * conform/data/cpio.h-data: Likewise.
458 * conform/data/ctype.h-data: Likewise.
459 * conform/data/dirent.h-data: Likewise.
460 * conform/data/dlfcn.h-data: Likewise.
461 * conform/data/errno.h-data: Likewise.
462 * conform/data/fcntl.h-data: Likewise.
463 * conform/data/float.h-data: Likewise.
464 * conform/data/fmtmsg.h-data: Likewise.
465 * conform/data/fnmatch.h-data: Likewise.
466 * conform/data/ftw.h-data: Likewise.
467 * conform/data/glob.h-data: Likewise.
468 * conform/data/grp.h-data: Likewise.
469 * conform/data/iconv.h-data: Likewise.
470 * conform/data/inttypes.h-data: Likewise.
471 * conform/data/langinfo.h-data: Likewise.
472 * conform/data/libgen.h-data: Likewise.
473 * conform/data/limits.h-data: Likewise.
474 * conform/data/locale.h-data: Likewise.
475 * conform/data/math.h-data: Likewise.
476 * conform/data/monetary.h-data: Likewise.
477 * conform/data/mqueue.h-data: Likewise.
478 * conform/data/ndbm.h-data: Likewise.
479 * conform/data/net/if.h-data: Likewise.
480 * conform/data/netdb.h-data: Likewise.
481 * conform/data/netinet/in.h-data: Likewise.
482 * conform/data/nl_types.h-data: Likewise.
483 * conform/data/poll.h-data: Likewise.
484 * conform/data/pthread.h-data: Likewise.
485 * conform/data/pwd.h-data: Likewise.
486 * conform/data/regex.h-data: Likewise.
487 * conform/data/sched.h-data: Likewise.
488 * conform/data/search.h-data: Likewise.
489 * conform/data/semaphore.h-data: Likewise.
490 * conform/data/setjmp.h-data: Likewise.
491 * conform/data/signal.h-data: Likewise.
492 * conform/data/spawn.h-data: Likewise.
493 * conform/data/stdarg.h-data: Likewise.
494 * conform/data/stdio.h-data: Likewise.
495 * conform/data/stdlib.h-data: Likewise.
496 * conform/data/string.h-data: Likewise.
497 * conform/data/strings.h-data: Likewise.
498 * conform/data/stropts.h-data: Likewise.
499 * conform/data/sys/ipc.h-data: Likewise.
500 * conform/data/sys/mman.h-data: Likewise.
501 * conform/data/sys/msg.h-data: Likewise.
502 * conform/data/sys/resource.h-data: Likewise.
503 * conform/data/sys/select.h-data: Likewise.
504 * conform/data/sys/sem.h-data: Likewise.
505 * conform/data/sys/shm.h-data: Likewise.
506 * conform/data/sys/socket.h-data: Likewise.
507 * conform/data/sys/stat.h-data: Likewise.
508 * conform/data/sys/statvfs.h-data: Likewise.
509 * conform/data/sys/time.h-data: Likewise.
510 * conform/data/sys/timeb.h-data: Likewise.
511 * conform/data/sys/times.h-data: Likewise.
512 * conform/data/sys/types.h-data: Likewise.
513 * conform/data/sys/uio.h-data: Likewise.
514 * conform/data/sys/un.h-data: Likewise.
515 * conform/data/sys/utsname.h-data: Likewise.
516 * conform/data/sys/wait.h-data: Likewise.
517 * conform/data/syslog.h-data: Likewise.
518 * conform/data/tar.h-data: Likewise.
519 * conform/data/termios.h-data: Likewise.
520 * conform/data/utime.h-data: Likewise.
521 * conform/data/utmpx.h-data: Likewise.
522 * conform/data/varargs.h-data: Likewise.
523 * conform/data/wchar.h-data: Likewise.
524 * conform/data/wctype.h-data: Likewise.
525 * conform/data/wordexp.h-data: Likewise.
526
527 * include/stropts.h: New file.
528 * include/uchar.h: New file.
529 * include/aio.h: Changes to allow conformtest.pl to use the headers.
530 * include/assert.h: Likewise.
531 * include/ctype.h: Likewise.
532 * include/dirent.h: Likewise.
533 * include/dlfcn.h: Likewise.
534 * include/fcntl.h: Likewise.
535 * include/fnmatch.h: Likewise.
536 * include/glob.h: Likewise.
537 * include/grp.h: Likewise.
538 * include/libio.h: Likewise.
539 * include/locale.h: Likewise.
540 * include/math.h: Likewise.
541 * include/net/if.h: Likewise.
542 * include/netdb.h: Likewise.
543 * include/netinet/in.h: Likewise.
544 * include/pthread.h: Likewise.
545 * include/pwd.h: Likewise.
546 * include/regex.h: Likewise.
547 * include/sched.h: Likewise.
548 * include/search.h: Likewise.
549 * include/setjmp.h: Likewise.
550 * include/signal.h: Likewise.
551 * include/stdio.h: Likewise.
552 * include/stdlib.h: Likewise.
553 * include/string.h: Likewise.
554 * include/sys/cdefs.h: Likewise.
555 * include/sys/mman.h: Likewise.
556 * include/sys/msg.h: Likewise.
557 * include/sys/resource.h: Likewise.
558 * include/sys/select.h: Likewise.
559 * include/sys/socket.h: Likewise.
560 * include/sys/stat.h: Likewise.
561 * include/sys/statvfs.h: Likewise.
562 * include/sys/time.h: Likewise.
563 * include/sys/times.h: Likewise.
564 * include/sys/uio.h: Likewise.
565 * include/sys/utsname.h: Likewise.
566 * include/sys/wait.h: Likewise.
567 * include/termios.h: Likewise.
568 * include/time.h: Likewise.
569 * include/ulimit.h: Likewise.
570 * include/unistd.h: Likewise.
571 * include/utime.h: Likewise.
572 * include/wchar.h: Likewise.
573 * include/wctype.h: Likewise.
574 * include/wordexp.h: Likewise.
575
576 * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
577
578 * time/time.h: TIME_UTC must be a macro.
579 Make timespec_get available for ISO C11 only as well.
580
5812012-02-24 Ulrich Drepper <drepper@gmail.com>
582
583 * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
584 Reported by Peng Haitao <penght@cn.fujitsu.com>.
585
5862012-02-24 Joseph Myers <joseph@codesourcery.com>
587
588 * configure.in: Use -o not -a in test for unsupported multi-arch.
589
5902012-02-24 Joseph Myers <joseph@codesourcery.com>
591
592 * manual/texinfo.tex: Update to version 2012-01-19.16.
593
5942012-02-24 Joseph Myers <joseph@codesourcery.com>
595
596 * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
597
5982012-02-24 Roland McGrath <roland@hack.frob.com>
599
600 [BZ #13738]
601 * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
602 * manual/fdl-1.3.texi: New file.
603 * manual/fdl-1.1.texi: File removed.
604
605 [BZ #13738]
606 * manual/libc.texinfo (FDL_VERSION): New @set.
607 Use it for mention of FDL in cover text.
608 (Documentation License): Use it in @include file name.
609
6102012-02-22 Joseph Myers <joseph@codesourcery.com>
611 Roland McGrath <roland@hack.frob.com>
612
613 [BZ #5461]
614 * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
615 not LONG_LONG_MAX and LONG_LONG_MIN.
616 * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
617 LLONG_MIN. Refer to LONG_LONG_MIN only as older GCC-specific
618 name.
619 (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
620
6212012-02-22 Joseph Myers <joseph@codesourcery.com>
622
623 [BZ #2547]
624 [BZ #11365]
625 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
626 manipulate bits before adding and subtracting TWO23[sx].
627 * math/libm-test.inc (nearbyint_test): Add more tests.
628
6292012-02-22 Joseph Myers <joseph@codesourcery.com>
630
631 [BZ #2548]
632 * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
633 bits before adding and subtracting TWO23[sx].
634 * math/libm-test.inc (rint_test): Add more tests.
635 (rint_test_tonearest): Likewise.
636 (rint_test_towardzero): Likewise.
637 (rint_test_downward): Likewise.
638 (rint_test_upward: Likewise.
639
6402012-02-22 Joseph Myers <joseph@codesourcery.com>
641
642 [BZ #10110]
643 * include/stdc-predef.h: New file. Extracted from features.h.
644 * include/features.h: Include stdc-predef.h.
645 * Makefile (headers): Add stdc-predef.h.
646 * CONFORMANCE (Compiler limitations): Update.
647
6482012-02-22 Joseph Myers <joseph@codesourcery.com>
649
650 * manual/libc.texinfo (VERSION, UPDATED): Revert.
651
6522012-02-21 David S. Miller <davem@davemloft.net>
653
654 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
655 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
656
6572012-02-20 David S. Miller <davem@davemloft.net>
658
659 * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
660 using a normal save/restore sequence, rather than allocating a
661 dummy stack frame just to store a frame pointer and restore.
662 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
663
6642012-02-21 Joseph Myers <joseph@codesourcery.com>
665
666 * manual/install.texi: Fix stray word in line-wrapped comment.
667
6682012-02-20 David S. Miller <davem@davemloft.net>
669
670 * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
671 both binutils and gcc support GOTDATA.
672
673 * sysdeps/unix/sparc/sysdep.h: Document why we don't use
674 "rd %pc" in the PIC register setup sequences.
675
676 * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
677 * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
678 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
679 * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
680 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
681 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
682 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
683 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
684 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
685 (SYSCALL_ERROR_HANDLER): Likewise.
686 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
687 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
688 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
689 (SYSCALL_ERROR_HANDLER): Likewise.
690
691 * config.h.in (HAVE_BINUTILS_GOTDATA): New.
692 (HAVE_GCC_GOTDATA): New.
693 * sysdeps/sparc/elf/configure.in: Test for GOTDATA
694 relocation support in both binutils and gcc.
695 * sysdeps/sparc/elf/configure: Regenerate.
696
697 * sysdeps/sparc/sparc32/elf/configure.in: Delete.
698 * sysdeps/sparc/sparc32/elf/configure: Delete.
699 * sysdeps/sparc/sparc64/elf/configure.in: Delete.
700 * sysdeps/sparc/sparc64/elf/configure: Delete.
701 * sysdeps/sparc/elf/configure.in: New file.
702 * sysdeps/sparc/elf/configure: Generate.
703
704 * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
705 * sysdeps/sparc/sparc32/elf/configure: Regenerate.
706 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
707 * sysdeps/sparc/sparc64/elf/configure: Regenerate.
708 * config.h.in (BROKEN_SPARC_WDISP22): Remove.
709
7102012-02-21 Joseph Myers <joseph@codesourcery.com>
711
712 * manual/install.texi: Do not mention specific glibc version
713 numbers.
714 * manual/libc.texinfo (VERSION, UPDATED): Update.
715 (@copying): Use @copyright{} and range of years.
716
7172012-02-21 Joseph Myers <joseph@codesourcery.com>
718
719 [BZ #13695]
720 * csu/Makefile (distribute): Remove initfini.c and defs.awk.
721 [crti.S not in sysdirs] (generated): Do not append.
722 [crti.S not in sysdirs] (omit-deps): Likewise.
723 [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
724 [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
725 [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
726 [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
727 [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
728 Likewise.
729 [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
730 [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
731 [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
732 * csu/defs.awk: Remove file.
733 * sysdeps/generic/initfini.c: Likewise.
734 * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
735 variable.
736 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
737 Likewise.
738
7392012-02-20 Joseph Myers <joseph@codesourcery.com>
740
741 * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
742 * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
743 * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
744 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
745 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
746 * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
747 <bits/epoll.h>.
748 (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
749 (__EPOLL_PACKED): Define to empty if not defined by
750 <bits/epoll.h>.
751 (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
752 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
753 bits/epoll.h.
754
7552012-02-20 Joseph Myers <joseph@codesourcery.com>
756
757 * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
758 * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
759 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
760 * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
761 <bits/timerfd.h>.
762 (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
763 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
764 bits/timerfd.h.
765
7662012-02-20 Joseph Myers <joseph@codesourcery.com>
767
768 * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
769 in C locale.
770 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
771 * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
772 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
773 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
774
7752012-02-20 Aurelien Jarno <aurelien@aurel32.net>
776
777 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
778 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
779
7802012-02-19 Andreas Schwab <schwab@linux-m68k.org>
781
782 * manual/errno.texi (Error Codes): Add EHWPOISON entry.
783 * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
784 defined.
785 * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
786 Likewise.
787 * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
788 entry for 2.16.
789
7902012-02-19 Aurelien Jarno <aurelien@aurel32.net>
791
792 * math/w_acos.c: Use non-signaling floating-point comparisons.
793 * math/w_acosf.c: Likewise.
794 * math/w_acosh.c: Likewise.
795 * math/w_acoshf.c: Likewise.
796 * math/w_acoshl.c: Likewise.
797 * math/w_acosl.c: Likewise.
798 * math/w_asin.c: Likewise.
799 * math/w_asinf.c: Likewise.
800 * math/w_asinl.c: Likewise.
801 * math/w_atanh.c: Likewise.
802 * math/w_atanhf.c: Likewise.
803 * math/w_atanhl.c: Likewise.
804 * math/w_exp2.c: Likewise.
805 * math/w_exp2f.c: Likewise.
806 * math/w_exp2l.c: Likewise.
807 * math/w_j0.c: Likewise.
808 * math/w_j0f.c: Likewise.
809 * math/w_j0l.c: Likewise.
810 * math/w_j1.c: Likewise.
811 * math/w_j1f.c: Likewise.
812 * math/w_j1l.c: Likewise.
813 * math/w_jn.c: Likewise.
814 * math/w_jnf.c: Likewise.
815 * math/w_log.c: Likewise.
816 * math/w_log10.c: Likewise.
817 * math/w_log10f.c: Likewise.
818 * math/w_log10l.c: Likewise.
819 * math/w_log2.c: Likewise.
820 * math/w_log2f.c: Likewise.
821 * math/w_log2l.c: Likewise.
822 * math/w_logf.c: Likewise.
823 * math/w_logl.c: Likewise.
824 * math/w_sqrt.c: Likewise.
825 * math/w_sqrtf.c: Likewise.
826 * math/w_sqrtl.c: Likewise.
827 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
828 * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
829 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
830 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
831 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
832
8332012-02-19 Joseph Myers <joseph@codesourcery.com>
834
835 [BZ #9739]
836 * manual/string.texi (strnlen): Use correct parameter name in
837 equivalent expression.
838
8392012-02-19 Joseph Myers <joseph@codesourcery.com>
840
841 [BZ #11174]
842 * manual/users.texi (seteuid): Consistently use neweuid for
843 argument name.
844
8452012-02-19 Joseph Myers <joseph@codesourcery.com>
846
847 [BZ #13704]
848 * manual/nss.texi (Services in the NSS configuration): Correct
849 list of services in example configuration file.
850
8512012-02-19 Nick Bowler <nbowler@draconx.ca>
852
853 [BZ #11322]
854 * manual/arith.texi: Remove statements about negative zero
855 behaving identically to zero.
856
8572012-02-18 Joseph Myers <joseph@codesourcery.com>
858
859 [BZ #5993]
860 * manual/install.texi: Do not document upgrading from libc5.
861
8622012-02-18 Joseph Myers <joseph@codesourcery.com>
863
864 [BZ #4596]
865 * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
866
8672012-02-18 David S. Miller <davem@davemloft.net>
868
869 * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
870 (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
871 %o7 across the call.
872 (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
873 instead.
874 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
875 SETUP_PIC_REG_LEAF.
876 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
877 * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
878 * sysdeps/sparc/crtn.S: Likewise.
879
8802012-02-17 Ulrich Drepper <drepper@gmail.com>
881
882 * aout/Makefile: Remove.
883
8842012-02-18 Rafe Kettler <rafe.kettler@gmail.com>
885
886 [BZ #13058]
887 * manual/examples/argp-ex1.c (main): Format definition in GNU
888 style.
889 * manual/examples/argp-ex2.c (main): Likewise.
890 * manual/examples/argp-ex3.c (main): Likewise.
891 * manual/examples/argp-ex4.c (main): Likewise.
892 * manual/examples/longopt.c (main): Use new-style prototype
893 definition.
894 * manual/examples/strncat.c (main): Specify return type and use
895 (void) for arguments.
896 * manual/examples/subopt.c (main): Use char **argv argument.
897
8982012-02-17 Joseph Myers <joseph@codesourcery.com>
899
900 [BZ #5077]
901 * manual/lang.texi (FLT_EPSILON): Avoid description depending on
902 rounding modes.
903
9042012-02-17 Fabrice Bauzac <fabrice.bauzac@wanadoo.fr>
905
906 [BZ #6907]
907 * manual/string.texi (strchr): Change when strchrnul is
908 recommended.
909
9102012-02-17 Dwayne Grant McConnell <decimal@us.ibm.com>
911
912 [BZ #174]
913 * manual/locale.texi (setlocale): Document LOCPATH.
914
9152012-02-17 Joseph Myers <joseph@codesourcery.com>
916
917 [BZ #10210]
918 * manual/process.texi (execle): Move @dots{} before last argument.
919
9202012-02-17 Paul Bolle <pebolle@tiscali.nl>
921
922 [BZ #12047]
923 * manual/charset.texi (Generic Charset Conversion): Fix typo
924 (LC_TYPE -> LC_CTYPE).
925
9262012-02-17 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
927
928 [BZ #5805]
929 * manual/arith.texi (scalbn): Use @var{} on parameter names.
930 (scalbnf): Likewise.
931 (scalbnl): Likewise.
932 (scalbln): Likewise.
933 (scalblnf): Likewise.
934 (scalblnl): Likewise.
935 * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
936 (vwarnx): Likewise.
937 (verr): Likewise.
938 (verrx): Likewise.
939 * manual/filesys.texi (telldir): Use braces around return type.
940 * manual/llio.texi (mmap): Add space after comma.
941 (mmap64): Likewise.
942 * manual/math.texi (jn): Use @var{} on parameter names.
943 (jnf): Likewise.
944 (jnl): Likewise.
945 (yn): Likewise.
946 (ynf): Likewise.
947 (ynl): Likewise.
948 * manual/memory.texi (alloca): Remove semicolon on @deftypefun
949 line.
950 * manual/resource.texi (ulimit): Use @dots{} instead of literal
951 "...".
952 (sched_get_priority_min): Remove semicolon on @deftypefun line.
953 (sched_get_priority_max): Likewise.
954 * manual/signal.texi (sigvec): Add space after comma.
955 * manual/socket.texi (if_nametoindex): Use @var{} on parameter
956 names.
957 (if_indextoname): Likewise.
958 (if_freenameindex): Likewise.
959 (sendto): Use ',' instead of '.' in prototype.
960 * manual/startup.texi (syscall): Use @dots{} instead of literal
961 "...".
962 * manual/stdio.texi (__fpending): Separate initial words of
963 paragraph from @deftypefun line.
964 * manual/syslog.texi (syslog): Use @dots{} instead of literal
965 "...".
966 (vsyslog): Use @var{} on parameter names.
967 * manual/terminal.texi (stty): Use @var{} on parameter names.
968 * manual/users.texi (getutmp): Use @var{} on parameter names.
969 (getutmpx): Likewise.
970
9712012-02-17 Joseph Myers <joseph@codesourcery.com>
972
973 [BZ #6884]
974 * manual/stdio.texi (fopen): Fix typos in description of
975 ",ccs=STRING".
976
9772012-02-17 Aurelien Jarno <aurelien@aurel32.net>
978
979 [BZ #4026]
980 * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
981 get clock_id definition.
982
9832012-02-17 Thomas Schwinge <thomas@schwinge.name>
984
985 [BZ #4822]
986 * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
987 (madvise): Cast every argument to void on its own.
988
9892012-02-17 Joseph Myers <joseph@codesourcery.com>
990
991 [BZ #9902]
992 * manual/startup.texi (Exit Status): Fix typo.
993
9942012-02-17 Joseph Myers <joseph@codesourcery.com>
995
996 [BZ #10140]
997 * manual/examples/argp-ex1.c: Include <stdlib.h>.
998 * manual/examples/argp-ex2.c: Likewise.
999 * manual/examples/argp-ex3.c: Likewise.
1000
10012012-02-16 Richard Henderson <rth@redhat.com>
1002
1003 * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
1004 * sysdeps/s390/s390-32/initfini.c: Remove.
1005 * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
1006 * sysdeps/s390/s390-64/initfini.c: Remove.
1007
10082012-02-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1009
1010 * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
1011 compiler output for sysdeps/generic/initfini.c.
1012 * sysdeps/sh/elf/initfini.c: Remove file.
1013
10142012-02-16 David S. Miller <davem@davemloft.net>
1015
1016 [BZ #11494]
1017 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
1018
1019 * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
1020 * sysdeps/sparc/crti.S: New file.
1021 * sysdeps/sparc/crtn.S: New file.
1022 * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
1023 * sysdeps/sparc/sparc64/Makefile: Likewise.
1024
10252012-02-15 Mike Frysinger <vapier@gentoo.org>
1026
1027 [BZ #3335]
1028 * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
1029
10302012-02-15 Roland McGrath <roland@hack.frob.com>
1031
1032 [BZ #4822]
1033 * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
1034
1035 * mach/devstream.c (cookie_io_functions_t): Macro removed.
1036 (write, read, close): Likewise.
1037 Patch by Aurelien Jarno <aurelien@aurel32.net>.
1038
10392012-02-15 Joseph Myers <joseph@codesourcery.com>
1040
1041 * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
1042 * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
1043 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
1044 * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
1045 <bits/signalfd.h>.
1046 (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
1047 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1048 bits/signalfd.h.
1049
10502012-02-14 Marek Polacek <polacek@redhat.com>
1051
1052 * sysdeps/x86_64/crti.S: New file.
1053 * sysdeps/x86_64/crtn.S: New file.
1054 * sysdeps/x86_64/elf/initfini.c: Remove file.
1055
10562012-02-13 Joseph Myers <joseph@codesourcery.com>
1057
1058 * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
1059 * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
1060 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
1061 * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
1062 <bits/inotify.h>.
1063 (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
1064 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1065 bits/inotify.h.
1066
10672012-02-13 Joseph Myers <joseph@codesourcery.com>
1068
1069 * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
1070 * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
1071 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
1072 * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
1073 <bits/eventfd.h>.
1074 (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
1075 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1076 bits/eventfd.h.
1077
10782012-02-10 Thomas Schwinge <thomas@codesourcery.com>
1079
1080 * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
1081 __feraiseexcept instead of feraiseexcept.
1082
1083 * rt/tst-cpuclock1.c: Add a few comments, and error checking for
1084 nanosleep invocations.
1085 * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
1086 strings, and add error checking for a nanosleep invocations.
1087
10882012-02-09 Paul Eggert <eggert@cs.ucla.edu>
1089
1090 Replace FSF snail mail address with URLs, as per GNU coding standards.
1091 Most of the snail mail addresses were wrong anyway, and omitting
1092 them makes the source code easier to maintain. Almost all of the
1093 changes are to license notices and to locale LC_IDENTIFICATION
1094 addresses, except for this one:
1095 * manual/libc.texinfo: In "Published by", give the FSF's URL,
1096 not its snail mail address.
1097
10982012-02-09 Richard Henderson <rth@twiddle.net>
1099
1100 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
1101 of kernel-features.h.
1102
1103 * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
1104
11052012-02-08 Marek Polacek <polacek@redhat.com>
1106
1107 * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
1108 * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
1109 * sysdeps/gnu/_G_config.h: Likewise.
1110 * sysdeps/generic/_G_config.h: Likewise.
1111
11122012-02-08 Andreas Schwab <schwab@linux-m68k.org>
1113
1114 * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
1115 tests.
1116 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1117
1118 * sysdeps/powerpc/powerpc32/crti.S: New file.
1119 * sysdeps/powerpc/powerpc32/crtn.S: New file.
1120 * sysdeps/powerpc/powerpc64/crti.S: New file.
1121 * sysdeps/powerpc/powerpc64/crtn.S: New file.
1122
1123 * Makeconfig (have-initfini): Don't set.
1124 * config.make.in (have-initfini, need-nopic-initfini): Don't set.
1125 * configure.in (nopic_initfini): Don't substitute.
1126 * config.h.in (HAVE_INITFINI): Don't #undef.
1127 * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
1128 * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
1129
11302012-02-08 Joseph Myers <joseph@codesourcery.com>
1131
1132 Support crti.S and crtn.S provided directly by architectures.
1133 * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
1134 [crti.S in sysdirs] (omit-deps): Likewise.
1135 [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
1136 [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
1137 [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
1138 [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
1139 [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
1140 [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
1141 [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
1142 [crti.S in sysdirs] (initfini.c): Remove vpath directive.
1143 * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
1144 compiler output for sysdeps/generic/initfini.c.
1145 * sysdeps/i386/elf/Makefile: Remove file.
1146 * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
1147
11482012-02-07 Marek Polacek <polacek@redhat.com>
1149
1150 * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
1151 * sysdeps/gnu/_G_config.h: Likewise.
1152 * sysdeps/mach/hurd/_G_config.h: Likewise.
1153
11542012-02-07 Marek Polacek <polacek@redhat.com>
1155
1156 * math/Makefile (tests): Add tst-CMPLX2.
1157 * math/tst-CMPLX2.c: New file.
1158
11592012-02-07 Andreas Schwab <schwab@linux-m68k.org>
1160
1161 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
1162
1163 * math/libm-test.inc (jn_test): Add missing L suffix.
1164
11652012-02-06 Marek Polacek <polacek@redhat.com>
1166
1167 * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
1168 * sysdeps/i386/fpu/e_powf.S: Likewise.
1169 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1170 * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1171 * sysdeps/i386/fpu/e_acosh.S: Likewise.
1172 * sysdeps/i386/fpu/e_pow.S: Likewise.
1173 * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1174 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1175 * sysdeps/i386/fpu/s_expm1.S: Likewise.
1176 * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1177 * sysdeps/i386/fpu/e_log2.S: Likewise.
1178 * sysdeps/i386/fpu/e_log2l.S: Likewise.
1179 * sysdeps/i386/fpu/e_scalb.S: Likewise.
1180 * sysdeps/i386/fpu/e_powl.S: Likewise.
1181 * sysdeps/i386/fpu/s_log1p.S: Likewise.
1182 * sysdeps/i386/fpu/e_log10f.S: Likewise.
1183 * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1184 * sysdeps/i386/fpu/e_logl.S: Likewise.
1185 * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1186 * sysdeps/i386/fpu/s_expm1l.S: Likewise.
1187 * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1188 * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1189 * sysdeps/i386/fpu/e_log2f.S: Likewise.
1190 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1191 * sysdeps/i386/fpu/e_log.S: Likewise.
1192 * sysdeps/i386/fpu/s_cexp.S: Likewise.
1193 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1194 * sysdeps/i386/fpu/s_log1pl.S: Likewise.
1195 * sysdeps/i386/fpu/e_logf.S: Likewise.
1196 * sysdeps/i386/fpu/e_log10l.S: Likewise.
1197 * sysdeps/i386/fpu/e_atanh.S: Likewise.
1198 * sysdeps/i386/fpu/s_log1pf.S: Likewise.
1199 * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1200 * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1201 * sysdeps/i386/fpu/e_log10.S: Likewise.
1202 * sysdeps/i386/fpu/s_frexp.S: Likewise.
1203 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1204 * sysdeps/i386/fpu/s_asinh.S: Likewise.
1205 * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1206 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1207 * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1208 * sysdeps/i386/asm-syntax.h: Likewise.
1209 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1210 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1211 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1212 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1213 * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
1214 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1215 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1216 * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1217 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1218 * sysdeps/powerpc/sysdep.h: Likewise.
1219 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
1220 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1221
12222012-02-06 Joseph Myers <joseph@codesourcery.com>
1223
1224 [BZ #411]
1225 * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
1226
12272012-02-06 Joseph Myers <joseph@codesourcery.com>
1228
1229 * sysdeps/i386/sysdep.h: Include <features.h>.
1230 (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
1231 version.
1232
12332012-02-05 Joseph Myers <joseph@codesourcery.com>
1234
1235 * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
1236 Define.
1237 * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
1238 LOAD_PIC_REG_STR.
1239
12402012-02-03 Joseph Myers <joseph@codesourcery.com>
1241
1242 * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
1243 (SETUP_PIC_REG): Use GET_PC_THUNK.
1244 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
1245 macro.
1246
12472012-02-03 Joseph Myers <joseph@codesourcery.com>
1248
1249 * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
1250 for non-PIC compilation.
1251 (SETUP_PIC_REG): Add .p2align directive.
1252 * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
1253 * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
1254 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1255 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1256 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
1257 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1258 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
1259 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
1260 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1261 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1262 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1263 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1264 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1265 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1266 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1267 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
1268 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
1269 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1270 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1271 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1272 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1273 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
1274 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1275 * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1276 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
1277 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
1278 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1279 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
1280 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1281 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1282 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1283 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1284 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1285 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1286 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1287 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1288 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1289 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1290 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1291 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1292 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1293
12942012-02-03 Joseph Myers <joseph@codesourcery.com>
1295
1296 * math/tst-CMPLX.c: Include <stdio.h>.
1297
12982012-01-31 Joseph Myers <joseph@codesourcery.com>
1299
1300 * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
1301 float.
1302 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
1303 * sysdeps/sparc/bits/mathdef.h: Likewise.
1304
13052012-01-31 Marek Polacek <polacek@redhat.com>
1306
1307 * libio/libio.h: Don't define _PARAMS.
1308 * locale/programs/config.h: Don't define PARAMS.
1309 * stdlib/strtol_l.c: Likewise.
1310 (__strtol_l): Remove PARAMS from the prototype.
1311
13122012-01-31 Ulrich Drepper <drepper@gmail.com>
1313
1314 * malloc/malloc.c: Remove name translation. Don't use mixed-cap
1315 names. Just use the correct names. Remove unnecessary wrapper
1316 functions.
1317 * malloc/arena.c: Likewise.
1318 * malloc/hooks.c: Likewise.
1319
1320 * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
1321 ARENA_TEST says not to. Simplify test for creation of a new arena.
1322 Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
1323
13242012-01-30 Ulrich Drepper <drepper@gmail.com>
1325
1326 * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
1327 into tail calls.
1328 (update_get_addr): New function.
1329 (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
1330 GET_ADDR_MODULE parameter.
1331
13322012-01-30 Joseph Myers <joseph@codesourcery.com>
1333
1334 * crypt/cert.c: Remove __STDC__ conditionals.
1335 * crypt/crypt-entry.c: Likewise.
1336 * crypt/crypt_util.c: Likewise.
1337 * libio/filedoalloc.c: Likewise.
1338 * libio/fileops.c: Likewise.
1339 * libio/genops.c: Likewise.
1340 * libio/iofclose.c: Likewise.
1341 * libio/iofdopen.c: Likewise.
1342 * libio/iofopen.c: Likewise.
1343 * libio/iofopen64.c: Likewise.
1344 * libio/iogetdelim.c: Likewise.
1345 * libio/iopopen.c: Likewise.
1346 * libio/obprintf.c: Likewise.
1347 * libio/oldfileops.c: Likewise.
1348 * libio/oldiofclose.c: Likewise.
1349 * libio/oldiofdopen.c: Likewise.
1350 * libio/oldiofopen.c: Likewise.
1351 * libio/oldiopopen.c: Likewise.
1352 * libio/wfiledoalloc.c: Likewise.
1353 * libio/wgenops.c: Likewise.
1354 * locale/programs/xmalloc.c: Likewise.
1355 * misc/syslog.c: Likewise.
1356 * stdio-common/xbug.c: Likewise.
1357 * string/memchr.c: Likewise.
1358 * string/memcmp.c: Likewise.
1359 * string/memrchr.c: Likewise.
1360 * string/rawmemchr.c: Likewise.
1361 * sysdeps/posix/getcwd.c: Likewise.
1362 * time/strftime_l.c: Likewise.
1363
13642012-01-30 Joseph Myers <joseph@codesourcery.com>
1365
1366 * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
1367 * config.make.in (config-cflags-sse2avx): Define.
1368 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
1369 Fix typo.
1370
13712012-01-29 Chris Metcalf <cmetcalf@tilera.com>
1372
1373 * scripts/config.guess: Update from upstream config git repository.
1374 * scripts/config.sub: Likewise.
1375
13762012-01-28 Chris Metcalf <cmetcalf@tilera.com>
1377
1378 * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
1379 (EM_NUM): Update.
1380 (R_TILEPRO_*, R_TILEGX_*): New macros.
1381
1382 * scripts/firstversions.awk: Fix bug in version range handling.
1383
1384 * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
1385
1386 * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
1387
1388 * include/sys/epoll.h: New file.
1389 * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
1390 libc_hidden_def.
1391
13922012-01-28 Ulrich Drepper <drepper@gmail.com>
1393
1394 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
1395 Avoid unnecessary __WORDSIZE == 64 test.
1396 (fmaxf): Use VEX format if possible.
1397 (fmax): Likewise.
1398 (fminf): Likewise.
1399 (fmin): Likewise.
1400
1401 * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
1402 * math/math_private.h: Remove libc_fegetround* and
1403 libc_fesetround*.
1404 * sysdeps/i386/configure.in: Check for -msse2avx.
1405 * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
1406 also if SSE2AVX is defined.
1407 Remove libc_fegetround* and libc_fesetround*.
1408 * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
1409 if config-cflags-sse2avx is yes. Also add -DSSE2AVX to defines.
1410 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
1411 of HAS_YMM_USABLE.
1412 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
1413 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
1414 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
1415 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
1416 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
1417
1418 * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
1419
14202012-01-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1421
1422 * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
1423 size is not set.
1424 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
1425
14262012-01-27 Ulrich Drepper <drepper@gmail.com>
1427
1428 [BZ #13618]
1429 * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
1430 relocation.
1431 * Makeconfig (libm): Define.
1432 * elf/Makefile: Add rules to build and run tst-relsort1.
1433 * elf/tst-relsort1.c: New file.
1434 * elf/tst-relsort1mod1.c: New file.
1435 * elf/tst-relsort1mod2.c: New file.
1436
14372012-01-27 Joseph Myers <joseph@codesourcery.com>
1438
1439 * math/s_ldexp.c: Remove __STDC__ conditionals.
1440 * math/s_ldexpf.c: Likewise.
1441 * math/s_ldexpl.c: Likewise.
1442 * math/s_nextafter.c: Likewise.
1443 * math/s_nexttowardf.c: Likewise.
1444 * math/s_significand.c: Likewise.
1445 * math/s_significandf.c: Likewise.
1446 * math/s_significandl.c: Likewise.
1447 * math/w_jnl.c: Likewise.
1448 * sysdeps/i386/fpu/s_isinfl.c: Likewise.
1449 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1450 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
1451 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1452 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
1453 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1454 * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
1455 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
1456 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1457 * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
1458 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1459 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1460 * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
1461 * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
1462 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1463 * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
1464 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
1465 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
1466 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
1467 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
1468 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
1469 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
1470 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
1471 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1472 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
1473 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
1474 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
1475 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
1476 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1477 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
1478 * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
1479 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1480 * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
1481 * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
1482 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1483 * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
1484 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1485 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1486 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1487 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
1488 * sysdeps/ieee754/k_standard.c: Likewise.
1489 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1490 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1491 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
1492 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
1493 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
1494 * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
1495 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1496 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
1497 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
1498 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
1499 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
1500 * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
1501 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
1502 * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
1503 * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
1504 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
1505 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
1506 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1507 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
1508 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
1509 * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1510 * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
1511 * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
1512 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
1513 * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
1514 * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
1515 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
1516 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
1517 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
1518 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
1519 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
1520 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
1521 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
1522 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1523 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
1524 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
1525 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
1526 * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
1527 * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
1528 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
1529 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1530 * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
1531 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
1532 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
1533 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
1534 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
1535 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
1536 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
1537 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
1538 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
1539 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
1540 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
1541 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
1542 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
1543 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
1544 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1545 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
1546 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1547 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
1548 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
1549 * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
1550 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
1551 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1552 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1553 * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
1554 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
1555 * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
1556 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
1557 * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
1558 * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
1559 * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
1560 * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
1561 * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
1562 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1563 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
1564 * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
1565 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1566 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
1567 * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
1568 * sysdeps/ieee754/s_matherr.c: Likewise.
1569 * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
1570 * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1571 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1572 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1573
15742012-01-26 Joseph Myers <joseph@codesourcery.com>
1575
1576 * crypt/md5.h: Remove __STDC__ conditionals.
1577 * libio/libioP.h: Likewise.
1578 * locale/programs/config.h: Likewise.
1579 * sysdeps/generic/sysdep.h: Likewise.
1580 * sysdeps/i386/asm-syntax.h: Likewise.
1581 * sysdeps/s390/asm-syntax.h: Likewise.
1582 * sysdeps/unix/sysdep.h: Likewise.
1583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
1584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1585
15862012-01-26 Joseph Myers <joseph@codesourcery.com>
1587
1588 * libio/libio.h: Remove __STDC__ conditionals.
1589 * malloc/obstack.h: Likewise.
1590 * math/complex.h: Likewise.
1591 * math/math.h: Likewise.
1592 * sysdeps/generic/_G_config.h: Likewise.
1593 * sysdeps/gnu/_G_config.h: Likewise.
1594 * sysdeps/mach/hurd/_G_config.h: Likewise.
1595 * sysdeps/powerpc/bits/mathdef.h: Likewise.
1596 * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
1597 * sysdeps/sparc/bits/mathdef.h: Likewise.
1598
15992012-01-26 Ulrich Drepper <drepper@gmail.com>
1600
1601 [BZ #13583]
1602 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
1603 Clean up HAS_* macros.
1604 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
1605 bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
1606 possible.
1607 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
1608 HAS_AVX.
1609 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
1610 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
1611 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
1612 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
1613 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
1614
16152012-01-25 Joseph Myers <joseph@codesourcery.com>
1616
1617 * elf/tst-unique3.cc (gets): Remove declaration.
1618 * elf/tst-unique3lib.cc (gets): Likewise.
1619 * elf/tst-unique3lib2.cc (gets): Likewise.
1620 * elf/tst-unique4.cc (gets): Likewise.
1621
16222012-01-24 Ulrich Drepper <drepper@gmail.com>
1623
1624 * include/stdio.h: Add C++ protection. Add gets declarations and
1625 definitions.
1626 * debug/tst-chk1.c: Don't declare gets here.
1627 * stdio-common/tst-gets.c: Likewise.
1628
16292012-01-24 Joseph Myers <joseph@codesourcery.com>
1630
1631 * posix/glob: Remove directory.
1632
16332012-01-24 Joseph Myers <joseph@codesourcery.com>
1634
1635 * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
1636
16372012-01-22 Pino Toscano <toscano.pino@tiscali.it>
1638
1639 * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
1640 of the non-standard EPFNOSUPPORT.
1641
16422011-12-26 Samuel Thibault <samuel.thibault@ens-lyon.org>
1643
1644 * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
1645 __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
1646 ANYWHERE set to 1 only on KERN_NO_SPACE error.
1647
16482012-01-21 Ulrich Drepper <drepper@gmail.com>
1649
1650 * wcsmbs/uchar.h: Test __STDC_VERSION__.
1651
16522012-01-20 Ulrich Drepper <drepper@gmail.com>
1653
1654 * nscd/aicache.c (addhstaiX): Do not cache negative results of
1655 transient errors.
1656 * nscd/grpcache.c (cache_addgr): Likewise.
1657 * nscd/hstcache.c (cache_addhst): Likewise.
1658 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1659 * nscd/pwdcache.c (cache_addpw): Likewise.
1660 * nscd/servicescache.c (cache_addserv): Likewise.
1661
16622012-01-16 Ulrich Drepper <drepper@gmail.com>
1663
1664 * malloc/malloc.c: Various cleanups.
1665 * malloc/hooks.c: Likewise.
1666
1667 * stdlib/Makefile (tests): Add bug-fmtmsg1.
1668 * stdlib/bug-fmtmsg1.c: New file.
1669
1670 * stdlib/fmtmsg.c (init): Add missing unlock.
1671 Patch by Peng Haitao <penght@cn.fujitsu.com>.
1672
16732012-01-12 Marek Polacek <polacek@redhat.com>
1674
1675 * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
1676 and _GNU_SOURCE.
1677
16782012-01-04 Will Schmidt <will_schmidt@vnet.ibm.com>
1679
1680 * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
1681 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
1682 macro to ensure uniqueness of label name.
1683 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
1684 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
1685
16862012-01-11 Ulrich Drepper <drepper@gmail.com>
1687
1688 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
1689
1690 * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
1691 * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
1692 * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
1693 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
1694
16952012-01-10 Ulrich Drepper <drepper@gmail.com>
1696
1697 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
1698
1699 * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
1700 * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
1701 * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
1702
1703 * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
1704
1705 * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
1706 * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
1707 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
1708 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1709
1710 * math/bits/math-finite.h: Add ldexp support.
1711
17122012-01-10 Marek Polacek <polacek@redhat.com>
1713
1714 * locale/programs/localedef.h (show_archive_content): Add noreturn
1715 attribute.
1716
17172012-01-09 Ulrich Drepper <drepper@gmail.com>
1718
1719 * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
1720
17212012-01-08 Ulrich Drepper <drepper@gmail.com>
1722
1723 * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
1724
1725 * io/Makefile (headers): Add bits/poll2.h.
1726
17272011-01-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1728
1729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
1730 typo #include statement.
1731
17322012-01-08 Ulrich Drepper <drepper@gmail.com>
1733
1734 * include/sys/cdefs.h: Define __attribute_alloc_size.
1735 * catgets/gencat.c: Add alloc_size attribute and apply consistently
1736 the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
1737 * elf/pldd.c: Likewise.
1738 * iconv/iconv_charmap.c: Likewise.
1739 * iconv/iconvconfig.c: Likewise.
1740 * iconv/strtab.c: Likewise.
1741 * locale/programs/locale.c: Likewise.
1742 * locale/programs/localedef.h: Likewise.
1743 * locale/programs/simple-hash.c: Likewise.
1744 * nscd/nscd.h: Likewise.
1745 * nss/makedb.c: Likewise.
1746 * sysdeps/generic/ldconfig.h: Likewise.
1747 * locale/programs/localedef.c: Remove xmalloc prototype.
1748 * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
1749
17502012-01-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1751
1752 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
1753 appropriate.
1754
17552012-01-08 Ulrich Drepper <drepper@gmail.com>
1756
1757 * math/Makefile (tests): Add tst-CMPLX.
1758 * math/tst-CMPLX.c: New file.
1759
1760 * math/complex.h (CMPLXL): Fix typo.
1761
1762 * debug/Makefile (routines): Add poll_chk and ppoll_chk.
1763 * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
1764 GLIBC_2.16.
1765 * debug/tst-chk1.c: Add poll and ppoll tests.
1766 * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
1767 * include/sys/poll.h: Add hidden proto for ppoll.
1768 * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
1769 * sysdeps/mach/hurd/ppoll.c: Likewise.
1770 * io/ppoll.c: Likewise.
1771 * debug/poll_chk.c: New file.
1772 * debug/ppoll_chk.c: New file.
1773 * include/bits/poll2.h: New file.
1774 * io/bits/poll2.h: New file.
1775
1776 [BZ #1350]
1777 * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
1778
1779 * configure.in: static is always set to yes. Remove.
1780 * config.make.in: Don't set build-static.
1781 * Makeconfig: Remove use of build-static.
1782 * dlfcn/Makefile: Likewise.
1783 * elf/Makefile: Likewise.
1784 * math/Makefile: Likewise.
1785 * misc/Makefile: Likewise.
1786 * nptl/Makefile: Likewise.
1787 * sysdeps/mach/hurd/Makefile: Likewise.
1788
1789 * configure.in: PWD_P is not used anymore.
1790 * config.make.in: Remove PWD_P entry.
1791
1792 * configure.in: Remove last remnants of RANLIB.
1793 No need to check for signed size_t anymore.
1794 Don't set libc_commonpagesize and libc_relro_required here for Alpha
1795 and IA-64.
1796 Remove __builtin_expect test because we require at least gcc 3.4.
1797 * aclocal.m4: Likewise.
1798
1799 * wcsmbs/mbrtoc16.c: Implement using towc function.
1800 * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
1801 * wcsmbs/wcsmbsload.c: Likewise.
1802 * iconv/gconv_simple.c: Likewise.
1803 * iconv/gconv_int.h: Likewise.
1804 * iconv/gconv_builtin.h: Likewise.
1805 * iconv/iconv_prog.c: Remove CHAR16 handling.
1806
1807 * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
1808
1809 * wcsmbs/mbrtowc.c: Better check for invalid inputs.
1810
1811 * configure.in: Remove --with-elf and --enable-bounded options.
1812 Dont set base_machine for ia64. More non-ELF conditions removed.
1813 Remove testing and setting of leading underscore information.
1814 * config.make.in (build-bounded): Set to no.
1815 * config.h.in: Remove NO_UNDERSCORES entry.
1816 * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS. ELF has
1817 them.
1818 * csu/start.c: Remove !NO_UNDERSCORE code.
1819 * locale/localeinfo.h: Likewise.
1820 * sysdeps/generic/machine-gmon.h: Likewise.
1821 * sysdeps/generic/sysdep.h: Likewise.
1822 * sysdeps/i386/sysdep.h: Likewise.
1823 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
1824 * sysdeps/mach/sysdep.h: Likewise.
1825 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1826 * sysdeps/s390/s390-64/sysdep.h: Likewise.
1827 * sysdeps/sh/sysdep.h: Likewise.
1828 * sysdeps/sparc/sparc32/alloca.S: Likewise.
1829 * sysdeps/unix/i386/sysdep.S: Likewise.
1830 * sysdeps/unix/sparc/start.c: Likewise.
1831 * sysdeps/unix/sparc/sysdep.S: Likewise.
1832 * sysdeps/unix/sparc/sysdep.h: Likewise.
1833 * sysdeps/unix/start.c: Likewise.
1834 * sysdeps/unix/x86_64/sysdep.S: Likewise.
1835 * sysdeps/x86_64/sysdep.h: Likewise.
1836
18372012-01-07 Ulrich Drepper <drepper@gmail.com>
1838
1839 [BZ #13553]
1840 * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
1841 for non-gcc.
1842 * argp/argp-fmtstream.h: Use const instead __const.
1843 * argp/argp.h: Likewise.
1844 * assert/assert.h: Likewise.
1845 * bits/fenv.h: Likewise.
1846 * bits/sched.h: Likewise.
1847 * bits/sigset.h: Likewise.
1848 * bits/sigthread.h: Likewise.
1849 * catgets/nl_types.h: Likewise.
1850 * conform/data/pthread.h-data: Likewise.
1851 * crypt/crypt-private.h: Likewise.
1852 * crypt/crypt.h: Likewise.
1853 * crypt/crypt_util.c: Likewise.
1854 * ctype/ctype.h: Likewise.
1855 * debug/execinfo.h: Likewise.
1856 * debug/mbsnrtowcs_chk.c: Likewise.
1857 * debug/mbsrtowcs_chk.c: Likewise.
1858 * debug/wcsnrtombs_chk.c: Likewise.
1859 * debug/wcsrtombs_chk.c: Likewise.
1860 * debug/wcstombs_chk.c: Likewise.
1861 * dirent/dirent.h: Likewise.
1862 * dlfcn/dlfcn.h: Likewise.
1863 * elf/neededtest4.c: Likewise.
1864 * grp/grp.h: Likewise.
1865 * gshadow/gshadow.h: Likewise.
1866 * iconv/gconv.h: Likewise.
1867 * iconv/gconv_int.h: Likewise.
1868 * iconv/gconv_simple.c: Likewise.
1869 * iconv/iconv.h: Likewise.
1870 * iconv/loop.c: Likewise.
1871 * iconv/skeleton.c: Likewise.
1872 * include/aio.h: Likewise.
1873 * include/aliases.h: Likewise.
1874 * include/argz.h: Likewise.
1875 * include/arpa/inet.h: Likewise.
1876 * include/assert.h: Likewise.
1877 * include/dirent.h: Likewise.
1878 * include/dlfcn.h: Likewise.
1879 * include/execinfo.h: Likewise.
1880 * include/fcntl.h: Likewise.
1881 * include/fenv.h: Likewise.
1882 * include/glob.h: Likewise.
1883 * include/grp.h: Likewise.
1884 * include/libintl.h: Likewise.
1885 * include/mntent.h: Likewise.
1886 * include/netdb.h: Likewise.
1887 * include/pwd.h: Likewise.
1888 * include/rpc/netdb.h: Likewise.
1889 * include/sched.h: Likewise.
1890 * include/search.h: Likewise.
1891 * include/shadow.h: Likewise.
1892 * include/signal.h: Likewise.
1893 * include/stdio.h: Likewise.
1894 * include/stdlib.h: Likewise.
1895 * include/string.h: Likewise.
1896 * include/sys/socket.h: Likewise.
1897 * include/sys/stat.h: Likewise.
1898 * include/sys/statfs.h: Likewise.
1899 * include/sys/statvfs.h: Likewise.
1900 * include/sys/syslog.h: Likewise.
1901 * include/sys/time.h: Likewise.
1902 * include/sys/uio.h: Likewise.
1903 * include/time.h: Likewise.
1904 * include/unistd.h: Likewise.
1905 * include/utmp.h: Likewise.
1906 * include/wchar.h: Likewise.
1907 * include/wctype.h: Likewise.
1908 * inet/aliases.h: Likewise.
1909 * inet/arpa/inet.h: Likewise.
1910 * inet/netinet/ether.h: Likewise.
1911 * inet/netinet/in.h: Likewise.
1912 * intl/libintl.h: Likewise.
1913 * io/bits/fcntl2.h: Likewise.
1914 * io/fcntl.h: Likewise.
1915 * io/ftw.h: Likewise.
1916 * io/sys/poll.h: Likewise.
1917 * io/sys/stat.h: Likewise.
1918 * io/sys/statfs.h: Likewise.
1919 * io/sys/statvfs.h: Likewise.
1920 * io/utime.h: Likewise.
1921 * libio/bits/stdio.h: Likewise.
1922 * libio/bits/stdio2.h: Likewise.
1923 * libio/libio.h: Likewise.
1924 * libio/libioP.h: Likewise.
1925 * libio/stdio.h: Likewise.
1926 * locale/lc-ctype.c: Likewise.
1927 * locale/locale.h: Likewise.
1928 * login/utmp.h: Likewise.
1929 * malloc/arena.c: Likewise.
1930 * malloc/malloc.c: Likewise.
1931 * malloc/malloc.h: Likewise.
1932 * malloc/mcheck.c: Likewise.
1933 * malloc/mtrace.c: Likewise.
1934 * math/bits/mathcalls.h: Likewise.
1935 * math/fenv.h: Likewise.
1936 * math/math_private.h: Likewise.
1937 * misc/bits/error.h: Likewise.
1938 * misc/bits/syslog.h: Likewise.
1939 * misc/err.h: Likewise.
1940 * misc/error.h: Likewise.
1941 * misc/fstab.h: Likewise.
1942 * misc/mntent.h: Likewise.
1943 * misc/regexp.h: Likewise.
1944 * misc/search.h: Likewise.
1945 * misc/sgtty.h: Likewise.
1946 * misc/sys/mman.h: Likewise.
1947 * misc/sys/syslog.h: Likewise.
1948 * misc/sys/uio.h: Likewise.
1949 * misc/sys/xattr.h: Likewise.
1950 * misc/ttyent.h: Likewise.
1951 * nis/rpcsvc/ypclnt.h: Likewise.
1952 * nss/nss.h: Likewise.
1953 * posix/bits/unistd.h: Likewise.
1954 * posix/fnmatch.h: Likewise.
1955 * posix/glob.h: Likewise.
1956 * posix/sched.h: Likewise.
1957 * posix/spawn.h: Likewise.
1958 * posix/sys/wait.h: Likewise.
1959 * posix/unistd.h: Likewise.
1960 * posix/wordexp.h: Likewise.
1961 * pwd/pwd.h: Likewise.
1962 * resolv/netdb.h: Likewise.
1963 * resource/sys/resource.h: Likewise.
1964 * rt/aio.h: Likewise.
1965 * rt/bits/mqueue2.h: Likewise.
1966 * rt/mqueue.h: Likewise.
1967 * shadow/shadow.h: Likewise.
1968 * signal/signal.h: Likewise.
1969 * socket/send.c: Likewise.
1970 * socket/sendto.c: Likewise.
1971 * socket/sys/socket.h: Likewise.
1972 * stdio-common/printf.h: Likewise.
1973 * stdlib/bits/stdlib.h: Likewise.
1974 * stdlib/fmtmsg.h: Likewise.
1975 * stdlib/monetary.h: Likewise.
1976 * stdlib/stdlib.h: Likewise.
1977 * stdlib/ucontext.h: Likewise.
1978 * streams/stropts.h: Likewise.
1979 * string/argz.h: Likewise.
1980 * string/bits/string2.h: Likewise.
1981 * string/string.h: Likewise.
1982 * string/strings.h: Likewise.
1983 * sunrpc/rpc/auth.h: Likewise.
1984 * sunrpc/rpc/auth_des.h: Likewise.
1985 * sunrpc/rpc/clnt.h: Likewise.
1986 * sunrpc/rpc/netdb.h: Likewise.
1987 * sunrpc/rpc/pmap_clnt.h: Likewise.
1988 * sunrpc/rpc/xdr.h: Likewise.
1989 * sysdeps/generic/inttypes.h: Likewise.
1990 * sysdeps/generic/net/if.h: Likewise.
1991 * sysdeps/generic/sys/swap.h: Likewise.
1992 * sysdeps/gnu/net/if.h: Likewise.
1993 * sysdeps/gnu/utmpx.h: Likewise.
1994 * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1995 * sysdeps/i386/i486/bits/string.h: Likewise.
1996 * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
1997 * sysdeps/s390/bits/string.h: Likewise.
1998 * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1999 * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
2000 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
2001 * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
2002 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2003 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
2004 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2005 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
2006 * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
2007 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
2008 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2009 * sysdeps/unix/sysv/linux/preadv.c: Likewise.
2010 * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
2011 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2012 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2013 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
2014 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
2015 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2016 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
2017 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2018 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
2019 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
2020 * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
2021 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2022 * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
2023 * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
2024 * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
2025 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2026 * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
2027 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
2028 * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
2029 * sysvipc/sys/ipc.h: Likewise.
2030 * sysvipc/sys/msg.h: Likewise.
2031 * sysvipc/sys/sem.h: Likewise.
2032 * sysvipc/sys/shm.h: Likewise.
2033 * termios/termios.h: Likewise.
2034 * time/sys/time.h: Likewise.
2035 * time/time.h: Likewise.
2036 * wcsmbs/bits/wchar2.h: Likewise.
2037 * wcsmbs/uchar.h: Likewise.
2038 * wcsmbs/wchar.h: Likewise.
2039 * wctype/wctype.h: Likewise.
2040
2041 [BZ #13551]
2042 * Makeconfig: Remove all but ELF support including AIX support.
2043 * Makerules: Likewise.
2044 * config.h.in: Likewise.
2045 * config.make.in: Likewise.
2046 * configure: Likewise.
2047 * configure.in: Likewise.
2048 * csu/Makefile: Likewise.
2049 * csu/version.c: Likewise.
2050 * debug/Makefile: Likewise.
2051 * dlfcn/Makefile: Likewise.
2052 * elf/Makefile: Likewise.
2053 * extra-lib.mk: Likewise.
2054 * iconv/Makefile: Likewise.
2055 * include/libc-symbols.h: Likewise.
2056 * include/shlib-compat.h: Likewise.
2057 * resolv/Makefile: Likewise.
2058 * resolv/res_libc.c: Likewise.
2059 * rt/Makefile: Likewise.
2060 * sysdeps/i386/asm-syntax.h: Likewise.
2061 * sysdeps/i386/sysdep.h: Likewise.
2062 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
2063 * sysdeps/mach/sysdep.h: Likewise.
2064 * sysdeps/powerpc/powerpc32/Makefile: Likewise.
2065 * sysdeps/powerpc/powerpc64/Makefile: Likewise.
2066 * sysdeps/s390/asm-syntax.h: Likewise.
2067 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2068 * sysdeps/s390/s390-64/sysdep.h: Likewise.
2069 * sysdeps/sh/sysdep.h: Likewise.
2070 * sysdeps/unix/sparc/sysdep.h: Likewise.
2071 * sysdeps/wordsize-32/divdi3.c: Likewise.
2072 * sysdeps/x86_64/sysdep.h: Likewise.
2073
2074 * argp/Versions: Remove _argp_unlock_xxx.
2075
2076 [BZ #13559]
2077 * abilist/ld.abilist: Update. Adjust for removal of tls option.
2078 * abilist/libBrokenLocale.abilist: Likewise.
2079 * abilist/libanl.abilist: Likewise.
2080 * abilist/libc.abilist: Likewise.
2081 * abilist/libcrypt.abilist: Likewise.
2082 * abilist/libdl.abilist: Likewise.
2083 * abilist/libm.abilist: Likewise.
2084 * abilist/libnsl.abilist: Likewise.
2085 * abilist/libpthread.abilist: Likewise.
2086 * abilist/libresolv.abilist: Likewise.
2087 * abilist/librt.abilist: Likewise.
2088 * abilist/libthread_db.abilist: Likewise.
2089 * abilist/libutil.abilist: Likewise.
2090 * abilist/libnss_db.abilist: New file.
2091
2092 * scripts/abilist.awk: Add support for indirect functions.
2093
2094 * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
2095
2096 * sysdeps/generic/ldsodefs.h: Remove Alpha support.
2097
2098 * shlib-versions: Remove entries for ports architectures.
2099
2100 * elf/tls-macros.h: Remove support for Alpha and IA-64. Should be in
2101 files in ports.
2102 * elf/stackguard-macros.h: Remove support for IA-64.
2103 * elf/tst-auditmod1.c: Likewise.
2104 * sysdeps/generic/ldsodefs.h: Likewise.
2105
2106 * sysdeps/unix/sysv/linux/configure.in: Ports should define
2107 libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
2108 configure files.
2109
2110 [BZ #13552]
2111 * configure.in: Remove --enable-omitfp support.
2112 * FAQ.in: Adjust.
2113 * config.make.in: Likewise.
2114 * Makeconfig: Likewise.
2115 * manual/install.texi: Likewise.
2116
2117 In case anyone cares, the IA-64 architecture could move to ports.
2118 * sysdeps/ia64/*: Removed.
2119 * sysdeps/unix/sysv/linux/ia64/*: Removed.
2120 * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
2121
2122 [BZ #13555]
2123 * configure.in: Remove entries for unsupported architectures.
2124
2125 [BZ #13533]
2126 * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
2127 * iconv/gconv_simple.c: Rename char16_t routines. Add char16_t<->utf8
2128 routines.
2129 * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
2130 * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
2131 * wcsmbs/c16rtomb.c: Fix a few problems. Disable all the code and
2132 fall back to using wcrtomb.
2133 * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
2134 * wcsmbs/wcsmbsload.c: Make char16 routines optional. Adjust for
2135 renaming.
2136 * wcsmbs/Makefile (tests): Add tst-c16c32-1:
2137 * wcsmbs/tst-c16c32-1.c: New file.
2138
2139 * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
2140 local variable.
2141
2142 * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
2143
2144 * elf/tst-unique3.cc: Add explicit declaration of gets.
2145 * elf/tst-unique3lib.cc: Likewise.
2146 * elf/tst-unique3lib2.cc: Likewise.
2147 * elf/tst-unique4.cc: Likewise.
2148
2149 * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
2150
21512012-01-06 Joseph Myers <joseph@codesourcery.com>
2152
2153 [BZ #13566]
2154 * assert/assert.h (static_assert): Don't define for C++.
2155 * libio/stdio.h (gets): Do declare for C++ <= C++11.
2156 * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
2157
21582012-01-03 Ulrich Drepper <drepper@gmail.com>
2159
2160 * iconv/loop.c (single loop): Fix assertion in storing of
2161 remaining bytes.
2162
2163 * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
2164
21652012-01-01 Ulrich Drepper <drepper@gmail.com>
2166
2167 * posix/getconf.c: Update copyright year.
2168 * nss/getent.c: Likewise.
2169 * nss/makedb.c: Likewise.
2170 * iconv/iconvconfig.c: Likewise.
2171 * iconv/iconv_prog.c: Likewise.
2172 * elf/ldconfig.c: Likewise.
2173 * elf/pldd.c: Likewise.
2174 * elf/sotruss.ksh: Likewise.
2175 * catgets/gencat.c: Likewise.
2176 * csu/version.c: Likewise.
2177 * elf/ldd.bash.in: Likewise.
2178 * elf/sprof.c (print_version): Likewise.
2179 * locale/programs/locale.c: Likewise.
2180 * locale/programs/localedef.c: Likewise.
2181 * login/programs/pt_chown.c: Likewise.
2182 * nscd/nscd.c (print_version): Likewise.
2183 * debug/xtrace.sh: Likewise.
2184 * malloc/memusage.sh: Likewise.
2185 * malloc/mtrace.pl: Likewise.
2186 * debug/catchsegv.sh: Likewise.
2187
21882011-12-30 Jakub Jelinek <jakub@redhat.com>
2189
2190 * posix/regex_internal.c (re_string_fetch_byte_case): Remove
2191 pure attribute.
2192
21932011-12-24 Ulrich Drepper <drepper@gmail.com>
2194
2195 [BZ #13533]
2196 * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
2197 * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
2198 transformations.
2199 * iconv/gconv_int.h: Likewise.
2200 * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
2201 * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
2202 from libc for GLIBC_2.16.
2203 * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
2204 * wcsmbs/wcrtomb.c: Define c32rtomb alias.
2205 * wcsmbs/uchar.h: Really define mbstate_t.
2206 * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
2207 * wcsmbs/c16rtomb.c: New file.
2208 * wcsmbs/mbrtoc16.c: New file.
2209 * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
2210 for C/POSIX locale.
2211 (__wcsmbs_load_conv): Do not fill in c16 routines yet.
2212 * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
2213
2214 * wcsmbs/wchar.h: Add missing __restrict.
2215
22162011-12-23 Ulrich Drepper <drepper@gmail.com>
2217
2218 [BZ #13532]
2219 * time/Makefile (routines): Add timespec_get.
2220 * time/Versions: Export timespec_get from libc for GLIBC_2.16.
2221 * time/time.h: Define TIME_UTC and declare timespec_get. Define
2222 timespec for ISO C11.
2223 * time/timespec_get.c: New file.
2224 * sysdeps/unix/sysv/linux/timespec_get.c: New file.
2225 * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
2226
2227 [BZ #13531]
2228 * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
2229 * stdlib/stdlib.h: Declare aligned_alloc.
2230 * Versions.def: Add GLIBC_2.16 for libc.
2231 * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
2232
2233 [BZ 13527]
2234 * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
2235 ISO C11.
2236
2237 * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
2238 code.
2239
2240 [BZ #13528]
2241 * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
2242
2243 [BZ #13529]
2244 * assert/assert.h (static_assert): Define.
2245
2246 * version.h: Update for 2.16 development version.
2247
2248 [BZ #13526]
2249 * include/features.h: Handle __STDC_VERSION__ >= 201112 and
2250 _ISOC11_SOURCE.
2251
2252 * version.h (RELEASE): Bump for 2.15 release.
2253 * include/features.h (__GLIBC_MINOR__): Bump to 15.
2254
2255 * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
2256 Patch by Marek Polacek <mpolacek@redhat.com>.
2257
2258 * bits/byteswap.h: Protect long long constants with __extension__.
2259 * sysdeps/i386/bits/byteswap.h: Likewise.
2260 * sysdeps/ia64/bits/byteswap.h: Likewise.
2261 * sysdeps/s390/bits/byteswap.h: Likewise.
2262 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2263
22642011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
2265
2266 [BZ #13540]
2267 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
2268 destination buffer.
2269 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
2270
22712011-12-23 Marek Polacek <polacek@redhat.com>
2272
2273 * elf/dl-addr.c (determine_info): Add inline keyword.
2274 * elf/tst-auditmod4b.c (check_avx): Likewise.
2275 * elf/tst-auditmod6b.c (check_avx): Likewise.
2276 * elf/tst-auditmod6c.c (check_avx): Likewise.
2277 * elf/tst-auditmod7b.c (check_avx): Likewise.
2278
22792011-12-23 Ulrich Drepper <drepper@gmail.com>
2280
2281 * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
2282 !__SSE_MATH__.
2283
22842011-12-23 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
2285
2286 [BZ #13540]
2287 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
2288 processing for last bytes.
2289
22902011-08-06 Bruno Haible <bruno@clisp.org>
2291
2292 [BZ #13061]
2293 * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
2294 U+0385, not to U+1FEE.
2295
2296 [BZ #13062]
2297 * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
2298 entry for U+00A5 U+0301.
2299
23002011-12-22 Ulrich Drepper <drepper@gmail.com>
2301
2302 [BZ #13166]
2303 * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
2304 buffer for the output is too small.
2305
2306 * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
2307 optimization.
2308
2309 [BZ #13185]
2310 * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
2311 SSE flags if possible.
2312
23132011-12-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
2314
2315 [BZ #13540]
2316 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
2317 processing for last bytes.
2318
23192011-12-22 Joseph Myers <joseph@codesourcery.com>
2320
2321 * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
2322 (syscall-list-default-options, syscall-list-default-condition)
2323 (syscall-list-includes): Define.
2324 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
2325 list of ABIs and options and #if conditions for each ABI. Do not
2326 handle common syscalls between ABIs specially.
2327 * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
2328 Remove.
2329 (syscall-list-variants, syscall-list-32bit-options)
2330 (syscall-list-32bit-condition, syscall-list-64bit-options)
2331 (syscall-list-64bit-condition): Define.
2332 * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
2333 (syscall-list-variants, syscall-list-32bit-options)
2334 (syscall-list-32bit-condition, syscall-list-64bit-options)
2335 (syscall-list-64bit-condition): Define.
2336 * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
2337 Remove.
2338 (syscall-list-variants, syscall-list-32bit-options)
2339 (syscall-list-32bit-condition, syscall-list-64bit-options)
2340 (syscall-list-64bit-condition): Define.
2341 * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
2342 Remove.
2343 (syscall-list-variants, syscall-list-32bit-options)
2344 (syscall-list-32bit-condition, syscall-list-64bit-options)
2345 (syscall-list-64bit-condition): Define.
2346
23472011-12-22 Ulrich Drepper <drepper@gmail.com>
2348
2349 * locale/iso-639.def: Add brx entry.
2350
2351 [BZ #13328]
2352 * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
2353 Proposed by Mariusz_Cukr <marcukr@op.pl>.
2354
2355 * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
2356 __feraiseexcept_renamed.
2357
23582011-12-21 Ulrich Drepper <drepper@gmail.com>
2359
2360 [BZ #13538]
2361 * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
2362 EPOLLET with unsigned values.
2363 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2364 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
2365
2366 * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
2367 to large cancellation.
2368 * math/s_cacoshf.c: Likewise.
2369 * math/s_cacoshl.c: Likewise.
2370
23712011-11-18 Richard B. Kreckel <kreckel@ginac.de>
2372
2373 [BZ #13305]
2374 [BZ #12786]
2375 * math/s_cacosh.c: Fix rare miscomputation in cacosh().
2376 * math/s_cacoshf.c: Likewise.
2377 * math/s_cacoshl.c: Likewise.
2378
23792011-12-21 Ulrich Drepper <drepper@gmail.com>
2380
2381 [BZ #13439]
2382 * iconv/gconv.h: Define __GCONV_SWAP.
2383 * iconvdata/unicode.c: The swap bit must be stored in __flags.
2384 * iconvdata/utf-16.c: Likewise.
2385 * iconvdata/utf-32.c: Likewise.
2386
23872011-12-21 Andreas Schwab <schwab@linux-m68k.org>
2388
2389 [BZ #13524]
2390 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
2391 numerator after shifting it by one limb.
2392
23932011-12-19 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2394
2395 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
2396 under [__USE_EXTERN_INLINES].
2397
23982011-12-17 Ulrich Drepper <drepper@gmail.com>
2399
2400 [BZ #13446]
2401 * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
2402
24032011-11-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2404
2405 * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
2406 * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
2407 optimized code.
2408 * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
2409 * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
2410 * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
2411 * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
2412 for strncasecmp/strncasecmp_l compilation.
2413 * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
2414 * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
2415
24162011-12-08 Marek Polacek <mpolacek@redhat.com>
2417
2418 [BZ #13484]
2419 * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
2420 of __asm__.
2421
24222011-12-17 Ulrich Drepper <drepper@gmail.com>
2423
2424 [BZ #13506]
2425 * time/tzfile.c (__tzfile_read): Check values from file header.
2426
24272011-11-21 Will Schmidt <will_schmidt@vnet.ibm.com>
2428
2429 * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
2430 * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
2431 * powerpc/powerpc32/dl-start.S: Likewise.
2432 * powerpc/powerpc32/elf/start.S: Likewise.
2433 * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2434 * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
2435 * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
2436 * powerpc/powerpc32/fpu/s_floor.S: Likewise.
2437 * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
2438 * powerpc/powerpc32/fpu/s_lround.S: Likewise.
2439 * powerpc/powerpc32/fpu/s_rint.S: Likewise.
2440 * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2441 * powerpc/powerpc32/fpu/s_round.S: Likewise.
2442 * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
2443 * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
2444 * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
2445 * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2446 * powerpc/powerpc32/memset.S: Likewise.
2447 * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2448 * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2449 * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
2450 * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2451 * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2452 * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
2453 * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
2454 * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
2455 * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
2456 * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
2457 * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
2458 * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
2459 * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
2460
24612011-11-18 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2462
2463 * math/libm-test.inc: Added more nearbyint tests.
2464 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
2465 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
2466 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
2467 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
2468
24692011-11-21 Ross Lagerwall <rosslagerwall@gmail.com>
2470
2471 * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
2472 FD_CLOEXEC.
2473
24742011-11-14 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
2475
2476 * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
2477 Add wcscpy-ssse3 wcscpy-c.
2478 * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
2479 * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
2480 * sysdeps/x86_64/multiarch/wcscpy.S: New file.
2481 * sysdeps/x86_64/wcschr.S: New file.
2482 * sysdeps/x86_64/wcsrchr.S: New file.
2483 * string/test-strcmp.c: Remove checking of wcscmp function for
2484 wrong alignments.
2485 * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
2486 (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
2487 wcsrchr-sse2 wcsrchr-c.
2488 * sysdeps/i386/i686/multiarch/wcschr.S: New file.
2489 * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
2490 * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
2491 * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
2492 * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
2493 * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
2494 * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
2495 * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
2496 * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
2497 * wcsmbc/wcschr.c (WCSCHR): New macro.
2498
24992011-11-17 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
2500
2501 * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
2502 * wcsmbs/test-wcsrchr.c: New file.
2503 * string/test-strrchr.c: Add wcsrchr support.
2504 (WIDE): New macro.
2505 * wcsmbs/test-wcscpy.c: New file.
2506 * string/test-strcpy.c: Add wcscpy support.
2507 (WIDE): New macro.
2508
25092011-12-10 Ulrich Drepper <drepper@gmail.com>
2510
2511 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
2512 the inner loop.
2513
25142011-12-06 Andreas Schwab <schwab@linux-m68k.org>
2515
2516 [BZ #13472]
2517 * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
2518
25192011-12-04 Ulrich Drepper <drepper@gmail.com>
2520
2521 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
2522 Minor optimizations.
2523
2524 * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
2525 * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
2526 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
2527
25282011-12-03 Ulrich Drepper <drepper@gmail.com>
2529
2530 * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
2531 IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
2532 IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
2533 for gcc to avoid warnings.
2534 * inet/Makefile (tests): Add tst-checks.
2535 * inet/tst-checks.c: New file.
2536
2537 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
2538 warning.
2539
2540 * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
2541 __wmemcmp_sse2.
2542
2543 * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
2544 * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
2545
2546 * malloc/mcheck.h: Fix use of incorrect encoding in comment.
2547
25482011-12-02 Ulrich Drepper <drepper@gmail.com>
2549
2550 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
2551 problem.
2552
2553 * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
2554
25552011-11-29 Joseph Myers <joseph@codesourcery.com>
2556
2557 * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
2558 conditional on GCC version.
2559 (__arch_compare_and_exchange_val_8_acq)
2560 (__arch_compare_and_exchange_val_16_acq)
2561 (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
2562 (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
2563 (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
2564
25652011-12-02 Joseph Myers <joseph@codesourcery.com>
2566
2567 * sysdeps/sh/backtrace.c: New file.
2568
25692011-12-02 Andreas Schwab <schwab@redhat.com>
2570
2571 * misc/bits/select2.h (__FD_ELT): Mark as extension. Add
2572 parenthesis.
2573
25742011-12-01 Andreas Schwab <schwab@redhat.com>
2575
2576 * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
2577 falling back to utime.
2578
25792011-11-30 Andreas Schwab <schwab@redhat.com>
2580
2581 * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
2582 expectations for float.
2583
25842011-11-29 Andreas Schwab <schwab@redhat.com>
2585
2586 * locale/weight.h (findidx): Add parameter len.
2587 * locale/weightwc.h (findidx): Likewise.
2588 * posix/fnmatch_loop.c (FCT): Adjust caller.
2589 * posix/regcomp.c (build_equiv_class): Likewise.
2590 * posix/regex_internal.h (re_string_elem_size_at): Likewise.
2591 * posix/regexec.c (check_node_accept_bytes): Likewise.
2592 * string/strcoll_l.c (STRCOLL): Likewise.
2593 * string/strxfrm_l.c (STRXFRM): Likewise.
2594
25952011-11-17 Ulrich Drepper <drepper@gmail.com>
2596
2597 * Makefile.in: Remove CVSOPT handling.
2598 * configure.in: Remove use of AC_REVISION.
2599 * iconvdata/Makefile (distribute): No need to filter out CVS.
2600 * scripts/list-sources.sh: Remove CVS, subversion and monotone
2601 handling.
2602
26032011-11-16 Andreas Schwab <schwab@redhat.com>
2604
2605 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
2606 [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
2607 [USE_AS_STRNCASECMP_L]: Likewise.
2608 (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
2609 NO_TLS_DIRECT_SEG_REFS.
2610 * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
2611 Fix argument offsets for non-PIC.
2612 [USE_AS_STRNCASECMP_L]: Likewise.
2613 (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
2614 NO_TLS_DIRECT_SEG_REFS.
2615
26162011-11-15 Ulrich Drepper <drepper@gmail.com>
2617
2618 * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
2619 O_CLOEXEC.
2620 * locale/loadlocale.c (_nl_load_locale): Likewise.
2621
26222011-11-15 Andreas Schwab <schwab@redhat.com>
2623
2624 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
2625 [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
2626 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
2627 (SYSCALL_GETTIME): Set errno on error.
2628
2629 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
2630 count references to noai6ai_cached.
2631
26322011-11-15 Ulrich Drepper <drepper@gmail.com>
2633
2634 * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
2635
2636 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
2637 FD_CLOEXEC for /proc/self/maps.
2638
2639 * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
2640 FD_CLOEXEC for /proc/meminfo.
2641
2642 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
2643 gai.conf.
2644
2645 * resolv/res_query.c (res_hostalias): Don't allow cancellation and set
2646 FD_CLOEXEC for given file.
2647
2648 * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
2649
2650 * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
2651 FD_CLOEXEC for /etc/hosts.
2652 (_gethtent): Likewise.
2653
2654 * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
2655
2656 * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
2657 cancellation and set FD_CLOEXEC for /etc/netgroup.
2658
2659 * nss/nss_files/files-key.c (search): Don't allow cancellation when
2660 reading /etc/publickey.
2661
2662 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
2663 allow cancellation when reading /etc/group.
2664
2665 * nss/nss_files/files-alias.c (internal_setent): Don't allow
2666 cancellation.
2667 (get_next_alias): Likewise for included file. Also set FD_CLOEXEC.
2668
2669 * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
2670 when using data file.
2671
2672 * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
2673
2674 * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
2675 (write_nis_obj): Use "c" and "e" in fopen.
2676
2677 * misc/mntent_r.c (__setmntent): Also append e to fopen format.
2678
2679 * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
2680
2681 * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
2682
2683 * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
2684
2685 * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
2686 locale.alias.
2687
2688 * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
2689
2690 * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
2691
2692 * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
2693
2694 * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
2695 file parsing and set FD_CLOEXEC.
2696
26972011-11-14 Ulrich Drepper <drepper@gmail.com>
2698
2699 * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
2700
27012011-11-14 Andreas Schwab <schwab@redhat.com>
2702
2703 * malloc/arena.c (arena_get2): Don't call reused_arena when
2704 _int_new_arena failed.
2705
27062011-11-14 Ulrich Drepper <drepper@gmail.com>
2707
2708 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2709 (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
2710 * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
2711 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2712 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2713 * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
2714 to compile strcasecmp and strncasecmp.
2715 * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
2716 * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
2717
2718 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
2719
27202011-11-13 Ulrich Drepper <drepper@gmail.com>
2721
2722 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
2723 locale-defines.sym to gen-as-const-headers.
2724 (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
2725 strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
2726 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
2727 to compile strcasecmp and strncasecmp.
2728 * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
2729 strcasecmp_l and strncasecmp_l.
2730 * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
2731 * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
2732 * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
2733 * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
2734 * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
2735 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
2736 * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
2737 * sysdeps/i386/i686/multiarch/strncase.S: New file.
2738 * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
2739 * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
2740 * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
2741
27422011-11-12 Ulrich Drepper <drepper@gmail.com>
2743
2744 * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
2745 result of SYSDEP_GETTIME_CPU to retval.
2746 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
2747 parameter list to macro. Remove trailing semicolon. Adjust users.
2748
2749 * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
2750 variable.
2751
2752 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
2753 mantissa words.
2754 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
2755
2756 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
2757 from unused variable.
2758
2759 * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
2760 DWARF definitions.
2761 * sysdeps/generic/dwarf2.h: Don't define enums when using the file
2762 for assembling.
2763
2764 * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
2765 over namespaces.
2766
2767 * sunrpc/rpc_prot.c (rejected): Fix case value.
2768
2769 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
2770 unsigned long long int to avoid warnings in shift.
2771
2772 * posix/regex_internal.c (re_string_reconstruct): Actually use result
2773 of use of trans.
2774 * posix/regex_internal.h (re_string_wchar_at): Remove temporary
2775 variable tmp.
2776
2777 * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
2778 * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
2779 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
2780
2781 * nis/nis_table.c (nis_list): Use variable of correct type for
2782 result of __follow_path call.
2783
27842011-11-07 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
2785
2786 * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
2787 of math functions ceil, trunc, floor, round, and sqrt, when
2788 avaliable on the platform.
2789 * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
2790 name clash.
2791 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2792 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
2793 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
2794
27952011-10-30 Marek Polacek <mpolacek@redhat.com>
2796
2797 * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
2798 * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
2799
28002011-11-11 Roland McGrath <roland@hack.frob.com>
2801
2802 * include/unistd.h: Fix __readlink return type.
2803 Reported by Chris Metcalf <cmetcalf@tilera.com>.
2804
28052011-11-11 Ulrich Drepper <drepper@gmail.com>
2806
2807 * stdlib/ucontext.h: Undo last change for makecontext.
2808
28092011-11-11 Andreas Schwab <schwab@redhat.com>
2810
2811 * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
2812
2813 * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
2814 * setjmp/setjmp.h: Mark functions as non-leaf.
2815 * setjmp/bits/setjmp2.h: Likewise.
2816 * stdlib/ucontext.h: Likewise.
2817
28182011-11-10 Andreas Schwab <schwab@redhat.com>
2819
2820 * malloc/arena.c (_int_new_arena): Don't increment narenas.
2821 (reused_arena): Don't check arena limit.
2822 (arena_get2): Atomically check arena limit.
2823
28242011-11-08 Ulrich Drepper <drepper@gmail.com>
2825
2826 * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
2827 * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
2828
2829 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
2830 instructions.
2831
28322011-11-07 Andreas Schwab <schwab@redhat.com>
2833
2834 * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
2835 handler when locking.
2836
2837 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
2838 Fix size of allocated buffer.
2839
28402011-11-04 Andreas Schwab <schwab@redhat.com>
2841
2842 [BZ #10103]
2843 * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
2844 declarations for long double functions.
2845 * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
2846
2847 * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
2848
28492011-11-03 Andreas Schwab <schwab@redhat.com>
2850
2851 * nscd/nscd.c (main): Don't start AVC thread until credentials are
2852 installed.
2853
2854 * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
2855 is disabled.
2856
28572011-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2858
2859 * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
2860
28612011-11-01 Andreas Schwab <schwab@linux-m68k.org>
2862
2863 * include/alloca.h (stackinfo_alloca_round): Define.
2864 (extend_alloca): Use it.
2865 [_STACK_GROWS_UP]: Correct check for adjacent allocation.
2866 * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
2867 here.
2868
2869 * scripts/check-local-headers.sh: Ignore libaudit.h.
2870
2871 * nscd/Makefile (extra-objs): Make recursively expanded.
2872
28732011-11-01 Ulrich Drepper <drepper@gmail.com>
2874
2875 * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
2876 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2877
2878 * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
2879 * posix/tst-rfc3484-2.c: Likewise.
2880 * posix/tst-rfc3484-3.c: Likewise.
2881
2882 * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
2883 process_vm_writev.
2884 * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
2885 process_vm_writev.
2886 * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
2887 process_vm_writev from libc using GLIBC_2.15 version.
2888
2889 * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
2890
28912011-10-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2892
2893 * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
2894 stack usage.
2895
28962011-10-31 Ulrich Drepper <drepper@gmail.com>
2897
2898 [BZ #13367]
2899 * nss/getent.c (initgroups_keys): Show error message in case no group
2900 names are given.
2901
2902 * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
2903 * inet/check_pf.c: Provide dummy versions of __free_in6ai and
2904 __bump_nl_timestamp.
2905 * nscd/connections (nscd_init): When host database is served open
2906 netlink socket and request notification about configuration changes.
2907 (main_loop_poll): Track netlink file descriptor and bump timestamp
2908 in case data becomes available.
2909 (main_loop_epoll): Likewise.
2910 * nscd/nscd-client.h (DB_VERSION): Bump to 2.
2911 (database_pers_head): Add extra_data fileds.
2912 Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
2913 * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
2914 * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
2915 Adjust caller.
2916 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
2917 in6ai data, call __free_in6ai.
2918 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
2919 Add -DHAVE_NETLINK.
2920 * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite. Cache the
2921 interface information. Reuse previous data if netlink timestamp
2922 is not changed.
2923 (__bump_nl_timestamp): New function.
2924 (__free_in6ai): New function.
2925
29262011-10-30 Ulrich Drepper <drepper@gmail.com>
2927
2928 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
2929 close_not_cancel_no_status here.
2930 (__check_pf): Reorganize code a bit to not call close twice if OOM.
2931
29322011-10-29 Ulrich Drepper <drepper@gmail.com>
2933
2934 [BZ #13276]
2935 * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
2936 return value.
2937
2938 * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
2939 * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
2940 asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
2941
29422011-07-03 Andreas Jaeger <aj@suse.de>
2943
2944 [BZ #10709]
2945 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
2946 of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
2947 * math/libm-test.inc (sin_test): Add test case.
2948
29492011-10-29 Ulrich Drepper <drepper@gmail.com>
2950
2951 [BZ #13337]
2952 * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
2953 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
2954
2955 * elf/chroot_canon.c (chroot_canon): Cleanups.
2956
2957 * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
2958
2959 [BZ #13335]
2960 * elf/chroot_canon.c (chroot_canon): Fix readlink call.
2961 Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
2962
2963 * string/test-strchr.c: Make usable for strchrnul testing.
2964 * string/test-strchrnul.c: New file.
2965 * string/Makefile (strop-tests): Add strchrnul.
2966
2967 * po/it.po: Update from translation team.
2968 * po/es.po: Likewise.
2969
29702011-10-28 Ulrich Drepper <drepper@gmail.com>
2971
2972 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
2973 the three constants needed as parameters. Drop the others.
2974 (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
2975 __m128i_strloadu_tolower.
2976 Create and initialize variable zero and use it in all the places
2977 where _mm_setzero_si128 was used.
2978
2979 * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
2980 doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
2981 mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
2982 * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
2983 anymore.
2984 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
2985 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
2986 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
2987 __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
2988 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
2989 __mpranred, __mptan.
2990 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
2991 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
2992 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
2993 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
2994 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
2995 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
2996 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
2997 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
2998 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
2999
30002011-10-28 Andreas Schwab <schwab@redhat.com>
3001
3002 * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
3003 redefine if SHARED.
3004 * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
3005
3006 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
3007 wide char related routines to wcsmbs subdir.
3008
30092011-10-27 Andreas Schwab <schwab@redhat.com>
3010
3011 [BZ #13344]
3012 * misc/sys/cdefs.h (__THROWNL): Define.
3013 * posix/unistd.h: Use __THREADNL instead of __THREAD
3014 for memory synchronization functions.
3015
30162011-10-26 Roland McGrath <roland@hack.frob.com>
3017
3018 [BZ #13349]
3019 * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
3020 doesn't exist.
3021 * manual/stdio.texi (Obstack Streams): Node removed.
3022
30232011-10-26 Andreas Schwab <schwab@redhat.com>
3024
3025 * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
3026 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3027 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3028
3029 * math/math_private.h (math_force_eval): Allow non-addressable
3030 arguments.
3031 * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
3032
30332011-10-25 Ulrich Drepper <drepper@gmail.com>
3034
3035 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
3036 file is not needed.
3037
3038 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
3039 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
3040 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
3041 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
3042 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
3043 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
3044 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
3045 * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
3046 Add AVX variants.
3047 * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
3048 * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
3049 * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
3050 * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
3051 * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
3052 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
3053 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
3054 * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
3055 * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
3056 * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
3057 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
3058 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
3059 * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
3060 * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
3061 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
3062 * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
3063 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
3064 * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
3065 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
3066
3067 * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
3068 all the time. Define bit_AVX. Define HAS_* macros using bit_* macros.
3069
3070 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
3071 place. Use VEX encoding when compiling for AVX.
3072
30732011-10-25 Andreas Schwab <schwab@redhat.com>
3074
3075 * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
3076 * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
3077
3078 * string/test-strchr.c (do_test): Don't generate NUL bytes.
3079
30802011-10-25 Ulrich Drepper <drepper@gmail.com>
3081
3082 * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
3083 useless if() expression.
3084 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3085 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3086 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3087 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3088 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3089 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3090 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3091 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3092 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3093 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3094 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
3095 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3096 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3097 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3098 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
3099 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3100 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
3101 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3102 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
3103
3104 * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
3105
31062011-10-25 Andreas Schwab <schwab@redhat.com>
3107
3108 * elf/dl-deps.c (_dl_map_object_deps): Remove always true
3109 condition.
3110 * elf/dl-fini.c (_dl_sort_fini): Likewise.
3111
31122011-10-25 Ulrich Drepper <drepper@gmail.com>
3113
3114 * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
3115 .text section. Avoid duplicate constants.
3116 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3117 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3118 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3119 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3120 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3121 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3122 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3123 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3124 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3125 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3126 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3127 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3128 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3129 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3130 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3131 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3132 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3133 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3134 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3135 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3136 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3137 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3138 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3139 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
3140 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
3141 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
3142 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
3143 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
3144 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
3145 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
3146 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
3147 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
3148 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3149 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
3150 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
3151 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
3152 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
3153 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
3154 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
3155 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
3156 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
3157 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
3158 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
3159 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
3160 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
3161
31622011-10-24 Ulrich Drepper <drepper@gmail.com>
3163
3164 * sysdeps/x86_64/dla.h: Move to ...
3165 * sysdeps/x86_64/fpu/dla.h: ...here.
3166 (DLA_FMS): Some compilers fail to inline __builtin_fma in some
3167 situations. Use __builtin_fma only for gcc 4.6 and up.
3168
3169 * config.make.in: Add have-mfma4 entry.
3170 * configure.in: Substitute libc_cv_cc_fma4.
3171 * math/Makefile (dbl-only-routines): Add sincostab.
3172 * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
3173 Use __sincostab not sincos.
3174 * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
3175 name is a macro.
3176 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3177 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3178 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3179 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise. Define singArctan2
3180 using __copysign.
3181 * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr. Don't define
3182 __cr and __cpymn. Define __cpy unless NO___CPY is defined. Define
3183 norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
3184 * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
3185 and __inv.
3186 * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
3187 * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
3188 __copysign.
3189 * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos. Don't
3190 define aliases when function name is a macro.
3191 * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
3192 sysdeps/ieee754/dbl-64/sincos.tbl.
3193 * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
3194 fma4-enabled routines.
3195 * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
3196 * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
3197 * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
3198 * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
3199 * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
3200 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
3201 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
3202 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
3203 * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
3204 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
3205 * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
3206 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
3207 * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
3208 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
3209 * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
3210 * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
3211 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
3212 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
3213 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
3214 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
3215 * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
3216 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
3217 * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
3218 * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
3219 * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
3220 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
3221 * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
3222 * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
3223 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
3224 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
3225
3226 * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
3227 rename.
3228 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3229 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3230 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3231 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3232 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3233 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3234 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3235 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3236
32372011-10-24 Andreas Schwab <schwab@redhat.com>
3238
3239 * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
3240
32412011-10-23 Ulrich Drepper <drepper@gmail.com>
3242
3243 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
3244
3245 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
3246 prediction.
3247 * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
3248
3249 * string/strnlen.c: Don't define STRNLEN, reverse logic.
3250 Remove unused variable magic_bits.
3251 * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
3252
3253 * string/strnlen.c: Define and use STRNLEN macro.
3254 * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
3255 Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
3256 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
3257 * wcsmbs/wcslen.c: Define and use WCSLEN.
3258 * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
3259 * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
3260 * sysdeps/i386/i686/multiarch/strnlen.S: New file.
3261 * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
3262 * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
3263 * sysdeps/i386/i686/multiarch/wcslen.S: New file.
3264 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
3265
32662011-10-20 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3267
3268 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3269 strnlen-sse2-no-bsf.
3270 Rename strlen-no-bsf to strlen-sse2-no-bsf.
3271 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
3272 * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
3273 Add strnlen support.
3274 (USE_AS_STRNLEN): New macro.
3275 * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
3276 * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
3277 Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
3278 * sysdeps/x86_64/wcslen.S: New file.
3279
32802011-10-20 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
3281
3282 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3283 XMM-moves are used for copying on small sizes.
3284
32852011-10-19 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3286
3287 * wcsmbs/Makefile (strop-tests): Add wcschr.
3288 * wcsmbs/test-wcschr.c: New file.
3289 * string/test-strchr.c: Update.
3290 Add wcschr support.
3291 (WIDE): New macro.
3292
32932011-10-18 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3294
3295 * wcsmbs/Makefile (strop-tests): Add wcslen.
3296 * wcsmbs/test-wcslen.c: New file.
3297 * string/test-strlen.c: Update.
3298 Add wcslen support.
3299 (WIDE): New macro.
3300
33012011-10-23 Ulrich Drepper <drepper@gmail.com>
3302
3303 * po/it.po: Update from translation team.
3304
33052011-09-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3306
3307 * sysdeps/x86_64/wcscmp.S: Update.
3308 Fix wrong comparison semantics.
3309 wcscmp shall use signed comparison not unsigned.
3310 Don't use substraction to avoid overflow bug.
3311 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
3312 * wcsmbc/wcscmp.c: Likewise.
3313 * string/test-strcmp.c: Likewise.
3314 Add new tests to check cases with negative values.
3315
33162011-10-23 Ulrich Drepper <drepper@gmail.com>
3317
3318 * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
3319 * sysdeps/x86_64/dla.h: ...here. New file.
3320 * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
3321 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3322 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3323 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3324 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3325 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3326 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3327 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3328 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3329
33302011-10-23 Andreas Schwab <schwab@linux-m68k.org>
3331
3332 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
3333 __ynl_finite aliases.
3334
33352011-10-22 Ulrich Drepper <drepper@gmail.com>
3336
3337 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3338
3339 * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
3340 define DLA_FMA.
3341 [DLA_FMA] (EMULV): Use DLA_FMA.
3342 [DLA_FMA] (MUL12): Use EMULV.
3343 * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
3344 that are not needed.
3345 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3346 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3347 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3348 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3349 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3350 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3351 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3352
33532011-10-22 Andreas Schwab <schwab@linux-m68k.org>
3354
3355 * math/s_nan.c: Undef __nan.
3356 * math/s_nanf.c: Undef __nanf.
3357 * math/s_nanl.c: Undef __nanl.
3358 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
3359 "math_private.h".
3360
33612011-10-22 Ulrich Drepper <drepper@gmail.com>
3362
3363 * math/s_catan.c: Add branch predictions.
3364 * math/s_catanf.c: Likewise.
3365 * math/s_catanh.c: Likewise.
3366 * math/s_catanhf.c: Likewise.
3367 * math/s_catanhl.c: Likewise.
3368 * math/s_catanl.c: Likewise.
3369 * math/s_cexp.c: Likewise.
3370 * math/s_cexpf.c: Likewise.
3371 * math/s_cexpl.c: Likewise.
3372 * math/s_clog.c: Likewise.
3373 * math/s_clog10.c: Likewise.
3374 * math/s_clog10f.c: Likewise.
3375 * math/s_clog10l.c: Likewise.
3376 * math/s_clogf.c: Likewise.
3377 * math/s_clogl.c: Likewise.
3378 * math/s_csqrt.c: Likewise.
3379 * math/s_csqrtf.c: Likewise.
3380 * math/s_csqrtl.c: Likewise.
3381 * math/s_ctanf.c: Likewise.
3382 * math/s_ctanh.c: Likewise.
3383 * math/s_ctanhf.c: Likewise.
3384 * math/s_ctanhl.c: Likewise.
3385 * math/s_ctanl.c: Likewise.
3386
3387 * math/math_private.h: Define __nan, __nanf, __nanl.
3388 * math/s_cacosh.c: Include <math_private.h>.
3389 * math/s_cacoshl.c: Likewise.
3390 * math/s_casinh.c: Likewise.
3391 * math/s_casinhf.c: Likewise.
3392 * math/s_casinhl.c: Likewise.
3393 * math/s_ccos.c: Rely entire on ccosh.
3394 * math/s_ccosf.c: Rely entire on ccoshf.
3395 * math/s_ccosl.c: Rely entirely on ccoshl.
3396 * math/s_ccosh.c: Add branch predicion helpers. Add branch prediction.
3397 Remove tests for FE_INVALID.
3398 * math/s_ccoshf.c: Likewise.
3399 * math/s_ccoshl.c: Likewise.
3400 * math/s_csin.c: Likewise.
3401 * math/s_csinf.c: Likewise.
3402 * math/s_csinh.c Likewise.
3403 * math/s_csinhf.c: Likewise.
3404 * math/s_csinhl.c: Likewise.
3405 * math/s_csinl.c: Likewise.
3406 * math/s_ctan.c: Likewise.
3407 * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
3408 * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
3409 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
3410
34112011-10-21 Ulrich Drepper <drepper@gmail.com>
3412
3413 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
3414 compilation problems.
3415
3416 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
3417 __builtin_expect.
3418
34192011-10-20 Ulrich Drepper <drepper@gmail.com>
3420
3421 * sysdeps/i386/configure.in: Test for -mfma4 option.
3422 * config.h.in: Add HAVE_FMA4_SUPPORT entry.
3423 * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
3424 COMMON_CPUID_INDEX_80000001.
3425 * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
3426 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
3427 use it if FMA3 is not supported.
3428 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
3429
3430 * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
3431 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
3432
34332011-10-20 Andreas Schwab <schwab@redhat.com>
3434
3435 [BZ #12892]
3436 * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
3437 it would create a cycle with a link time dependency.
3438
34392011-10-19 Ulrich Drepper <drepper@gmail.com>
3440
3441 * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
3442 instruction.
3443 * string/Makefile (strop-tests): Add rawmemchr.
3444 * string/test-rawmemchr.c: New file.
3445
3446 * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
3447 * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file. Split out from...
3448 * sysdeps/x86_64/multiarch/strcmp.S: ...here. Include strcmp-sse42.S
3449 when compiling str{,n}casecmp and when AVX is available. Hook up
3450 new optimized code in initializers.
3451
34522011-10-19 Andreas Schwab <schwab@redhat.com>
3453
3454 * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
3455 __feraiseexcept instead of feraiseexcept.
3456
34572011-10-18 Ulrich Drepper <drepper@gmail.com>
3458
3459 * math/math_private.h: Define defaults for libc_fetestexcept and
3460 libc_feupdateenv.
3461 * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
3462 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
3463 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
3464 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
3465 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3466 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
3467 libc_fetestexcept and libc_feupdateenv.
3468
3469 * math/math_private.h: Define defaults for libc_feholdexcept_setround,
3470 libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
3471 * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
3472 * sysdeps/x86_64/fpu/math_private.h: Define special version of
3473 libc_feholdexcept_setround.
3474
3475 * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
3476 Add s_nearbyint-c and s_nearbyintf-c.
3477 * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
3478 nearbyintf inlines.
3479 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
3480 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
3481 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
3482 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
3483
3484 * math/math_private.h: Define defaults for libc_fegetround,
3485 libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
3486 libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
3487 libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
3488 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
3489 libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
3490 standard functions.
3491 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3492 Remove comments and hacks for old compiler versions.
3493 * sysdeps/x86_64/fpu/math_private.h: Define special versions of
3494 libc_fegetround, libc_fesetround, libc_feholdexcept, and
3495 libc_feholdexceptl.
3496
34972011-10-18 Andreas Schwab <schwab@redhat.com>
3498
3499 * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
3500 (__feraiseexcept_renamed): Add __NTH.
3501 (feraiseexcept): Add __NTH. Rename local variables to fix
3502 namespace violations.
3503
35042011-10-17 Ulrich Drepper <drepper@gmail.com>
3505
3506 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
3507
3508 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
3509
3510 * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
3511 recently added interfaces.
3512 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3513
3514 * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
3515 about macro parameter expansion.
3516
3517 * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
3518 __NO_MATH_INLINES is defined. Cleanups.
3519
3520 * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
3521 and __floorf is target has SSE4.1.
3522 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
3523 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
3524 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
3525 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
3526
3527 * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
3528 name.
3529 (floorf): Likewise.
3530
3531 * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
3532
35332011-10-17 Andreas Schwab <schwab@redhat.com>
3534
3535 * misc/sys/cdefs.h: Fix last change.
3536
3537 * grp/initgroups.c (internal_getgrouplist): Fix initgroups
3538 database lookup.
3539
35402011-10-16 Ulrich Drepper <drepper@gmail.com>
3541
3542 * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
3543
3544 * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
3545 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3546 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3547 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3548 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3549 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3550 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3551 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3552 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3553 * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
3554 * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
3555 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
3556 * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
3557 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
3558 * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
3559 * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
3560 * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
3561 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
3562 * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
3563 * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
3564 * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
3565 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
3566
3567 * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
3568 ceil, ceilf, floor, floorf.
3569
3570 * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
3571 Perform IRELATIVE relocations last.
3572
3573 * elf/do-rel.h: Add another parameter nrelative, replacing the
3574 local variable with the same name. Change name of the function
3575 to end in Rel or Rela (uppercase).
3576 * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
3577 nrelative to ranges. Only nonzero for DT_REL/DT_RELA. Pass to the
3578 elf_dynamic_do_##reloc function.
3579
35802011-10-15 Ulrich Drepper <drepper@gmail.com>
3581
3582 * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
3583 is sufficient, at least on modern CPUs.
3584
3585 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
3586
3587 * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
3588 * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
3589
3590 * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
3591 __expl_finite.
3592 * math/bits/math-finite.h: Add entries for exp.
3593 * math/e_expl.c: Add __*_finite alias.
3594 * sysdeps/i386/fpu/e_exp.S: Likewise.
3595 * sysdeps/i386/fpu/e_expf.S: Likewise.
3596 * sysdeps/i386/fpu/e_expl.c: Likewise.
3597 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3598 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
3599 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3600 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3601 * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
3602 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3603 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3604
3605 * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
3606 is sufficient, at least on modern CPUs.
3607
3608 * ctype/ctype-info.c (__ctype_init): Define.
3609 * include/ctype.h (__ctype_init): Declare.
3610 (__ctype_b_loc): The variable is always initialized.
3611 (__ctype_toupper_loc): Likewise.
3612 (__ctype_tolower_loc): Likewise.
3613 * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
3614 * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
3615
36162011-10-15 Andreas Schwab <schwab@linux-m68k.org>
3617
3618 * wcsmbs/wmemcmp.c (WMEMCMP): Define.
3619
3620 * configure.in: Also look in $cxxmachine/include for C++ system
3621 headers.
3622
36232011-09-27 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3624
3625 * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
3626 memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
3627 * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
3628 * sysdeps/x86_64/multiarch/memcmp.S: Update. Add __memcmp_ssse3.
3629 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
3630 (USE_AS_WMEMCMP): New macro.
3631 Fixing indents.
3632 * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
3633 * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
3634 * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
3635 * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
3636 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3637 wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
3638 * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
3639 * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
3640 * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
3641 * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
3642 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
3643 (USE_AS_WMEMCMP): New macro.
3644 * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
3645 * sysdeps/string/test-memcmp.c: Update.
3646 Fix simple_wmemcmp.
3647 Add new tests.
3648 * wcsmbs/wmemcmp.c: Update.
3649 (WMEMCMP): New macro.
3650 Fix overflow bug.
3651
36522011-10-12 Andreas Jaeger <aj@suse.de>
3653
3654 [BZ #13268]
3655 * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
3656
36572011-10-15 Ulrich Drepper <drepper@gmail.com>
3658
3659 * libio/iofwide.c (do_length): Avoid warning.
3660
3661 * ctype/ctype.h (__isctype_f): Add missing __THROW.
3662
36632011-10-14 Ulrich Drepper <drepper@gmail.com>
3664
3665 * elf/pldd-xx.c (find_maps): Remove leftover debug message.
3666
3667 * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
3668 * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
3669 * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
3670 * sysdeps/i386/i686/fpu/e_log.S: New file.
3671 * sysdeps/i386/i686/fpu/e_logf.S: New file.
3672 * sysdeps/i386/i686/fpu/e_logl.S: New file.
3673
3674 * ctype/ctype.h: Add support for inlined isXXX functions when
3675 compiling C++ code.
3676
36772011-10-14 Andreas Schwab <schwab@redhat.com>
3678
3679 * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3680
3681 * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
3682
36832011-10-13 Roland McGrath <roland@hack.frob.com>
3684
3685 [BZ #13291]
3686 * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
3687
36882011-10-13 Andreas Schwab <schwab@redhat.com>
3689
3690 * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
3691 * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
3692 feraiseexcept.
3693
3694 * sysdeps/x86_64/memrchr.S: Check for zero size.
3695
3696 * string/stratcliff.c: Add memrchr tests.
3697
36982011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
3699
3700 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3701 memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
3702 rawmemchr-sse2 rawmemchr-sse2-bsf.
3703 * sysdeps/i386/i686/multiarch/memchr.S: New file.
3704 * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
3705 * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
3706 * sysdeps/i386/i686/multiarch/memrchr.S: New file.
3707 * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
3708 * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
3709 * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
3710 * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
3711 * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
3712 * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
3713 * string/memrchr.c (MEMRCHR): New macro.
3714
37152011-10-12 Ulrich Drepper <drepper@gmail.com>
3716
3717 Add integration with gcc's -ffinite-math-only and optimize wrapper
3718 functions in libm.
3719 * Versions.def: Define GLIBC_2.15 version for libm.
3720 * math/Makefile (headers): Add bits/math-finite.h.
3721 * math/bits/math-finite.h: New file.
3722 * sysdeps/ia64/fpu/bits/math-finite.h: New file.
3723 * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
3724 * math/e_acoshl.c: Add __*_finite alias.
3725 * math/e_acosl.c: Likewise.
3726 * math/e_asinl.c: Likewise.
3727 * math/e_atan2l.c: Likewise.
3728 * math/e_atanhl.c: Likewise.
3729 * math/e_coshl.c: Likewise.
3730 * math/e_exp10.c: Likewise.
3731 * math/e_exp10f.c: Likewise.
3732 * math/e_exp10l.c: Likewise.
3733 * math/e_exp2l.c: Likewise.
3734 * math/e_fmodl.c: Likewise.
3735 * math/e_gammal_r.c: Likewise.
3736 * math/e_hypotl.c: Likewise.
3737 * math/e_j0l.c: Likewise.
3738 * math/e_j1l.c: Likewise.
3739 * math/e_jnl.c: Likewise.
3740 * math/e_lgammal_r.c: Likewise.
3741 * math/e_log10l.c: Likewise.
3742 * math/e_log2l.c: Likewise.
3743 * math/e_logl.c: Likewise.
3744 * math/e_powl.c: Likewise.
3745 * math/e_sinhl.c: Likewise.
3746 * math/e_sqrtl.c: Likewise.
3747 * math/e_scalb.c: Completely rewritten and optimized.
3748 * math/e_scalbf.c: Likewise.
3749 * math/e_scalbl.c: Likewise.
3750 * math/w_acos.c: Likewise.
3751 * math/w_acosf.c: Likewise.
3752 * math/w_acosl.c: Likewise.
3753 * math/w_acosh.c: Likewise.
3754 * math/w_acoshf.c: Likewise.
3755 * math/w_acoshl.c: Likewise.
3756 * math/w_asin.c: Likewise.
3757 * math/w_asinf.c: Likewise.
3758 * math/w_asinl.c: Likewise.
3759 * math/w_atan2.c: Likewise.
3760 * math/w_atan2f.c: Likewise.
3761 * math/w_atan2l.c: Likewise.
3762 * math/w_atanh.c: Likewise.
3763 * math/w_atanhf.c: Likewise.
3764 * math/w_atanhl.c: Likewise.
3765 * math/w_exp10.c: Likewise.
3766 * math/w_exp10f.c: Likewise.
3767 * math/w_exp10l.c: Likewise.
3768 * math/w_fmod.c: Likewise.
3769 * math/w_fmodf.c: Likewise.
3770 * math/w_fmodl.c: Likewise.
3771 * math/w_j0.c: Likewise.
3772 * math/w_j0f.c: Likewise.
3773 * math/w_j0l.c: Likewise.
3774 * math/w_j1.c: Likewise.
3775 * math/w_j1f.c: Likewise.
3776 * math/w_j1l.c: Likewise.
3777 * math/w_jn.c: Likewise.
3778 * math/w_jnf.c: Likewise.
3779 * math/w_log.c: Likewise.
3780 * math/w_logf.c: Likewise.
3781 * math/w_logl.c: Likewise.
3782 * math/w_log10.c: Likewise.
3783 * math/w_log10f.c: Likewise.
3784 * math/w_log10l.c: Likewise.
3785 * math/w_log2.c: Likewise.
3786 * math/w_log2f.c: Likewise.
3787 * math/w_log2l.c: Likewise.
3788 * math/w_pow.c: Likewise.
3789 * math/w_powf.c: Likewise.
3790 * math/w_powl.c: Likewise.
3791 * math/w_remainder.c: Likewise.
3792 * math/w_remainderf.c: Likewise.
3793 * math/w_remainderl.c: Likewise.
3794 * math/w_scalb.c: Likewise.
3795 * math/w_scalbf.c: Likewise.
3796 * math/w_scalbl.c: Likewise.
3797 * math/w_sqrt.c: Likewise.
3798 * math/w_sqrtf.c: Likewise.
3799 * math/w_sqrtl.c: Likewise.
3800 * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
3801 are declared. Include <bits/math-finite.h> if -ffinite-math-only is
3802 used.
3803 * math/math_private.h: Declare __kernel_standard_f.
3804 * math/w_cosh.c: Remove cruft and optimize a bit.
3805 * math/w_coshf.c: Likewise.
3806 * math/w_coshl.c: Likewise.
3807 * math/w_exp2.c: Likewise.
3808 * math/w_exp2f.c: Likewise.
3809 * math/w_exp2l.c: Likewise.
3810 * math/w_hypot.c: Likewise.
3811 * math/w_hypotf.c: Likewise.
3812 * math/w_hypotl.c: Likewise.
3813 * math/w_lgamma.c: Likewise.
3814 * math/w_lgamma_r.c: Likewise.
3815 * math/w_lgammaf.c: Likewise.
3816 * math/w_lgammaf_r.c: Likewise.
3817 * math/w_lgammal.c: Likewise.
3818 * math/w_lgammal_r.c: Likewise.
3819 * math/w_sinh.c: Likewise.
3820 * math/w_sinhf.c: Likewise.
3821 * math/w_sinhl.c: Likewise.
3822 * math/w_tgamma.c: Likewise.
3823 * math/w_tgammaf.c: Likewise.
3824 * math/w_tgammal.c: Likewise.
3825 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3826 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3827 * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
3828 Minor optimizations. Pretty printing. Remove cruft.
3829 * sysdeps/i386/fpu/e_acosf.S: Likewise.
3830 * sysdeps/i386/fpu/e_acosh.S: Likewise.
3831 * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3832 * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3833 * sysdeps/i386/fpu/e_acosl.c: Likewise.
3834 * sysdeps/i386/fpu/e_asin.S: Likewise.
3835 * sysdeps/i386/fpu/e_asinf.S: Likewise.
3836 * sysdeps/i386/fpu/e_atan2.S: Likewise.
3837 * sysdeps/i386/fpu/e_atan2f.S: Likewise.
3838 * sysdeps/i386/fpu/e_atan2l.c: Likewise.
3839 * sysdeps/i386/fpu/e_atanh.S: Likewise.
3840 * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3841 * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3842 * sysdeps/i386/fpu/e_exp10.S: Likewise.
3843 * sysdeps/i386/fpu/e_exp10f.S: Likewise.
3844 * sysdeps/i386/fpu/e_exp10l.S: Likewise.
3845 * sysdeps/i386/fpu/e_exp2.S: Likewise.
3846 * sysdeps/i386/fpu/e_exp2f.S: Likewise.
3847 * sysdeps/i386/fpu/e_exp2l.S: Likewise.
3848 * sysdeps/i386/fpu/e_fmod.S: Likewise.
3849 * sysdeps/i386/fpu/e_fmodf.S: Likewise.
3850 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3851 * sysdeps/i386/fpu/e_hypot.S: Likewise.
3852 * sysdeps/i386/fpu/e_hypotf.S: Likewise.
3853 * sysdeps/i386/fpu/e_log.S: Likewise.
3854 * sysdeps/i386/fpu/e_log10.S: Likewise.
3855 * sysdeps/i386/fpu/e_log10f.S: Likewise.
3856 * sysdeps/i386/fpu/e_log10l.S: Likewise.
3857 * sysdeps/i386/fpu/e_log2.S: Likewise.
3858 * sysdeps/i386/fpu/e_log2f.S: Likewise.
3859 * sysdeps/i386/fpu/e_log2l.S: Likewise.
3860 * sysdeps/i386/fpu/e_logf.S: Likewise.
3861 * sysdeps/i386/fpu/e_logl.S: Likewise.
3862 * sysdeps/i386/fpu/e_pow.S: Likewise.
3863 * sysdeps/i386/fpu/e_powf.S: Likewise.
3864 * sysdeps/i386/fpu/e_powl.S: Likewise.
3865 * sysdeps/i386/fpu/e_remainder.S: Likewise.
3866 * sysdeps/i386/fpu/e_remainderf.S: Likewise.
3867 * sysdeps/i386/fpu/e_remainderl.S: Likewise.
3868 * sysdeps/i386/fpu/e_scalb.S: Likewise.
3869 * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3870 * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3871 * sysdeps/i386/fpu/e_sqrt.S: Likewise.
3872 * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
3873 * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
3874 * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3875 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3876 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3877 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3878 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3879 * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3880 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3881 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3882 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3883 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3884 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3885 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
3886 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3887 * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3888 * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3889 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3890 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3891 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3892 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3893 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3894 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3895 * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
3896 * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
3897 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
3898 * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
3899 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
3900 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
3901 * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
3902 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
3903 * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
3904 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
3905 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3906 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3907 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3908 * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
3909 * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
3910 * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
3911 * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
3912 * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
3913 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
3914 * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
3915 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
3916 * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
3917 * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3918 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3919 * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3920 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3921 * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3922 * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
3923 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
3924 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3925 * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3926 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3927 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3928 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3929 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3930 * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3931 * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3932 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3933 * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3934 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3935 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
3936 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
3937 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
3938 * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
3939 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
3940 * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
3941 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
3942 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
3943 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
3944 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
3945 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
3946 * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
3947 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
3948 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
3949 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
3950 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
3951 * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
3952 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
3953 * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
3954 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
3955 * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
3956 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
3957 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
3958 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3959 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
3960 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3961 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3962 * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3963 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
3964 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
3965 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3966 * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3967 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3968 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3969 * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
3970 * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
3971 * sysdeps/s390/fpu/e_sqrt.c: Likewise.
3972 * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
3973 * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
3974 * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
3975 * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
3976 * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
3977 * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
3978 * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3979 * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3980 * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3981 * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3982 * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
3983 * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3984 * sysdeps/x86_64/fpu/e_sqrt.c: Likewise. Fix parameter order
3985 * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
3986 * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
3987 (__isnanf): Likewise.
3988 (__isinf_ns): Likewise.
3989 (__isinf_nsf): Likewise.
3990 (__finite): Likewise.
3991 (__finitef): Likewise.
3992 (__ieee754_sqrt): Define as macro.
3993 (__ieee754_sqrtf): Define as macro.
3994 (__ieee754_sqrtl): Define as macro.
3995 * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
3996 inlined copy.
3997 * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
3998 __FINITE_MATH_ONLY__ consistent.
3999 * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
4000
40012011-10-10 Andreas Schwab <schwab@linux-m68k.org>
4002
4003 * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
4004 of rawmemchr.
4005
4006 * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
4007
40082011-10-09 Ulrich Drepper <drepper@gmail.com>
4009
4010 * po/ja.po: Update from translation team.
4011
40122011-10-08 Roland McGrath <roland@hack.frob.com>
4013
4014 * locale/programs/locarchive.c (prepare_address_space): New function.
4015 (create_archive, enlarge_archive, open_archive): Use it.
4016
4017 * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
4018 inside [SHARED], where it is used.
4019
4020 * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
4021
4022 * nss/getent.c (netgroup_keys): Remove unused variable.
4023 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
4024
40252011-10-08 Ulrich Drepper <drepper@gmail.com>
4026
4027 * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
4028 * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
4029 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
4030 * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
4031 * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
4032 * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
4033 * math/Makefile (libm-calls): Add s_isinf_ns.
4034 * math/divtc3.c: Use __isinf_nsl instead of isinf.
4035 * math/multc3.c: Likewise.
4036 * math/s_casin.c: Likewise.
4037 * math/s_casinf.c: Likewise.
4038 * math/s_casinl.c: Likewise.
4039 * math/s_ccos.c: Likewise.
4040 * math/s_ccosf.c: Likewise.
4041 * math/s_ccosl.c: Likewise.
4042 * math/s_ctan.c: Likewise.
4043 * math/s_ctanf.c: Likewise.
4044 * math/s_ctanh.c: Likewise.
4045 * math/s_ctanhf.c: Likewise.
4046 * math/s_ctanhl.c: Likewise.
4047 * math/s_ctanl.c: Likewise.
4048 * math/w_fmod.c: Likewise.
4049 * math/w_fmodf.c: Likewise.
4050 * math/w_fmodl.c: Likewise.
4051 * math/w_remainder.c: Likewise.
4052 * math/w_remainderf.c: Likewise.
4053 * math/w_remainderl.c: Likewise.
4054 * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
4055 * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
4056 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
4057 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
4058 * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
4059 * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
4060 * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
4061 __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
4062
4063 * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
4064 of the number.
4065 * stdio-common/printf_fphex.c: Likewise.
4066 * stdio-common/printf_size.c: Likewise.
4067
4068 * math/e_exp10.c: Include math_private.h using <...> not "...".
4069 * math/e_exp10f.c: Likewise.
4070 * math/e_exp10l.c: Likewise.
4071 * math/e_exp2l.c: Likewise.
4072 * math/e_j0l.c: Likewise.
4073 * math/e_j1l.c: Likewise.
4074 * math/e_jnl.c: Likewise.
4075 * math/e_lgammal_r.c: Likewise.
4076 * math/e_rem_pio2l.c: Likewise.
4077 * math/e_scalb.c: Likewise.
4078 * math/e_scalbf.c: Likewise.
4079 * math/e_scalbl.c: Likewise.
4080 * math/k_cosl.c: Likewise.
4081 * math/k_sinl.c: Likewise.
4082 * math/k_tanl.c: Likewise.
4083 * math/s_cacoshf.c: Likewise.
4084 * math/s_catan.c: Likewise.
4085 * math/s_catanf.c: Likewise.
4086 * math/s_catanh.c: Likewise.
4087 * math/s_catanhf.c: Likewise.
4088 * math/s_catanhl.c: Likewise.
4089 * math/s_catanl.c: Likewise.
4090 * math/s_ccosh.c: Likewise.
4091 * math/s_ccoshf.c: Likewise.
4092 * math/s_ccoshl.c: Likewise.
4093 * math/s_cexp.c: Likewise.
4094 * math/s_cexpf.c: Likewise.
4095 * math/s_cexpl.c: Likewise.
4096 * math/s_clog.c: Likewise.
4097 * math/s_clog10.c: Likewise.
4098 * math/s_clog10f.c: Likewise.
4099 * math/s_clog10l.c: Likewise.
4100 * math/s_clogf.c: Likewise.
4101 * math/s_clogl.c: Likewise.
4102 * math/s_csin.c: Likewise.
4103 * math/s_csinf.c: Likewise.
4104 * math/s_csinh.c: Likewise.
4105 * math/s_csinhf.c: Likewise.
4106 * math/s_csinhl.c: Likewise.
4107 * math/s_csinl.c: Likewise.
4108 * math/s_csqrt.c: Likewise.
4109 * math/s_csqrtf.c: Likewise.
4110 * math/s_csqrtl.c: Likewise.
4111 * math/s_ctan.c: Likewise.
4112 * math/s_ctanf.c: Likewise.
4113 * math/s_ctanh.c: Likewise.
4114 * math/s_ctanhf.c: Likewise.
4115 * math/s_ctanhl.c: Likewise.
4116 * math/s_ctanl.c: Likewise.
4117 * math/s_ldexp.c: Likewise.
4118 * math/s_ldexpf.c: Likewise.
4119 * math/s_ldexpl.c: Likewise.
4120 * math/s_significand.c: Likewise.
4121 * math/s_significandf.c: Likewise.
4122 * math/s_significandl.c: Likewise.
4123 * math/w_acos.c: Likewise.
4124 * math/w_acosf.c: Likewise.
4125 * math/w_acosh.c: Likewise.
4126 * math/w_acoshf.c: Likewise.
4127 * math/w_acoshl.c: Likewise.
4128 * math/w_acosl.c: Likewise.
4129 * math/w_asin.c: Likewise.
4130 * math/w_asinf.c: Likewise.
4131 * math/w_asinl.c: Likewise.
4132 * math/w_atan2.c: Likewise.
4133 * math/w_atan2f.c: Likewise.
4134 * math/w_atan2l.c: Likewise.
4135 * math/w_atanh.c: Likewise.
4136 * math/w_atanhf.c: Likewise.
4137 * math/w_atanhl.c: Likewise.
4138 * math/w_cosh.c: Likewise.
4139 * math/w_coshf.c: Likewise.
4140 * math/w_coshl.c: Likewise.
4141 * math/w_dremf.c: Likewise.
4142 * math/w_exp10.c: Likewise.
4143 * math/w_exp10f.c: Likewise.
4144 * math/w_exp10l.c: Likewise.
4145 * math/w_exp2.c: Likewise.
4146 * math/w_exp2f.c: Likewise.
4147 * math/w_fmod.c: Likewise.
4148 * math/w_fmodf.c: Likewise.
4149 * math/w_fmodl.c: Likewise.
4150 * math/w_hypot.c: Likewise.
4151 * math/w_hypotf.c: Likewise.
4152 * math/w_hypotl.c: Likewise.
4153 * math/w_j0.c: Likewise.
4154 * math/w_j0f.c: Likewise.
4155 * math/w_j0l.c: Likewise.
4156 * math/w_j1.c: Likewise.
4157 * math/w_j1f.c: Likewise.
4158 * math/w_j1l.c: Likewise.
4159 * math/w_jn.c: Likewise.
4160 * math/w_jnf.c: Likewise.
4161 * math/w_jnl.c: Likewise.
4162 * math/w_lgamma.c: Likewise.
4163 * math/w_lgamma_r.c: Likewise.
4164 * math/w_lgammaf.c: Likewise.
4165 * math/w_lgammaf_r.c: Likewise.
4166 * math/w_lgammal.c: Likewise.
4167 * math/w_lgammal_r.c: Likewise.
4168 * math/w_log.c: Likewise.
4169 * math/w_log10.c: Likewise.
4170 * math/w_log10f.c: Likewise.
4171 * math/w_log10l.c: Likewise.
4172 * math/w_log2.c: Likewise.
4173 * math/w_log2f.c: Likewise.
4174 * math/w_log2l.c: Likewise.
4175 * math/w_logf.c: Likewise.
4176 * math/w_logl.c: Likewise.
4177 * math/w_pow.c: Likewise.
4178 * math/w_powf.c: Likewise.
4179 * math/w_powl.c: Likewise.
4180 * math/w_remainder.c: Likewise.
4181 * math/w_remainderf.c: Likewise.
4182 * math/w_remainderl.c: Likewise.
4183 * math/w_scalb.c: Likewise.
4184 * math/w_scalbf.c: Likewise.
4185 * math/w_scalbl.c: Likewise.
4186 * math/w_sinh.c: Likewise.
4187 * math/w_sinhf.c: Likewise.
4188 * math/w_sinhl.c: Likewise.
4189 * math/w_sqrt.c: Likewise.
4190 * math/w_sqrtf.c: Likewise.
4191 * math/w_sqrtl.c: Likewise.
4192 * math/w_tgamma.c: Likewise.
4193 * math/w_tgammaf.c: Likewise.
4194 * math/w_tgammal.c: Likewise.
4195
4196 * po/ja.po: Update from translation team.
4197
41982011-09-29 Andreas Jaeger <aj@suse.de>
4199
4200 [BZ #13179]
4201 * sunrpc/netname.c (netname2host): Fix logic.
4202
4203 [BZ #6779]
4204 [BZ #6783]
4205 * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
4206 correctly.
4207 * math/w_remainder.c (__remainder): Likewise.
4208 * math/w_remainderf.c (__remainderf): Likewise.
4209 * math/libm-test.inc (remainder_test): Add test cases.
4210
42112011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4212
4213 * stdlib/longlong.h: Update from GCC. Fix zarch smul_ppmm and
4214 sdiv_qrnnd.
4215
42162011-10-07 Ulrich Drepper <drepper@gmail.com>
4217
4218 * string/test-memcmp.c: Avoid unncessary #defines.
4219 Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
4220
42212011-08-31 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
4222
4223 * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
4224 Use new sse2 version for core i3 - i7 as it's faster
4225 than sse42 version.
4226 (bit_Prefer_PMINUB_for_stringop): New.
4227 * sysdeps/x86_64/rawmemchr.S: Update.
4228 Replace with faster SSE2 version.
4229 * sysdeps/x86_64/memrchr.S: New file.
4230 * sysdeps/x86_64/memchr.S: Update.
4231 Replace with faster SSE2 version.
4232
42332011-09-12 Marek Polacek <mpolacek@redhat.com>
4234
4235 * elf/dl-load.c (lose): Add cast to avoid warning.
4236
42372011-10-07 Ulrich Drepper <drepper@gmail.com>
4238
4239 * po/ca.po: Update from translation team.
4240
4241 * inet/getnetgrent_r.c: Hook up nscd.
4242 * nscd/Makefile (routines): Add nscd_netgroup.
4243 (nscd-modules): Add netgroupcache.
4244 (CFLAGS-netgroupcache.c): Define.
4245 * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
4246 (cache_search): Add const to second parameter.
4247 * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
4248 INNETGR.
4249 (dbs): Add netgrdb entry.
4250 (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
4251 (verify_persistent_db): Handle netgrdb.
4252 (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
4253 * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
4254 GETFDNETGR.
4255 (netgroup_response_header): Define.
4256 (innetgroup_response_header): Define.
4257 (datahead): Add netgroup_response_header and innetgroup_response_header
4258 elements.
4259 * nscd/nscd.conf: Add entries for netgroup cache.
4260 * nscd/nscd.h (dbtype): Add netgrdb.
4261 (_PATH_NSCD_NETGROUP_DB): Define.
4262 (netgroup_iov_disabled): Declare.
4263 (xmalloc, xcalloc, xrealloc): Move declarations here.
4264 (cache_search): Adjust prototype.
4265 Add netgroup-related prototypes.
4266 * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
4267 * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
4268 (__nscd_innetgr): Declare.
4269 * nscd/selinux.c (perms): Use access_vector_t as element type and
4270 add netgroup-related initializers.
4271 * nscd/netgroupcache.c: New file.
4272 * nscd/nscd_netgroup.c: New file.
4273 * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
4274 * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
4275 For four parameters use innetgr.
4276 * nss/nss_files/files-init.c: Add definition and callback for netgr.
4277 * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
4278 (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
4279 * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
4280
4281 * nscd/connections.c (register_traced_file): Don't register file
4282 for disabled databases.
4283
42842011-10-06 Ulrich Drepper <drepper@gmail.com>
4285
4286 * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
4287
4288 * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
4289 from tree and freeing node.
4290
42912011-09-25 Jiri Olsa <jolsa@redhat.com>
4292
4293 * nss/nsswitch.c (__nss_database_lookup): Handle
4294 nss_parse_service_list out of memory case.
4295
42962011-09-15 Jiri Olsa <jolsa@redhat.com>
4297
4298 * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
4299 out of memory case.
4300
43012011-10-04 Andreas Schwab <schwab@redhat.com>
4302
4303 * include/dlfcn.h (__RTLD_NOIFUNC): Define.
4304 * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
4305 pass it down.
4306 * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
4307 elf_machine_rela, elf_machine_lazy_rel.
4308 (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
4309 (ELF_DYNAMIC_DO_REL): Likewise.
4310 (ELF_DYNAMIC_DO_RELA): Likewise.
4311 (ELF_DYNAMIC_RELOCATE): Likewise.
4312 * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
4313 to ELF_DYNAMIC_DO_REL.
4314 * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
4315 (dl_main): In trace mode always set __RTLD_NOIFUNC.
4316 * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
4317 elf_machine_rela.
4318 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
4319 skip_ifunc, don't call ifunc function if non-zero.
4320 (elf_machine_rela): Likewise.
4321 (elf_machine_lazy_rel): Likewise.
4322 (elf_machine_lazy_rela): Likewise.
4323 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
4324 (elf_machine_lazy_rel): Likewise.
4325 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
4326 Likewise.
4327 (elf_machine_lazy_rel): Likewise.
4328 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4329 Likewise.
4330 (elf_machine_lazy_rel): Likewise.
4331 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
4332 (elf_machine_lazy_rel): Likewise.
4333 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4334 (elf_machine_lazy_rel): Likewise.
4335 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4336 (elf_machine_lazy_rel): Likewise.
4337 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
4338 (elf_machine_lazy_rel): Likewise.
4339 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4340 (elf_machine_lazy_rel): Likewise.
4341 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4342 (elf_machine_lazy_rel): Likewise.
4343
43442011-09-28 Ulrich Drepper <drepper@gmail.com>
4345
4346 * nss/nss_files/files-init.c (_nss_files_init): Use static
4347 initialization for all the *_traced_file variables.
4348
43492011-09-28 Andreas Schwab <schwab@redhat.com>
4350
4351 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4352
43532011-09-27 Roland McGrath <roland@hack.frob.com>
4354
4355 [BZ #13226]
4356 * manual/signal.texi (Longjmp in Handler): Grammar fixes.
4357
43582011-09-27 Andreas Schwab <schwab@redhat.com>
4359
4360 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
4361 Reread the line before reparsing it.
4362
43632011-09-26 Andreas Schwab <schwab@redhat.com>
4364
4365 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
4366
43672011-09-21 Chung-Lin Tang <cltang@codesourcery.com>
4368 Maxim Kuvyrkov <maxim@codesourcery.com>
4369 Joseph Myers <joseph@codesourcery.com>
4370
4371 * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
4372 if needed for __stack_chk_guard.
4373
43742011-09-19 Roland McGrath <roland@hack.frob.com>
4375
4376 * sysdeps/posix/spawni.c (script_execute): Always define it.
4377 It will be optimized away if unused.
4378 (maybe_script_execute): New function.
4379 (__spawni): Call it.
4380
4381 * Makerules: Don't include tls.make.
4382 (config-tls): Always set to thread.
4383 * tls.make.c: File removed.
4384
43852011-09-19 Mike Frysinger <vapier@gentoo.org>
4386
4387 * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
4388 * config.make.in (CPPFLAGS-config): New substituted variable.
4389
43902011-09-15 Ulrich Drepper <drepper@gmail.com>
4391
4392 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
4393
4394 [BZ #13192]
4395 * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
4396 Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
4397
43982011-09-15 Roland McGrath <roland@hack.frob.com>
4399
4400 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
4401 (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
4402 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
4403 (CALL_FAIL): Likewise.
4404 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
4405 (CALL_FAIL): Macro removed.
4406 Patch mostly by Mike Frysinger <vapier@gentoo.org>.
4407
44082011-09-15 Ulrich Drepper <drepper@gmail.com>
4409
4410 * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
4411 for __FINITE_MATH_ONLY__ == 1.
4412
44132011-09-15 Andreas Schwab <schwab@redhat.com>
4414
4415 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
4416 __ieee754_sqrt instead of sqrt.
4417 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
4418 __ieee754_sqrtf instead of sqrtf.
4419 * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
4420 __floorf instead of floorf.
4421 * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
4422 __floorf, __truncf instead of floorf, truncf.
4423
44242011-09-14 Ulrich Drepper <drepper@gmail.com>
4425
4426 * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
4427
4428 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
4429 __extern_always_inline.
4430 Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
4431 32-bit.
4432
44332011-09-14 Andreas Schwab <schwab@redhat.com>
4434
4435 * elf/rtld.c (dl_main): Also relocate in dependency order when
4436 doing symbol dependency testing.
4437
44382011-09-13 Andreas Schwab <schwab@linux-m68k.org>
4439
4440 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4441 Always define `refsym'.
4442
44432011-09-13 Andreas Schwab <schwab@redhat.com>
4444
4445 * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
4446 (__FD_ELT): Renamed from __FDELT.
4447 * misc/bits/select2.h (__FD_ELT): Likewise.
4448 * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
4449 __FD_MASK instead of __FDELT, __FDMASK.
4450 * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
4451 Likewise.
4452 * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
4453 Likewise.
4454
4455 * elf/Makefile (gen-ldd): Fix pattern.
4456
4457 * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
4458 (init_tls): Likewise.
4459
44602011-09-12 Ulrich Drepper <drepper@gmail.com>
4461
4462 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
4463
44642011-09-12 Andreas Schwab <schwab@redhat.com>
4465
4466 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
4467 `struct cmsghdr *' instead of `void *'.
4468 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
4469 Likewise.
4470
44712011-09-11 Andreas Schwab <schwab@linux-m68k.org>
4472
4473 * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
4474 if non-absolute.
4475 * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
4476 ldd_rewrite_script.
4477
44782011-09-11 Ulrich Drepper <drepper@gmail.com>
4479
4480 * configure.in: Remove --with-tls option.
4481 * config.h.in: Remove HAVE_TLS_SUPPORT entry.
4482 * sysdeps/i386/elf/configure.in: Always test for TLS support and err
4483 out in case it is missing.
4484 * sysdeps/ia64/elf/configure.in: Likewise.
4485 * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
4486 * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
4487 * sysdeps/s390/s390-32/elf/configure.in: Likewise.
4488 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
4489 * sysdeps/sh/elf/configure.in: Likewise.
4490 * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
4491 * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
4492 * sysdeps/x86_64/elf/configure.in: Likewise.
4493 * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
4494 * sysdeps/mach/hurd/tls.h: Likewise.
4495
4496 [BZ #13067]
4497 * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
4498
4499 [BZ #13090]
4500 * configure.in: Fix use of AC_INIT.
4501
4502 * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
4503
45042011-09-10 Ulrich Drepper <drepper@gmail.com>
4505
4506 * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
4507 __set_errno.
4508 * malloc/hooks.c: Likewise.
4509
4510 [BZ #11929]
4511 * malloc/arena.c (ptmalloc_init_minimal): Removed. Initialize all
4512 variables statically.
4513 (narenas): Initialize.
4514 (list_lock): Initialize.
4515 (ptmalloc_init): Don't call ptmalloc_init_minimal. Remove
4516 initializtion of main_arena and list_lock. Small cleanups.
4517 Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
4518 * malloc/malloc.c: Remove malloc_getpagesize. Include <ldsodefs.h>.
4519 Add initializers to main_arena and mp_.
4520 (malloc_state): Remove pagesize member. Change all users to use
4521 GLRO(dl_pagesize).
4522
4523 * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
4524 * sysdeps/unix/sysv/linux/getpagesize.c: Simplify. GLRO(dl_pagesize)
4525 is always initialized.
4526
4527 * malloc/malloc.c: Removed unused configurations and dead code.
4528 * malloc/arena.c: Likewise.
4529 * malloc/hooks.c: Likewise.
4530 * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
4531
4532 * include/tls.h: Removed. USE___THREAD must always be defined.
4533 * bits/libc-tsd.h: Don't handle !USE___THREAD.
4534 * elf/dl-libc.c: Likewise.
4535 * elf/dl-tsd.c: Likewise.
4536 * include/errno.h: Likewise.
4537 * include/netdb.h: Likewise.
4538 * include/resolv.h: Likewise.
4539 * inet/herrno-loc.c: Likewise.
4540 * inet/herrno.c: Likewise.
4541 * malloc/arena.c: Likewise.
4542 * malloc/hooks.c: Likewise.
4543 * malloc/malloc.c: Likewise.
4544 * resolv/res-state.c: Likewise.
4545 * resolv/res_libc.c: Likewise.
4546 * sysdeps/i386/dl-machine.h: Likewise.
4547 * sysdeps/ia64/dl-machine.h: Likewise.
4548 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
4549 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4550 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4551 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4552 * sysdeps/sh/dl-machine.h: Likewise.
4553 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4554 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4555 * sysdeps/unix/i386/sysdep.S: Likewise.
4556 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4557 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
4558 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
4559 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4560 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
4561 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4562 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4563 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4564 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4565 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4566 * sysdeps/unix/x86_64/sysdep.S: Likewise.
4567 * sysdeps/x86_64/dl-machine.h: Likewise.
4568 * tls.make.c: Likewise.
4569
4570 * configure.in: Remove --with-__thread option. Make tests for
4571 --no-whole-archive, __builtin_expect, symbol redirection, __thread,
4572 tls_model attribute fail if no support is available. Remove
4573 USE_IN_LIBIO.
4574 * Makeconfig: Adjust for dropped configure option. All features are
4575 now mandatory.
4576 * Makerules: Likewise.
4577 * Versions.def: Likewise.
4578 * argp/argp-fmtstream.c: Likewise.
4579 * argp/argp-fmtstream.h: Likewise.
4580 * argp/argp-help.c: Likewise.
4581 * assert/assert.c: Likewise.
4582 * config.h.in: Likewise.
4583 * config.make.in: Likewise.
4584 * configure: Likewise.
4585 * configure.in: Likewise.
4586 * csu/Versions: Likewise.
4587 * csu/init.c: Likewise.
4588 * elf/tst-audit2.c: Likewise.
4589 * elf/tst-tls10.c: Likewise.
4590 * elf/tst-tls10.h: Likewise.
4591 * elf/tst-tls11.c: Likewise.
4592 * elf/tst-tls12.c: Likewise.
4593 * elf/tst-tls14.c: Likewise.
4594 * elf/tst-tlsmod11.c: Likewise.
4595 * elf/tst-tlsmod12.c: Likewise.
4596 * elf/tst-tlsmod13.c: Likewise.
4597 * elf/tst-tlsmod13a.c: Likewise.
4598 * elf/tst-tlsmod14a.c: Likewise.
4599 * elf/tst-tlsmod15b.c: Likewise.
4600 * elf/tst-tlsmod16a.c: Likewise.
4601 * elf/tst-tlsmod16b.c: Likewise.
4602 * elf/tst-tlsmod7.c: Likewise.
4603 * elf/tst-tlsmod8.c: Likewise.
4604 * elf/tst-tlsmod9.c: Likewise.
4605 * gmon/gmon.c: Likewise.
4606 * grp/fgetgrent_r.c: Likewise.
4607 * grp/putgrent.c: Likewise.
4608 * hurd/fopenport.c: Likewise.
4609 * include/libc-symbols.h: Likewise.
4610 * include/tls.h: Likewise.
4611 * intl/gettextP.h: Likewise.
4612 * intl/loadinfo.h: Likewise.
4613 * locale/global-locale.c: Likewise.
4614 * locale/localeinfo.h: Likewise.
4615 * mach/devstream.c: Likewise.
4616 * malloc/arena.c: Likewise.
4617 * malloc/set-freeres.c: Likewise.
4618 * misc/err.c: Likewise.
4619 * misc/getttyent.c: Likewise.
4620 * misc/mntent_r.c: Likewise.
4621 * posix/getopt.c: Likewise.
4622 * posix/wordexp.c: Likewise.
4623 * pwd/fgetpwent_r.c: Likewise.
4624 * resolv/Versions: Likewise.
4625 * resolv/res_hconf.c: Likewise.
4626 * shadow/fgetspent_r.c: Likewise.
4627 * shadow/putspent.c: Likewise.
4628 * stdio-common/printf_fphex.c: Likewise.
4629 * stdio-common/tmpfile.c: Likewise.
4630 * stdlib/abort.c: Likewise.
4631 * stdlib/fmtmsg.c: Likewise.
4632 * sunrpc/auth_unix.c: Likewise.
4633 * sunrpc/clnt_perr.c: Likewise.
4634 * sunrpc/clnt_tcp.c: Likewise.
4635 * sunrpc/clnt_udp.c: Likewise.
4636 * sunrpc/clnt_unix.c: Likewise.
4637 * sunrpc/openchild.c: Likewise.
4638 * sunrpc/svc_simple.c: Likewise.
4639 * sunrpc/svc_tcp.c: Likewise.
4640 * sunrpc/svc_udp.c: Likewise.
4641 * sunrpc/svc_unix.c: Likewise.
4642 * sunrpc/xdr.c: Likewise.
4643 * sunrpc/xdr_array.c: Likewise.
4644 * sunrpc/xdr_rec.c: Likewise.
4645 * sunrpc/xdr_ref.c: Likewise.
4646 * sunrpc/xdr_stdio.c: Likewise.
4647
46482011-09-09 Ulrich Drepper <drepper@gmail.com>
4649
4650 * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4651
46522011-07-03 Andreas Jaeger <aj@suse.de>
4653
4654 * math/libm-test.inc (jn_test): Add tests for BZ#11589.
4655 * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
4656 regenerate with gen-libm-tests.pl.
4657
46582010-05-12 Petr Baudis <pasky@suse.cz>
4659
4660 [BZ #11589]
4661 * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
4662 around j0() zero points by switching to j1().
4663 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4664 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4665 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4666 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4667
46682011-09-09 Ulrich Drepper <drepper@gmail.com>
4669
4670 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
4671 instead of 0.
4672 * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
4673 instead of 0. .
4674 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4675 Patch in part by Pavel Roskin <proski@gnu.org>.
4676
4677 [BZ #13138]
4678 * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
4679 realloc.
4680 (_IO_vfscanf_internal): Remove reteof. Use errout after setting done.
4681 Free memory block if necessary.
4682
4683 [BZ #12847]
4684 * libio/genops.c (INTDEF): For string streams the _lock pointer can
4685 be NULL. Don't lock in this case.
4686
46872011-09-09 Roland McGrath <roland@hack.frob.com>
4688
4689 * elf/elf.h (ELFOSABI_GNU): New macro.
4690 (ELFOSABI_LINUX): Define to that.
4691
46922011-07-29 Denis Zaitceff <zaitceff@gmail.com>
4693
4694 * string/strncat.c (strncat): Undef the symbol in case it has been
4695 defined in bits/string.h.
4696
46972011-09-09 Ulrich Drepper <drepper@gmail.com>
4698
4699 * elf/sotruss.ksh: Clean up, fix, and complete help messages.
4700
4701 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
4702 link map.
4703
47042011-08-17 Andreas Jaeger <aj@suse.de>
4705
4706 * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
4707
47082011-08-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4709 Ian Lance Taylor <iant@google.com>
4710
4711 * math/libm-test.inc (lround_test): New testcase.
4712 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
4713
47142011-09-08 Ulrich Drepper <drepper@gmail.com>
4715
4716 * Makefile: Remove support for automatic cvs check-ins.
4717 * Makerules: Likewise.
4718 * config.make.in: Likewise.
4719 * configure.in: Likewise.
4720 * intl/Makefile: Likewise.
4721 * locale/Makefile: Likewise.
4722 * po/Makefile: Likewise.
4723 * posix/Makefile: Likewise.
4724 * sysdeps/gnu/Makefile: Likewise.
4725 * sysdeps/mach/hurd/Makefile: Likewise.
4726 * sysdeps/sparc/sparc32/Makefile: Likewise.
4727
4728 [BZ #13118]
4729 * posix/Makefile (bug-regex32-ENV): Define.
4730 Patch by John Stanley <jpsinthemix@verizon.net>.
4731
4732 * misc/Makefile (headers): Add bits/select2.h.
4733 * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
4734 * misc/bits/select2.h: New file.
4735 * include/bits/select2.h: New file.
4736 * debug/Makefile (routines): Add fdelt_chk.
4737 * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
4738 * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
4739 FD_ISSET.
4740 * debug/fdelt_chk.c: New file.
4741
4742 * wcsmbs/test-wcscmp.c: Moved from string/*. Adjust.
4743 * wcsmbs/test-wmemcmp.c: Likewise.
4744 * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
4745 * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
4746
47472011-09-08 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
4748
4749 * string/Makefile (strop-tests): Add memcmp.
4750 * string/test-wmemcmp.c: New file.
4751 * string/test-memcmp.c: Add wmemcmp support.
4752
47532011-09-08 Roland McGrath <roland@hack.frob.com>
4754
4755 [BZ #13153]
4756 * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
4757 2011-07-19 change.
4758
4759 * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
4760 garbage value in a __mach_port_mod_refs call in the cases of the
4761 task-self and thread-self ports.
4762
47632011-09-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4764
4765 * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
4766
47672011-09-08 Andreas Schwab <schwab@redhat.com>
4768
4769 * elf/dl-load.c (lose): Check for non-null L.
4770
47712011-09-07 Ulrich Drepper <drepper@gmail.com>
4772
4773 * elf/dl-load.c (open_verify): Use O_CLOEXEC.
4774
4775 * elf/dl-libc.c (dlerror_run): Pass back error code from
4776 dl_catch_error.
4777
4778 [BZ #13123]
4779 * elf/dl-load.c (lose): Free l_origin if it is valid.
4780
4781 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
4782 names.
4783 * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
4784 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
4785 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
4786 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
4787 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
4788 Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
4789
47902011-08-01 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4791
4792 * sysdeps/powerpc/fpu/e_hypot.c: New file.
4793 * sysdeps/powerpc/fpu/e_hypotf.c: New file.
4794 * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
4795 * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
4796 * sysdeps/powerpc/fpu/k_cosf.c: New file.
4797 * sysdeps/powerpc/fpu/k_sinf.c: New file.
4798 * sysdeps/powerpc/fpu/s_cosf.c: New file.
4799 * sysdeps/powerpc/fpu/s_sinf.c: New file.
4800 * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
4801 * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
4802
48032011-08-15 Alan Modra <amodra@gmail.com>
4804
4805 [BZ #13092]
4806 * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
4807 * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
4808 * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here. Add
4809 ppc_mcount to static-only-routines.
4810 * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
4811 __mcount_internal.
4812 * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
4813 __mcount_internal with usual JUMPTARGET. Remove useless nop.
4814
48152011-08-18 David Flaherty <flaherty@linux.vnet.ibm.com>
4816
4817 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
4818 for finite and infinity parameters.
4819
48202011-08-04 Will Schmidt <will_schmidt@vnet.ibm.com>
4821
4822 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
4823 and add nop instructions for throughput optimization.
4824 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4825
48262011-07-28 Will Schmidt <will_schmidt@vnet.ibm.com>
4827
4828 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
4829 aligned copy for power7 with vector-scalar instructions.
4830 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
4831
48322011-07-24 H.J. Lu <hongjiu.lu@intel.com>
4833
4834 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
4835 AVX check.
4836
48372011-09-07 Andreas Schwab <schwab@redhat.com>
4838
4839 [BZ #13144]
4840 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
4841 last change.
4842
48432011-09-07 Ulrich Drepper <drepper@gmail.com>
4844
4845 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4846 (_libc_vdso_platform_setup): If vDSO is not present store pointer to
4847 syscall wrapper around clock_gettime in __vdso_clock_gettime.
4848 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
4849 clock_gettime.
4850
48512011-09-06 Ulrich Drepper <drepper@gmail.com>
4852
4853 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
4854 Forgot to demangle the pointer.
4855
4856 * sysdeps/i386/sysdep.h: Define atom_text_section.
4857 * sysdeps/x86_64/sysdep.h: Likewise.
4858 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
4859 section with atom_text_section.
4860 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
4861 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
4862 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
4863 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
4864 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
4865
4866 * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
4867 * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
4868 already be defined. Change to take two parameters and don't assign
4869 result to variable. Adjust all users.
4870 Define INTERNAL_GETTIME if not already defined.
4871 Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
4872 call.
4873 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
4874 HAVE_CLOCK_GETTIME_VSYSCALL.
4875 * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
4876
4877 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
4878 gettimeofday vsyscall, just use time.
4879
48802011-09-06 Andreas Schwab <schwab@redhat.com>
4881
4882 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
4883 <errno.h>.
4884
48852011-09-06 Ulrich Drepper <drepper@gmail.com>
4886
4887 * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
4888 syscall on x86-64.
4889 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
4890 syscall.
4891 * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
4892 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
4893 syscall if possible.
4894
48952011-09-05 Ulrich Drepper <drepper@gmail.com>
4896
4897 * elf/pldd.c (get_process_info): Don't read whole ELF header, just
4898 e_ident. Don't pass to find_mapsXX.
4899 * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
4900
49012011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
4902
4903 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4904 strchr-sse2-no-bsf strrchr-sse2-no-bsf
4905 * sysdeps/x86_64/multiarch/strchr.S: Update.
4906 Check bit_slow_BSF bit.
4907 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4908 * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
4909 * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
4910
49112011-09-05 Ulrich Drepper <drepper@gmail.com>
4912
4913 [BZ #13134]
4914 * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
4915 before glibc 2.15.
4916 (tryshell): Define.
4917 (__spawni): Change last parameter to be flag. Test
4918 SPAWN_XFLAGS_USE_PATH flag to use path or not.
4919 Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
4920 * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
4921 * posix/spawni.c: Likewise.
4922 * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
4923 * posix/spawnp.c: Likewise. Change normal version to use
4924 SPAWN_XFLAGS_USE_PATH.
4925 * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
4926 SPAWN_XFLAGS_TRY_SHELL.
4927
4928 [BZ #13150]
4929 * posix/glob.h: Remove gcc 1.x support.
4930
4931 [BZ #13068]
4932 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
4933
49342011-07-20 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
4935
4936 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4937 strchr-sse2 strrchr-sse2 strchr-sse2-bsf
4938 strrchr-sse2-bsf
4939 * sysdeps/i386/i686/multiarch/strchr.S: New file.
4940 * sysdeps/i386/i686/multiarch/strrchr.S: New file.
4941 * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
4942 * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
4943 * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
4944 * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
4945
49462011-08-29 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
4947
4948 * sysdeps/x86_64/wcscmp.S: New file.
4949
4950 * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
4951 wcscmp-c wcscmp-sse2
4952 * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
4953 * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
4954 * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
4955 * wcsmbs/wcscmp.c: Allow renaming.
4956
49572011-09-05 David S. Miller <davem@davemloft.net>
4958
4959 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
4960 stack slot, rather than the struct return pointer slot.
4961 * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
4962 * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
4963 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
4964 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
4965
49662011-09-05 Ulrich Drepper <drepper@gmail.com>
4967
4968 * po/ja.po: Update from translation team.
4969
4970 [BZ #13144]
4971 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
4972 kernel in 64-bit binaries.
4973
49742011-09-01 David S. Miller <davem@davemloft.net>
4975
4976 * elf/elf.h (HWCAP_SPARC_*): Move to..
4977 * sysdeps/sparc/sysdep.h: this new file and add new values.
4978 * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
4979 * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
4980 _DL_HWCAP_COUNT to 24.
4981 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
4982 entries.
4983 * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
4984 __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
4985 * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
4986 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
4987 instead of magic constants.
4988 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4989
49902011-08-31 David S. Miller <davem@davemloft.net>
4991
4992 * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
4993 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
4994 Reimplement to do errno handling inline.
4995 (SYSCALL_ERROR_HANDLER): New macro.
4996 (__SYSCALL_STRING): Do not do errno handling in asm.
4997 (__CLONE_SYSCALL_STRING): Delete.
4998 (__INTERNAL_SYSCALL_STRING): Delete.
4999 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
5000 sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
5001 (PSEUDO): Reimplement to do errno handling inline.
5002 (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
5003 (SYSCALL_ERROR_HANDLER): New macro.
5004 (__SYSCALL_STRING): Do not do errno handling in asm.
5005 (__CLONE_SYSCALL_STRING): Delete.
5006 (__INTERNAL_SYSCALL_STRING): Delete.
5007 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
5008 Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
5009 i386.
5010 (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
5011 (inline_syscall*): Add 'err' argument.
5012 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
5013 INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
5014 (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
5015 INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
5016
5017 * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
5018 * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
5019
50202011-08-30 Andreas Schwab <schwab@redhat.com>
5021
5022 * elf/rtld.c (dl_main): Relocate objects in dependency order.
5023
50242011-08-29 Jiri Olsa <jolsa@redhat.com>
5025
5026 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
5027 directive.
5028
50292011-08-24 David S. Miller <davem@davemloft.net>
5030
5031 * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
5032
50332011-08-24 Andreas Schwab <schwab@redhat.com>
5034
5035 * elf/Makefile: Add rules to build and run unload8 test.
5036 * elf/unload8.c: New file.
5037 * elf/unload8mod1.c: New file.
5038 * elf/unload8mod1x.c: New file.
5039 * elf/unload8mod2.c: New file.
5040 * elf/unload8mod3.c: New file.
5041
5042 * elf/dl-close.c (_dl_close_worker): Reset private search list if
5043 it wasn't used.
5044
50452011-08-23 David S. Miller <davem@davemloft.net>
5046
5047 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
5048 subtract stack bias.
5049 * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
5050 %sp not %fp in calculations.
5051 (_JMPBUF_UNWINDS_ADJ): Likewise.
5052
5053 * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
5054 (aio_suspend): Call it to force an exception region around the
5055 AIO_MISC_WAIT() invocation.
5056
50572011-08-23 Andreas Schwab <schwab@redhat.com>
5058
5059 * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
5060 backslash.
5061
50622011-07-04 Aurelien Jarno <aurelien@aurel32.net>
5063
5064 * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
5065 protection macro.
5066 * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
5067 and <dl-machine.h>.
5068 (Elf64_FuncDesc): Remove.
5069
50702011-08-22 David S. Miller <davem@davemloft.net>
5071
5072 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
5073 sigaltstack check, add missing cfi directives.
5074 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
5075 missing cfi directives, and sigaltstack handling.
5076
50772011-08-16 Andreas Schwab <schwab@redhat.com>
5078
5079 [BZ #11724]
5080 * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
5081 object is seen twice.
5082 * elf/dl-fini.c (_dl_sort_fini): Likewise.
5083
5084 * elf/Makefile (distribute): Add tst-initorder2.c.
5085 (tests): Add tst-initorder2.
5086 (modules-names): Add tst-initorder2a tst-initorder2b
5087 tst-initorder2c tst-initorder2d. Add rules to build them.
5088 ($(objpfx)tst-initorder2.out): New rule.
5089 * elf/tst-initorder2.c: New file.
5090 * elf/tst-initorder2.exp: New file.
5091
50922011-08-22 Andreas Schwab <schwab@redhat.com>
5093
5094 * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
5095
5096 * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
5097 dependencies back to end of function.
5098
5099 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
5100 $(elfobjdir)/ld.so.
5101
51022011-08-21 Ulrich Drepper <drepper@gmail.com>
5103
5104 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
5105 * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
5106 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
5107 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
5108 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
5109 of __vdso_gettimeofday.
5110 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
5111 __vdso_gettimeofday and __vdso_time. Define __vdso_getcpu with
5112 attribute_hidden.
5113 (_libc_vdso_platform_setup): Remove initialization of
5114 __vdso_gettimeofday and __vdso_time.
5115
51162011-08-20 Ulrich Drepper <drepper@gmail.com>
5117
5118 * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
5119 and fgetc_unlocked.
5120 * nss/nss_files/files-key.c (search): Use fgets_unlocked and
5121 getc_unlocked.
5122
5123 * elf/dl-open.c (add_to_global): Report additions to the global scope
5124 for LD_DEBUG=scopes.
5125 (dl_open_worker): Also print scope of newly loaded dependencies.
5126 (_dl_show_scope): Indicate if there is no scope.
5127
5128 [BZ #13114]
5129 * stdio-common/Makefile (tests): Add bug24.
5130 * stdio-common/bug24.c: New file.
5131
51322011-08-19 Andreas Jaeger <aj@suse.de>
5133
5134 [BZ #13114]
5135 * libio/fileops.c (_IO_new_file_fopen): Fix handling of
5136 non-existant file when using close-on-exec mode.
5137
51382011-08-20 Ulrich Drepper <drepper@gmail.com>
5139
5140 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
5141 the very first instruction.
5142
5143 * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
5144 the CFI state in the end.
5145 * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
5146 inclusion of dl-trampoline.h.
5147 Based on a patch by Jiri Olsa <jolsa@redhat.com>.
5148
51492011-08-19 Andreas Schwab <schwab@redhat.com>
5150
5151 * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
5152 expectations for long double.
5153
5154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
5155 from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
5156
51572011-08-14 David S. Miller <davem@davemloft.net>
5158
5159 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
5160 artificual limit depends upon the system page size.
5161
51622011-08-17 Ulrich Drepper <drepper@gmail.com>
5163
5164 * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
5165 * resolv/Makefile: Define CFLAGS-libresolv.
5166
51672011-08-17 Andreas Schwab <schwab@redhat.com>
5168
5169 * nss/makedb.c (compute_tables): Make variables used in nested
5170 function static.
5171
51722011-08-17 Ulrich Drepper <drepper@gmail.com>
5173
5174 * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
5175 * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
5176 if buffer was too small.
5177
5178 * elf/pldd.c (main): Attach to all threads in the process.
5179 Rewrite /proc handling to use *at functions.
5180
51812011-08-16 Ulrich Drepper <drepper@gmail.com>
5182
5183 * elf/dl-open.c (_dl_show_scope): Take additional parameter which
5184 specifies first scope to show.
5185 (dl_open_worker): Update callers. Move printing scope of new
5186 object to before the relocation.
5187 * elf/rtld.c (dl_main): Update _dl_show_scope call.
5188 * sysdeps/generic/ldsodefs.h: Update declaration.
5189
5190 * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
5191 string for the scope number.
5192
51932011-08-14 Ulrich Drepper <drepper@gmail.com>
5194
5195 * nscd/servicescache.c (cache_addserv): Make sure written is always
5196 initialized.
5197
51982011-08-14 Roland McGrath <roland@hack.frob.com>
5199
5200 * sysdeps/i386/i486/bits/atomic.h
5201 (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
5202 statement expression, so as to suppress "set but not used" warning.
5203 (__arch_c_compare_and_exchange_val_64_acq): Likewise.
5204
5205 * string/strncat.c (STRNCAT): Use prototype definition.
5206
5207 * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
5208 (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
5209 -Iprograms here.
5210 (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
5211 (localedef-modules): Add localedef.
5212 (locale-modules): Add locale.
5213
5214 * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
5215 * elf/rtld.c (dl_main): Invert order of assignment in last change,
5216 to avoid a warning.
5217
52182011-08-14 David S. Miller <davem@davemloft.net>
5219
5220 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
5221 RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
5222
52232011-08-13 Ulrich Drepper <drepper@gmail.com>
5224
5225 * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
5226 (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
5227 * elf/rtld.c (dl_main): Set l_name of vDSO.
5228 Call _dl_show_scope when DL_DEBUG_SCOPES.
5229 (process_dl_debug): Recognize scopes flag and also set it for all.
5230 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
5231 Declare _dl_show_scope.
5232
5233 * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
5234 (do_dlopen): Pass caller_dlopen to dl_open.
5235 (__libc_dlopen_mode): Initialize caller_dlopen.
5236
5237 * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
5238 of libc. Make tolower call locale-independent. Optimize a bit by
5239 using isdigit instead of isalnum.
5240 * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
5241
52422011-08-12 Ulrich Drepper <drepper@gmail.com>
5243
5244 * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
5245 was a dependency or dynamically loaded.
5246
52472011-08-11 Ulrich Drepper <drepper@gmail.com>
5248
5249 * intl/l10nflist.c: Allow architecture-specific pop function.
5250 * sysdeps/x86_64/l10nflist.c: New file.
5251
5252 * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
5253 classification.
5254
52552011-08-10 Andreas Schwab <schwab@redhat.com>
5256
5257 * include/dirent.h: Add libc_hidden_proto for scandirat and
5258 scandirat64. Don't declare __scandirat64.
5259 * dirent/scandirat.c: Add libc_hidden_def.
5260 * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
5261 * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
5262
52632011-08-10 David S. Miller <davem@davemloft.net>
5264
5265 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
5266 enum.
5267 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5268 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5269 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5270
52712011-08-09 Ulrich Drepper <drepper@gmail.com>
5272
5273 * Versions.def [libc]: Add GLIBC_2.15.
5274 * dirent/Makefile (routines): Add scandirat and scandirat64.
5275 * dirent/Versions [libc]: Export scandirat and scandirat64 for
5276 GLIBC_2.15.
5277 * dirent/dirent.h: Declare scandirat and scandirat64.
5278 * dirent/scandirat.c: New file.
5279 * dirent/scandirat64.c: New file.
5280 * sysdeps/wordsize-64/scandirat.c: New file.
5281 * sysdeps/wordsize-64/scandirat64.c: New file.
5282 * dirent/opendir.c: Define opendirat.
5283 * dirent/scandir.c: Move code to scandirat.c. Implement scandir
5284 using scandirat.
5285 * dirent/scandir64.c: Adjust for scandir.c change.
5286 * include/dirent.h: Define scandir_cancel_struct. Declare __opendirat,
5287 __scandirat64, and __scandir_cancel_handler.
5288 * sysdeps/unix/opendir.c: Rename __opendir to __opendirat. Take
5289 additional parameter and use openat instead of open (outside of ld.so).
5290 Add new __opendir as wrapper around __opendirat.
5291 * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
5292 here without requiring old scandirat implementation.
5293
52942011-08-08 Ulrich Drepper <drepper@gmail.com>
5295
5296 * dirent/scandir.c (cancel_handler): Renamed to
5297 __scandir_cancel_handler. Do not define if SKIP_SCANDIR_CANCEL is
5298 defined. Adjust users.
5299 * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
5300 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
5301
53022011-08-04 Ulrich Drepper <drepper@gmail.com>
5303
5304 * string/test-string.h (IMPL): Use __STRING to expand name and then
5305 stringify it.
5306
5307 * string/test-strcmp.c: Unify most of the WIDE and !WIDE code. Lots
5308 of cleanups.
5309
53102011-07-22 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
5311
5312 * string/Makefile: Update.
5313 (strop-tests): Append strncat.
5314 * string/test-wcscmp.c: New file.
5315 New comprehensive test for wcscmp.
5316 * string/test-strcmp.c: Update.
5317 (WIDE): New define.
5318
53192011-07-22 Andreas Schwab <schwab@redhat.com>
5320
5321 * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
5322 line.
5323
53242011-07-26 Andreas Schwab <schwab@redhat.com>
5325
5326 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
5327 encoding to ACE if AI_IDN.
5328
53292011-08-01 Jakub Jelinek <jakub@redhat.com>
5330
5331 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
5332 to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
5333
53342011-07-22 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
5335
5336 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
5337 Fix overflow bug in strncat.
5338 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
5339
5340 * string/test-strncat.c: Update.
5341 Add new tests for checking overflow bugs.
5342
53432011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
5344
5345 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5346 strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
5347 * sysdeps/i386/i686/multiarch/strcat.S: New file.
5348 * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
5349 * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
5350 * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
5351 * sysdeps/i386/i686/multiarch/strncat.S: New file.
5352 * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
5353 * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
5354
5355 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
5356 (USE_AS_STRCAT): Define.
5357 Add strcat and strncat support.
5358 * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
5359
53602011-07-25 Andreas Schwab <schwab@redhat.com>
5361
5362 * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
5363 __n bigger than INT_MAX+1.
5364 (__strncmp_g): Likewise.
5365
53662011-07-23 Ulrich Drepper <drepper@gmail.com>
5367
5368 * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
5369 * libio/stido.h: Likewise.
5370
5371 * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
5372 (AF_NFC): Define.
5373 * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
5374 (AF_NFC): Define.
5375
5376 * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
5377 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5378 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5379 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5380 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5381
5382 [BZ #13021]
5383 * scripts/test-installation.pl: Don't expect libnss_test1 to be
5384 installed.
5385
5386 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
5387 typo.
5388 (_dl_x86_64_save_sse): Likewise.
5389
53902011-07-22 Ulrich Drepper <drepper@gmail.com>
5391
5392 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
5393 OSXSAVE.
5394 (_dl_x86_64_save_sse): Likewise.
5395
5396 * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
5397
5398 * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
5399
54002011-07-21 Andreas Schwab <schwab@redhat.com>
5401
5402 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
5403 change.
5404 (_dl_x86_64_save_sse): Use correct AVX check.
5405
54062011-07-21 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
5407
5408 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
5409 bug in strncpy/strncat.
5410 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
5411
54122011-07-21 Ulrich Drepper <drepper@gmail.com>
5413
5414 * string/tester.c (test_strcat): Add tests for different alignments
5415 of source and destination.
5416 (test_strncat): Likewise.
5417
54182011-07-20 Ulrich Drepper <drepper@gmail.com>
5419
5420 [BZ #12852]
5421 * posix/glob.c (glob): Check passed in values before using them in
5422 expressions to avoid some overflows.
5423 (glob_in_dir): Likewise.
5424
5425 [BZ #13007]
5426 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
5427 check for AVX enablement so that we don't crash with old kernels and
5428 new hardware.
5429 * elf/tst-audit4.c: Add same checks here.
5430 * elf/tst-audit6.c: Likewise.
5431
5432 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
5433
54342011-07-09 Andreas Schwab <schwab@linux-m68k.org>
5435
5436 * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
5437
54382011-07-20 Ulrich Drepper <drepper@gmail.com>
5439
5440 * po/cs.po: Update from translation team.
5441 * po/bg.po: Likewise.
5442
54432011-07-12 Marek Polacek <mpolacek@redhat.com>
5444
5445 * misc/sys/cdefs.h: Add support for const attribute.
5446 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
5447 to gnu_dev_{major,minor,makedev} functions.
5448
54492011-07-20 Marek Polacek <mpolacek@redhat.com>
5450
5451 * intl/dcigettext.c (get_output_charset): Add missing bracket.
5452
54532011-07-20 Andreas Schwab <schwab@redhat.com>
5454
5455 * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
5456 strlen results.
5457
54582011-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5459
5460 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5461 (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
5462 register in order to avoid conflicts with the soft frame pointer
5463 being held in r11 when necessary.
5464 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5465 (INTERNAL_VSYSCALL_NCS): Likewise.
5466
54672011-07-14 Marek Polacek <mpolacek@redhat.com>
5468
5469 * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
5470 * elf/dl-fini.c (_dl_fini): Adjust caller.
5471 * elf/dl-close.c (_dl_close_worker): Likewise.
5472 * sysdeps/generic/ldsodefs.h: Adjust declaration.
5473
54742011-07-15 Marek Polacek <mpolacek@redhat.com>
5475
5476 * elf/cache.c (load_aux_cache): Remove unnecessary condition of
5477 "aux_cache->nlibs < 0".
5478
5479 * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
5480 in the reload-count case.
5481
54822011-07-15 Liubov Dmitrieva <liubov.dmitrieva@intel.com>
5483
5484 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5485 strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
5486 strncat-sse2-unaligned strncat-c strlen-sse2-pminub
5487 * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
5488 * sysdeps/x86_64/multiarch/strcat.S: New file.
5489 * sysdeps/x86_64/multiarch/strncat.S: New file.
5490 * sysdeps/x86_64/multiarch/strncat-c.c: New file.
5491 * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
5492 * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
5493 * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
5494 * sysdeps/x86_64/multiarch/strcpy-ssse3.S
5495 (USE_AS_STRCAT): Define.
5496 Add strcat and strncat support.
5497 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
5498 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
5499 * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
5500 * string/strncat.c: Update.
5501 (USE_AS_STRNCAT): Define.
5502 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5503 Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
5504 and i7.
5505 * sysdeps/x86_64/multiarch/init-arch.h
5506 (bit_Prefer_PMINUB_for_stringop): New.
5507 (index_Prefer_PMINUB_for_stringop): Likewise.
5508 * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
5509 bit_Prefer_PMINUB_for_stringop.
5510
55112011-07-19 Ulrich Drepper <drepper@gmail.com>
5512
5513 * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
5514 buffer64.
5515 * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
5516 of casting of buffer.
5517 * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
5518 buffer32 and buffer64.
5519 * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
5520 writes instead of casting of buffer.
5521 * crypt/md5.h (struct md5_ctx): Move buffer into union and add
5522 buffer32.
5523 * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
5524 casting of buffer.
5525
55262011-07-19 Andreas Schwab <schwab@redhat.com>
5527
5528 * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
5529
55302011-07-19 Ulrich Drepper <drepper@gmail.com>
5531
5532 * nscd/nscd.c (termination_handler): Don't do anything for a database
5533 if it has not yet been initialized.
5534
55352011-07-18 Ulrich Drepper <drepper@gmail.com>
5536
5537 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
5538
55392011-07-15 Marek Polacek <mpolacek@redhat.com>
5540
5541 * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
5542
55432011-07-18 Ulrich Drepper <drepper@gmail.com>
5544
5545 * po/nl.po: Update from translation team.
5546 * po/sv.po: Likewise.
5547
55482011-07-16 Roland McGrath <roland@hack.frob.com>
5549
5550 * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
5551 now disallowed by GCC.
5552
5553 * configure.in (use-default-link): Default to yes if a test -shared
5554 link meets our qualifications.
5555 * configure: Regenerated.
5556
5557 * config.make.in (output-format): New variable.
5558 * configure.in: Check for ld --print-output-format support.
5559 * configure: Regenerated.
5560 * Makerules ($(common-objpfx)format.lds)
5561 [$(output-format) != unknown]: Just use $(output-format),
5562 instead of the linker-script munging.
5563
55642011-07-14 Roland McGrath <roland@hack.frob.com>
5565
5566 * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
5567 of $(common-objpfx)shlib.lds.
5568 * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
5569
5570 * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
5571 Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
5572
5573 * configure.in (-z relro check): Adjust test code to add a large
5574 writable data section after it.
5575 * configure: Regenerated.
5576
55772011-07-11 Roland McGrath <roland@hack.frob.com>
5578
5579 * configure.in (-z relro check): Fix test code to make the variable
5580 truly const.
5581 * configure: Regenerated.
5582
55832011-07-11 Ulrich Drepper <drepper@gmail.com>
5584
5585 * nscd/nscd.h (struct traced_file): Define.
5586 (struct database_dyn): Remove inotify_descr, reset_res, and filename
5587 elements. Add traced_files.
5588 (inotify_fd): Declare.
5589 (register_traced_file): Declare.
5590 * nscd/connections.c (dbs): Remove reset_res and filename initializers.
5591 (inotify_fd): Export.
5592 (resolv_conf_descr): Remove.
5593 (nscd_init): Move inotify descriptor creation to main.
5594 Don't register files for notification here.
5595 (register_traced_file): New function.
5596 (invalidate_cache): Don't use reset_res to determine whether to call
5597 res_init, go through the list of registered files.
5598 (main_loop_poll): The inotify descriptors are now stored in the
5599 structures for the traced files.
5600 (main_loop_epoll): Likewise
5601 * nscd/nscd.c (main): Create inotify socket here. Pass extra argument
5602 to __nss_disable_nscd.
5603 * nscd/cache.c (prune_cache): There is no single inotify descriptor
5604 for a database anymore. Check the records for all the registered
5605 files instead.
5606 * nss/Makefile (libnss_files-routines): Add files-init.
5607 (libnss_db-routines): Add db-init.
5608 * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
5609 [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
5610 * nss/nss_db/db-init.c: New file.
5611 * nss/nss_files/files-init.c: New file.
5612 * nss/nsswitch.c (nss_load_library): New function. Broken out of
5613 __nss_lookup_function.
5614 (__nss_lookup_function): Call nss_load_library.
5615 (nss_load_all_libraries): New function.
5616 (__nss_disable_nscd): Take parameter with callback function for files
5617 to register. Set is_nscd. Load all the DSOs for the NSS modules
5618 used for the cached services.
5619 * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
5620 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
5621 options for features to all the files in nscd.
5622
5623 * nss/nsswitch.c (nss_parse_file): Add missing fclose.
5624
56252011-07-10 Roland McGrath <roland@hack.frob.com>
5626
5627 * csu/elf-init.c (__libc_csu_init): Comment typo.
5628
56292011-07-09 Ulrich Drepper <drepper@gmail.com>
5630
5631 * po/pl.po: Update from translation team.
5632 * po/ja.po: Likewise.
5633 * po/ru.po: Likewise.
5634 * po/ko.po: Likewise.
5635 * po/fr.po: Likewise.
5636
56372011-07-09 Roland McGrath <roland@hack.frob.com>
5638
5639 * configure.in (.ctors/.dtors header and trailer check):
5640 Use an empirical test on a built program.
5641 * configure: Regenerated.
5642
5643 * configure.in (-z relro check): Use an empirical test on a built DSO.
5644 Detect, but do not require, on ia64.
5645 * configure: Regenerated.
5646
5647 * configure.in (READELF): Find it with AC_CHECK_TOOL.
5648 Update tests that use readelf to use $READELF instead.
5649 * configure: Regenerated.
5650
56512011-07-08 Ulrich Drepper <drepper@gmail.com>
5652
5653 * malloc/hooks.c (memalign_check): Avoid using checked_request2size
5654 if the result is not used.
5655
56562011-07-05 Andreas Jaeger <aj@suse.de>
5657
5658 [BZ#9696]
5659 * stdlib/tst-strtod.c: Add testcase.
5660
56612011-07-07 Ulrich Drepper <drepper@gmail.com>
5662
5663 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
5664 (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
5665 The latter has a higher limit. Take additional parameter to pass to
5666 the new function.
5667 (__pathconf): Pass file to __statfs_link_max.
5668 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
5669 __statfs_link_max.
5670 * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
5671 __statfs_link_max.
5672
5673 [BZ #12868]
5674 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
5675 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5676 Handle Lustre.
5677 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
5678 (__statfs_filesize_max): Likewise.
5679 Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
5680
56812011-07-05 Andreas Jaeger <aj@suse.de>
5682
5683 * resolv/res_comp.c (dn_skipname): Remove unused variable.
5684
56852011-07-06 Marek Polacek <mpolacek@redhat.com>
5686
5687 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
5688 `status' variable.
5689 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
5690 Likewise.
5691
56922011-07-04 H.J. Lu <hongjiu.lu@intel.com>
5693
5694 * Makefile (strop-tests): Add strncat.
5695 * string/test-strncat.c: New file.
5696
56972011-06-30 Marek Polacek <mpolacek@redhat.com>
5698
5699 * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
5700
57012011-06-21 Andreas Jaeger <aj@suse.de>
5702
5703 * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
5704 Copy rule from iconvdata/Makefile.
5705
57062011-07-06 Ulrich Drepper <drepper@gmail.com>
5707
5708 [BZ #12922]
5709 * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
5710 but no long options are defined, just return 'W'.
5711
57122011-06-22 Marek Polacek <mpolacek@redhat.com>
5713
5714 [BZ #9696]
5715 * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
5716
57172011-07-06 Ulrich Drepper <drepper@gmail.com>
5718
5719 * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
5720 netgroups to read.
5721 (innetgr): Likewise.
5722
57232011-07-05 Roland McGrath <roland@hack.frob.com>
5724
5725 * config.make.in (install_root): Default to $(DESTDIR).
5726
57272011-07-05 Ulrich Drepper <drepper@gmail.com>
5728
5729 * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
5730
57312011-07-02 Roland McGrath <roland@hack.frob.com>
5732
5733 * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
5734
5735 * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
5736 containing directory rather than embedding absolute directory names.
5737
5738 * scripts/check-local-headers.sh: Rewritten using awk.
5739 Match by word, not by line. Print error messages for matches.
5740 * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
5741
5742 * Makerules [shlib-lds-flags empty]:
5743 ($(common-objpfx)libc_pic.opts): New target.
5744 ($(common-objpfx)libc_pic.os.clean): New target.
5745 ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
5746
5747 * config.make.in (OBJCOPY): New variable.
5748 * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
5749 * configure: Regenerated.
5750
5751 * config.make.in (use-default-link): New variable.
5752 * configure.in (use_default_link): Grok --with-default-link to set it.
5753 * configure: Regenerated.
5754 * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
5755 (shlib-lds, shlib-lds-flags): Define to empty.
5756
5757 * Makerules (shlib-lds): New variable.
5758 (shlib-lds-flags): New variable.
5759 (build-shlib, build-moduile, build-module-asneeded): Use it.
5760 ($(common-objpfx)libc.so): Use $(shlib-lds).
5761 ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
5762 * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
5763
5764 * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
5765 DT_FLAGS/DT_FLAGS_1 with zero flags.
5766
5767 * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
5768 linker script munging.
5769
57702011-07-02 Ulrich Drepper <drepper@gmail.com>
5771
5772 * crypt/sha512.h (struct sha512_ctx): Add union to access total also
5773 as 128-bit value.
5774 * crypt/sha512.c (sha512_process_block): Perform total addition using
5775 128-bit if possible.
5776 (__sha512_finish_ctx): Likewise.
5777 * crypt/sha256.h (struct sha256_ctx): Add union to access total also
5778 as 64-bit value.
5779 * crypt/sha256.c (SWAP64): Define.
5780 (sha256_process_block): Perform total addition using 64-bit if
5781 possible.
5782 (__sha256_finish_ctx): Likewise.
5783
57842011-07-01 Ulrich Drepper <drepper@gmail.com>
5785
5786 * nscd/pwdcache.c (cache_addpw): Cleanup. Add branch prediction.
5787 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5788 * nscd/hstcache.c (cache_addhst): Likewise.
5789 * nscd/grpcache.c (cache_addgr): Likewise.
5790 * nscd/aicache.c (addhstaiX): Likewise
5791 * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
5792
57932011-07-01 Thorsten Kukuk <kukuk@suse.de>
5794
5795 * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
5796 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5797 * nscd/hstcache.c (cache_addhst): Likewise.
5798 * nscd/grpcache.c (cache_addgr): Likewise.
5799 * nscd/aicache.c (addhstaiX): Likewise
5800
58012011-07-01 Andreas Schwab <schwab@redhat.com>
5802
5803 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
5804 domain only when needed.
5805
58062011-06-30 Andreas Schwab <schwab@redhat.com>
5807
5808 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
5809 is always restored.
5810
58112011-06-29 Ulrich Drepper <drepper@gmail.com>
5812
5813 * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
5814 are re-adding the entry.
5815 * nscd/servicescache.c (cache_addserv): Likewise.
5816
58172011-06-30 Aurelien Jarno <aurelien@aurel32.net>
5818
5819 * sysdeps/generic/dl-irel.h: fix protection against multiple
5820 inclusions.
5821 * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
5822
58232011-06-28 Ulrich Drepper <drepper@gmail.com>
5824
5825 [BZ #12935]
5826 * malloc/memusage.sh: Fix quoting in message.
5827 * debug/xtrace.sh: Likewise.
5828
5829 * configure.in: Remove support for --experimental-malloc option, make
5830 it the default.
5831 * config.make.in: Likewise.
5832 * malloc/Makefile: Likewise.
5833
58342011-06-27 Andreas Schwab <schwab@redhat.com>
5835
5836 * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
5837 two-byte characters.
5838
58392011-06-27 Roland McGrath <roland@hack.frob.com>
5840
5841 * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
5842 AC_CACHE_CHECK invocation.
5843 * configure: Regenerated.
5844
5845 * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
5846
58472011-06-27 Ulrich Drepper <drepper@gmail.com>
5848
5849 [BZ #12350]
5850 * nscd/aicache.c (addhstaiX): Restore only RES_USE_INET6
5851 bit from old_res_options.
5852
5853 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
5854
5855 * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
5856 value type for setfct.
5857
58582011-06-23 H.J. Lu <hongjiu.lu@intel.com>
5859
5860 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
5861 __gettimeofday instead of gettimeofday.
5862
58632011-06-26 Ulrich Drepper <drepper@gmail.com>
5864
5865 * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
5866
58672011-06-24 H.J. Lu <hongjiu.lu@intel.com>
5868
5869 * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
5870
5871 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
5872 info.
5873
58742011-06-22 H.J. Lu <hongjiu.lu@intel.com>
5875
5876 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5877 strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
5878 strcpy-sse2-unaligned strncpy-sse2-unaligned
5879 stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
5880 * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
5881 * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
5882 * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
5883 * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
5884 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
5885 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
5886 * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
5887 * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
5888 * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
5889 (STRCPY): Support SSE2 and SSSE3 versions.
5890
58912011-06-24 Ulrich Drepper <drepper@gmail.com>
5892
5893 [BZ #12874]
5894 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
5895 * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
5896 kernels which artificially limit size of requests.
5897
58982011-06-22 H.J. Lu <hongjiu.lu@intel.com>
5899
5900 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5901 strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
5902 strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
5903 * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
5904 * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
5905 * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
5906 * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
5907 * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
5908 * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
5909 * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
5910 * sysdeps/i386/i686/multiarch/strcpy.S: New file.
5911 * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
5912 * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
5913 * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
5914 * sysdeps/i386/i686/multiarch/strncpy.S: New file.
5915 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5916 Enable unaligned load optimization for Intel Core i3, i5 and i7
5917 processors.
5918 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
5919 Define.
5920 (index_Fast_Unaligned_Load): Define.
5921 (HAS_FAST_UNALIGNED_LOAD): Define.
5922
59232011-06-23 Marek Polacek <mpolacek@redhat.com>
5924
5925 * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
5926
59272011-06-22 Ulrich Drepper <drepper@gmail.com>
5928
5929 [BZ #12907]
5930 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
5931 until it is clear that the information is realy needed.
5932 Patch mostly by David Hanisch <david.hanisch@nsn.com>.
5933
59342011-06-22 Andreas Schwab <schwab@redhat.com>
5935
5936 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
5937
59382011-06-22 Ulrich Drepper <drepper@gmail.com>
5939
5940 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
5941 /sys/devices/system/cpu/online if it is usable.
5942
5943 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
5944 reading the information from the /proc filesystem to once a second.
5945
59462011-06-21 Andreas Jaeger <aj@suse.de>
5947
5948 * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
5949 NULL after inclusion of kernel headers.
5950
59512011-06-21 Ulrich Drepper <drepper@gmail.com>
5952
5953 * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
5954 calls to internal_setent.
5955
5956 [BZ #12885]
5957 * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
5958 addresses using gethostbyname4_r ignore IPv4 addresses.
5959
5960 * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
5961 branch using gethostbyname2 is only for AF_INET. Optimize accordingly.
5962
5963 * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
5964
59652011-06-20 David S. Miller <davem@davemloft.net>
5966
5967 * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
5968 inclusions.
5969 * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
5970
5971 * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
5972 (elf_irel): Use it.
5973 * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
5974 * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
5975 * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
5976 * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
5977 * sysdeps/x86_64/dl-irel.h: Likewise.
5978
5979 * elf/dl-runtime.c: Use elf_ifunc_invoke.
5980 * elf/dl-sym.c: Likewise.
5981
59822011-06-15 Ulrich Drepper <drepper@gmail.com>
5983
5984 * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch. We
5985 need to dereference resplen2.
5986
59872011-06-14 Andreas Schwab <schwab@redhat.com>
5988
5989 * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
5990
59912011-06-15 Ulrich Drepper <drepper@gmail.com>
5992
5993 * Makeconfig: Define vardbdir and inst_vardbdir.
5994 * nss/Makefile: Add rules to install db-Makefile.
5995
5996 * nss/nss_db/db-XXX.c: Cleanup.
5997
5998 * nss/Makefile (libnss_db-dbs): Add db-initgroups.
5999 * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
6000 GLIBC_PRIVATE.
6001 * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
6002 * nss/makedb.c: Implement -g option to specify that value strings
6003 are generated and should not be added to table iterated over for
6004 get*ent calls.
6005 * nss/nss_db/db-initgroups.c: New file.
6006
6007 * nss/getent.c: Add support for initgroups lookups through getgrouplist
6008 interface.
6009
6010 * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
6011 (internal_getgrouplist): Adjust to name change.
6012 Update use_initgroups_entry if this is not the first call.
6013 * nss/databases.def: Add initgroups entry.
6014
6015 * nss/makedb.c (compute_tables): Check result of multiple hash table
6016 sizes to minimize maximum chain length.
6017
60182011-06-14 Ulrich Drepper <drepper@gmail.com>
6019
6020 * Versions.def: Add entry for libnss_db.
6021 * shlib-versions: Likewise.
6022 * nss/Makefile: Add rules to build libnss_db.
6023 * nss/Versions: Add libnss_db information. Organize libnss_files
6024 entries better.
6025 * nss/db-Makefile: Add gshadow support. Change rules for the new
6026 makedb progra. Some minor improvements to generate smaller files.
6027 * nss/nss_db/nss_db.h: Move NSS database header data structures to
6028 here from...
6029 * nss/makedb.c: ...here.
6030 Improve database format to be smaller and require less memory at
6031 runtime.
6032 * nss/nss_db/db-XXX.x: Adjust for new database format. Don't use
6033 db anymore.
6034 * nss/nss_db/db-netgrp.c: Likewise.
6035 * nss/nss_db/db-open.c: Likewise.
6036 * nss/nss_files/flies-XXX.x: Adjust comments.
6037 * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
6038 * nss/nss_files/files-grp.c: Likewise.
6039 * nss/nss_files/files-hosts.c: Likewise.
6040 * nss/nss_files/files-network.c: Likewise.
6041 * nss/nss_files/files-proto.c: Likewise.
6042 * nss/nss_files/files-pwd.c: Likewise.
6043 * nss/nss_files/files-rpc.c: Likewise.
6044 * nss/nss_files/files-service.c: Likewise.
6045 * nss/nss_files/files-sgrp.c: Likewise.
6046 * nss/nss_files/files-spwd.c: Likewise.
6047 * nss/nss_db/db-alias.c: Removed.
6048 * nss/nss_db/dummy-db.h: Removed.
6049
60502011-06-02 Ulrich Drepper <drepper@gmail.com>
6051
6052 * nss/makedb.c: Rewritten to not use database library.
6053 * nss/Makefile: Update to build new makedb program.
6054
60552011-06-14 Andreas Jaeger <aj@suse.de>
6056
6057 * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
6058 memset declaration.
6059
60602011-06-10 Andreas Schwab <schwab@redhat.com>
6061
6062 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
6063 tmpbuf.
6064
60652011-06-10 Roland McGrath <roland@hack.frob.com>
6066
6067 * Makerules (shlib.lds): Fail if the linker script comes out empty.
6068 * elf/Makefile ($(objpfx)ld.so): Likewise.
6069
6070 * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
6071 Don't list ld.so twice in dependencies.
6072
6073 * posix/bug-regex31.c: Include <stdlib.h>.
6074
6075 * nscd/hstcache.c (cache_addhst): Remove unused variable.
6076
6077 * nis/nss_compat/compat-spwd.c
6078 (getspent_next_nss_netgr): Remove unused variable.
6079 * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
6080
6081 * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
6082 nonmembers" output to use the right array.
6083
6084 * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
6085
6086 * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
6087
6088 * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
6089 * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
6090 * catgets/gencat.c (read_input_file): Likewise.
6091 * locale/programs/locarchive.c (enlarge_archive): Likewise.
6092
6093 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
6094 variable definition inside #if's controlling its use.
6095
6096 * inet/getnetgrent_r.c (innetgr): Remove unused variable.
6097
6098 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
6099
6100 * misc/syslog.c (__vsyslog_chk): Remove unused variable.
6101
6102 * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
6103 unreachable code.
6104
6105 * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
6106
6107 * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
6108 * configure: Regenerated.
6109
6110 * Makerules: Revert last change.
6111 * elf/Makefile: Likewise.
6112
61132011-06-09 Roland McGrath <roland@hack.frob.com>
6114
6115 * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
6116 * elf/Makefile ($(objpfx)librtld.os): Likewise.
6117 (reloc-link): Likewise.
6118
61192011-06-09 Ulrich Drepper <drepper@gmail.com>
6120
6121 * elf/Makefile: Add rules to build pldd.
6122 * elf/pldd.c: New file.
6123 * elf/pldd-xx.c: New file.
6124
61252011-06-07 Ulrich Drepper <drepper@gmail.com>
6126
6127 * version.h: Update for 2.15 development version.
6128
61292011-06-07 David S. Miller <davem@davemloft.net>
6130
6131 * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
6132 ifuncs.
6133 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
6134 elf_machine_lazy_rel): Likewise.
6135 * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
6136 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
6137 elf_machine_lazy_rel): Likewise.
6138 * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
6139 dl_hwcap via passed in argument.
6140 * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
6141 Likewise.
6142
61432011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6144
6145 * stdlib/longlong.h: Update from GCC. Fix smul_ppmm for S/390.
6146
61472011-06-06 Roland McGrath <roland@hack.frob.com>
6148
6149 [BZ #12849]
6150 * manual/fdl-1.1.texi: New file, verbatim from:
6151 http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
6152 * manual/lgpl-2.1.texi: New file, verbatim from:
6153 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
6154 * manual/Makefile (licenses): New variable, list those new file names.
6155 (texis): Use it.
6156 (chapters.% top-menu.%): Include $(licenses) with $(appendices).
6157
6158 * manual/fdl.texi: File removed.
6159 * manual/lesser.texi: File removed.
6160 * manual/libc.texinfo (Copying, Documentation License):
6161 Use new @include file names, put @appendix directive before @include.
6162
61632011-06-04 Jakub Jelinek <jakub@redhat.com>
6164
6165 [BZ #12841]
6166 * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
6167 (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
6168 (mq_open): Add __NTH.
6169
61702011-06-02 H.J. Lu <hongjiu.lu@intel.com>
6171
6172 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6173 Assume Intel Core i3/i5/i7 processor if AVX is available.
6174
61752011-05-31 Ulrich Drepper <drepper@gmail.com>
6176
6177 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
6178 typo.
6179
61802011-05-31 Andreas Schwab <schwab@redhat.com>
6181
6182 * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
6183 memory. Use alloca_account. Fix memory leak when retrying.
6184
61852011-05-31 Ulrich Drepper <drepper@gmail.com>
6186
6187 * version.h (RELEASE): Bump for 2.14 release.
6188 * include/features.h (__GLIBC_MINOR__): Bump to 14.
6189
6190 * config.make.in (RANLIB): Remove entry.
6191
61922011-05-30 Ulrich Drepper <drepper@gmail.com>
6193
6194 * po/Makefile (po-sed-cmd): Add ksh to extensions.
6195 (libc.pot): Work around missing support for .ksh extension in xgettext.
6196
6197 [BZ #12684]
6198 * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
6199 if both request failed.
6200 (send_dg): In case of server errors clear resplen or *resplen2.
6201
6202 [BZ #12454]
6203 * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
6204 when there are multiple maps.
6205 * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
6206 (_dl_fini): Remove test here.
6207
6208 * elf/rtld.c (dl_main): Don't allow the loader to load itself.
6209
62102011-05-29 Ulrich Drepper <drepper@gmail.com>
6211
6212 [BZ #12350]
6213 * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
6214 bit from old_res_options.
6215 (gaih_inet): Likewise.
6216
6217 [BZ #11099]
6218 * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
6219 as signed.
6220
6221 * resolv/res_init.c (res_setoptions): Make the code more compact.
6222
6223 [BZ #11558]
6224 * resolv/res_init.c (res_setoptions): Recognize use-vc option and
6225 set RES_USEVC.
6226
6227 [BZ #11634]
6228 * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
6229
6230 * malloc/malloc.h: Mark malloc hook variables as deprecated.
6231
6232 [BZ #11781]
6233 * malloc/malloc.h: Declare malloc hook variables as volatile.
6234
6235 * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
6236 in last patch.
6237
6238 [BZ #11799]
6239 * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
6240 raise in the comment.
6241 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6242 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6243 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6244
62452011-05-28 Ulrich Drepper <drepper@gmail.com>
6246
6247 [BZ #12811]
6248 * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
6249 grow the buffers more if it already has to be sufficient.
6250 (build_wcs_upper_buffer): Likewise.
6251 * posix/regexec.c (check_matching): Likewise.
6252 (clean_state_log_if_needed): Likewise.
6253 (extend_buffers): Don't enlarge buffers beyond size of the input
6254 buffer.
6255 Patches mostly by Emil Wojak <emil@wojak.eu>.
6256 * posix/bug-regex32.c: New file.
6257 * posix/Makefile (tests): Add bug-regex32.
6258
6259 * locale/findlocale.c (_nl_find_locale): Return right away if
6260 _nl_explode_name failed.
6261 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
6262
6263 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
6264
6265 * debug/xtrace.sh: Unify messages.
6266 * malloc/memusage.sh: Likewise.
6267
6268 [BZ #12813]
6269 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
6270 time symbol from vDSO. Substitute with vsyscall if not available.
6271 * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
6272 __vdso_time.
6273
6274 * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
6275 * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
6276 * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
6277 Add sendmmsg and internal_sendmmsg.
6278 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
6279 * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
6280 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
6281
6282 * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
6283 * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
6284 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
6285
62862011-05-27 Ulrich Drepper <drepper@gmail.com>
6287
6288 [BZ #12813]
6289 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
6290 Retrieve getcpu symbol from vDSO. Substitute with vsyscall if not
6291 available.
6292 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
6293 __vdso_getcpu.
6294
6295 [BZ #12814]
6296 * iconvdata/Makefile (tests): Add bug-iconv9.
6297 * iconvdata/bug-iconv9.c: New file.
6298
62992011-05-27 Andreas Schwab <schwab@redhat.com>
6300
6301 [BZ #12814]
6302 * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
6303
63042011-05-25 Jakub Jelinek <jakub@redhat.com>
6305
6306 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
6307 (struct user_regs_struct): Change intcs field back to cs.
6308
63092011-05-25 Ulrich Drepper <drepper@gmail.com>
6310
6311 * po/ja.po: Update from translation team.
6312
63132011-05-23 Ulrich Drepper <drepper@gmail.com>
6314
6315 [BZ #12795]
6316 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
6317 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6318
63192011-05-20 Andreas Schwab <schwab@redhat.com>
6320
6321 * stdlib/longlong.h: Update from GCC.
6322
63232011-05-23 Andreas Schwab <schwab@redhat.com>
6324
6325 * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
6326 parameter name.
6327 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
6328 Add parameter name.
6329 (__sysconf): Pass it down.
6330
63312011-05-22 Ulrich Drepper <drepper@gmail.com>
6332
6333 [BZ #12671]
6334 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
6335 some situations.
6336 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6337 * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
6338 add in in __libc_use_alloca calls. Adjust callers.
6339 (glob): Use malloc in some situations.
6340
6341 * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
6342 and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
6343 pltexit.
6344
63452011-05-21 Ulrich Drepper <drepper@gmail.com>
6346
6347 * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
6348 and CLOCK_BOOTTIME_ALARM.
6349
6350 [BZ #12782]
6351 * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
6352 is returned.
6353
6354 * string/_strerror.c (__strerror_r): Print negative errors as signed
6355 numbers.
6356
6357 [BZ #12777]
6358 * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
6359 (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
6360 * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
6361
6362 * configure.in: Fix typo in redirection and correct removal of test
6363 files in two cases.
6364
6365 [BZ #12788]
6366 * locale/setlocale.c (new_composite_name): Fix test to check for
6367 identical name of all categories.
6368
6369 [BZ #12792]
6370 * libio/filedoalloc.c (local_isatty): New function.
6371 (_IO_file_doallocate): Use local_isatty.
6372 * stdio-common/perror.c (perror): In case a new stream is used
6373 forward the stream error.
6374 * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
6375 error flag.
6376
63772011-05-20 Ulrich Drepper <drepper@gmail.com>
6378
6379 [BZ #11869]
6380 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
6381 alloca.
6382 * include/alloca.h (extend_alloca_account): Define.
6383
6384 [BZ #11857]
6385 * posix/regex.h: Fix comments with documentation of user-accessible
6386 fields after compilation and describe correct free'ing of pattern
6387 after re_compile_pattern.
6388 Patch by Reuben Thomas <rrt@sc3d.org>.
6389
63902011-05-18 Ryan S. Arnold <rsa@us.ibm.com>
6391
6392 * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
6393 and -mno-altivec to prevent the compiler from using Altivec and/or
6394 VSX instructions when the corresponding registers are not available.
6395
63962011-05-19 Andreas Schwab <schwab@redhat.com>
6397
6398 * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
6399
64002011-05-19 Ulrich Drepper <drepper@gmail.com>
6401
6402 * libio/freopen.c (freopen): Use __dup2, not dup2.
6403 * libio/freopen64.c (freopen64): Likewise.
6404
64052011-05-17 H.J. Lu <hongjiu.lu@intel.com>
6406
6407 [BZ #12775]
6408 * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
6409 * math/Makefile (tests): Add test-powl.
6410 (CFLAGS-test-powl.c): Define.
6411 * math/test-powl.c: New file.
6412
64132011-05-16 H.J. Lu <hongjiu.lu@intel.com>
6414
6415 * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
6416
64172011-05-17 Ulrich Drepper <drepper@gmail.com>
6418
6419 [BZ #11837]
6420 * iconvdata/gb18030.c: Update to GB18020-2005.
6421
64222011-05-16 Ulrich Drepper <drepper@gmail.com>
6423
6424 * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
6425 RE_SYNTAX_POSIX_AWK): Update to match recent development.
6426 Patch by Aharon Robbins <arnold@skeeve.com>.
6427
6428 [BZ #11892]
6429 * stdlib/putenv.c (putenv): Don't always create copy of the variable
6430 on the stack.
6431
6432 [BZ #11895]
6433 * misc/pselect.c (__pselect): Handle timeout value errors hidden
6434 through underflows.
6435
6436 [BZ #12766]
6437 * misc/error.c (error_at_line): Ensure file_name and old_file_name
6438 point to strings before performing equality test for error_one_per_line
6439 mode.
6440
6441 [BZ #11697]
6442 * login/programs/pt_chown.c (do_pt_chown): Always call chown.
6443
6444 [BZ #11820]
6445 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
6446 (struct user_fpregs_struct): Avoid __uint*_t types.
6447
6448 [BZ #6420]
6449 * malloc/mtrace.c (tr_where): Add additional parameter to point to
6450 symbol info. Use it instead of calling _dl_addr locally.
6451 (lock_and_info): New function.
6452 (tr_freehook): Call lock_and_info and pass symbol info as additional
6453 parameter to tr_where.
6454 (tr_mallochook): Likewise.
6455 (tr_reallochook): Likewise.
6456 (tr_memalignhook): Likewise.
6457
6458 * malloc/mtrace.c: Remove support for USE_MTRACE_FILE. It is not
6459 used and couldn't be at all thread-safe.
6460
64612011-05-15 Ulrich Drepper <drepper@gmail.com>
6462
6463 * libio/freopen.c (freopen): Don't close old file descriptor
6464 before the new one is opened. Instead dup the new file descriptor
6465 to the old one after the new stream is created.
6466 * libio/freopen64.c (freopen64): Likewise.
6467 * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
6468 * libio/fileops.c (_IO_new_file_close_it): Handle new
6469 _IO_FLAGS2_NOCLOSE flag.
6470 (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
6471 If _IO_file_open didn't set FD_CLOEXEC do it after the call.
6472 * libio/oldfileops.c (_IO_old_file_close_it): Handle new
6473 _IO_FLAGS2_NOCLOSE flag.
6474 * include/unistd.h: Add hidden_proto for dup3.
6475 Define __have_dup3.
6476 * io/dup3.c: Define hidden symbol.
6477 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
6478
6479 [BZ #7101]
6480 * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
6481 when an incomplete long option is used.
6482 * posix/tst-getopt_long1.c: New file.
6483 * posix/Makefile (tests): Add tst-getopt_long1.
6484
6485 [BZ #10138]
6486 * scripts/config.guess: Update from autoconf-2.68.
6487 * scripts/config.sub: Likewise.
6488
6489 [BZ #10157]
6490 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
6491 tests into ...
6492 (has_cpuclock): ...this. New function.
6493 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
6494 macro here based on has_cpuclock code.
6495
6496 [BZ #10149]
6497 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6498 First byte (not low byte) is now always NUL.
6499 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
6500
6501 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6502 Use non-cancelable interfaces.
6503
6504 [BZ #9809]
6505 * locale/iso-639.def: Add entry for Sorani.
6506
6507 [BZ #11901]
6508 * include/stdlib.h: Move include protection to the right place.
6509 Define abort_msg_s. Declare __abort_msg with it.
6510 * stdlib/abort.c (__abort_msg): Adjust type.
6511 * assert/assert.c (__assert_fail_base): New function. Majority
6512 of code from __assert_fail. Allocate memory for __abort_msg with
6513 mmap.
6514 (__assert_fail): Now call __assert_fail_base.
6515 * assert/assert-perr.c: Remove bulk of implementation. Use
6516 __assert_fail_base.
6517 * include/assert.hL Declare __assert_fail_base.
6518 * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
6519 mmap.
6520 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
6521
65222011-05-14 Ulrich Drepper <drepper@gmail.com>
6523
6524 [BZ #11952]
6525 [BZ #12453]
6526 * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
6527 until all modules are registered in the DTV.
6528 * elf/Makefile: Add rules to build and run tst-tls19.
6529 * elf/tst-tls19.c: New file.
6530 * elf/tst-tls19mod1.c: New file.
6531 * elf/tst-tls19mod2.c: New file.
6532 * elf/tst-tls19mod3.c: New file.
6533 Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
6534
6535 [BZ #12083]
6536 * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
6537 correctly.
6538
6539 [BZ #12601]
6540 * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
6541 two-byte sequence errors.
6542 * iconvdata/Makefile (tests): Add bug-iconv8.
6543 * iconvdata/bug-iconv8.c: New file.
6544
6545 [BZ #12626]
6546 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
6547 buf2 definition.
6548
6549 * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
6550
6551 [BZ #12432]
6552 * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
6553 (dummy_getcfa): New function.
6554 (init): Get _Unwind_GetCFA address, use dummy if not found.
6555 (backtrace_helper): In recursion check, also check whether CFA changes.
6556 (__backtrace): Completely initialize arg.
6557
6558 * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
6559 storing incomplete byte sequence in state object. Avoid testing for
6560 guaranteed too small input if we know there is enough data available.
6561
65622011-05-11 Andreas Schwab <schwab@redhat.com>
6563
6564 * Makeconfig (+link-pie): Indent.
6565 * Rules (binaries-pie): Define if $(have-fpie) and
6566 $(build-shared).
6567 (binaries-shared): Also filter out $(binaries-pie).
6568 ($(addprefix $(objpfx),$(binaries-pie))): New rule.
6569 * nscd/Makefile (others-pie): Add nscd.
6570 (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
6571 ($(objpfx)nscd): Remove command override.
6572 * login/Makefile (others-pie): Add pt_chown.
6573 ($(objpfx)pt_chown): Remove command override.
6574 * elf/Makefile: Add PIE tests to tests and tests-pie variables and
6575 remove command overrides.
6576
65772011-05-13 Ulrich Drepper <drepper@gmail.com>
6578
6579 * libio/tst_putwc.c: Fix error messages.
6580
6581 [BZ #12724]
6582 * libio/fileops.c (_IO_new_file_close_it): Always flush when
6583 currently writing and seek to current position when not.
6584 * libio/Makefile (tests): Add bug-fclose1.
6585 * libio/bug-fclose1.c: New file.
6586
65872011-05-12 Ulrich Drepper <drepper@gmail.com>
6588
6589 [BZ #12511]
6590 * elf/dl-lookup.c (enter): Don't test for copy relocation here and
6591 don't set DF_1_NODELETE here.
6592 (do_lookup_x): When entering new entry test for copy relocation
6593 and if necessary set DF_1_NODELETE flag.
6594 * elf/tst-unique4.cc: New file.
6595 * elf/tst-unique4.h: New file.
6596 * elf/tst-unique4lib.cc: New file.
6597 * elf/Makefile: Add rules to build and run tst-unique4.
6598 Patch by Piotr Bury <pbury@goahead.com>.
6599
66002011-05-11 Ulrich Drepper <drepper@gmail.com>
6601
6602 [BZ #12052]
6603 * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
6604
6605 [BZ #12625]
6606 * misc/mntent_r.c (addmntent): Flush the stream after the output
6607
6608 [BZ #12393]
6609 * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
6610 (is_trusted_path_normalize): Skip initial colon. Append slash
6611 to empty buffer. Duplicate is_trusted_path code but allow
6612 constructed patch to be prefix.
6613 (is_dst): Allow $ORIGIN followed by /.
6614 (_dl_dst_substitute): Correct clearing of check_for_trusted.
6615 Correct testing of result of is_trusted_path_normalize
6616 (decompose_rpath): Fix warning.
6617
66182011-05-10 Ulrich Drepper <drepper@gmail.com>
6619
6620 [BZ #11257]
6621 * grp/initgroups.c (internal_getgrouplist): When we found the service
6622 list through the initgroups entry in nsswitch.conf do not always
6623 continue on a successful lookup. Don't always use the
6624 __nss_group_database value if it is set.
6625 * nss/nsswitch.conf (initgroups): Change action for successful db
6626 lookup to continue for compatibility.
6627
66282011-05-09 Ulrich Drepper <drepper@gmail.com>
6629
6630 [BZ #11532]
6631 * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
6632 and CP774 modules.
6633 * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
6634 and CP774 modules.
6635 * iconvdata/tst-tables.sh: Likewise.
6636 * iconvdata/cp770.c: New file.
6637 * iconvdata/cp771.c: New file.
6638 * iconvdata/cp772.c: New file.
6639 * iconvdata/cp773.c: New file.
6640 * iconvdata/cp774.c: New file.
6641 * iconvdata/testdata/CP770: New file.
6642 * iconvdata/testdata/CP770..UTF8: New file.
6643 * iconvdata/testdata/CP771: New file.
6644 * iconvdata/testdata/CP771..UTF8: New file.
6645 * iconvdata/testdata/CP772: New file.
6646 * iconvdata/testdata/CP772..UTF8: New file.
6647 * iconvdata/testdata/CP773: New file.
6648 * iconvdata/testdata/CP773..UTF8: New file.
6649 * iconvdata/testdata/CP774: New file.
6650 * iconvdata/testdata/CP774..UTF8: New file.
6651
6652 * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
6653 END CHARMAP line.
6654 * iconvdata/gen-8bit-gap.sh: Likewise.
6655 * iconvdata/gen-8bit.sh: Likewise.
6656
6657 * locale/iso-639.def: Add ary entry.
6658
6659 [BZ #11258]
6660 * locale/C-translit.h.in: Add U20A1 transliteration.
6661
6662 [BZ #12178]
6663 * locale/iso-639.def: Add wae entry.
6664 Patch by Kevin Bortis <bortis@translate-wae.ch>.
6665
6666 [BZ #12545]
6667 * locale/programs/localedef.c (construct_output_path): Use ssize_t
6668 for n.
6669
6670 [BZ #12711]
6671 * locale/C-translit.h.in: Add entry for U20B9.
6672 Patch by pravin.d.s@gmail.com.
6673
66742011-05-08 Ulrich Drepper <drepper@gmail.com>
6675
6676 [BZ #12713]
6677 * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
6678 ENAMETOOLONG use generic getcwd.
6679 * sysdeps/posix/getcwd.c: Add support to use openat. Make usable
6680 in rtld. Use *stat64.
6681 * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
6682 Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
6683 * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
6684 * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
6685 * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
6686 * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
6687 * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
6688 __fstatat64 macros.
6689 * include/dirent.h: Add libc_hidden_proto for rewinddir.
6690 * dirent/rewinddir.c: Add libc_hidden_def.
6691 * sysdeps/mach/hurd/rewinddir.c: Likewise.
6692 * sysdeps/unix/rewinddir.c: Likewise. Don't do locking outside libc.
6693
6694 * include/dirent.h (__alloc_dir): Add flags parameter.
6695 * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
6696 * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
6697 __alloc_dir.
6698 (__alloc_dir): Take new parameter. Don't call fcntl for invocations
6699 from fdopendir if O_CLOEXEC is already set.
6700
67012011-03-15 Alan Modra <amodra@gmail.com>
6702
6703 * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
6704 l_tls_firstbyte_offset non-zero. Save padding offset in
6705 l_tls_firstbyte_offset for later use.
6706 * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
6707 freeing static tls block.
6708
67092011-03-05 Jonathan Nieder <jrnieder@gmail.com>
6710
6711 * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
6712 where #ifdef was intended. The intent is to prevent ARG_MAX from
6713 being defined by the kernel headers.
6714
67152011-05-07 Ulrich Drepper <drepper@gmail.com>
6716
6717 [BZ #12734]
6718 * resolv/resolv.h: Define RES_NOTLDQUERY.
6719 * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
6720 no-tld-query and set RES_NOTLDQUERY.
6721 * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
6722 * resolv/res_query.c (__libc_res_nsearch): Backport changes from
6723 modern BIND to search name as TLD unless forbidden.
6724
67252011-05-07 Petr Baudis <pasky@suse.cz>
6726 Ulrich Drepper <drepper@gmail.com>
6727
6728 [BZ #12393]
6729 * elf/dl-load.c (fillin_rpath): Move trusted path check...
6730 (is_trusted_path): ...to here.
6731 (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
6732 (_dl_dst_substitute): Verify expanded $ORIGIN path elements
6733 using is_trusted_path_normalize() in setuid scripts.
6734
67352011-05-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6736
6737 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
6738 __BEGIN/__END_DECLS.
6739
67402011-05-06 Ulrich Drepper <drepper@gmail.com>
6741
6742 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
6743 NSS_STATUS_NOTFOUND if no record was found.
6744
67452011-05-05 Andreas Schwab <schwab@redhat.com>
6746
6747 * sunrpc/Makefile (headers): Add rpc/netdb.h.
6748 (headers-not-in-tirpc): Remove rpc/netdb.h
6749 * resolv/netdb.h: Revert last change.
6750
67512011-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
6752
6753 * Makeconfig (link-libc-static): Use --{start,end}-group to handle
6754 circular dependency between libgcc.a and libc.a.
6755
67562011-05-05 Andreas Schwab <schwab@redhat.com>
6757
6758 * resolv/netdb.h: Don't include <rpc/netdb.h>.
6759 * nis/Makefile: Don't install rpcsvc/*.
6760 * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
6761 instead of <rpc/types.h>.
6762 (MAXHOSTNAMELEN): Define.
6763
67642011-05-03 Andreas Schwab <schwab@redhat.com>
6765
6766 * elf/ldconfig.c (add_dir): Don't crash on empty path.
6767
67682011-04-28 Maciej Babinski <mbabinski@google.com>
6769
6770 [BZ #12714]
6771 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
6772 gethostbyname4_r when IPv6 results are possible.
6773
67742011-05-02 Ulrich Drepper <drepper@gmail.com>
6775
6776 [BZ #12723]
6777 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
6778 _PC_PIPE_BUF handling.
6779
67802011-04-30 Bruno Haible <bruno@clisp.org>
6781
6782 [BZ #12717]
6783 * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
6784 * resolv/netdb.h (getnameinfo): Change type of flags parameter
6785 to 'int'.
6786 * inet/getnameinfo.c (getnameinfo): Likewise.
6787
67882011-04-29 Ulrich Drepper <drepper@gmail.com>
6789
6790 * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
6791 to groups setting in database lookup.
6792 * nss/nsswitch.conf: Add initgroups entry.
6793
67942011-04-22 Ulrich Drepper <drepper@gmail.com>
6795
6796 [BZ #12685]
6797 * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
6798 mode string.
6799 Patch by Eric Blake <eblake@redhat.com>.
6800
68012011-04-20 H.J. Lu <hongjiu.lu@intel.com>
6802
6803 * sunrpc/Makefile (need-export-routines): Add svc_run.
6804 (routines): Remove svc_run.
6805 ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
6806 * sunrpc/clnt_perr.c (clnt_perrno): Export.
6807 * sunrpc/svc_run.c (svc_run): Likewise.
6808 * sunrpc/svc_udp.c (svcudp_create): Likewise.
6809
68102011-04-21 Ulrich Drepper <drepper@gmail.com>
6811
6812 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
6813 problem in reallocation in last patch.
6814
68152011-04-20 Ulrich Drepper <drepper@gmail.com>
6816
6817 * sunrpc/Makefile: Move inclusion of Rules.
6818
68192011-04-19 Ulrich Drepper <drepper@gmail.com>
6820
6821 * nss/nss_files/files-initgroups.c: New file.
6822 * nss/Makefile (libnss_files-routines): Add files-initgroups.
6823 * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
6824 _nss_files_initgroups_dyn.
6825
68262011-03-31 Richard Sandiford <richard.sandiford@linaro.org>
6827
6828 * elf/elf.h (R_ARM_IRELATIVE): Define.
6829
68302011-04-19 Ulrich Drepper <drepper@gmail.com>
6831
6832 * po/ru.po: Update from translation team.
6833
68342011-04-17 Ulrich Drepper <drepper@gmail.com>
6835
6836 * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
6837 dependencies.
6838
68392011-02-06 Mike Frysinger <vapier@gentoo.org>
6840
6841 [BZ #12653]
6842 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
6843 MEMCPY_CHK with USE_AS_BCOPY ifdef check.
6844 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6845 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6846 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
6847
68482011-03-28 Andreas Schwab <schwab@linux-m68k.org>
6849
6850 * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
6851 differing bytes.
6852 * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
6853 * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
6854 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
6855
68562011-04-17 Ulrich Drepper <drepper@gmail.com>
6857
6858 [BZ #12420]
6859 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
6860 storing it.
6861 * stdlib/bug-getcontext.c: New file.
6862 * stdlib/Makefile: Add rules to build and run bug-getcontext.
6863
68642011-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6865
6866 * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
6867 instructions into .machine "z9-109".
6868 * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6869 * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6870
68712011-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6872
6873 * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
6874 between environment variables and auxiliary vector.
6875
68762011-04-16 Ulrich Drepper <drepper@gmail.com>
6877
6878 * Makefile: Add rules to build linkobj/libc.so.
6879 * include/libc-symbols.h: Define libc_hidden_nolink.
6880 * include/rpc/auth.h: Mark functions which are to be hidden.
6881 * include/rpc/auth_des.h: Likewise.
6882 * include/rpc/auth_unix.h: Likewise.
6883 * include/rpc/clnt.h: Likewise.
6884 * include/rpc/des_crypt.h: Likewise.
6885 * include/rpc/key_prot.h: Likewise.
6886 * include/rpc/pmap_clnt.h: Likewise.
6887 * include/rpc/pmap_prot.h: Likewise.
6888 * include/rpc/pmap_rmt.h: Likewise.
6889 * include/rpc/rpc_msg.h: Likewise.
6890 * include/rpc/svc.h: Likewise.
6891 * include/rpc/svc_auth.h: Likewise.
6892 * include/rpc/xdr.h: Likewise.
6893 * nis/Makefile: Link all DSOs against linkobj/libc.so.
6894 * nss/Makefile: Likewise.
6895 * sunrpc/Makefile: Don't install headers. Build library with normal
6896 entry points. Don't build rpcinfo. Link RPC tests appropriately.
6897 * sunrpc/auth_des.c: Hide exported symbols by default, export some
6898 for the compat linking library. Remove use of INTDEF/INTUSE.
6899 * sunrpc/auth_none.c: Likewise.
6900 * sunrpc/auth_unix.c: Likewise.
6901 * sunrpc/authdes_prot.c: Likewise.
6902 * sunrpc/authuxprot.c: Likewise.
6903 * sunrpc/clnt_gen.c: Likewise.
6904 * sunrpc/clnt_perr.c: Likewise.
6905 * sunrpc/clnt_raw.c: Likewise.
6906 * sunrpc/clnt_simp.c: Likewise.
6907 * sunrpc/clnt_tcp.c: Likewise.
6908 * sunrpc/clnt_udp.c: Likewise.
6909 * sunrpc/clnt_unix.c: Likewise.
6910 * sunrpc/des_crypt.c: Likewise.
6911 * sunrpc/des_soft.c: Likewise.
6912 * sunrpc/get_myaddr.c: Likewise.
6913 * sunrpc/key_call.c: Likewise.
6914 * sunrpc/key_prot.c: Likewise.
6915 * sunrpc/netname.c: Likewise.
6916 * sunrpc/pm_getmaps.c: Likewise.
6917 * sunrpc/pm_getport.c: Likewise.
6918 * sunrpc/pmap_clnt.c: Likewise.
6919 * sunrpc/pmap_prot.c: Likewise.
6920 * sunrpc/pmap_prot2.c: Likewise.
6921 * sunrpc/pmap_rmt.c: Likewise.
6922 * sunrpc/publickey.c: Likewise.
6923 * sunrpc/rpc_cmsg.c: Likewise.
6924 * sunrpc/rpc_common.c: Likewise.
6925 * sunrpc/rpc_dtable.c: Likewise.
6926 * sunrpc/rpc_prot.c: Likewise.
6927 * sunrpc/rpc_thread.c: Likewise.
6928 * sunrpc/rtime.c: Likewise.
6929 * sunrpc/svc.c: Likewise.
6930 * sunrpc/svc_auth.c: Likewise.
6931 * sunrpc/svc_authux.c: Likewise.
6932 * sunrpc/svc_raw.c: Likewise.
6933 * sunrpc/svc_run.c: Likewise.
6934 * sunrpc/svc_simple.c: Likewise.
6935 * sunrpc/svc_tcp.c: Likewise.
6936 * sunrpc/svc_udp.c: Likewise.
6937 * sunrpc/svc_unix.c: Likewise.
6938 * sunrpc/svcauth_des.c: Likewise.
6939 * sunrpc/xcrypt.c: Likewise.
6940 * sunrpc/xdr.c: Likewise.
6941 * sunrpc/xdr_array.c: Likewise.
6942 * sunrpc/xdr_float.c: Likewise.
6943 * sunrpc/xdr_intXX_t.c: Likewise.
6944 * sunrpc/xdr_mem.c: Likewise.
6945 * sunrpc/xdr_rec.c: Likewise.
6946 * sunrpc/xdr_ref.c: Likewise.
6947 * sunrpc/xdr_sizeof.c: Likewise.
6948 * sunrpc/xdr_stdio.c: Likewise.
6949
69502011-04-10 Ulrich Drepper <drepper@gmail.com>
6951
6952 [BZ #12650]
6953 * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
6954 * sysdeps/ia64/dl-tls.h: Likewise.
6955 * sysdeps/powerpc/dl-tls.h: Likewise.
6956 * sysdeps/s390/dl-tls.h: Likewise.
6957 * sysdeps/sh/dl-tls.h: Likewise.
6958 * sysdeps/sparc/dl-tls.h: Likewise.
6959 * sysdeps/x86_64/dl-tls.h: Likewise.
6960 * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
6961
69622011-03-14 Andreas Schwab <schwab@redhat.com>
6963
6964 * elf/dl-load.c (_dl_dst_substitute): When skipping the first
6965 rpath element also skip the following colon.
6966 (expand_dynamic_string_token): Add is_path parameter and pass
6967 down to DL_DST_REQUIRED and _dl_dst_substitute.
6968 (decompose_rpath): Call expand_dynamic_string_token with
6969 non-zero is_path. Ignore empty rpaths.
6970 (_dl_map_object_from_fd): Call expand_dynamic_string_token
6971 with zero is_path.
6972
69732011-04-08 Andreas Schwab <schwab@linux-m68k.org>
6974
6975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
6976 Make cancelable.
6977
69782011-04-09 Ulrich Drepper <drepper@gmail.com>
6979
6980 [BZ #12655]
6981 * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
6982 Patch by Filipe David Manana <fdmanana@apache.org>.
6983
69842011-04-07 Andreas Schwab <schwab@redhat.com>
6985
6986 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
6987 Maintain aligned stack.
6988 (CHECK_RSP): Remove unused macro.
6989
69902011-04-03 Ulrich Drepper <drepper@gmail.com>
6991
6992 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
6993 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6994
69952011-04-02 Ulrich Drepper <drepper@gmail.com>
6996
6997 * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
6998
6999 * include/features.h: Mention __USE_XOPEN2K8 in comment.
7000
70012011-03-26 H.J. Lu <hongjiu.lu@intel.com>
7002
7003 [BZ #12518]
7004 * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
7005 * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
7006 * sysdeps/x86_64/memmove.c: New file.
7007 * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
7008 (memcpy): Renamed to ...
7009 (__new_memcpy): This.
7010 (memcpy): Provide GLIBC_2_14 memcpy.
7011 * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
7012 (memcpy): Provide GLIBC_2_2_5 memcpy.
7013
70142011-04-01 Ulrich Drepper <drepper@gmail.com>
7015
7016 [BZ #12631]
7017 * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
7018
70192011-03-30 Andreas Schwab <schwab@redhat.com>
7020
7021 * misc/syncfs.c: New file.
7022 * misc/Makefile (routines): Add syncfs.
7023 * posix/unistd.h: Declare syncfs.
7024 * sysdeps/unix/syscalls.list: Add syncfs.
7025
70262011-04-01 Andreas Schwab <schwab@redhat.com>
7027
7028 * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
7029 open_by_handle_at.
7030 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7031 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7032 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7033 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7034 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7035 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7036 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7037
70382011-04-01 Ulrich Drepper <drepper@gmail.com>
7039
7040 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
7041 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7042 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7043 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7044 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7045 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7046 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7047
7048 * io/Makefile: Compile fallocate.c, fallocate64.c, and
7049 sync_file_range.c with -fexceptions.
7050 * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
7051 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
7052 * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
7053 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
7054 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
7055 * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7056 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
7057 sync_file_range as cancellation point
7058 * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file. This is
7059 now a wrapper around __call_sync_file_range with cancellation handling.
7060 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
7061 * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this. Change
7062 function name to __call_sync_file_range.
7063 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
7064 Add call_sync_file_range.
7065
70662011-04-01 Andreas Schwab <schwab@redhat.com>
7067
7068 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7069 bits/timex.h.
7070
70712011-04-01 Ulrich Drepper <drepper@gmail.com>
7072
7073 * iconv/iconv.h: Fix typo in comment.
7074 * io/fcntl.h: Likewise.
7075 * libio/stdio.h: Likewise.
7076 * posix/spawn.h: Likewise.
7077 * posix/unistd.h: Likewise.
7078 * stdlib/stdlib.h: Likewise.
7079 * time/time.h: Likewise.
7080 * wcsmbs/wchar.h: Likewise.
7081
7082 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
7083 open_by_handle): Add.
7084 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
7085 and MAX_HANDLE_SZ. Declare name_to_handle_at and open_by_handle.
7086 Augment a few comments.
7087 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7088 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7089 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7090 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7091 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7092 * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
7093 open_by_handle.
7094
7095 * io/fcntl.h (AT_EMPTY_PATH): Define.
7096
70972011-03-30 Ulrich Drepper <drepper@gmail.com>
7098
7099 * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
7100 * sysdeps/unix/sysv/linux/bits/time.h: New file.
7101 * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
7102 to...
7103 * sysdeps/unix/sysv/linux/bits/timex.h: ...here. New file.
7104 * Versions.def: Add GLIBC_2.14.
7105 * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
7106 Export.
7107
71082011-03-22 Ulrich Drepper <drepper@gmail.com>
7109
7110 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
7111 round counter.
7112 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
7113
71142011-03-20 H.J. Lu <hongjiu.lu@intel.com>
7115
7116 [BZ #12597]
7117 * string/test-strncmp.c (do_page_test): New function.
7118 (check2): Likewise.
7119 (test_main): Call check2.
7120 * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
7121
71222011-03-20 Ulrich Drepper <drepper@gmail.com>
7123
7124 [BZ #12587]
7125 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
7126 Handle cache information in CPU leaf 4.
7127 * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
7128
71292011-03-18 Ulrich Drepper <drepper@gmail.com>
7130
7131 [BZ #12583]
7132 * posix/fnmatch.c (fnmatch): Check size of pattern in wide
7133 character representation.
7134 Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
7135
71362011-03-16 Ryan S. Arnold <rsa@us.ibm.com>
7137
7138 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
7139 END(__isnan) to END(__isnanf) to match function entry point/label
7140 EALIGN(__isnanf,...).
7141
71422011-03-10 Jakub Jelinek <jakub@redhat.com>
7143
7144 * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
7145
71462011-03-10 Ulrich Drepper <drepper@gmail.com>
7147
7148 [BZ #12510]
7149 * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
7150 copy from the symbol referenced in the relocation to initialize the
7151 used variable.
7152 Patch by Piotr Bury <pbury@goahead.com>.
7153 * elf/Makefile: Add rules to build and tst-unique3.
7154 * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
7155 * elf/tst-unique3.cc: New file.
7156 * elf/tst-unique3.h: New file.
7157 * elf/tst-unique3lib.cc: New file.
7158 * elf/tst-unique3lib2.cc: New file.
7159
7160 * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
7161
71622011-03-10 Mike Frysinger <vapier@gentoo.org>
7163
7164 * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
7165 $LDFLAGS and -nostdlib -nostartfiles to linking step. Change main
7166 to _start.
7167
71682011-03-06 Ulrich Drepper <drepper@gmail.com>
7169
7170 * elf/dl-load.c (_dl_map_object): If we are looking for the first
7171 to-be-loaded object along a path to loader is ld.so.
7172
71732011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
7174 Ulrich Drepper <drepper@gmail.com>
7175
7176 * sysdeps/x86_64/memset.S: After aligning destination, code
7177 branches to different locations depending on the value of
7178 misalignment, when multiarch is enabled. Fix this.
7179
71802011-03-02 Harsha Jagasia <harsha.jagasia@amd.com>
7181
7182 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
7183 Set _x86_64_preferred_memory_instruction for AMD processsors.
7184 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7185 Set bit_Prefer_SSE_for_memop for AMD processors.
7186
71872011-03-04 Ulrich Drepper <drepper@gmail.com>
7188
7189 * libio/fmemopen.c (fmemopen): Optimize a bit.
7190
71912011-03-03 Andreas Schwab <schwab@redhat.com>
7192
7193 * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
7194
71952011-03-03 Roland McGrath <roland@redhat.com>
7196
7197 * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
7198
71992011-02-28 Aurelien Jarno <aurelien@aurel32.net>
7200
7201 * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
7202 __bzero_ultra1 instead of __memset_ultra1.
7203
72042011-02-23 Andreas Schwab <schwab@redhat.com>
7205 Ulrich Drepper <drepper@gmail.com>
7206
7207 [BZ #12509]
7208 * include/link.h (struct link_map): Add l_orig_initfini.
7209 * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
7210 returning unsuccessfully.
7211 * elf/dl-close.c (_dl_close_worker): If this is the last explicit
7212 close of a file loaded at startup, restore the original l_initfini
7213 list.
7214 * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
7215 list, store the pointer.
7216 * elf/Makefile ($(objpfx)noload-mem): New rule.
7217 (noload-ENV): Define.
7218 (tests): Add $(objpfx)noload-mem.
7219 * elf/noload.c: Include <memcheck.h>.
7220 (main): Call mtrace. Close all opened handles.
7221
72222011-02-17 Andreas Schwab <schwab@redhat.com>
7223
7224 [BZ #12454]
7225 * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
7226 dependencies are missing.
7227
72282011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7229
7230 Fix __if_freereq crash: Unlike the generic version which uses free,
7231 Hurd needs munmap.
7232 * sysdeps/mach/hurd/ifreq.h: New file.
7233
72342011-01-27 Petr Baudis <pasky@suse.cz>
7235 Ulrich Drepper <drepper@gmail.com>
7236
7237 [BZ 12445]#
7238 * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
7239 to extend_alloca().
7240 * stdio-common/bug23.c: New file.
7241 * stdio-common/Makefile (tests): Add bug23.
7242
72432010-09-28 Andreas Schwab <schwab@redhat.com>
7244 Ulrich Drepper <drepper@gmail.com>
7245
7246 [BZ #12489]
7247 * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
7248 before performing relro protection. At old place add assertion
7249 to make sure nothing changed.
7250
72512011-02-17 Nathan Sidwell <nathan@codesourcery.com>
7252 Glauber de Oliveira Costa <glommer@gmail.com>
7253
7254 * elf/elf.h: Add new ARM TLS relocs.
7255
72562011-02-16 Ryan S. Arnold <rsa@us.ibm.com>
7257
7258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
7259 (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
7260 cast from r3.
7261 * sysdeps/wordsize-64/Makefile: New file. Add tst-writev to
7262 'tests' variable.
7263 * sysdeps/wordsize-64/tst-writev.c: New file.
7264
72652011-02-15 Ryan S. Arnold <rsa@us.ibm.com>
7266
7267 * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
7268 -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
7269 insns in _dl_start to prevent a TOC reference before relocs are
7270 resolved.
7271
72722011-02-15 Ulrich Drepper <drepper@gmail.com>
7273
7274 [BZ #12469]
7275 * Makeconfig: Remove RANLIB definition.
7276 * Makerules: Don't use RANLIB.
7277 * aclocal.m4: Remove ranlib test.
7278 * configure.in: No need to check for ranlib.
7279 * elf/rtld-Rules: Don't use RANLIB.
7280
72812011-02-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
7282
7283 * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
7284 protection macro.
7285 * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
7286 inclusion protection macro.
7287
7288 * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
7289 SIGRTMIN and SIGRTMAX and print information in that case only when
7290 SIGRTMIN is defined.
7291
72922011-02-11 Jakub Jelinek <jakub@redhat.com>
7293
7294 * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
7295 arginfo fn returning -1.
7296
7297 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
7298 and thousands string is zero terminated.
7299
73002011-02-03 Andreas Schwab <schwab@redhat.com>
7301
7302 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
7303 sysdeps/unix/sysv/linux/bits/socket.h.
7304
73052011-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7306
7307 * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
7308 (__CPU_COUNT): Remove old macros.
7309 (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
7310 (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
7311 (__CPU_ALLOC, __CPU_FREE): Add macros.
7312 (__sched_cpualloc, __sched_cpufree): Add declarations.
7313
73142011-02-05 Ulrich Drepper <drepper@gmail.com>
7315
7316 * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
7317 (struct datahead): Reuse 32 bits of the alignment for a TTL field.
7318 * nscd/aicache.c (addhstaiX): Return timeout of added value.
7319 (readdhstai): Return value of addhstaiX call.
7320 * nscd/grpcache.c (cache_addgr): Return timeout of added value.
7321 (addgrbyX): Return value returned by cache_addgr.
7322 (readdgrbyname): Return value returned by addgrbyX.
7323 (readdgrbygid): Likewise.
7324 * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
7325 (addpwbyX): Return value returned by cache_addpw.
7326 (readdpwbyname): Return value returned by addhstbyX.
7327 (readdpwbyuid): Likewise.
7328 * nscd/servicescache.c (cache_addserv): Return timeout of added value.
7329 (addservbyX): Return value returned by cache_addserv.
7330 (readdservbyname): Return value returned by addservbyX:
7331 (readdservbyport): Likewise.
7332 * nscd/hstcache.c (cache_addhst): Return timeout of added value.
7333 (addhstbyX): Return value returned by cache_addhst.
7334 (readdhstbyname): Return value returned by addhstbyX.
7335 (readdhstbyaddr): Likewise.
7336 (readdhstbynamev6): Likewise.
7337 (readdhstbyaddrv6): Likewise.
7338 * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
7339 (readdinitgroups): Return value returned by addinitgroupsX.
7340 * nscd/cache.c (readdfcts): Change return value of functions to time_t.
7341 (prune_cache): Keep track of timeout value of re-added entries.
7342 * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
7343 * nscd/nscd.h: Adjust prototypes of readd* functions.
7344
73452011-02-04 Roland McGrath <roland@redhat.com>
7346
7347 * nis/nis_server.c (nis_servstate): Use the right name for 0.
7348 (nis_stats): Likewise.
7349 * nis/nis_modify.c (nis_modify): Likewise.
7350 * nis/nis_remove.c (nis_remove): Likewise.
7351 * nis/nis_add.c (nis_add): Likewise.
7352
7353 * elf/dl-object.c (_dl_new_object): Remove unused variable L.
7354
7355 * posix/fnmatch_loop.c: Add some consts.
7356
7357 * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
7358
73592011-02-02 H.J. Lu <hongjiu.lu@intel.com>
7360
7361 [BZ #12460]
7362 * config.make.in (config-cflags-novzeroupper): Define.
7363 * configure.in: Substitute libc_cv_cc_novzeroupper.
7364 * elf/Makefile (AVX-CFLAGS): Define.
7365 (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
7366 (CFLAGS-tst-auditmod4a.c): Likewise.
7367 (CFLAGS-tst-auditmod4b.c): Likewise.
7368 (CFLAGS-tst-auditmod6b.c): Likewise.
7369 (CFLAGS-tst-auditmod6c.c): Likewise.
7370 (CFLAGS-tst-auditmod7b.c): Likewise.
7371 * sysdeps/i386/configure.in: Check -mno-vzeroupper.
7372
73732011-02-02 Ulrich Drepper <drepper@gmail.com>
7374
7375 * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
7376 function to the callback.
7377 Patch partly by Jiri Olsa <jolsa@redhat.com>.
7378
73792011-02-02 Andreas Schwab <schwab@redhat.com>
7380
7381 * shadow/sgetspent.c: Check return value of __sgetspent_r instead
7382 of errno.
7383
73842011-01-19 Ulrich Drepper <drepper@gmail.com>
7385
7386 [BZ #11724]
7387 * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
7388 of constructors.
7389 * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
7390 of destructors.
7391 (_dl_fini): Don't call _dl_sort_fini if there is only one object.
7392
7393 [BZ #11724]
7394 * elf/Makefile: Add rules to build and run new test.
7395 * elf/tst-initorder.c: New file.
7396 * elf/tst-initorder.exp: New file.
7397 * elf/tst-initordera1.c: New file.
7398 * elf/tst-initordera2.c: New file.
7399 * elf/tst-initordera3.c: New file.
7400 * elf/tst-initordera4.c: New file.
7401 * elf/tst-initorderb1.c: New file.
7402 * elf/tst-initorderb2.c: New file.
7403 * elf/tst-order-a1.c: New file.
7404 * elf/tst-order-a2.c: New file.
7405 * elf/tst-order-a3.c: New file.
7406 * elf/tst-order-a4.c: New file.
7407 * elf/tst-order-b1.c: New file.
7408 * elf/tst-order-b2.c: New file.
7409 * elf/tst-order-main.c: New file.
7410 New test case by George Gensure <werkt0@gmail.com>.
7411
74122010-10-01 Andreas Schwab <schwab@redhat.com>
7413
7414 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
7415 decoding ACE if AI_CANONIDN.
7416
74172011-01-18 Ulrich Drepper <drepper@gmail.com>
7418
7419 * elf/Makefile: Build IFUNC tests unless multi-arch = no.
7420
74212011-01-17 Ulrich Drepper <drepper@gmail.com>
7422
7423 * version.h (RELEASE): Bump for 2.13 release.
7424 * include/features.h: (__GLIBC_MINOR__): Bump to 13.
7425
7426 * io/fcntl.h: Define AT_NO_AUTOMOUNT.
7427
7428 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
7429 MADV_NOHUGEPAGE.
7430 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
7431 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
7432 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7433 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7434 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7435 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
7436
7437 * posix/getconf.c: Update copyright year.
7438 * catgets/gencat.c: Likewise.
7439 * csu/version.c: Likewise.
7440 * debug/catchsegv.sh: Likewise.
7441 * debug/xtrace.sh: Likewise.
7442 * elf/ldconfig.c: Likewise.
7443 * elf/ldd.bash.in: Likewise.
7444 * elf/sprof.c (print_version): Likewise.
7445 * iconv/iconv_prog.c: Likewise.
7446 * iconv/iconvconfig.c: Likewise.
7447 * locale/programs/locale.c: Likewise.
7448 * locale/programs/localedef.c: Likewise.
7449 * malloc/memusage.sh: Likewise.
7450 * malloc/mtrace.pl: Likewise.
7451 * nscd/nscd.c (print_version): Likewise.
7452 * nss/getent.c: Likewise.
7453
7454 * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
7455 PF_CAIF, and PF_ALG.
7456 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7457
74582011-01-16 Andreas Schwab <schwab@linux-m68k.org>
7459
7460 * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
7461 (modules-names): Use them.
7462 (ifunc-test-modules, ifunc-pie-tests): Define.
7463 (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
7464 tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
7465 (test-extras): Likewise.
7466 ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
7467 $(compile-command.c).
7468 ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
7469 (all-built-dso): Define.
7470 (check-textrel.out, check-execstack.out): Depend on it.
7471
7472 * configure.in: Don't override --enable-multi-arch.
7473
74742011-01-15 Ulrich Drepper <drepper@gmail.com>
7475
7476 [BZ #6812]
7477 * nscd/hstcache.c (tryagain): Define.
7478 (cache_addhst): Return tryagain not notfound for temporary errors.
7479 (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
7480 failed.
7481
74822011-01-14 Ulrich Drepper <drepper@gmail.com>
7483
7484 [BZ #10563]
7485 * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
7486 to make the syscall.
7487 * sysdeps/unix/sysv/linux/setgroups.c: New file.
7488
7489 [BZ #12378]
7490 * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
7491 and fall back to matching as normal character if the string ends before
7492 the matching ']' is found. This is what POSIX requires.
7493 * posix/testfnm.c: Adjust test result.
7494 * posix/globtest.sh: Adjust test result. Add new test.
7495 * posix/tst-fnmatch.input: Likewise.
7496 * posix/tst-fnmatch2.c: Add new test.
7497
74982010-12-28 Andreas Schwab <schwab@linux-m68k.org>
7499
7500 * elf/Makefile (check-execstack): Revert last change. Depend on
7501 check-execstack.h.
7502 (check-execstack.h): New target.
7503 (generated): Add check-execstack.h.
7504 * elf/check-execstack.c: Include "check-execstack.h".
7505 (main): Revert last change.
7506 (handle_file): Return zero if GNU_STACK is absent and
7507 DEFAULT_STACK_PERMS doesn't include PF_X.
7508
75092011-01-13 Ulrich Drepper <drepper@gmail.com>
7510
7511 * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
7512 in child fails because the descriptor is already closed.
7513 * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
7514 * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
7515 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
7516
7517 [BZ #12397]
7518 * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
7519 syscall.
7520
7521 [BZ #10484]
7522 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
7523 temporary buffer used to handle multi lookups locally.
7524 * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
7525
75262011-01-12 Ulrich Drepper <drepper@gmail.com>
7527
7528 * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
7529 loader is ld.so.
7530
75312011-01-10 Paul Pluzhnikov <ppluzhnikov@google.com>
7532
7533 * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
7534 alignment for SSE2.
7535
75362011-01-12 Ulrich Drepper <drepper@gmail.com>
7537
7538 [BZ #12394]
7539 * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
7540 characters. When rounding increased number of integer digits recompute
7541 number of groups.
7542 * stdio-common/tst-grouping.c: New file.
7543 * stdio-common/Makefile: Add rules to build and run tst-grouping.
7544
75452011-01-09 Ulrich Drepper <drepper@gmail.com>
7546
7547 * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
7548 __FD_CLR, and __FS_ISSET. gcc generates better code on its own.
7549
7550 * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
7551 void.
7552 * bits/select.h: Likewise.
7553
75542011-01-08 Ulrich Drepper <drepper@gmail.com>
7555
7556 * po/ja.po: Update from translation team.
7557
75582011-01-04 David S. Miller <davem@sunset.davemloft.net>
7559
7560 [BZ #11155]
7561 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
7562 implementation just like for lxstat, fxstatat, et al.
7563
75642010-12-27 Jim Meyering <meyering@redhat.com>
7565
7566 [BZ #12348]
7567 * posix/regexec.c (build_trtable): Return failure indication upon
7568 calloc failure. Otherwise, re_search_internal could infloop on OOM.
7569
75702010-12-25 Ulrich Drepper <drepper@gmail.com>
7571
7572 [BZ #12201]
7573 * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
7574 * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
7575 * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
7576 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
7577
7578 [BZ #12207]
7579 * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
7580
7581 [BZ #12204]
7582 * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
7583 * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
7584
75852010-12-15 H.J. Lu <hongjiu.lu@intel.com>
7586
7587 * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
7588 * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
7589 script has SORT_BY_INIT_PRIORITY.
7590 * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
7591 NO_CTORS_DTORS_SECTIONS is defined.
7592 * elf/soinit.c: Likewise.
7593 * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
7594 NO_CTORS_DTORS_SECTIONS is defined.
7595 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7596 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7597 * sysdeps/sh/init-first.c: Likewise.
7598 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7599
76002010-12-24 Ulrich Drepper <drepper@gmail.com>
7601
7602 * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
7603 always use the slow path.
7604
76052010-12-15 Ryan S. Arnold <rsa@us.ibm.com>
7606
7607 * elf/Makefile: (check-execstack): Replace $(native-compile) with a
7608 similar rule which adds the sysdep directories to the header search in
7609 order to pick up the correct platform stackinfo.h.
7610 * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
7611 perform test if it is, otherwise return successfully without testing.
7612 * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
7613 DEFAULT_STACK_PERMS define in stackinfo.h.
7614 * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
7615 defined in stackinfo.h.
7616 * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
7617 DEFAULT_STACK_PERMS defined in stackinfo.h.
7618 * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
7619 * sysdeps/ia64/stackinfo.h: Likewise.
7620 * sysdeps/s390/stackinfo.h: Likewise.
7621 * sysdeps/sh/stackinfo.h: Likewise.
7622 * sysdeps/sparc/stackinfo.h: Likewise.
7623 * sysdeps/x86_64/stackinfo.h: Likewise.
7624 * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
7625 PF_X for powerpc64. Retain PF_X for powerpc32.
7626
76272010-12-19 Ulrich Drepper <drepper@gmail.com>
7628
7629 * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
7630 accurately.
7631 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
7632 GETDENTS_64BIT_ALIGNED.
7633
76342010-12-14 Ulrich Drepper <dreper@gmail.com>
7635
7636 * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
7637
76382010-12-10 Andreas Schwab <schwab@redhat.com>
7639
7640 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
7641 _GNU_SOURCE.
7642
7643 * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
7644 * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
7645 Remove __restrict.
7646 (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
7647 (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
7648
76492010-12-09 Ulrich Drepper <drepper@gmail.com>
7650
7651 [BZ #11655]
7652 * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
7653 are initialized.
7654
76552010-12-09 Jakub Jelinek <jakub@redhat.com>
7656
7657 * string/bits/string3.h (memmove, bcopy): Remove __restrict.
7658
76592010-12-03 Ulrich Drepper <drepper@gmail.com>
7660
7661 * po/it.po: Update from translation team.
7662
76632010-12-01 H.J. Lu <hongjiu.lu@intel.com>
7664
7665 * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
7666 unused codes.
7667
76682010-11-30 Ulrich Drepper <drepper@gmail.com>
7669
7670 * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
7671
76722010-11-24 Andreas Schwab <schwab@redhat.com>
7673
7674 * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
7675 specially.
7676 (gaih_getanswer_slice): Likewise.
7677
76782010-10-20 Jakub Jelinek <jakub@redhat.com>
7679
7680 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
7681
76822010-05-31 Petr Baudis <pasky@suse.cz>
7683
7684 [BZ #11149]
7685 * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
7686 silently even in the chroot mode.
7687
76882010-11-22 Ulrich Drepper <drepper@gmail.com>
7689
7690 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
7691 last patch a bit. Pretty printing
7692
76932010-05-31 Petr Baudis <pasky@suse.cz>
7694
7695 [BZ #10085]
7696 * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
7697 initialization of skip_initgroups_dyn.
7698
76992010-11-19 Ulrich Drepper <drepper@gmail.com>
7700
7701 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
7702 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
7703
77042010-11-16 Ulrich Drepper <drepper@gmail.com>
7705
7706 * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
7707
77082010-11-11 Andreas Schwab <schwab@redhat.com>
7709
7710 * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
7711 * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
7712 (tst-fnmatch-ENV): Set MALLOC_TRACE.
7713 ($(objpfx)tst-fnmatch-mem): New rule.
7714 (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
7715 * posix/tst-fnmatch.c (main): Call mtrace.
7716
77172010-11-11 H.J. Lu <hongjiu.lu@intel.com>
7718
7719 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7720 Support Intel processor model 6 and model 0x2c.
7721
77222010-11-10 Luis Machado <luisgpm@br.ibm.com>
7723
7724 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
7725 signed comparison.
7726
77272010-11-09 H.J. Lu <hongjiu.lu@intel.com>
7728
7729 [BZ #12205]
7730 * string/test-strncasecmp.c (check_result): New function.
7731 (do_one_test): Use it.
7732 (check1): New function.
7733 (test_main): Use it.
7734 * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
7735 Support strcasecmp and strncasecmp.
7736
77372010-11-08 Ulrich Drepper <drepper@gmail.com>
7738
7739 [BZ #12194]
7740 * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
7741 * sysdeps/x86_64/bits/byteswap.h: Likewise.
7742
77432010-11-07 H.J. Lu <hongjiu.lu@intel.com>
7744
7745 * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
7746 IFUNC support.
7747 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7748 memset-x86-64.
7749 * sysdeps/x86_64/multiarch/bzero.S: New file.
7750 * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
7751 * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
7752 * sysdeps/x86_64/multiarch/memset.S: New file.
7753 * sysdeps/x86_64/multiarch/memset_chk.S: New file.
7754 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7755 Set bit_Prefer_SSE_for_memop for Intel processors.
7756 * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
7757 Define.
7758 (index_Prefer_SSE_for_memop): Define.
7759 (HAS_PREFER_SSE_FOR_MEMOP): Define.
7760
77612010-11-04 Luis Machado <luisgpm@br.ibm.com>
7762
7763 * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
7764 * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
7765
77662010-11-03 H.J. Lu <hongjiu.lu@intel.com>
7767
7768 [BZ #12191]
7769 * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
7770 (__x86_64_raw_data_cache_size_half): Likewise.
7771 (__x86_64_raw_shared_cache_size): Likewise.
7772 (__x86_64_raw_shared_cache_size_half): Likewise.
7773
7774 * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
7775 (__x86_64_raw_data_cache_size_half): Likewise.
7776 (__x86_64_raw_shared_cache_size): Likewise.
7777 (__x86_64_raw_shared_cache_size_half): Likewise.
7778 (init_cacheinfo): Set __x86_64_raw_data_cache_size,
7779 __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
7780 and __x86_64_raw_shared_cache_size_half. Round
7781 __x86_64_data_cache_size_half, __x86_64_data_cache_size
7782 __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
7783 to multiple of 256 bytes.
7784
77852010-11-03 Ulrich Drepper <drepper@gmail.com>
7786
7787 [BZ #12167]
7788 * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
7789 of inacessible symlinks. Verify result of symlink before returning it.
7790 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
7791 Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
7792
77932010-10-28 Erich Ritz <erichritz@gmail.com>
7794
7795 * math/math.h (isinf): Fix typo in comment.
7796
77972010-11-01 Ulrich Drepper <drepper@gmail.com>
7798
7799 * po/da.po: Update from translation team.
7800
78012010-10-26 Ulrich Drepper <drepper@gmail.com>
7802
7803 * elf/rtld.c (dl_main): Move assertion after the point where rtld map
7804 is added to the list.
7805
78062010-10-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7807 Ulrich Drepper <drepper@gmail.com>
7808
7809 * elf/dl-object.c (_dl_new_object): Don't append the new object to
7810 the global list here. Move code to...
7811 (_dl_add_to_namespace_list): ...here. New function.
7812 * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
7813 * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
7814 * elf/dl-load.c (lose): Don't remove the element from the list.
7815 (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
7816 (_dl_map_object): Likewise.
7817
78182010-10-25 Ulrich Drepper <drepper@gmail.com>
7819
7820 [BZ #12159]
7821 * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
7822 into all bytes of SSE register.
7823 Patch by Richard Li <richardpku@gmail.com>.
7824
78252010-10-24 Ulrich Drepper <drepper@gmail.com>
7826
7827 [BZ #12140]
7828 * malloc/malloc.c (_int_free): Fill correct number of bytes when
7829 perturbing.
7830
78312010-10-20 Michael B. Brutman <brutman@us.ibm.com>
7832
7833 * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
7834 * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
7835 * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
7836 * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
7838 submachine.
7839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
7840
78412010-10-22 Andreas Schwab <schwab@redhat.com>
7842
7843 * include/dlfcn.h (__RTLD_SECURE): Define.
7844 * elf/dl-load.c (_dl_map_object): Remove preloaded parameter. Use
7845 mode & __RTLD_SECURE instead.
7846 (open_path): Rename preloaded parameter to secure.
7847 * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
7848 * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
7849 * elf/dl-deps.c (openaux): Likewise.
7850 * elf/rtld.c (struct map_args): Remove is_preloaded.
7851 (map_doit): Don't use it.
7852 (dl_main): Likewise.
7853 (do_preload): Use __RTLD_SECURE instead of is_preloaded.
7854 (dlmopen_doit): Add __RTLD_SECURE to mode bits.
7855
78562010-09-09 Andreas Schwab <schwab@redhat.com>
7857
7858 * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
7859 (sysd-rules-targets): Remove duplicates.
7860 * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
7861 rtld-%.$o dependency.
7862
78632010-10-18 Andreas Schwab <schwab@redhat.com>
7864
7865 * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
7866 _dl_map_object do it.
7867
78682010-10-19 Ulrich Drepper <drepper@gmail.com>
7869
7870 * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
7871 fast fma builtins, define the macros in the C99 standard.
7872 (FP_FAST_FMAF): Likewise.
7873 (FP_FAST_FMAL): Likewise.
7874 * sysdeps/x86_64/bits/mathdef.h: Likewise.
7875
7876 * bits/mathdef.h: Update copyright year.
7877 * sysdeps/powerpc/bits/mathdef.h: Likewise.
7878
78792010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
7880
7881 * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
7882 builtins, define the macros in the C99 standard.
7883 (FP_FAST_FMAF): Likewise.
7884 (FP_FAST_FMAL): Likewise.
7885 * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
7886 multiply/add.
7887 (FP_FAST_FMAF): Likewise.
7888
78892010-10-15 Jakub Jelinek <jakub@redhat.com>
7890
7891 [BZ #3268]
7892 * math/libm-test.inc (fma_test): Some new testcases.
7893 * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
7894 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
7895 y and infinite z. Do multiplication by C already in long double.
7896 * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
7897 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
7898 y and infinite z. Do bitwise or of inexact bit into u.d.
7899 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
7900 * sysdeps/i386/fpu/s_fmaf.S: Removed.
7901 * sysdeps/i386/fpu/s_fma.S: Removed.
7902 * sysdeps/i386/fpu/s_fmal.S: Removed.
7903
79042010-10-16 Jakub Jelinek <jakub@redhat.com>
7905
7906 [BZ #3268]
7907 * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
7908 * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
7909 computation is not scheduled after fetestexcept. Fix value
7910 of minimum denormal long double.
7911
79122010-10-14 Jakub Jelinek <jakub@redhat.com>
7913
7914 [BZ #3268]
7915 * math/libm-test.inc (fma_test): Add some more tests.
7916 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
7917 correctly.
7918
79192010-10-15 Andreas Schwab <schwab@redhat.com>
7920
7921 * scripts/data/localplt-s390-linux-gnu.data: New file.
7922 * scripts/data/localplt-s390x-linux-gnu.data: New file.
7923
79242010-10-13 Jakub Jelinek <jakub@redhat.com>
7925
7926 [BZ #3268]
7927 * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
7928 * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
7929 instead of dbl-64.
7930 * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
7931 inlines.
7932 * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
7933 * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
7934 if one of x and y is very large and the other is subnormal.
7935 * sysdeps/s390/fpu/s_fmaf.c: New file.
7936 * sysdeps/s390/fpu/s_fma.c: New file.
7937 * sysdeps/powerpc/fpu/s_fmaf.S: New file.
7938 * sysdeps/powerpc/fpu/s_fma.S: New file.
7939 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
7940 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
7941 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
7942
79432010-10-12 Jakub Jelinek <jakub@redhat.com>
7944
7945 [BZ #3268]
7946 * math/libm-test.inc (fma_test): Add some more fmaf tests, add
7947 fma tests.
7948 * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
7949 * sysdeps/ieee754/dbl-64/s_fma.c: New file.
7950 * sysdeps/i386/i686/multiarch/s_fma.c: Include
7951 sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
7952 * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
7953 * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
7954 * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
7955
79562010-10-12 Ulrich Drepper <drepper@redhat.com>
7957
7958 [BZ #12078]
7959 * posix/regcomp.c (parse_branch): One more memory leak plugged.
7960 * posix/bug-regex31.input: Add test case.
7961
79622010-10-11 Ulrich Drepper <drepper@gmail.com>
7963
7964 * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
7965 * posix/bug-regex31.input: New file.
7966
7967 [BZ #12078]
7968 * posix/regcomp.c (parse_branch): Free memory when allocation failed.
7969 (parse_sub_exp): Fix last change, use postorder.
7970
7971 * posix/bug-regex31.c: New file.
7972 * posix/Makefile: Add rules to build and run bug-regex31.
7973
7974 * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
7975
7976 [BZ #12078]
7977 * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
7978
7979 [BZ #12108]
7980 * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
7981 to have entries in sys_siglist.
7982
7983 [BZ #12093]
7984 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
7985 be NULL.
7986
79872010-10-07 Jakub Jelinek <jakub@redhat.com>
7988
7989 [BZ #3268]
7990 * math/libm-test.inc (fma_test): Add 2 fmaf tests.
7991 * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
7992 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
7993 sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
7994 * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
7995 * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
7996 * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
7997 * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
7998 * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
7999 * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
8000 * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
8001 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
8002 * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
8003 * math/ftestexcept.c (fetestexcept): Likewise.
8004 * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
8005 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
8006 * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
8007 * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
8008 * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
8009 * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
8010 * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
8011
80122010-10-11 Ulrich Drepper <drepper@gmail.com>
8013
8014 [BZ #12107]
8015 * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
8016 newline.
8017
80182010-10-06 Ulrich Drepper <drepper@gmail.com>
8019
8020 * string/bug-strstr1.c: New file.
8021 * string/Makefile: Add rules to build and run bug-strstr1.
8022
80232010-10-05 Eric Blake <eblake@redhat.com>
8024
8025 [BZ #12092]
8026 * string/str-two-way.h (two_way_long_needle): Always clear memory
8027 when skipping input due to the shift table.
8028
80292010-10-03 Ulrich Drepper <drepper@gmail.com>
8030
8031 [BZ #12005]
8032 * malloc/mcheck.c: Handle large requests.
8033
8034 [BZ #12077]
8035 * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
8036 for strncmp and strncasecmp.
8037 * string/stratcliff.c: Add tests for strcmp and strncmp.
8038 * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
8039
80402010-09-28 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
8041
8042 * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
8043 __set_fpscr.
8044
80452010-09-30 Andreas Jaeger <aj@suse.de>
8046
8047 * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
8048 (CGROUP_SUPER_MAGIC): Define.
8049 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8050 Handle btrfs and cgroup file systems.
8051 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
8052 Likewise.
8053
80542010-09-27 Luis Machado <luisgpm@br.ibm.com>
8055
8056 * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
8057 * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
8058
80592010-09-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8060
8061 [BZ #12067]
8062 * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
8063 trying to locate the ELF header.
8064
80652010-09-27 Andreas Schwab <schwab@redhat.com>
8066
8067 [BZ #11611]
8068 * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
8069 Mask out sign-bit copies when constructing f_fsid.
8070
80712010-09-24 Petr Baudis <pasky@suse.cz>
8072
8073 * debug/stack_chk_fail_local.c: Add missing licence exception.
8074 * debug/warning-nop.c: Likewise.
8075
80762010-09-15 Joseph Myers <joseph@codesourcery.com>
8077
8078 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
8079 implementing getdents64 using getdents syscall, set d_type if
8080 __ASSUME_GETDENTS32_D_TYPE.
8081
80822010-09-16 Andreas Schwab <schwab@redhat.com>
8083
8084 * elf/dl-close.c (free_slotinfo, free_mem): Move to...
8085 * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
8086
80872010-09-21 Ulrich Drepper <drepper@redhat.com>
8088
8089 [BZ #12037]
8090 * posix/unistd.h: Undo change of feature selection for ftruncate from
8091 2010-01-11.
8092
80932010-09-20 Ulrich Drepper <drepper@redhat.com>
8094
8095 * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
8096 detection.
8097
80982010-09-20 Andreas Schwab <schwab@redhat.com>
8099
8100 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
8101 fanotify_mark.
8102 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
8103
81042010-09-14 Andreas Schwab <schwab@redhat.com>
8105
8106 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
8107 variables after CHECK_SP call.
8108 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
8109
81102010-09-13 Andreas Schwab <schwab@redhat.com>
8111 Ulrich Drepper <drepper@redhat.com>
8112
8113 * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
8114 re-relocationg ld.so.
8115 * elf/dl-support.c (_dl_non_dynamic_init): And here after the
8116 _dl_init_paths call.
8117 * elf/dl-load.c (_dl_init_paths). Don't set GLRO(dl_init_all_dirs)
8118 here anymore.
8119
81202010-09-14 Ulrich Drepper <drepper@redhat.com>
8121
8122 * resolv/res_init.c (__res_vinit): Count the default server we added.
8123
81242010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
8125 Ulrich Drepper <drepper@redhat.com>
8126
8127 [BZ #11968]
8128 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
8129 (____longjmp_chk): Use %ebx for saving value across system call.
8130 Add unwind info.
8131
81322010-09-06 Andreas Schwab <schwab@redhat.com>
8133
8134 * manual/Makefile: Don't mix pattern rules with normal rules.
8135
81362010-09-05 Andreas Schwab <schwab@linux-m68k.org>
8137
8138 * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
8139 operation.
8140 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8141 * libio/iofopncook.c (_IO_cookie_init): Likewise.
8142 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8143 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8144 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8145 Likewise.
8146
81472010-09-04 Ulrich Drepper <drepper@redhat.com>
8148
8149 [BZ #11979]
8150 * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
8151 IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
8152
81532010-09-02 Ulrich Drepper <drepper@redhat.com>
8154
8155 * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
8156 * sysdeps/x86_64/addmul_1.S: Likewise.
8157 * sysdeps/x86_64/lshift.S: Likewise.
8158 * sysdeps/x86_64/mul_1.S: Likewise.
8159 * sysdeps/x86_64/rshift.S: Likewise.
8160 * sysdeps/x86_64/sub_n.S: Likewise.
8161 * sysdeps/x86_64/submul_1.S: Likewise.
8162
81632010-09-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8164
8165 This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
8166 Define __sched_param instead of SCHED_* and sched_param when
8167 <bits/sched.h> is included with __need_schedparam defined.
8168 * bits/sched.h [__need_schedparam]
8169 (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
8170 [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
8171 (__defined_schedparam): Define to 1.
8172 (__sched_param): New structure, identical to sched_param.
8173 (__need_schedparam): Undefine.
8174
81752010-08-31 Mike Frysinger <vapier@gentoo.org>
8176
8177 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
8178 (epoll_create1): Declare.
8179
8180 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
8181
81822010-08-31 Andreas Schwab <schwab@redhat.com>
8183
8184 [BZ #7066]
8185 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
8186 shifting retval into place.
8187
81882010-09-01 Ulrich Drepper <drepper@redhat.com>
8189
8190 * nis/rpcsvc/nis.h: Update copyright notice.
8191 * nis/rpcsvc/nis.x: Likewise.
8192 * nis/rpcsvc/nis_callback.h: Likewise.
8193 * nis/rpcsvc/nis_callback.x: Likewise.
8194 * nis/rpcsvc/nis_object.x: Likewise.
8195 * nis/rpcsvc/nis_tags.h: Likewise.
8196 * nis/rpcsvc/yp.h: Likewise.
8197 * nis/rpcsvc/yp.x: Likewise.
8198 * nis/rpcsvc/ypupd.h: Likewise.
8199 * nis/yp_xdr.c: Likewise.
8200 * nis/ypupdate_xdr.c: Likewise.
8201
8202 * sunrpc/pm_getport.c (__libc_rpc_getport): New function. This is
8203 mainly the body of pmap_getport. Add parameters to specify timeouts.
8204 (pmap_getport): Use __libc_rpc_getport.
8205 * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
8206 * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
8207 * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
8208
82092010-08-31 Andreas Schwab <schwab@linux-m68k.org>
8210
8211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
8212 fanotify_mark.
8213
82142010-08-27 Roland McGrath <roland@redhat.com>
8215
8216 * sysdeps/i386/i686/multiarch/Makefile
8217 (CFLAGS-varshift.c): New variable.
8218
82192010-08-27 Ulrich Drepper <drepper@redhat.com>
8220
8221 * sysdeps/i386/i686/multiarch/varshift.S: File removed.
8222 * sysdeps/i386/i686/multiarch/varshift.c: New file.
8223
8224 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
8225
8226 * sysdeps/x86_64/strlen.S: Minimal code improvement.
8227
82282010-08-26 H.J. Lu <hongjiu.lu@intel.com>
8229
8230 * sysdeps/x86_64/strlen.S: Unroll the loop.
8231 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8232 strlen-sse2 strlen-sse2-bsf.
8233 * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
8234 __strlen_no_bsf if bit_Slow_BSF is set.
8235 (__strlen_sse42): Removed.
8236 * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
8237 * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
8238
82392010-08-25 Roland McGrath <roland@redhat.com>
8240
8241 * sysdeps/x86_64/multiarch/varshift.S: File removed.
8242 * sysdeps/x86_64/multiarch/varshift.c: New file.
8243 * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
8244 * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
8245 * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
8246 * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8247
82482010-08-25 H.J. Lu <hongjiu.lu@intel.com>
8249
8250 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8251 strlen-sse2 strlen-sse2-bsf.
8252 * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
8253 __strlen_sse2_bsf if bit_Slow_BSF is unset.
8254 (__strlen_sse2): Removed.
8255 * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
8256 * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
8257 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
8258 bit_Slow_BSF for Atom.
8259 * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
8260 (index_Slow_BSF): Define.
8261 (HAS_SLOW_BSF): Define.
8262
82632010-08-25 Ulrich Drepper <drepper@redhat.com>
8264
8265 [BZ #10851]
8266 * resolv/res_init.c (__res_vinit): When no server address at all
8267 is given default to loopback.
8268
82692010-08-24 Roland McGrath <roland@redhat.com>
8270
8271 * configure.in: Remove config-name.h generation.
8272 * configure: Regenerated.
8273 * config-name.in: File removed.
8274 * scripts/config-uname.sh: New file.
8275 * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
8276 ($(objdir)config-name.h): New target.
8277
8278 * sunrpc/rpc_parse.h: Avoid nested comment.
8279
82802010-08-24 Richard Henderson <rth@redhat.com>
8281 Ulrich Drepper <drepper@redhat.com>
8282 H.J. Lu <hongjiu.lu@intel.com>
8283
8284 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
8285 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
8286 * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
8287 Replace _mm_srli_si128 with __m128i_shift_right. Replace
8288 _mm_alignr_epi8 with _mm_loadu_si128.
8289 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
8290 * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
8291 (__m128i_shift_right): Removed.
8292 * sysdeps/i386/i686/multiarch/varshift.h: New file.
8293 * sysdeps/i386/i686/multiarch/varshift.S: New file.
8294 * sysdeps/x86_64/multiarch/varshift.h: New file.
8295 * sysdeps/x86_64/multiarch/varshift.S: New file.
8296
82972010-08-21 Mike Frysinger <vapier@gentoo.org>
8298
8299 * configure.in: Move assembler checks to before sysdep dir checking.
8300
83012010-08-20 Petr Baudis <pasky@suse.cz>
8302
8303 * LICENSES: Sync the sunrpc license.
8304
83052010-08-19 Ulrich Drepper <drepper@redhat.com>
8306
8307 * sunrpc/auth_des.c: Update copyright notice once again.
8308 * sunrpc/auth_none.c: Likewise.
8309 * sunrpc/auth_unix.c: Likewise.
8310 * sunrpc/authdes_prot.c: Likewise.
8311 * sunrpc/authuxprot.c: Likewise.
8312 * sunrpc/bindrsvprt.c: Likewise.
8313 * sunrpc/clnt_gen.c: Likewise.
8314 * sunrpc/clnt_perr.c: Likewise.
8315 * sunrpc/clnt_raw.c: Likewise.
8316 * sunrpc/clnt_simp.c: Likewise.
8317 * sunrpc/clnt_tcp.c: Likewise.
8318 * sunrpc/clnt_udp.c: Likewise.
8319 * sunrpc/clnt_unix.c: Likewise.
8320 * sunrpc/des_crypt.c: Likewise.
8321 * sunrpc/des_soft.c: Likewise.
8322 * sunrpc/get_myaddr.c: Likewise.
8323 * sunrpc/getrpcport.c: Likewise.
8324 * sunrpc/key_call.c: Likewise.
8325 * sunrpc/key_prot.c: Likewise.
8326 * sunrpc/openchild.c: Likewise.
8327 * sunrpc/pm_getmaps.c: Likewise.
8328 * sunrpc/pm_getport.c: Likewise.
8329 * sunrpc/pmap_clnt.c: Likewise.
8330 * sunrpc/pmap_prot.c: Likewise.
8331 * sunrpc/pmap_prot2.c: Likewise.
8332 * sunrpc/pmap_rmt.c: Likewise.
8333 * sunrpc/rpc/auth.h: Likewise.
8334 * sunrpc/rpc/auth_unix.h: Likewise.
8335 * sunrpc/rpc/clnt.h: Likewise.
8336 * sunrpc/rpc/des_crypt.h: Likewise.
8337 * sunrpc/rpc/key_prot.h: Likewise.
8338 * sunrpc/rpc/netdb.h: Likewise.
8339 * sunrpc/rpc/pmap_clnt.h: Likewise.
8340 * sunrpc/rpc/pmap_prot.h: Likewise.
8341 * sunrpc/rpc/pmap_rmt.h: Likewise.
8342 * sunrpc/rpc/rpc.h: Likewise.
8343 * sunrpc/rpc/rpc_des.h: Likewise.
8344 * sunrpc/rpc/rpc_msg.h: Likewise.
8345 * sunrpc/rpc/svc.h: Likewise.
8346 * sunrpc/rpc/svc_auth.h: Likewise.
8347 * sunrpc/rpc/types.h: Likewise.
8348 * sunrpc/rpc/xdr.h: Likewise.
8349 * sunrpc/rpc_clntout.c: Likewise.
8350 * sunrpc/rpc_cmsg.c: Likewise.
8351 * sunrpc/rpc_common.c: Likewise.
8352 * sunrpc/rpc_cout.c: Likewise.
8353 * sunrpc/rpc_dtable.c: Likewise.
8354 * sunrpc/rpc_hout.c: Likewise.
8355 * sunrpc/rpc_main.c: Likewise.
8356 * sunrpc/rpc_parse.c: Likewise.
8357 * sunrpc/rpc_parse.h: Likewise.
8358 * sunrpc/rpc_prot.c: Likewise.
8359 * sunrpc/rpc_sample.c: Likewise.
8360 * sunrpc/rpc_scan.c: Likewise.
8361 * sunrpc/rpc_scan.h: Likewise.
8362 * sunrpc/rpc_svcout.c: Likewise.
8363 * sunrpc/rpc_tblout.c: Likewise.
8364 * sunrpc/rpc_util.c: Likewise.
8365 * sunrpc/rpc_util.h: Likewise.
8366 * sunrpc/rpcinfo.c: Likewise.
8367 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
8368 * sunrpc/rpcsvc/key_prot.x: Likewise.
8369 * sunrpc/rpcsvc/klm_prot.x: Likewise.
8370 * sunrpc/rpcsvc/mount.x: Likewise.
8371 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
8372 * sunrpc/rpcsvc/nlm_prot.x: Likewise.
8373 * sunrpc/rpcsvc/rex.x: Likewise.
8374 * sunrpc/rpcsvc/rstat.x: Likewise.
8375 * sunrpc/rpcsvc/rusers.x: Likewise.
8376 * sunrpc/rpcsvc/sm_inter.x: Likewise.
8377 * sunrpc/rpcsvc/spray.x: Likewise.
8378 * sunrpc/rpcsvc/yppasswd.x: Likewise.
8379 * sunrpc/rtime.c: Likewise.
8380 * sunrpc/svc.c: Likewise.
8381 * sunrpc/svc_auth.c: Likewise.
8382 * sunrpc/svc_authux.c: Likewise.
8383 * sunrpc/svc_raw.c: Likewise.
8384 * sunrpc/svc_run.c: Likewise.
8385 * sunrpc/svc_simple.c: Likewise.
8386 * sunrpc/svc_tcp.c: Likewise.
8387 * sunrpc/svc_udp.c: Likewise.
8388 * sunrpc/svc_unix.c: Likewise.
8389 * sunrpc/svcauth_des.c: Likewise.
8390 * sunrpc/xcrypt.c: Likewise.
8391 * sunrpc/xdr.c: Likewise.
8392 * sunrpc/xdr_array.c: Likewise.
8393 * sunrpc/xdr_float.c: Likewise.
8394 * sunrpc/xdr_mem.c: Likewise.
8395 * sunrpc/xdr_rec.c: Likewise.
8396 * sunrpc/xdr_ref.c: Likewise.
8397 * sunrpc/xdr_sizeof.c: Likewise.
8398 * sunrpc/xdr_stdio.c: Likewise.
8399
8400 * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
8401 handling.
8402
84032010-08-19 Andreas Schwab <schwab@redhat.com>
8404
8405 * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
8406
84072010-08-19 Luis Machado <luisgpm@br.ibm.com>
8408
8409 * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
8410 * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
8411 * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
8412 * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
8413 * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
8414 * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
8415 * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
8416 * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
8417 * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
8418 * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
8419 * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
8420 * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
8421 * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
8422 * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
8423
84242010-07-26 Anton Blanchard <anton@samba.org>
8425
8426 * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
8427 * malloc/arena.c (heap_trim): Likewise.
8428
84292010-08-16 Ulrich Drepper <drepper@redhat.com>
8430
8431 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
8432 here. Not...
8433 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
8434 * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
8435
84362010-08-12 H.J. Lu <hongjiu.lu@intel.com>
8437
8438 * sysdeps/i386/elf/Makefile: New file.
8439
84402010-08-14 Andreas Schwab <schwab@linux-m68k.org>
8441
8442 * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
8443 from fanotify_init.
8444 * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
8445 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8446
84472010-08-15 Ulrich Drepper <drepper@redhat.com>
8448
8449 * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
8450 of strncasecmp_l.
8451 * sysdeps/multiarch/strcmp.S: Likewise.
8452
84532010-08-14 Ulrich Drepper <drepper@redhat.com>
8454
8455 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8456 strncase_l-nonascii.
8457 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
8458 Add strncase_l-ssse3.
8459 * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
8460 * sysdeps/x86_64/strcmp.S: Likewise.
8461 * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
8462 * sysdeps/x86_64/multiarch/strncase_l.S: New file.
8463 * sysdeps/x86_64/strncase.S: New file.
8464 * sysdeps/x86_64/strncase_l-nonascii.c: New file.
8465 * sysdeps/x86_64/strncase_l.S: New file.
8466 * string/Makefile (strop-tests): Add strncasecmp.
8467 * string/test-strncasecmp.c: New file.
8468
8469 * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
8470 warning.
8471
8472 * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
8473 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
8474
84752010-08-14 Andreas Schwab <schwab@linux-m68k.org>
8476
8477 * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
8478
84792010-08-12 Ulrich Drepper <drepper@redhat.com>
8480
8481 * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
8482 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8483 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8484
84852010-05-01 Alan Modra <amodra@gmail.com>
8486
8487 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
8488 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
8489 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
8490 * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
8491 * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
8492 tidying. Don't tail-call __sigjmp_save for static lib.
8493 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
8494 save location.
8495 (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
8496 (CALL_MCOUNT): Add eh info, and nop after bl.
8497 (TAIL_CALL_SYSCALL_ERROR): New macro.
8498 (PSEUDO_RET): Use it.
8499 * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
8500 Correct save location of integer regs and cr.
8501 (_dl_profile_resolve): Correct cr save location. Delete nops
8502 after bl when SHARED. Reduce cfi size a little by better
8503 placement of cfi directives.
8504 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
8505 make a stack frame. Instead use parm save area as a temp.
8506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
8507 make a stack frame. Use TAIL_CALL_SYSCALL_ERROR.
8508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
8509 Don't make a stack frame for parent, use parm save area.
8510 Increase child stack frame to 112 bytes. Don't save unused reg,
8511 and adjust reg usage. Set up cfi on error recovery and
8512 epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
8513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
8514 (__makecontext): Add dummy nop after jump to exit.
8515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
8516 Use correct parm save area and cr save, reduce stack frame.
8517 Correct cfi for possible PSEUDO_RET frame setup.
8518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
8519 Branch to local label emitted by PSEUDO_RET rather than
8520 __syscall_error.
8521
85222010-08-12 Andreas Schwab <schwab@redhat.com>
8523
8524 [BZ #11904]
8525 * locale/programs/locale.c (print_assignment): New function.
8526 (show_locale_vars): Use it.
8527
85282010-08-11 Ulrich Drepper <drepper@redhat.com>
8529
8530 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
8531 field.
8532 (struct statfs64): Likewise.
8533 (_STATFS_F_FLAGS): Define.
8534 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
8535 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8536 Don't define if __ASSUME_STATFS_F_FLAGS is defined.
8537 (ST_VALID): Define locally.
8538 (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
8539 __statvfs_getflags, use the provided value.
8540 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8541 __ASSUME_STATFS_F_FLAGS.
8542
8543 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
8544
8545 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
8546 Add sys/fanotify.h.
8547 * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
8548 fanotify_mask for GLIBC_2.13.
8549 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
8550 fanotify_init and fanotify_mark.
8551 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8552 * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
8553
8554 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
8555 Add prlimit.
8556 * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
8557 prlimit64 for GLIBC_2.13.
8558 * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
8559 prlimit64.
8560 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
8561 syscall.
8562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8563 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
8564 * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
8565 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
8566 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise. Also
8567 add prlimit alias.
8568 * sysdeps/unix/sysv/linux/prlimit.c: New file.
8569
8570 [BZ #11903]
8571 * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
8572 Patch by Evgeni Bikov <bikovevg@iitp.ru>.
8573
8574 * nss/Makefile: Add rules to build and run tst-nss-test1.
8575 * shlib-versions: Add entry for libnss_test1.
8576 * nss/nss_test1.c: New file.
8577 * nss/tst-nss-test1.c: New file.
8578
8579 * nss/nsswitch.c (__nss_database_custom): Define new variable.
8580 (__nss_configure_lookup): Set appropriate entry in
8581 __nss_configure_lookup to true.
8582 * nss/nsswitch.h: Define enum with indeces of databases in
8583 databases and __nss_database_custom arrays. Declare
8584 __nss_database_custom.
8585 * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
8586 to avoid using nscd when custom rules are installed.
8587 * nss/getXXbyYY_r.c: Likewise.
8588 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
8589
8590 * nss/nss_files/files-parse.c: Whitespace fixes.
8591
85922010-08-09 Ulrich Drepper <drepper@redhat.com>
8593
8594 [BZ #11883]
8595 * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
8596 * posix/fnmatch_loop.c: Likewise.
8597
85982010-07-17 Andi Kleen <ak@linux.intel.com>
8599
8600 * sysdeps/i386/i386-mcount.S (__fentry__): Define.
8601 * sysdeps/x86_64/_mcount.S (__fentry__): Define.
8602 * stdlib/Versions (__fentry__): Add for GLIBC 2.13
8603 * Versions.def [GLIBC_2.13]: Add.
8604
86052010-08-06 Ulrich Drepper <drepper@redhat.com>
8606
8607 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8608 Also fail if tpwd after pwuid call is NULL.
8609
86102010-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8611
8612 * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
8613 when converting to ms.
8614
86152010-06-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
8616
8617 * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
8618 EOPNOTSUPP errors with ENOTTY.
8619 * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
8620 EOPNOTSUPP errors with ENOTTY.
8621
86222010-07-31 Ulrich Drepper <drepper@redhat.com>
8623
8624 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
8625 Add strcasecmp_l-ssse3.
8626 * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
8627 strcasecmp.
8628 * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
8629 * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
8630 * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
8631
86322010-07-30 Ulrich Drepper <drepper@redhat.com>
8633
8634 * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
8635
8636 * string/Makefile (strop-tests): Add strcasecmp.
8637 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8638 strcasecmp_l-nonascii.
8639 (gen-as-const-headers): Add locale-defines.sym.
8640 * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
8641 * sysdeps/x86_64/strcasecmp.S: New file.
8642 * sysdeps/x86_64/strcasecmp_l.S: New file.
8643 * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
8644 * sysdeps/x86_64/locale-defines.sym: New file.
8645 * string/test-strcasecmp.c: New file.
8646
8647 * string/test-strcasestr.c: Test both ends of the range of characters.
8648 * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
8649
86502010-07-29 Roland McGrath <roland@redhat.com>
8651
8652 [BZ #11856]
8653 * manual/locale.texi (Yes-or-No Questions): Fix example code.
8654
86552010-07-27 Ulrich Drepper <drepper@redhat.com>
8656
8657 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
8658 for ld.so.
8659
86602010-07-27 Andreas Schwab <schwab@redhat.com>
8661
8662 * manual/memory.texi (Malloc Tunable Parameters): Document
8663 M_PERTURB.
8664
86652010-07-26 Roland McGrath <roland@redhat.com>
8666
8667 [BZ #11840]
8668 * configure.in (-fgnu89-inline check): Set and substitute
8669 gnu89_inline, not libc_cv_gnu89_inline.
8670 * configure: Regenerated.
8671 * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
8672
86732010-07-26 Ulrich Drepper <drepper@redhat.com>
8674
8675 * string/test-strnlen.c: New file.
8676 * string/Makefile (strop-tests): Add strnlen.
8677 * string/tester.c (test_strnlen): Add a few more test cases.
8678 * string/tst-strlen.c: Better error reporting.
8679
8680 * sysdeps/x86_64/strnlen.S: New file.
8681
86822010-07-24 Ulrich Drepper <drepper@redhat.com>
8683
8684 * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
8685 lower-latency instructions.
8686
86872010-07-23 Ulrich Drepper <drepper@redhat.com>
8688
8689 * string/test-strcasestr.c: New file.
8690 * string/test-strstr.c: New file.
8691 * string/Makefile (strop-tests): Add strstr and strcasestr.
8692 * string/str-two-way.h: Don't undefine MAX.
8693 * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
8694
86952010-07-21 Andreas Schwab <schwab@redhat.com>
8696
8697 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8698 strcasestr-nonascii.
8699 (CFLAGS-strcasestr-nonascii.c): Define.
8700 * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
8701 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
8702 Remove unused attribute.
8703
87042010-07-20 Roland McGrath <roland@redhat.com>
8705
8706 * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
8707 dl_hwcap_mask as well as dl_hwcap. Without this, dsocaps matching in
8708 ld.so.cache was broken. With it, there is no way to disable dsocaps
8709 like LD_HWCAP_MASK can disable hwcaps.
8710
87112010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
8712
8713 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
8714
87152010-07-16 Ulrich Drepper <drepper@redhat.com>
8716
8717 * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
8718 call in strcasestr.
8719 * sysdeps/x86_64/multiarch/strcasestr.c: Declare
8720 __strcasestr_sse42_nonascii.
8721 * sysdeps/x86_64/multiarch/Makefile: Add rules to build
8722 strcasestr-nonascii.c.
8723 * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
8724
87252010-06-15 Luis Machado <luisgpm@br.ibm.com>
8726
8727 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
8728 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
8729 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
8730 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
8731
87322010-07-09 Ulrich Drepper <drepper@redhat.com>
8733
8734 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
8735 fcntl.
8736
87372010-07-06 Andreas Schwab <schwab@redhat.com>
8738
8739 [BZ #11577]
8740 * elf/dl-version.c (match_symbol): Don't pass NULL occation to
8741 dl_signal_cerror.
8742
87432010-07-06 Ulrich Drepper <drepper@redhat.com>
8744
8745 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
8746 _PC_PIPE_BUF using F_GETPIPE_SZ.
8747
87482010-07-05 Roland McGrath <roland@redhat.com>
8749
8750 * manual/arith.texi (Rounding Functions): Fix rint description
8751 implicit in round description.
8752
87532010-07-02 Ulrich Drepper <drepper@redhat.com>
8754
8755 * elf/Makefile: Fix linking for a few tests to make recent linker
8756 happy.
8757
87582010-06-30 Andreas Schwab <schwab@redhat.com>
8759
8760 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
8761 $(common-objpfx)libc_nonshared.a.
8762
87632010-06-21 Luis Machado <luisgpm@br.ibm.com>
8764
8765 * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
8766 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
8767 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
8768 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
8769 * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
8770 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
8771 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
8772 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
8773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
8774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
8775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
8776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
8777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
8778 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
8779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
8780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
8781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
8782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
8783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
8784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
8785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
8786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
8787 * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
8788 * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
8789 * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
8790 * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
8791 * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
8792 * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
8793 * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
8794 * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
8795 * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
8796 * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
8797 * sysdeps/powerpc/powerpc32/power7/Implies: New file.
8798 * sysdeps/powerpc/powerpc64/power7/Implies: New file.
8799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
8800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
8801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
8802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
8803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
8804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
8805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
8806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
8807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
8808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
8809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
8810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
8811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
8812 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
8813
88142010-06-25 H.J. Lu <hongjiu.lu@intel.com>
8815
8816 * debug/memmove_chk.c (__memmove_chk): Renamed to ...
8817 (MEMMOVE_CHK): ...this. Default to __memmove_chk.
8818 * string/memmove.c (memmove): Renamed to ...
8819 (MEMMOVE): ...this. Default to memmove.
8820 * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
8821 * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
8822 (END_CHK): Define.
8823 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8824 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
8825 mempcpy-ssse3-back memmove-ssse3-back.
8826 * sysdeps/x86_64/multiarch/bcopy.S: New file .
8827 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
8828 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
8829 * sysdeps/x86_64/multiarch/memcpy.S: New file.
8830 * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
8831 * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
8832 * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
8833 * sysdeps/x86_64/multiarch/memmove.c: New file.
8834 * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
8835 * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
8836 * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
8837 * sysdeps/x86_64/multiarch/mempcpy.S: New file.
8838 * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
8839 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
8840 Define.
8841 (index_Fast_Copy_Backward): Define.
8842 (HAS_ARCH_FEATURE): Define.
8843 (HAS_FAST_REP_STRING): Define.
8844 (HAS_FAST_COPY_BACKWARD): Define.
8845
88462010-06-21 Andreas Schwab <schwab@redhat.com>
8847
8848 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8849 Restore proper fallback handling.
8850
88512010-06-19 Ulrich Drepper <drepper@redhat.com>
8852
8853 [BZ #11701]
8854 * posix/group_member.c (__group_member): Correct checking loop.
8855
8856 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
8857 OOM in getpwuid_r correctly. Return error number when the caller
8858 should return, otherwise -1.
8859 (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
8860 call returning > 0 value.
8861 * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
8862
88632010-06-07 Andreas Schwab <schwab@redhat.com>
8864
8865 * dlfcn/Makefile: Remove explicit dependencies on libc.so and
8866 libc_nonshared.a from targets in modules-names.
8867
88682010-06-02 Kirill A. Shutemov <kirill@shutemov.name>
8869
8870 * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
8871 requires it.
8872
88732010-06-10 Luis Machado <luisgpm@br.ibm.com>
8874
8875 * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
8876 * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
8877 * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
8878 * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
8879
88802010-06-02 Andreas Schwab <schwab@redhat.com>
8881
8882 * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
8883
88842010-06-14 Ulrich Drepper <drepper@redhat.com>
8885
8886 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
8887 and F_GETPIPE_SZ.
8888 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8889 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8890 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8891 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8892 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8893 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
8894
88952010-06-14 Roland McGrath <roland@redhat.com>
8896
8897 * manual/libc.texinfo (@copying): Change to GFDL v1.3.
8898
88992010-06-07 Jakub Jelinek <jakub@redhat.com>
8900
8901 * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
8902 __REDIRECT followed by __THROW.
8903 * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
8904 * posix/getopt.h (getopt): Likewise.
8905
89062010-06-02 Emilio Pozuelo Monfort <pochu27@gmail.com>
8907
8908 * hurd/lookup-at.c (__file_name_lookup_at): Accept
8909 AT_SYMLINK_FOLLOW in AT_FLAGS. Fail with EINVAL if both
8910 AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
8911 in AT_FLAGS.
8912 * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
8913 * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
8914
89152010-05-28 Luis Machado <luisgpm@br.ibm.com>
8916
8917 * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
8918
89192010-05-26 H.J. Lu <hongjiu.lu@intel.com>
8920
8921 [BZ #11640]
8922 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8923 Properly check family and model.
8924
89252010-05-26 Takashi Yoshii <takashi.yoshii.zj@renesas.com>
8926
8927 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
8928
89292010-05-24 Luis Machado <luisgpm@br.ibm.com>
8930
8931 * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
8932
89332010-05-21 Ulrich Drepper <drepper@redhat.com>
8934
8935 * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
8936 symbol reference.
8937
89382010-05-19 Andreas Schwab <schwab@redhat.com>
8939
8940 * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
8941 symbol reference.
8942
89432010-05-21 Andreas Schwab <schwab@redhat.com>
8944
8945 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
8946 and internal_recvmmsg.
8947 * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
8948 * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
8949 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
8950 * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
8951
8952 * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
8953 * sunrpc/clnt_udp.c (clntudp_control): Likewise.
8954 * sunrpc/clnt_unix.c (clntunix_control): Likewise.
8955
89562010-05-20 Andreas Schwab <schwab@redhat.com>
8957
8958 * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
8959
89602010-05-17 Luis Machado <luisgpm@br.ibm.com>
8961
8962 POWER7 optimizations.
8963 * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
8964 * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
8965
89662010-05-19 Ulrich Drepper <drepper@redhat.com>
8967
8968 * version.h: Update for 2.13 development version.
8969
89702010-05-12 Andrew Stubbs <ams@codesourcery.com>
8971
8972 * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
8973 exceptions. Return 0.
8974
89752010-05-07 Roland McGrath <roland@redhat.com>
8976
8977 * elf/ldconfig.c (main): Add a const.
8978
89792010-05-06 Ulrich Drepper <drepper@redhat.com>
8980
8981 * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
8982 (args_options): Add no-idn option.
8983 (ahosts_keys_int): Add idn_flags to ai_flags.
8984 (parse_option): Handle 'i' option to clear idn_flags.
8985
8986 * malloc/malloc.c (_int_free): Possible race in the most recently
8987 added check. Only act on the data if no current modification
8988 happened.
8989
8990See ChangeLog.17 for earlier changes.