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