Avoid runtime GOT relocations in ld.so on powerpc
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
2
3         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6         Refer to _rtld_local_ro instead of _rtld_global_ro.
7         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
8         Likewise.
9         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
10         Likewise.
11         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
12         Likewise.
13         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
15         of _rtld_global, and rtld_progname instead of _dl_argv[0].
16
17         * sysdeps/powerpc/powerpc32/dl-machine.c
18         (__elf_machine_runtime_setup) [PROF]: Don't reference
19         _dl_prof_resolve.
20
21 2012-05-18  Andreas Jaeger  <aj@suse.de>
22
23         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
24         function only available for GCCs before 3.4 since GCC 3.4
25         introduced a builtin.
26         (lrint): Likewise.
27         (llrintf): Likewise.
28         (llrint): Likewise.
29         (fmaxf): Likewise.
30         (fmax): Likewise.
31         (fminf): Likewise.
32         (fmin): Likewise.
33         (rint): Likewise.
34         (rintf): Likewise.
35         (nearbyint): Likewise.
36         (nearbyintf): Likewise.
37         (ceil): Likewise.
38         (ceilf): Likewise.
39         (floor): Likewise.
40         (floorf): Likewise.
41
42 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
43
44         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
45         on both fields and cast pointer to __syscall_ulong_t.
46
47         * bits/types.h (__fsword_t): New type.
48         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
49         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
50         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
51         (__FSWORD_T_TYPE): Likewise.
52         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
53         (__FSWORD_T_TYPE): Likewise.
54         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
55         (__FSWORD_T_TYPE): Likewise.
56         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
57         (__FSWORD_T_TYPE): Likewise.
58         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
59         __SWORD_TYPE with __fsword_t.
60         (statfs64): Likewise.
61
62 2012-05-17  David S. Miller  <davem@davemloft.net>
63
64         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
65
66 2012-05-17  Andreas Jaeger  <aj@suse.de>
67
68         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
69         warning.
70
71 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
72
73         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
74
75 2012-05-17  Andreas Jaeger  <aj@suse.de>
76
77         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
78         when it is used.
79
80 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
81
82         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
83
84 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
85
86         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
87         * sysdeps/x86_64/tst-mallocalign1.c: New file.
88
89 2012-05-17  Andreas Jaeger  <aj@suse.de>
90             Carlos O'Donell  <carlos_odonell@mentor.com>
91
92         [BZ #14059]
93         * sysdeps/x86_64/multiarch/init-arch.h
94         (bit_YMM_Usable): Rename to...
95         (bit_AVX_Usable): ... this.
96         (bit_FMA4_Usable): New macro.
97         (bit_XMM_state): New macro.
98         (bit_YMM_state): New macro.
99         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
100         [__ASSEMBLER__] (index_AVX_Usable): ... this.
101         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
102         (CPUID_OSXSAVE): New macro.
103         (CPUID_AVX): New macro.
104         (CPUID_FMA4): New macro.
105         (index_YMM_Usable): Rename to...
106         (index_AVX_Usable): ... this.
107         (HAS_AVX): Use HAS_ARCH_FEATURE.
108         (HAS_FMA4): Likewise.
109         (HAS_YMM_USABLE): Remove.
110         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
111         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
112         are present.
113         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
114         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
115         * sysdeps/x86_64/multiarch/Makefile: Likewise.
116         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
117         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
118
119 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
120
121         * math/libm-test.c: Support platforms without multiple rounding modes.
122         * math/bug-nextafter.c: Support platforms without FP exceptions.
123         * math/bug-nexttoward.c: Likewise.
124         * math/test-fenv.c: Likewise.
125         * math/test-misc.c: Likewise.
126         * stdlib/bug-getcontext.c: Likewise.
127
128 2012-05-17  Andreas Jaeger  <aj@suse.de>
129
130         * manual/examples/search.c (critter_cmp): Change signature to
131         avoid warnings.
132         * manual/string.texi (Collation Functions): Likewise.
133
134 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
135
136         * bits/types.h: Fold copyright years.
137         * bits/typesizes.h: Likewise.
138         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
139         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
140         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
141         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
142         * time/time.h: Likewise.
143
144 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
145
146         [BZ #208]
147         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
148         in instead of returning them.  Return void.
149         (__libc_mallinfo): Accumulate over all arenas.
150         (__malloc_stats): Adjust for change in int_mallinfo interface.
151
152 2012-05-16  Roland McGrath  <roland@hack.frob.com>
153
154         [BZ #10375]
155         * configure.in (NM): Add AC_CHECK_TOOL for it.
156         (libc_extra_cflags): New substituted variable.
157         Check for -fstack-protector being used implicitly.
158         * configure: Regenerated.
159         * config.make.in (config-extra-cflags): New variable,
160         gets @libc_extra_cflags@.
161         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
162
163         [BZ #10375]
164         * configure.in: Check for _FORTIFY_SOURCE being predefined.
165         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
166         * configure: Regenerated.
167         * config.make.in (CPPUNDEFS): New substituted variable.
168         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
169         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
170         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
171
172 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
173
174         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
175         (mq_attr): Use __syscall_slong_t.
176
177 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
178
179         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
180         Check __x86_64__ instead of __WORDSIZE.
181         (_STAT_VER_LINUX): Likewise.
182         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
183         __syscall_ulong_t and __syscall_slong_t.
184         (stat64): Likewise.
185
186 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
187
188         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
189
190 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
191
192         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
193
194 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
195
196         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
197         __syscall_ulong_t.
198
199         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
200         include <bits/wordsize.h>.  Check __x86_64__ instead of
201         __WORDSIZE.
202         (greg_t): Use "__extension__ long long int" if __x86_64__ is
203         defined.
204         (mcontext_t): Replace "unsigned long" with "unsigned long long".
205
206         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
207         include <bits/wordsize.h>.  Check __x86_64__ instead of
208         __WORDSIZE.
209         (user_regs_struct): Use "__extension__ unsigned long long"
210         instead of "unsigned long" if __x86_64__ is defined.
211         (user): Likewise.  Pad after pointer field if __ILP32__ is
212         defined.
213
214 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
215
216         * configure.in (makeinfo): Require version 4.5 or later.  Allow
217         versions 5 to 9.
218         * configure: Regenerated.
219         * manual/install.texi (texinfo): Increase version requirement to
220         4.5 or later.
221         * INSTALL: Regenerated.
222
223         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
224
225 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
226
227         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
228
229         * sysdeps/x86_64/x32/ffs.c: New file.
230
231         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
232         __syscall_ulong_t.
233         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
234         defined.  Use __syscall_ulong_t.
235         (shminfo): Use __syscall_ulong_t.
236         (shm_info): Likewise.
237
238         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
239         __syscall_ulong_t.
240
241         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
242         <bits/wordsize.h>.
243         (msgqnum_t): Use __syscall_ulong_t.
244         (msglen_t): Likewise.
245         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
246         __syscall_ulong_t.
247
248         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
249         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
250
251         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
252
253         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
254         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
255
256         * sysvipc/sys/msg.h (msgbuf): Replace long int with
257         __syscall_slong_t.
258
259         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
260         include <bits/wordsize.h>.  Check __x86_64__ instead of
261         __WORDSIZE.
262
263         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
264         "unsigned long long int" if __x86_64__ is defined.
265         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
266
267         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
268         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
269         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
270
271         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
272         <stdint.h>.
273         (GET_PC): Cast to uintptr_t first.
274         (GET_FRAME): Likewise.
275         (GET_STACK): Likewise.
276
277         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
278         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
279         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
280         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
281         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
282         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
283         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
284         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
285         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
286         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
287         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
288         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
289         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
290         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
291         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
292         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
293         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
294         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
295         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
296         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
297         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
298         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
299         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
300         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
301         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
302         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
303         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
304         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
305         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
306
307 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
308
309         * Makerules (+depfiles): Also collect depfiles from .oS in
310         $(extra-objs).
311         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
312         .oS, $(libnldbl-routines)).
313
314         * Makerules (native-compile-mkdep-flags): Define.
315         * sunrpc/Makefile (extra-objs): Add $(addprefix
316         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
317         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
318         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
319         calling $(make-target-directory).
320
321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
322
323         * bits/types.h (__snseconds_t): Removed.
324         * time/time.h (struct timespec): Replace __snseconds_t with
325         __syscall_slong_t.
326         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
327         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
328         Likewise.
329         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
330         (__SNSECONDS_T_TYPE): Likewise.
331         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
332         (__SNSECONDS_T_TYPE): Likewise.
333         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
334         (__SNSECONDS_T_TYPE): Likewise.
335
336 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
337
338         * sysdeps/mach/hurd/bits/typesizes.h
339         (__SYSCALL_SLONG_TYPE): New macro.
340         (__SYSCALL_ULONG_TYPE): Likewise.
341
342 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
343
344         * bits/types.h (__syscall_slong_t): New type.
345         (__syscall_ulong_t): Likewise.
346
347         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
348         (__SYSCALL_ULONG_TYPE): Likewise.
349         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
350         (__SYSCALL_SLONG_TYPE): Likewise.
351         (__SYSCALL_ULONG_TYPE): Likewise.
352         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
353         (__SYSCALL_SLONG_TYPE): Likewise.
354         (__SYSCALL_ULONG_TYPE): Likewise.
355         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
356         (__SYSCALL_SLONG_TYPE): Likewise.
357         (__SYSCALL_ULONG_TYPE): Likewise.
358
359 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
360
361         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
362         Add sigaltstack-offsets.sym.
363         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
364         <sigaltstack-offsets.h>.
365         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
366         longjmp_msg pointer.
367         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
368         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
369         signal stack.
370         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
371
372 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
373
374         * elf/stackguard-macros.h: Remove file.
375         * sysdeps/generic/stackguard-macros.h: New file.
376         * sysdeps/i386/stackguard-macros.h: Likewise.
377         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
378         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
379         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
380         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
381         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
382         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
383         * sysdeps/x86_64/stackguard-macros.h: Likewise.
384         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
385         <elf/stackguard-macros.h>.
386
387         [BZ #14109]
388         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
389         __aligned__ in attribute.
390         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
391         (gregset_t): Likewise.
392
393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
394
395         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
396         * sysdeps/x86_64/64/Implies-after: Here.  New file.
397         * sysdeps/x86_64/x32/Implies-after: New file.
398
399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
400
401         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
402         and access return value for _dl_profile_fixup.  Use R10_LP to
403         load frame size.
404
405 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
406
407         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
408
409 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
410
411         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
412         * sysdeps/x86_64/x32/sysdep.h: New file.
413
414 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
415
416         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
417         * sysdeps/x86_64/setjmp.S: Likewise.
418
419 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
420
421         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
422         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
423         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
424         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
425         remove unused global constant.
426
427 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
428
429         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
430         include of <not-cancel.h>.
431
432 2012-05-15  Roland McGrath  <roland@hack.frob.com>
433
434         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
435
436 2012-05-15  Jeff Law  <law@redhat.com>
437             Andreas Jaeger  <aj@suse.de>
438
439         [BZ #13594]
440         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
441         out from...
442         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
443         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
444         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
445         code changing __hst_map_handle.map.
446
447 2012-05-15  Roland McGrath  <roland@hack.frob.com>
448
449         * configure.in (sysnames): Look for Implies-before and Implies-after
450         files.
451         * configure: Regenerated.
452
453 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
454
455         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
456         8-byte data alignment with LP_SIZE alignment.
457
458 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
459
460         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
461         into R10_LP.
462
463 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
464
465         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
466
467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
468
469         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
470         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
471         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
472         Likewise.
473         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
474
475 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
476
477         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
478         (stackinfo_sub_sp): Likewise.
479
480 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
481
482         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
483         RAX_LP.
484
485 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
486
487         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
488         into R*_LP.
489
490 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
491
492         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
493         sizes into R*_LP.
494
495 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
496
497         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
498
499 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
500
501         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
502         into R11_LP and load __x86_64_shared_cache_size_half into
503         R8_LP.
504
505 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
506
507         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
508         R8_LP.
509
510 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
511
512         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
513         logb for POWER7.
514         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
515         logbf for POWER7.
516         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
517         logbl for POWER7.
518         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
519         powerpc32/power7/fpu/s_logb.c via #include.
520         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
521         powerpc32/power7/fpu/s_logbf.c via #include.
522         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
523         powerpc32/power7/fpu/s_logbl.c via #include.
524
525 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
526
527         * README.libm: Remove file.
528
529 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
530
531         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
532         count for x32.  Use R*_LP and omit operand-size suffix.
533
534 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
535
536         * shlib-versions: Move x86_64-.*-linux.* entries to ...
537         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
538         * sysdeps/x86_64/x32/shlib-versions: New file.
539
540 2012-05-14  Roland McGrath  <roland@hack.frob.com>
541
542         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
543         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
544         Use _dl_fatal_printf instead.
545
546 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
547
548         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
549         set if not set by the user.  Do not allow for being unset.
550         * sysdeps/unix/sysv/linux/configure: Regenerated.
551
552 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
553
554         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
555         the `q' suffix from lea and replace .quad with ASM_ADDR.
556
557 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
558
559         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
560         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
561         instead of $17.
562         (PTR_DEMANGLE): Likewise.
563
564 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
565
566         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
567         (LP_OP): Likewise.
568         (ASM_ADDR): Likewise.
569         (RAX_LP): Likewise.
570         (RBP_LP): Likewise.
571         (RBX_LP): Likewise.
572         (RCX_LP): Likewise.
573         (RDI_LP): Likewise.
574         (RSI_LP): Likewise.
575         (RSP_LP): Likewise.
576         (R8_LP): Likewise.
577         (R9_LP): Likewise.
578         (R10_LP): Likewise.
579         (R10_LP): Likewise.
580         (R11_LP): Likewise.
581         (R12_LP): Likewise.
582         (R13_LP): Likewise.
583         (R14_LP): Likewise.
584         (R15_LP): Likewise.
585
586 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
587
588         * sysdeps/x86_64/x32/dl-machine.h: New file.
589
590 2012-05-14  Andreas Jaeger  <aj@suse.de>
591
592         * manual/Makefile (subdir): Remove export of subdir.
593         (all): Remove target.
594         (.PHONY): Remove all from list.
595         (mkinstalldirs): Remove.
596         (.PHONY): Remove installdirs from list.
597         ($(inst_infodir)/libc.info): Use make-target-directory.
598         (installdirs): Remove.
599         (subdir_%): Remove.
600         (glibc-targets): Remove.
601         (lib): Remove.
602         (stubs): Remove.
603         ($(objpfx)stubs ../po/manual.pot): Remove.
604         ($(objpfx)stamp%): Remove.
605         (make-target-directory): Remove.
606         (subdir_install): Remove.
607         (routines): Remove.
608         (aux): Remove.
609         (sources): Remove.
610         (objects): Remove.
611         (headers): Remove.
612
613         [BZ #13750]
614         * manual/.gitignore: Remove, it's not needed anymore.
615         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
616         all files in it.
617         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
618         directory.
619         (texis): Renamed to $(objpfx)texis.
620         (texis-path): New, contains path to generated files.
621         (chapters.%): Use texis-path for complete path, add extra argument
622         libc-texinfo.sh.
623         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
624         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
625         (summary,texi, stamp-summary): Use complete path of
626         files. Generate files in build dir.
627         (dir-add.texi): Build in build dir.
628         (libm-err.texi,stamp-libm-err): Likewise.
629         (version.texi, stamp-version): Likewise.
630         (.%c.texi): Likewise.
631         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
632         (mostlyclean): Remove target.
633         (realclean): Remove target.
634         (generated): Add new variable with contents from mostlyclean and
635         realclean, remove entries duplicated in common-mostlyclean, add
636         stamp-libm-err and stamp-version.
637         (generated-dirs): Add libc directory.
638         ($(inst_infodir)/libc.info): Install files from build dir.
639
640         * manual/install.texi (Configuring and compiling): Adjust since
641         the info files are not part of the tar ball anymore.
642
643 2012-05-14  Andreas Jaeger  <aj@suse.de>
644
645         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
646         variable.
647
648 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
649
650         [BZ #13717]
651         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
652         to 2.2.0 where earlier.
653         * sysdeps/unix/sysv/linux/configure: Regenerated.
654         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
655         Remove conditional code.
656         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
657         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
658         Remove conditional code.
659         [!__NR_lchown]: Likewise.
660         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
661         [__NR_lchown]: Likewise.
662         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
663         comment referencing __ASSUME_LCHOWN_SYSCALL.
664         * sysdeps/unix/sysv/linux/i386/sigaction.c
665         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
666         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
667         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
668         Remove conditional code.
669         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
670         (__protocol_available): Remove #if 0 code.
671         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
672         conditional code.
673         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
674         * sysdeps/unix/sysv/linux/kernel-features.h
675         (__ASSUME_GETCWD_SYSCALL): Don't define.
676         (__ASSUME_REALTIME_SIGNALS): Likewise.
677         (__ASSUME_PREAD_SYSCALL): Likewise.
678         (__ASSUME_PWRITE_SYSCALL): Likewise.
679         (__ASSUME_POLL_SYSCALL): Likewise.
680         (__ASSUME_LCHOWN_SYSCALL): Likewise.
681         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
682         non-SPARC.
683         (__ASSUME_SIOCGIFNAME): Don't define.
684         (__ASSUME_MSG_NOSIGNAL): Likewise.
685         (__ASSUME_SENDFILE): Define unconditionally.
686         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
687         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
688         conditional code.
689         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
690         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
691         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
692         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
693         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
694         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
695         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
697         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
698         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
700         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
701         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
703         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
704         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
706         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
707         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
709         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
710         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
712         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
713         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
715         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
716         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
718         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
719         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
720         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
721         Remove conditional code.
722         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
723         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
724         Remove conditional code.
725         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
726         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
727         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
728         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
729         Remove conditional code.
730         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
731         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
732         Remove conditional code.
733         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
734         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
735         Remove conditional code.
736         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
737         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
738         Remove conditional code.
739         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
740         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
741         Remove conditional code.
742         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
743         * sysdeps/unix/sysv/linux/sh/pwrite64.c
744         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
745         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
746         * sysdeps/unix/sysv/linux/sigaction.c
747         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
748         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
749         * sysdeps/unix/sysv/linux/sigpending.c
750         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
751         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
752         * sysdeps/unix/sysv/linux/sigprocmask.c
753         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
754         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
755         * sysdeps/unix/sysv/linux/sigsuspend.c
756         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
757         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
758         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
759         (__libc_missing_rt_sigs): Remove.
760         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
761         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
762         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
763         Remove conditional code.
764         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
765         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
766         return 1.
767         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
768         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
769         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
770         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
771
772 2012-05-14  Andreas Jaeger  <aj@suse.de>
773
774         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
775         it's not used in glibc.
776         (__coshm1): Likewise.
777         (__acosh1p): Likewise.
778         (__sgn): Likewise.
779
780         * manual/string.texi (Copying and Concatenation): Add missing
781         variable in concat example.
782         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
783
784 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
785
786         [BZ #14103]
787         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
788         __builtin_clzl with __builtin_clzll.
789
790 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
791
792         [BZ #14104]
793         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
794         libc_freeres_ptr.
795
796 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
797
798         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
799         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
800         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
801         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
802
803 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
804
805         * NEWS: Update ia64 info.
806
807 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
808
809         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
810         used as bcopy.
811
812 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
813
814         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
815         * sysdeps/unix/syscalls.list (dup3): Likewise.
816         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
817         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
818
819 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
820
821         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
822         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
823
824 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
825
826         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
827         thread pointer.
828         (TLS_IE): Use mov/add instead of movq/addq to load thread
829         pointer.
830         (TLS_GD_PREFIX): New.
831         (TLS_GD): Use it.
832
833 2012-05-11  David S. Miller  <davem@davemloft.net>
834
835         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
836         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
837         (_FPU_SETCW): Likewise.
838
839 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
840
841         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
842         is 32-byte aligned.
843
844 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
845
846         [BZ #11837]
847         * iconvdata/gb18030.c: Update tables.
848         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
849         characters specially.
850         (BODY for TO_LOOP): Add encoding of missing ranges.
851
852 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
853
854         [BZ #13673]
855         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
856         * sysdeps/mach/hurd/dup3.c: Likewise.
857         * sysdeps/mach/hurd/readlinkat.c: Likewise.
858         * sysdeps/powerpc/memmove.c:: Likewise.
859
860 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
861
862         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
863         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
864
865 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
866
867         * elf/elf.h (R_X86_64_RELATIVE64): New.
868         (R_X86_64_NUM): Updated.
869         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
870         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
871         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
872         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
873         tst-quad1pie tst-quad2pie
874         (modules-names): Add tst-quadmod1 tst-quadmod2.
875         ($(objpfx)tst-quad1): New dependency.
876         ($(objpfx)tst-quad2): Likewise.
877         ($(objpfx)tst-quad1pie): Likewise.
878         ($(objpfx)tst-quad2pie): Likewise.
879         * sysdeps/x86_64/tst-quad1.c: New file.
880         * sysdeps/x86_64/tst-quad1pie.c: New file.
881         * sysdeps/x86_64/tst-quad2.c: Likewise.
882         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
883         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
884         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
885         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
886         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
887
888 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
889
890         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
891         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
892         * streams/stropts.h (t_scalar_t): Define type.
893
894         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
895         (_PATH_PRESERVE): Set to "/var/lib".
896         (_PATH_RWHODIR): Set to "/var/spool/rwho".
897
898         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
899         instead of int.
900
901         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
902         if __dir_mkfile succeeded.
903
904         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
905         checking for _hurd_dtablesize.  Unlock it right after having
906         finished _hurd_dtable allocation.
907
908 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
909
910         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
911         * sysdeps/mach/hurd/configure: Regenerated.
912         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
913         special-casing to...
914         * sysdeps/gnu/configure.in: ... this new file.
915         * sysdeps/unix/sysv/linux/configure: Regenerated.
916         * sysdeps/gnu/configure: New generated file.
917
918         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
919         for Linux: use nsec instead of usec, as well as:
920         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
921         members of type struct timespec.
922         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
923         New macros.
924         (struct stat64): Likewise.
925         (_STATBUF_ST_NSEC): New macro.
926         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
927
928         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
929         __strtoul_internal rather than strtoul.
930
931 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
932
933         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
934         and reject them.
935
936 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
937
938         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
939         which preserves existing values.
940         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
941
942 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
943
944         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
945         TIMEOUT values.  Return EINVAL for NFDS values either negative or
946         greater than FD_SETSIZE.
947
948 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
949
950         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
951         allocated, call __vm_protect to finish enabling the existing space, and
952         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
953         allocate the remainder.
954
955 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
956
957         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
958         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
959
960 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
961
962         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
963         sysdeps/mach/hurd/readlink.c.
964
965         * posix/tst-sysconf.c (posix_options): Only use
966         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
967         _POSIX_SYNCHRONIZED_IO when they are defined
968         * sysdeps/mach/hurd/bits/posix_opt.h:
969         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
970         (_XOPEN_REALTIME): Undefine macro.
971         (_XOPEN_REALTIME_THREADS): Undefine macro.
972         (_XOPEN_SHM): Undefine macro.
973         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
974         macro to -1.
975         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
976         macro to -1.
977         (_POSIX_ASYNC_IO): Undefine macro.
978         (_POSIX_PRIORITIZED_IO): Undefine macro.
979         (_POSIX_SPIN_LOCKS): Define macro to -1.
980
981         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
982         SA_NODEFER, SA_RESETHAND.
983         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
984         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
985         F_DUPFD_CLOEXEC.
986
987 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
988
989         * elf/Makefile (pldd-modules): Define unconditionally.
990
991 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
992
993         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
994
995 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
996
997         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
998         Return ENOENT when name is empty.
999         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1000
1001 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1002
1003         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1004
1005         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1006
1007 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1008
1009         Fix mlock in all cases except non-readable pages.
1010         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1011         instead of VM_PROT_ALL as parameter to __vm_wire function.
1012
1013         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1014         (__mkdir): When path is `/', just fail with EEXIST.
1015         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1016
1017 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1018
1019         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1020         <sys/uio.h> (for writev).
1021         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1022         and <sys/param.h> (for MIN).
1023
1024 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1025
1026         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1027         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1028         if interrupted.
1029
1030 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1031
1032         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1033         Depend on against $(link-rpcuserlibs).
1034
1035 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1036
1037         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1038         (__libc_stack_end): Do not use attribute_relro.
1039         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1040         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1041         to libthread-provided value.
1042         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1043         attribute_relro.
1044
1045 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1046
1047         [BZ #3748]
1048         * bits/libc-lock.h (__libc_once_get): New macro.
1049         * sysdeps/mach/bits/libc-lock.h: Likewise.
1050         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1051         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1052         instead of using implementation details.
1053
1054         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1055         * libio/freopen.c: Likewise.
1056         * libio/freopen64.c: Likewise.
1057         * misc/syslog.c: Likewise.
1058         * nscd/connections.c: Likewise.
1059         * nscd/netgroupcache.c: Likewise.
1060         * sysdeps/posix/getcwd.c: Likewise.
1061
1062 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1063
1064         * math/w_ilogbf.c: Add #include <limits.h>.
1065
1066 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1067
1068         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1069         path instead of returning without unlocking.
1070
1071         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1072         immediate-write ioctls.
1073         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1074
1075 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1076
1077         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1078         __builtin_frame_address instead of making assumptions about the
1079         location of the return address relative to DATA.  Force early load of
1080         the return address.
1081         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1082         __builtin_frame_address.
1083
1084         dup3 for GNU Hurd.
1085         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1086         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1087         implement dup3 and do some further code clean-ups.
1088         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1089         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1090
1091 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1092
1093         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1094
1095         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1096         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1097         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1098         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1099         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1100         d->port.lock.
1101
1102         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1103         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1104         when handler == SIG_ERR, not when handler != SIG_ERR.
1105
1106 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1107
1108         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1109         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1110         definitions.
1111
1112         accept4 for GNU Hurd.
1113         * include/sys/socket.h (__libc_accept4): New prototype.
1114         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1115         to implement __libc_accept4.
1116         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1117         __libc_accept4.
1118         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1119
1120         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1121         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1122         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1123         signal-defines.sym.
1124
1125 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1126
1127         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1128
1129 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1130
1131         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1132         assertion on O_CLOEXEC flag.
1133         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1134         * hurd/intern-fd.c: Likewise.
1135         * hurd/port2fd.c: Likewise.
1136
1137 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1138
1139         [BZ #3906]
1140         * bits/in.h (IPV6_PKTINFO): Define new macro.
1141         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1142
1143 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1144
1145         [BZ #13954]
1146         [BZ #13955]
1147         [BZ #13956]
1148         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1149         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1150         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1151         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1152         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1153         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1154         * math/libm-test.inc (logb_test) : Additional logb tests.
1155
1156 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1157             Andreas Jaeger  <aj@suse.de>
1158
1159         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1160         * configure: Regenerated.
1161         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1162         * config.make.in (link-obsolete-rpc): New substituted variable.
1163         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1164         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1165         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1166         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1167         so that libc.a contains the symbols.
1168         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1169         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1170         * sunrpc/auth_none.c: Likewise.
1171         * sunrpc/auth_unix.c: Likewise.
1172         * sunrpc/authdes_prot.c: Likewise.
1173         * sunrpc/authuxprot.c: Likewise.
1174         * sunrpc/clnt_gen.c: Likewise.
1175         * sunrpc/clnt_perr.c: Likewise.
1176         * sunrpc/clnt_raw.c: Likewise.
1177         * sunrpc/clnt_simp.c: Likewise.
1178         * sunrpc/clnt_tcp.c: Likewise.
1179         * sunrpc/clnt_udp.c: Likewise.
1180         * sunrpc/clnt_unix.c: Likewise.
1181         * sunrpc/des_crypt.c: Likewise.
1182         * sunrpc/des_soft.c: Likewise.
1183         * sunrpc/get_myaddr.c: Likewise.
1184         * sunrpc/key_call.c: Likewise.
1185         * sunrpc/key_prot.c: Likewise.
1186         * sunrpc/netname.c: Likewise.
1187         * sunrpc/pm_getmaps.c: Likewise.
1188         * sunrpc/pm_getport.c: Likewise.
1189         * sunrpc/pmap_clnt.c: Likewise.
1190         * sunrpc/pmap_prot.c: Likewise.
1191         * sunrpc/pmap_prot2.c: Likewise.
1192         * sunrpc/pmap_rmt.c: Likewise.
1193         * sunrpc/publickey.c: Likewise.
1194         * sunrpc/rpc_cmsg.c: Likewise.
1195         * sunrpc/rpc_common.c: Likewise.
1196         * sunrpc/rpc_dtable.c: Likewise.
1197         * sunrpc/rpc_prot.c: Likewise.
1198         * sunrpc/rpc_thread.c: Likewise.
1199         * sunrpc/rtime.c: Likewise.
1200         * sunrpc/svc.c: Likewise.
1201         * sunrpc/svc_auth.c: Likewise.
1202         * sunrpc/svc_raw.c: Likewise.
1203         * sunrpc/svc_run.c: Likewise.
1204         * sunrpc/svc_tcp.c: Likewise.
1205         * sunrpc/svc_udp.c: Likewise.
1206         * sunrpc/svc_unix.c: Likewise.
1207         * sunrpc/svcauth_des.c: Likewise.
1208         * sunrpc/xcrypt.c: Likewise.
1209         * sunrpc/xdr.c: Likewise.
1210         * sunrpc/xdr_array.c: Likewise.
1211         * sunrpc/xdr_float.c: Likewise.
1212         * sunrpc/xdr_intXX_t.c: Likewise.
1213         * sunrpc/xdr_mem.c: Likewise.
1214         * sunrpc/xdr_rec.c: Likewise.
1215         * sunrpc/xdr_ref.c: Likewise.
1216         * sunrpc/xdr_sizeof.c: Likewise.
1217         * sunrpc/xdr_stdio.c: Likewise.
1218
1219 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1220
1221         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1222         change.  Update copyright years.
1223
1224 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1225
1226         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1227
1228 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1229             Joseph Myers  <joseph@codesourcery.com>
1230             Paul Pluzhnikov  <ppluzhnikov@google.com>
1231
1232         [BZ #14012]
1233         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1234         requiring rpcgen.
1235         [cross-compiling] (extra-libs): Likewise.
1236         [cross-compiling] (extra-libs-others): Likewise.
1237         [cross-compiling] (librpcsvc-routines): Likewise.
1238         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1239         [cross-compiling] (omit-deps): Likewise.
1240         (sunrpc-CPPFLAGS): New variable.
1241         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1242         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1243         (cross-rpcgen-objs): New variable.
1244         (extra-objs): Append $(cross-rpcgen-objs).
1245         ($(cross-rpcgen-objs)): New rule.
1246         ($(objpfx)cross-rpcgen): Likewise.
1247         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1248         comment.
1249         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1250         ($(objpfx)x%.stmp): Likewise.
1251         * sunrpc/proto.h [IS_IN_build] (_): Define.
1252         [IS_IN_build] (_libc_intl_domainname): Likewise.
1253
1254 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1255
1256         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1257         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1258         and R_X86_64_TPOFF64.
1259
1260 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1261
1262         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1263         sysdeps/unix/sysv/syscalls.list.
1264         (stime): Likewise.
1265         (utime): Likewise.
1266         * sysdeps/unix/sysv/syscalls.list: Remove file.
1267
1268 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1269
1270         [BZ #3440]
1271         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1272         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1273         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1274         (__LC_IDENTIFICATION): Make these macros useful in #if
1275         expressions, as required by C99.
1276
1277 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1278
1279         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1280         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1281         after this.
1282
1283 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1284
1285         * stdlib/longlong.h: Updated from GCC.
1286
1287 2012-05-09  Andreas Jaeger  <aj@suse.de>
1288
1289         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1290         default is first entry.
1291         (run_mode): Set type.
1292         (main): Remove informal message about syslog.
1293         (options): Fix typo.
1294
1295         [BZ #14053]
1296         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1297         to asm.
1298         (lrint): Likewise.
1299         (llrintf): Likewise.
1300         (llrint): Likewise.
1301         (rint): Likewise.
1302         (rintf): Likewise.
1303         (nearbyint): Likewise.
1304         (nearbyintf): Likewise.
1305
1306 2012-05-09  Andreas Jaeger  <aj@suse.de>
1307             Pedro Alves  <palves@redhat.com>
1308
1309         * nscd/nscd.c (run_mode): Use enum.
1310         (main): Cleanup coding style issue.
1311
1312 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1313             Andreas Jaeger  <aj@suse.de>
1314
1315         * nscd/nscd.c (go_background): Replaced with...
1316         (run_mode): ... this.
1317         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1318         (options): Add -F --foreground.
1319         (main): Implement it.
1320         (parse_opt): Parse it.
1321
1322 2012-05-09  Andreas Jaeger  <aj@suse.de>
1323
1324         [BZ #14083]
1325         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1326         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1327         -Wconversion warning.
1328         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1329         Likewise.
1330
1331 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1332
1333         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1334         == 0.
1335         (LC_ALL): Use macro-int-constant.
1336         (LC_COLLATE): Likewise.
1337         (LC_CTYPE): Likewise.
1338         (LC_MESSAGES): Likewise.
1339         (LC_MONETARY): Likewise.
1340         (LC_NUMERIC): Likewise.
1341         (LC_TIME): Likewise.
1342         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1343         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1344         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1345         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1346         Specify type.
1347         [C99-based standards] (float_t): Expect type.
1348         [C99-based standards] (double_t): Expect type.
1349         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1350         type.
1351         [C99-based standards] (HUGE_VALL): Likewise.
1352         [C99-based standards] (INFINITY): Likewise.
1353         [C99-based standards] (NAN): Likewise.
1354         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1355         [C99-based standards] (FP_NAN): Likewise.
1356         [C99-based standards] (FP_NORMAL): Likewise.
1357         [C99-based standards] (FP_SUBNORMAL): Likewise.
1358         [C99-based standards] (FP_ZERO): Likewise.
1359         [C99-based standards] (FP_FAST_FMA): Use
1360         optional-macro-int-constant.  Specify type.  Require == 1.
1361         [C99-based standards] (FP_FAST_FMAF): Likewise.
1362         [C99-based standards] (FP_FAST_FMAL): Likewise.
1363         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1364         [C99-based standards] (FP_ILOGBNAN): Likewise.
1365         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1366         Specify type.
1367         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1368         [C99-based standards] (math_errhandling): Specify type.
1369         [ISO99 || ISO11] (signgam): Do not allow.
1370         [non-C99-based standards] (copysignf): Do not allow.
1371         [non-C99-based standards] (exp2f): Likewise.
1372         [non-C99-based standards] (log2f): Likewise.
1373         [non-C99-based standards] (modff): Allow.
1374         [non-C99-based standards] (erff): Do not allow.
1375         [non-C99-based standards] (erfcf): Likewise.
1376         [non-C99-based standards] (gammaf): Likewise.
1377         [non-C99-based standards] (hypotf): Likewise.
1378         [non-C99-based standards] (j0f): Likewise.
1379         [non-C99-based standards] (j1f): Likewise.
1380         [non-C99-based standards] (jnf): Likewise.
1381         [non-C99-based standards] (lgammaf): Likewise.
1382         [non-C99-based standards] (tgammaf): Likewise.
1383         [non-C99-based standards] (y0f): Likewise.
1384         [non-C99-based standards] (y1f): Likewise.
1385         [non-C99-based standards] (ynf): Likewise.
1386         [non-C99-based standards] (isnanf): Likewise.
1387         [non-C99-based standards] (acoshf): Likewise.
1388         [non-C99-based standards] (asinhf): Likewise.
1389         [non-C99-based standards] (atanhf): Likewise.
1390         [non-C99-based standards] (cbrtf): Likewise.
1391         [non-C99-based standards] (expm1f): Likewise.
1392         [non-C99-based standards] (ilogbf): Likewise.
1393         [non-C99-based standards] (log1pf): Likewise.
1394         [non-C99-based standards] (logbf): Likewise.
1395         [non-C99-based standards] (nextafterf): Likewise.
1396         [non-C99-based standards] (remainderf): Likewise.
1397         [non-C99-based standards] (rintf): Likewise.
1398         [non-C99-based standards] (scalbf): Likewise.
1399         [non-C99-based standards] (copysignl): Likewise.
1400         [non-C99-based standards] (exp2l): Likewise.
1401         [non-C99-based standards] (log2l): Likewise.
1402         [non-C99-based standards] (modfl): Allow.
1403         [non-C99-based standards] (erfl): Do not allow.
1404         [non-C99-based standards] (erfcl): Likewise.
1405         [non-C99-based standards] (gammal): Likewise.
1406         [non-C99-based standards] (hypotl): Likewise.
1407         [non-C99-based standards] (j0l): Likewise.
1408         [non-C99-based standards] (j1l): Likewise.
1409         [non-C99-based standards] (jnl): Likewise.
1410         [non-C99-based standards] (lgammal): Likewise.
1411         [non-C99-based standards] (tgammal): Likewise.
1412         [non-C99-based standards] (y0l): Likewise.
1413         [non-C99-based standards] (y1l): Likewise.
1414         [non-C99-based standards] (ynl): Likewise.
1415         [non-C99-based standards] (isnanl): Likewise.
1416         [non-C99-based standards] (acoshl): Likewise.
1417         [non-C99-based standards] (asinhl): Likewise.
1418         [non-C99-based standards] (atanhl): Likewise.
1419         [non-C99-based standards] (cbrtl): Likewise.
1420         [non-C99-based standards] (expm1l): Likewise.
1421         [non-C99-based standards] (ilogbl): Likewise.
1422         [non-C99-based standards] (log1pl): Likewise.
1423         [non-C99-based standards] (logbl): Likewise.
1424         [non-C99-based standards] (nextafterl): Likewise.
1425         [non-C99-based standards] (remainderl): Likewise.
1426         [non-C99-based standards] (rintl): Likewise.
1427         [non-C99-based standards] (scalbl): Likewise.
1428         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1429         [non-C99-based standards] (FP_*): Do not allow.
1430         [C99-based standards] (FP_*): Change to
1431         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1432         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1433         allow.
1434         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1435         (SIG_ERR): Likewise.
1436         [X/Open-based standards] (SIG_HOLD): Likewise.
1437         (SIG_IGN): Likewise.
1438         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1439         positive value.
1440         (SIGFPE): Likewise.
1441         (SIGILL): Likewise.
1442         (SIGINT): Likewise.
1443         (SIGSEGV): Likewise.
1444         (SIGTER): Likewise.
1445         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1446         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1447         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1448         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1449         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1450         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1451         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1452         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1453         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1454         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1455         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1456         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1457         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1458         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1459         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1460         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1461         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1462         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1463         [X/Open-based standards] (SIGTRAP): Likewise.
1464         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1465         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1466         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1467         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1468         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1469         allow.
1470
1471 2012-05-08  Ian Wienand  <ianw@vmware.com>
1472
1473         [BZ #14080]
1474         * time/tzset.c (__tzset_parse_tz): Update default rules for
1475         daylight time changes in the Energy Policy Act of 2005.
1476
1477 2012-05-09  Andreas Jaeger  <aj@suse.de>
1478
1479         [BZ #13983]
1480         * elf/ldconfig.c (parse_conf): Change string to make clear that
1481         ldconfig only issued a warning if ld.so.conf does not exist.
1482
1483 2012-05-08  David S. Miller  <davem@davemloft.net>
1484
1485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1486         movxtod instead of popping the value on the stack.
1487
1488         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1489
1490 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1491
1492         * config.h.in: Add HAVE_ARM_PCS_VFP.
1493
1494 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1495
1496         [BZ #13979]
1497         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1498         checking but the checks are disabled for any reason.
1499
1500 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1501
1502         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1503         and ELF64_R_TYPE with ELFW(R_TYPE).
1504
1505 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1506
1507         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1508         (ulimit): Likewise.
1509
1510         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1511         (settimeofday): Likewise.
1512
1513 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1514
1515         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1516         a struct th_u2 inside the union, and move tu_block/tu_code into
1517         a new th_u3 union of tu_block/tu_code inside of that.  Move
1518         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1519         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1520         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1521         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1522         (th_stuff): Change to th_u1.tu_stuff.
1523         (th_data): Define.
1524         (th_msg): Change to th_u1.th_u2.tu_data.
1525
1526 2012-05-07  David S. Miller  <davem@davemloft.net>
1527
1528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1529
1530         [BZ #14074]
1531         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
1532         (SETUP_PIC_REG): Use it.
1533         (SETUP_PIC_REG_LEAF): Use it.
1534
1535 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
1536
1537         [BZ #13885]
1538         [BZ #13923]
1539         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1540         USE_AS_EXPM1L.
1541         (EXPL_FINITE): Likewise.
1542         (FLDLOG): Likewise.
1543         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1544         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1545         e_expl.S.
1546         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1547         USE_AS_EXPM1L.
1548         (EXPL_FINITE): Likewise.
1549         (FLDLOG): Likewise.
1550         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1551         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1552         e_expl.S.
1553         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
1554         test of -max_value argument for long double.
1555         * sysdeps/i386/fpu/libm-test-ulps: Update.
1556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1557
1558 2012-05-06  David S. Miller  <davem@davemloft.net>
1559
1560         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
1561         quad soft-float symbols whose references which are compiler
1562         generated.
1563         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1564
1565 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
1566
1567         [BZ #13884]
1568         [BZ #13914]
1569         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1570         USE_AS_EXP10L.
1571         (EXPL_FINITE): Likewise.
1572         (FLDLOG): Likewise.
1573         (c0): Likewise.
1574         (c1): Likewise.
1575         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1576         Adjust comments for base varying.
1577         (__expl_finite): Change alias to EXPL_FINITE.
1578         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
1579         e_expl.S.
1580         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
1581         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1582         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1583         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
1584         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1585         USE_AS_EXP10L.
1586         (EXPL_FINITE): Likewise.
1587         (FLDLOG): Likewise.
1588         (c0): Likewise.
1589         (c1): Likewise.
1590         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1591         Adjust comments for base varying.
1592         (__expl_finite): Change alias to EXPL_FINITE.
1593         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
1594         tests for bugs.
1595         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1596
1597         [BZ #14064]
1598         * math/libm-test.inc (check_float_internal): Correct ulp
1599         calculation for subnormal expected results.
1600
1601 2012-05-06  Andreas Jaeger  <aj@suse.de>
1602
1603         * Makeconfig (+math-flags): New, set to -frounding-math.
1604         (+cflags): Add +math-flags so that all of glibc gets compiled with
1605         it.
1606
1607         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
1608
1609 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
1610
1611         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
1612         Disable one test.
1613
1614         [BZ #13787]
1615         [BZ #13922]
1616         [BZ #14036]
1617         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
1618         (__ieee754_expl): Allow for and saturate large arguments.
1619         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
1620         (u_threshold): Likewise.
1621         (__exp): Call __ieee754_exp before checking for overflow and
1622         underflow.
1623         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
1624         (u_threshold): Likewise.
1625         (__expf): Call __ieee754_expf before checking for overflow and
1626         underflow.
1627         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
1628         (u_threshold): Likewise.
1629         (__expl): Call __ieee754_expl before checking for overflow and
1630         underflow.
1631         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
1632         (__ieee754_expl): Allow for and saturate large arguments.
1633         * math/libm-test.inc (exp_test): Add another test.  Do not allow
1634         missing overflow exception on overflow.
1635         (expm1_test): Do not allow missing overflow exception on overflow.
1636
1637         * sysdeps/i386/fpu/e_expl.c: Move to ...
1638         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
1639         rather than using inline asm.
1640         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
1641         * sysdeps/x86_64/fpu/e_expl.S: Copy from
1642         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
1643
1644         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
1645         (nice): Likewise.
1646         (poll): Likewise.
1647         (signal): Likewise.
1648         (time): Likewise.
1649         (times): Likewise.
1650
1651 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1652
1653         * sysdeps/unix/syscalls.list (adjtime): Add entry from
1654         sysdeps/unix/common/syscalls.list.
1655         (fchmod): Likewise.
1656         (fchown): Likewise.
1657         (ftruncate): Likewise.
1658         (getrusage): Likewise.
1659         (gettimeofday): Likewise.
1660         (setpgid): Likewise.
1661         (setregid): Likewise.
1662         (setreuid): Likewise.
1663         (sigaction): Likewise.
1664         (truncate): Likewise.
1665         (vhangup): Likewise.
1666         * sysdeps/unix/common/syscalls.list: Remove file.
1667         * sysdeps/unix/bsd/Implies: Don't include unix/common.
1668         * sysdeps/unix/sysv/linux/Implies: Likewise.
1669
1670 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1671
1672         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
1673         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
1674         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
1675         Moved to ...
1676         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1677         Here.
1678         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
1679         to ...
1680         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
1681         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
1682         to ...
1683         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
1684         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
1685         to ...
1686         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
1687         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
1688         to ...
1689         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
1690         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
1691         to ...
1692         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
1693         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
1694         to ...
1695         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
1696         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
1697         to ...
1698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
1699         Here.
1700         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
1701         to ...
1702         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
1703         Here.
1704         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
1705         to ...
1706         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
1707         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
1708         Moved to ...
1709         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
1710         Here.
1711         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
1712         to ...
1713         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
1714
1715 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1716
1717         * sysdeps/unix/common/bits/dirent.h: Remove file.
1718         * sysdeps/unix/common/bits/fcntl.h: Likewise.
1719
1720         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
1721         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
1722         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
1723         * sysdeps/unix/bsd/isatty.c: Likewise.
1724         * sysdeps/unix/bsd/tcdrain.c: Likewise.
1725         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
1726         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
1727
1728 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1729
1730         [BZ #13563]
1731         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
1732         long double comparison inaccuracies.
1733         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
1734         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1735
1736 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
1737
1738         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
1739         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
1740
1741 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1742
1743         [BZ #14049]
1744         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
1745         nonzero digits before rounding a hex value.
1746         * stdlib/tst-strtod.c (tests): Add another test.
1747
1748 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1749
1750         * sysdeps/s390/fpu/libm-test-ulps: Update.
1751
1752 2012-05-03  Andreas Jaeger  <aj@suse.de>
1753
1754         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
1755         does not get optimized out.
1756         (malloc_opt_barrier): New.
1757
1758 2012-05-03  Andreas Jaeger  <aj@suse.de>
1759             Roland McGrath  <roland@hack.frob.com>
1760
1761         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
1762         intermediate file deletion.
1763         (generated): Add .symlist files.
1764
1765 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
1766
1767         [BZ #13775]
1768         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
1769         Redirect under this condition.
1770         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
1771         [__USE_GNU] (__dprintf_chk): Not under this condition.
1772         [__USE_GNU] (__vdprintf_chk): Likewise.
1773         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
1774         under this condition.
1775         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
1776         [__USE_XOPEN2K8] (dprintf): Define under this condition.
1777         [__USE_XOPEN2K8] (vdprintf): Likewise.
1778         [__USE_GNU] (__dprintf_chk): Not under this condition.
1779         [__USE_GNU] (__vdprintf_chk): Likewise.
1780         [__USE_GNU] (dprintf): Likewise.
1781         [__USE_GNU] (vdprintf): Likewise.
1782
1783 2012-05-03  Roland McGrath  <roland@hack.frob.com>
1784
1785         * elf/Makefile (common-generated): Set this instead of generated for
1786         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
1787         $(all-built-dso)-derived lists.
1788
1789 2012-05-03  Andreas Jaeger  <aj@suse.de>
1790
1791         * sysdeps/i386/fpu/libm-test-ulps: Update.
1792
1793         * FAQ: Removed.
1794         * FAQ.in: Likewise.
1795         * scripts/gen-FAQ.pl: Likewise.
1796         * manual/install.texi (Installation): Point to online location of
1797         FAQ.
1798         * Makefile (files-for-dist): Remove FAQ.
1799         (FAQ): Remove.
1800
1801 2012-05-02  Allan McRae  <allan@archlinux.org>
1802
1803         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
1804         (LDFLAGS-reldepmod5.so): Likewise.
1805         (LDFLAGS-reldep6mod1.so): Likewise.
1806         (LDFLAGS-reldep6mod4.so): Likewise.
1807         (LDFLAGS-reldep8mod3.so): Likewise.
1808         (LDFLAGS-unload4mod1.so): Likewise.
1809         (LDFLAGS-unload4mod2.so): Likewise.
1810         (LDFLAGS-tst-initorder): Likewise.
1811         (LDFLAGS-tst-initordera2.so): Likewise.
1812         (LDFLAGS-tst-initordera3.so): Likewise.
1813         (LDFLAGS-tst-initordera4.so): Likewise.
1814         (LDFLAGS-tst-initorderb2.so): Likewise.
1815         (LDFLAGS-noload): Likewise.
1816         (LDFLAGS-next): Likewise.
1817         (LDFLAGS-order2mod1.so): Likewise.
1818         (LDFLAGS-order2mod2.so): Likewise.
1819         (LDFLAGS-tst-initorder2): Likewise.
1820         (LDFLAGS-tst-initorder2a.so): Likewise.
1821         (LDFLAGS-tst-initorder2b.so): Likewise.
1822         (LDFLAGS-tst-initorder2c.so): Likewise.
1823         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
1824
1825 2012-05-02  David S. Miller  <davem@davemloft.net>
1826
1827         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1828
1829 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
1830
1831         [BZ #14055]
1832         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
1833
1834 2012-05-02  Andreas Jaeger  <aj@suse.de>
1835
1836         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
1837         since we manipulate rounding mode.
1838         (CPPFLAGS-test-idouble.c): Likewise.
1839         (CPPFLAGS-test-ifloat.c): Likewise.
1840         (CFLAGS-test-ldouble.c): Likewise.
1841         (CFLAGS-test-double.c): Likewise.
1842         (CFLAGS-test-float.c): Likewise.
1843         (CFLAGS-test-misc.c): Likewise.
1844         (CFLAGS-test-test-fenv.c): Likewise.
1845
1846 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1847
1848         [BZ #2550]
1849         [BZ #2570]
1850         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
1851         comparisons to determine direction to adjust input.
1852
1853 2012-05-01  Roland McGrath  <roland@hack.frob.com>
1854
1855         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
1856         output to the target.
1857
1858         * scripts/localplt.awk: New file.
1859         * elf/Makefile ($(objpfx)check-localplt): Target removed.
1860         (check-localplt-CFLAGS): Variable removed.
1861         ($(all-built-dso:=.jmprel)): New static pattern rule.
1862         (generated): Add those targets.
1863         (localplt-built-dso): New variable.
1864         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
1865
1866         * elf/check-localplt.c: File removed.
1867
1868         * scripts/check-execstack.awk: New file.
1869         * elf/Makefile ($(objpfx)check-execstack): Target removed.
1870         (check-execstack-CFLAGS): Variable removed.
1871         ($(objpfx)check-execstack.h): Target removed.
1872         ($(objpfx)execstack-default): New target.
1873         (generated): Add that instead of check-execstack.h.
1874         ($(all-built-dso:=.phdr)): New static pattern rule.
1875         (generated): Add those targets.
1876         * elf/check-execstack.c: File removed.
1877
1878         * scripts/check-textrel.awk: New file.
1879         * elf/Makefile ($(objpfx)check-textrel): Target removed.
1880         (check-textrel-CFLAGS): Variable removed.
1881         (all-built-dso): Use := to define.o
1882         ($(all-built-dso:=.dyn)): New static pattern rule.
1883         (generated): Add those targets.
1884         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
1885         * config.make.in (READELF): New substituted variable.
1886         * elf/check-textrel.c: File removed.
1887
1888 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
1889
1890         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1891         allow.
1892         * conform/data/ctype.h-data [C99-based standards] (isblank):
1893         Expect function.
1894         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
1895         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
1896         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1897         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
1898         Specify type.  Require positive value.
1899         (EILSEQ): Likewise.
1900         (ERANGE): Likewise.
1901         [ISO || POSIX] (EILSEQ): Do not expect.
1902         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
1903         Specify type.  Require positive value.
1904         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
1905         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
1906         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
1907         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
1908         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
1909         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
1910         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
1911         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
1912         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
1913         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
1914         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
1915         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
1916         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
1917         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
1918         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
1919         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
1920         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
1921         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
1922         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
1923         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
1924         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
1925         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
1926         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
1927         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
1928         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
1929         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
1930         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
1931         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
1932         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
1933         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
1934         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
1935         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
1936         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
1937         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
1938         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
1939         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
1940         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
1941         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
1942         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
1943         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
1944         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
1945         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
1946         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
1947         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
1948         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
1949         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
1950         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
1951         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
1952         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
1953         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
1954         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
1955         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
1956         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
1957         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
1958         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
1959         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
1960         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
1961         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
1962         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
1963         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
1964         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
1965         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
1966         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
1967         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
1968         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
1969         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
1970         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
1971         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
1972         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
1973         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
1974         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
1975         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
1976         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
1977         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
1978         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
1979         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
1980         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
1981         Require >= 2.
1982         (FLT_ROUNDS): Expect as macro, not constant.
1983         (FLT_MANT_DIG): Use macro-int-constant.
1984         (DBL_MANT_DIG): Likewise.
1985         (LDBL_MANT_DIG): Likewise.
1986         (FLT_DIG): Likewise.
1987         (DBL_DIG): Likewise.
1988         (LDBL_DIG): Likewise.
1989         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
1990         (DBL_MIN_EXP): Likewise.
1991         (LDBL_MIN_EXP): Likewise.
1992         (FLT_MAX_EXP): Use macro-int-constant.
1993         (DBL_MAX_EXP): Likewise.
1994         (LDBL_MAX_EXP): Likewise.
1995         (FLT_MAX_10_EXP): Likewise.
1996         (DBL_MAX_10_EXP): Likewise.
1997         (LDBL_MAX_10_EXP): Likewise.
1998         (FLT_MAX): Use macro-constant.
1999         (DBL_MAX): Likewise.
2000         (LDBL_MAX): Likewise.
2001         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2002         (DBL_EPSILON): Likewise.
2003         (LDBL_EPSILON): Likewise.
2004         (FLT_MIN): Likewise.
2005         (DBL_MIN): Likewise.
2006         (LDBL_MIN): Likewise.
2007         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2008         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2009         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2010         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2011         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2012         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2013         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2014         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2015         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2016         [ISO11] (FLT_TRUE_MIN): Likewise.
2017         [ISO11] (LDBL_TRUE_MIN): Likewise.
2018         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2019         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2020         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2021         (SCHAR_MAX): Likewise.
2022         (UCHAR_MAX): Likewise.
2023         (CHAR_MIN): Likewise.
2024         (CHAR_MAX): Likewise.
2025         (MB_LEN_MAX): Use macro-int-constant.
2026         (SHRT_MIN): Use macro-int-constant.  Specify type.
2027         (SHRT_MAX): Likewise.
2028         (USHRT_MAX): Likewise.
2029         (INT_MAX): Likewise.
2030         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2031         bound negative.
2032         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2033         bound with "U".
2034         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2035         bound with "L".
2036         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2037         bound negative.  Suffix upper bound with "L".
2038         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2039         bound with "UL".
2040         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2041         Specify type.
2042         [C99-based standards] (LLONG_MAX): Likewise.
2043         [C99-based standards] (ULLONG_MAX): Likewise.
2044         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2045         == 0.
2046         [ISO11] (max_align_t): Require type.
2047         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2048
2049         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2050         from $CFLAGS, without defining away __attribute__ calls.
2051         (checknamespace): Use $CFLAGS_namespace.
2052
2053         * conform/conformtest.pl (@keywords): Only include C99 keywords
2054         for standards based on C99 or C11.
2055
2056         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2057         Disable tests.
2058         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2059         UNIX98]: Likewise.
2060
2061         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2062         usability of symbols in #if.
2063
2064         * conform/conformtest.pl: If macro or constant types start
2065         "promoted:", expect the symbol to be of the following type
2066         promoted by the integer promotions.
2067
2068         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2069         in one place.  Also handle "macro-constant".
2070
2071         * conform/conformtest.pl: Only accept expected macro values with
2072         "==".  Parse all "macro" lines in one place.
2073         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2074
2075         * conform/conformtest.pl: Handle braced types on "constant" lines
2076         instead of handling "typed-constant".
2077         * conform/data/signal.h-data: Use "constant" instead of
2078         "typed-constant".
2079
2080         * conform/conformtest.pl: Handle "optional-" at start of lines in
2081         one place rather than duplicating several cases.  Handle each
2082         format of "macro" line with initial "optional-".
2083
2084         * conform/conformtest.pl: Only accept expected constant or
2085         optional-constant values with "==".  Parse all "constant" lines in
2086         one place.  Parse all "optional-constant" lines in one place.
2087         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2088         * conform/data/fmtmsg.h-data: Likewise.
2089         * conform/data/netinet/in.h-data: Likewise.
2090         * conform/data/tar.h-data: Likewise.
2091         * conform/data/limits.h-data: Use "==" form on "constant" and
2092         "optional-constant" lines.
2093
2094         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2095         Use -std=c99 for XOPEN2K.
2096         (@knownproblems): Remove.
2097         (newtoken): Don't check %isknown.
2098
2099         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2100         Do not expect macro.
2101         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2102         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2103         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2104         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2105         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2106         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2107         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2108         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2109         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2110         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2111         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2112         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2113         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2114         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2115         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2116         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2117         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2118         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2119         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2120         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2121         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2122         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2123         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2124         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2125         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2126         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2127         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2128         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2129         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2130         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2131         [XPG3] (acosh): Likewise.
2132         [XPG3] (asinh): Likewise.
2133         [XPG3] (atanh): Likewise.
2134         [XPG3] (cbrt): Likewise.
2135         [XPG3] (expm1): Likewise.
2136         [XPG3] (ilogb): Likewise.
2137         [XPG3] (log1p): Likewise.
2138         [XPG3] (logb): Likewise.
2139         [XPG3] (nextafter): Likewise.
2140         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2141         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2142         [XPG3] (remainder): Likewise.
2143         [XPG3] (rint): Likewise.
2144         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2145         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2146         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2147         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2148         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2149         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2150         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2151         [UNIX98 || XOPEN2K] (scalb): Expect.
2152         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2153         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2154         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2155         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2156         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2157         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2158         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2159         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2160         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2161         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2162         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2163         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2164         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2165         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2166         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2167         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2168         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2169         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2170         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2171         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2172         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2173         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2174         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2175         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2176         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2177         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2178         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2179         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2180         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2181         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2182         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2183         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2184         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2185         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2186         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2187         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2188         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2189         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2190         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2191         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2192         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2193         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2194         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2195         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2196         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2197         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2198         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2199         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2200         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2201         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2202         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2203         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2204         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2205         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2206         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2207         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2208         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2209         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2210         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2211         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2212         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2213         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2214         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2215         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2216         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2217         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2218         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2219         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2220         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2221         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2222         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2223         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2224         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2225         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2226         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2227         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2228         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2229         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2230         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2231         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2232         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2233         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2234         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2235         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2236         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2237         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2238         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2239         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2240         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2241         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2242         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2243         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2244         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2245         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2246         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2247         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2248         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2249         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2250         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2251         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2252         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2253         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2254         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2255         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2256         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2257         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2258         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2259         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2260         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2261         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2262         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2263         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2264         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2265         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2266         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2267         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2268         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2269         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2270         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2271         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2272         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2273         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2274         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2275         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2276         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2277         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2278         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2279         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2280         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2281         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2282         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2283         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2284         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2285         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2286         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2287         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2288         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2289
2290         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2291         _XOPEN_SOURCE_EXTENDED for XPG4.
2292
2293         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2294
2295         * Makeconfig (localtime): Remove variable.
2296         (inst_localtime-file): Likewise.
2297
2298 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2299
2300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2301         Update.
2302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2303         Update.
2304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2305         Update.
2306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2307         Update.
2308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2309         Update.
2310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2311         Update.
2312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2313         Update.
2314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2315         Update.
2316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2317         Update.
2318
2319 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2320
2321         [BZ #2550]
2322         [BZ #2570]
2323         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2324         comparisons to determine direction to adjust input.
2325         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2326         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2327         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2328         Likewise.
2329         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2330         Likewise.
2331         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2332         Likewise.
2333         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2334         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2335         Likewise.
2336         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2337         Likewise.
2338         * math/libm-test.inc (nexttoward_test): Add more tests.
2339
2340 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2341
2342         [BZ #14040]
2343         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2344         in version GLIBC_2.1, not GLIBC_2.0.
2345         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2346         Likewise.
2347
2348 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2349
2350         [BZ #13942]
2351         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2352         (1 - x) * (1 + x).
2353         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2354         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2355         * math/libm-test.inc (acos_test): Add more tests.
2356         (asin_test): Likewise.
2357         * sysdeps/i386/fpu/libm-test-ulps: Update.
2358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2359
2360         [BZ #14034]
2361         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2362         of square root.
2363         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2364         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2365         * math/libm-test.inc (acos_test_tonearest): New function.
2366         (acos_test_towardzero): Likewise.
2367         (acos_test_downward): Likewise.
2368         (acos_test_upward): Likewise.
2369         (asin_test_tonearest): Likewise.
2370         (asin_test_towardzero): Likewise.
2371         (asin_test_downward): Likewise.
2372         (asin_test_upward): Likewise.
2373         (main): Call the new functions.
2374         * sysdeps/i386/fpu/libm-test-ulps: Update.
2375         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2376
2377         [BZ #13884]
2378         [BZ #13924]
2379         * math/e_exp10.c: Include <float.h>.
2380         (__ieee754_exp10): Handle underflow here rather than multiplying
2381         large negative argument by M_LN10.
2382         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2383         of __ieee754_expf.
2384         * math/e_exp10l.c: Include <float.h>.
2385         (__ieee754_exp10l): Handle underflow here rather than multiplying
2386         large negative argument by M_LN10l.
2387         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2388         spurious overflow exception on underflow.
2389
2390 2012-04-29  Marek Polacek  <polacek@redhat.com>
2391
2392         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2393         (__fortify_function): New macro.
2394         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2395         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2396         __extern_always_inline.
2397         * libio/bits/stdio2.h: Likewise.
2398         * libio/bits/stdio.h: Likewise.
2399         * string/string.h: Likewise.
2400         * string/bits/string3.h: Likewise.
2401         * include/stdio.h: Likewise.
2402         * stdlib/bits/stdlib.h: Likewise.
2403         * stdlib/stdlib.h: Likewise.
2404         * rt/bits/mqueue2.h: Likewise.
2405         * rt/mqueue.h: Likewise.
2406         * posix/bits/unistd.h: Likewise.
2407         * posix/unistd.h: Likewise.
2408         * io/bits/poll2.h: Likewise.
2409         * io/bits/fcntl2.h: Likewise.
2410         * io/fcntl.h: Likewise.
2411         * io/sys/poll.h: Likewise.
2412         * misc/bits/syslog.h: Likewise.
2413         * misc/bits/syslog-ldbl.h: Likewise.
2414         * misc/sys/syslog.h: Likewise.
2415         * socket/bits/socket2.h: Likewise.
2416         * socket/sys/socket.h: Likewise.
2417         * debug/tst-chk1.c: Likewise.
2418         * wcsmbs/bits/wchar2.h: Likewise.
2419         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2420         * wcsmbs/wchar.h: Likewise.
2421
2422 2012-04-29  Andreas Jaeger  <aj@suse.de>
2423
2424         * Makerules (tests): Remove enable-check-abi protection.
2425         (check-abi-warn): Remove.
2426         (check-abi-%): Remove check-abi-warn usage.
2427
2428         * configure.in: Remove check-abi configure option.
2429         * configure: Regenerated.
2430         * config.make.in (enable-check-abi): Remove.
2431
2432 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2433
2434         [BZ #14033]
2435         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2436         double functions to double *_finite functions.
2437
2438         [BZ #13941]
2439         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2440         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2441         LDBL_MIN_EXP.
2442         * stdio-common/Makefile (tests): Add tst-sprintf3.
2443         * stdio-common/tst-sprintf3.c: New file.
2444
2445         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2446         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2447
2448 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2449
2450         * conform/conformtest.pl: Remove duplicate typed-constant
2451         handling.
2452
2453 2012-04-28  David S. Miller  <davem@davemloft.net>
2454
2455         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2456         (check-abi-%): Remove AWK script prerequisite and explicit
2457         abilist directory.
2458         (check-abi): Rewrite to just diff the symlist with the abilist.
2459         (config-tls, config-abi-config): Delete, no longer used.
2460         (update-abi-%): Remove AWK script and explicit abilist directory.
2461         (update-abi): Rewrite to simply compare and conditionally copy the
2462         symlist and the sysdep abilist file.  Remove update-abi-config
2463         checks.
2464         * abilist/ld.abilist: Remove.
2465         * abilist/libBrokenLocale.abilist: Remove.
2466         * abilist/libanl.abilist: Remove.
2467         * abilist/libcrypt.abilist: Remove.
2468         * abilist/libdl.abilist: Remove.
2469         * abilist/librt.abilist: Remove.
2470         * abilist/libthread_db.abilist: Remove.
2471         * abilist/libutil.abilist: Remove.
2472         * scripts/extract-abilist.awk: Remove.
2473         * scripts/merge-abilist.awk: Remove.
2474         * sysdeps/generic/libcidn.abilist: New file.
2475         * sysdeps/generic/libnss_compat.abilist: New file.
2476         * sysdeps/generic/libnss_db.abilist: New file.
2477         * sysdeps/generic/libnss_dns.abilist: New file.
2478         * sysdeps/generic/libnss_files.abilist: New file.
2479         * sysdeps/generic/libnss_hesiod.abilist: New file.
2480         * sysdeps/generic/libnss_nis.abilist: New file.
2481         * sysdeps/generic/libnss_nisplus.abilist: New file.
2482         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2483         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2484         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2485         file.
2486         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2487         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2488         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2489         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2490         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2491         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2492         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2493         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2494         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2495         file.
2496         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2497         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2498         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2499         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2500         file.
2501         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2502         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2503         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2504         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2505         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2506         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2507         file.
2508         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2509         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2510         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2511         file.
2512         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2513         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2514         New file.
2515         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2516         New file.
2517         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2518         New file.
2519         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2520         New file.
2521         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2522         New file.
2523         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2524         New file.
2525         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2526         New file.
2527         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
2528         New file.
2529         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
2530         New file.
2531         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
2532         New file.
2533         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
2534         New file.
2535         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
2536         New file.
2537         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
2538         New file.
2539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
2540         file.
2541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
2542         New file.
2543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
2544         New file.
2545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
2546         file.
2547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
2548         New file.
2549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
2550         New file.
2551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
2552         file.
2553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
2554         New file.
2555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2556         New file.
2557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
2558         New file.
2559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
2560         New file.
2561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
2562         New file.
2563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
2564         New file.
2565         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
2566         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
2567         file.
2568         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
2569         New file.
2570         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
2571         file.
2572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
2573         file.
2574         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
2575         file.
2576         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
2577         file.
2578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
2579         file.
2580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2581         New file.
2582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
2583         file.
2584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
2585         file.
2586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
2587         New file.
2588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
2589         file.
2590         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
2591         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
2592         file.
2593         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
2594         New file.
2595         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
2596         file.
2597         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
2598         file.
2599         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
2600         file.
2601         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
2602         file.
2603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
2604         file.
2605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2606         New file.
2607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
2608         file.
2609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
2610         file.
2611         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
2612         New file.
2613         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
2614         file.
2615         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2616         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
2617         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
2618         file.
2619         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
2620         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
2621         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
2622         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
2623         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
2624         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
2625         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
2626         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
2627         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
2628         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
2629         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
2630         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
2631         file.
2632         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
2633         New file.
2634         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
2635         file.
2636         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
2637         file.
2638         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
2639         file.
2640         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
2641         file.
2642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
2643         file.
2644         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2645         New file.
2646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
2647         New file.
2648         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
2649         file.
2650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
2651         New file.
2652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
2653         file.
2654         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
2655         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
2656         file.
2657         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
2658         New file.
2659         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
2660         file.
2661         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
2662         file.
2663         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
2664         file.
2665         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
2666         file.
2667         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
2668         file.
2669         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2670         New file.
2671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
2672         New file.
2673         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
2674         file.
2675         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
2676         New file.
2677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
2678         file.
2679
2680 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2681
2682         * conform/conformtest.pl: Fix typo in handling typed-constant from
2683         allow-header.
2684
2685 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2686
2687         * README: Cut down references to pre-2.6 Linux kernels and
2688         Linuxthreads.  Update lists of configurations in libc and ports
2689         and sort alphabetically.  Say "or newer" with Linux kernel version
2690         requirements.
2691
2692         * config.h.in [IS_IN_build]: Allow compiling without optimization.
2693
2694 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2695
2696         [BZ #887]
2697         * math/libm-test.inc (logb_test_downward): New test to expose
2698         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
2699         rounding mode.
2700
2701 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2702
2703         [BZ #14027]
2704         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
2705         to be done.
2706         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
2707         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
2708
2709 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
2710
2711         * sysdeps/unix/i386/brk.S: Remove file.
2712         * sysdeps/unix/i386/dl-brk.S: Likewise.
2713         * sysdeps/unix/i386/pipe.S: Likewise.
2714         * sysdeps/unix/i386/sigreturn.S: Likewise.
2715         * sysdeps/unix/i386/syscall.S: Likewise.
2716         * sysdeps/unix/i386/vfork.S: Likewise.
2717         * sysdeps/unix/i386/wait.S: Likewise.
2718
2719         * sysdeps/unix/common/tcsendbrk.c: Move to ...
2720         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
2721
2722         * configure.in (arm*-none*): Do not allow without
2723         --enable-hacker-mode.
2724         (netbsd*): Remove case setting base_os.
2725         (386bsd*): Likewise.
2726         (freebsd*): Likewise.
2727         (bsdi*): Likewise.
2728         (osf*): Likewise.
2729         (sunos*): Likewise.
2730         (ultrix*): Likewise.
2731         (newsos*): Likewise.
2732         (dynix*): Likewise.
2733         (*bsd*): Likewise.
2734         (sysv*): Likewise.
2735         (isc*): Likewise.
2736         (esix*): Likewise.
2737         (sco*): Likewise.
2738         (minix*): Likewise.
2739         (irix4*): Likewise.
2740         (irix6*): Likewise.
2741         (solaris[2-9]*): Likewise.
2742         (none): Likewise.
2743         * configure: Regenerated.
2744
2745 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2746
2747         [BZ #11521]
2748         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
2749         overflow or cancellation in calculating denominator.
2750         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
2751         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
2752         down expression to avoid unexpected rounding in newer GCCs.
2753         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
2754
2755 2012-04-26  David S. Miller  <davem@davemloft.net>
2756
2757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
2758         long-double compat symbols.
2759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
2761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
2762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
2763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
2764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
2765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
2766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
2767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
2768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
2769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
2770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
2771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
2772
2773 2012-04-25  David S. Miller  <davem@davemloft.net>
2774
2775         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
2776         HWCAP_* values only after the memory barriers have been defined.
2777         (atomic_full_barrier): Define.
2778         (atomic_read_barrier): Define.
2779         (atomic_write_barrier): Define.
2780
2781 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2782
2783         * shlib-versions: Add libgcc_s version information.
2784         * sysdeps/generic/libgcc_s.h: Remove.
2785         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
2786         libgcc_s.h.
2787         * sysdeps/gnu/unwind-resume.c: Likewise.
2788         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
2789
2790 2012-04-25  David S. Miller  <davem@davemloft.net>
2791
2792         * sysdeps/unix/sparc/brk.S: Delete.
2793         * sysdeps/unix/sparc/dl-brk.S: Delete.
2794         * sysdeps/unix/sparc/pipe.S: Delete.
2795         * sysdeps/unix/sparc/sysdep.S: Delete.
2796         * sysdeps/unix/sparc/sysdep.h: Delete.
2797         * sysdeps/unix/sparc/vfork.S: Delete.
2798         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
2799         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
2800         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
2801         ret_ERRVAL, r0, r1, MOVE): Define.
2802         (JUMPTARGET): Remove.
2803         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
2804         sysdeps/unix/sparc/sysdep.h
2805         (ENTRY, END): Remove.
2806         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2807
2808 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
2809
2810         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
2811         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
2812         -DIS_IN_build.
2813
2814         * timezone/README: Update upstream location and email address for
2815         tzcode and tzdata.
2816         * timezone/zdump.c: Update from tzcode 2012b.
2817         * timezone/zic.c: Likewise.
2818
2819         * configure.in (libc_cv_as_needed): Remove test.
2820         * configure: Regenerated.
2821         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
2822         conditional definition.
2823         [$(have-as-needed) != yes] (no-as-needed): Likewise.
2824         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
2825         * config.make.in (have-as-needed): Remove variable.
2826
2827 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2828             Paul Pluzhnikov  <ppluzhnikov@google.com>
2829
2830         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
2831         strings correctly.
2832
2833 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2834
2835         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
2836         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
2837         * sysdeps/sh/strlen.S: Likewise.
2838
2839 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2840
2841         * sysdeps/unix/fork.S: Remove file.
2842         * sysdeps/unix/i386/fork.S: Likewise.
2843         * sysdeps/unix/sparc/fork.S: Likewise.
2844
2845         * sysdeps/unix/system.c: Remove file.
2846         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
2847
2848         * sysdeps/unix/getegid.S: Remove file.
2849         * sysdeps/unix/geteuid.S: Likewise.
2850
2851 2012-04-24  Roland McGrath  <roland@hack.frob.com>
2852
2853         * scripts/check-localplt.awk: New file.
2854         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
2855         of diff.
2856         * scripts/data/localplt-generic.data: Add a comment.
2857
2858         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
2859         NODE when __dir_mkfile failed.
2860         * sysdeps/mach/hurd/symlinkat.c: Likewise.
2861         Reported by Ludovic Courtès <ludo@gnu.org>.
2862
2863 2012-04-24  Andreas Jaeger  <aj@suse.de>
2864
2865         * Makerules (common-clean): Also remove gen-as-const-headers
2866         files.
2867
2868 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2869
2870         * Makerules (native-compile): Do not change working directory for
2871         build.  Use $(OUTPUT_OPTION) in command.
2872         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
2873
2874 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2875
2876         [BZ #13886]
2877         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
2878         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
2879         * math/libm-test.inc (floor_test): Add more tests.
2880         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
2881
2882 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2883
2884         * sysdeps/unix/getdents.c: Remove file.
2885         * sysdeps/unix/sysv/getdents.c: Likewise.
2886         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
2887
2888         * sysdeps/unix/syscalls.list (madvise): Add syscall from
2889         sysdeps/unix/mman/syscalls.list.
2890         (mmap): Likewise.
2891         (mprotect): Likewise.
2892         (msync): Likewise.
2893         (munmap): Likewise.
2894         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
2895         * sysdeps/unix/mman/syscalls.list: Remove.
2896         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
2897
2898         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
2899         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
2900         * configure: Regenerated.
2901         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
2902         $(libgcc_s_suffix).
2903         * config.make.in (libgcc_s_suffix): Remove variable.
2904
2905 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
2906
2907         * sysdeps/unix/sysv/gethostname.c: Move to ...
2908         * sysdeps/posix/gethostname.c: ... here.
2909
2910         * sysdeps/unix/execve.S: Remove file.
2911
2912         * sysdeps/unix/_exit.S: Remove file.
2913
2914 2012-04-23  Andreas Jaeger  <aj@suse.de>
2915
2916         [BZ #13739]
2917         * manual/Makefile: Remove make dist support, there's no
2918         need for a stand-alone documentation tar ball.
2919         (TEXI2DVI): Define always, it's not in Makeconfig.
2920         (dist): Removed.
2921         (tar-it): Removed.
2922         (edition): Removed.
2923         (glibc-doc-$(edition).tar): Removed
2924         (%.Z): Removed.
2925         (%.gz): Removed.
2926         (%.uu): Removed.
2927         (ETAGS): Remove, it's in Makeconfig.
2928         (move-if-change): Remove, it's in Makeconfig.
2929
2930 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
2931
2932         [BZ #13970]
2933         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
2934         (strtod, strtof, strtold, strtol, strtoul, strtoq)
2935         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
2936         (strtod_l, strtof_l, strtold_l): Remove __wur.
2937         It is not necessarily an error to ignore strtol's return value.
2938         One can reliably look at the stored endptr to decide whether
2939         the number had valid syntax.
2940
2941 2012-04-21  Andreas Jaeger  <aj@suse.de>
2942
2943         [BZ #13739]
2944         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
2945
2946 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
2947
2948         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
2949         * sysdeps/unix/sysv/Versions: Remove file.
2950
2951 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2952
2953         [BZ #13927]
2954         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2955
2956 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
2957
2958         [BZ #7064]
2959         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
2960         version from __vm86.
2961
2962 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
2963
2964         * sysdeps/unix/common/lxstat.c: Remove file.
2965         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
2966
2967         * sysdeps/unix/sysv/Makefile: Remove file.
2968
2969         * sysdeps/unix/sysv/direct.h: Remove file.
2970
2971         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
2972         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
2973         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
2974         * sysdeps/unix/sysv/bits/signum.h: Likewise.
2975         * sysdeps/unix/sysv/bits/stat.h: Likewise.
2976         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
2977         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
2978
2979         * sysdeps/unix/sysv/setrlimit.c: Remove file.
2980
2981         * sysdeps/unix/xmknod.c: Remove file.
2982         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
2983
2984         * sysdeps/unix/sysv/settimeofday.c: Remove file.
2985
2986         * sysdeps/unix/sysv/i386/time.S: Remove file.
2987
2988         * sysdeps/unix/fxstat.c: Remove file.
2989         * sysdeps/unix/xstat.c: Likewise.
2990         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
2991
2992         * sysdeps/unix/sysv/sigaction.c: Remove file.
2993
2994         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
2995         (sysdep_headers): Remove variable.
2996         [termio.h not in sysdep_headers] (generated): Likewise.
2997         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
2998         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
2999         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3000         * sysdeps/unix/sysv/tcflow.c: Likewise.
3001         * sysdeps/unix/sysv/tcflush.c: Likewise.
3002         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3003         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3004         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3005         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3006         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3007
3008         * sysdeps/unix/siglist.c: Remove file.
3009
3010         * sysdeps/unix/getppid.S: Remove file.
3011
3012         * sysdeps/unix/mkdir.c: Remove file.
3013         * sysdeps/unix/rmdir.c: Likewise.
3014
3015 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3016
3017         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3018         ERR_MAX value.
3019         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3020         errlist-compat value.
3021
3022 2012-04-18  David S. Miller  <davem@davemloft.net>
3023
3024         * sysdeps/generic/memcopy.h (reg_char): Delete.
3025         * debug/strcat_chk.c: Use char, not reg_char.
3026         * debug/strcpy_chk.c: Likewise.
3027         * debug/strncat_chk.c: Likewise.
3028         * debug/strncpy_chk.c: Likewise.
3029         * string/memchr.c: Likewise.
3030         * string/memrchr.c: Likewise.
3031         * string/rawmemchr.c: Likewise.
3032         * string/strcat.c: Likewise.
3033         * string/strchr.c: Likewise.
3034         * string/strchrnul.c: Likewise.
3035         * string/strcmp.c: Likewise.
3036         * string/strcpy.c: Likewise.
3037         * string/strncat.c: Likewise.
3038         * string/strncmp.c: Likewise.
3039         * string/strncpy.c: Likewise.
3040
3041 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3042
3043         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3044         __builtin_memcopy is called when src and dest ranges are known to not
3045         overlap.
3046
3047 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3048
3049         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3050         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3051         fwd_align_merge macro call.
3052         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3053         bwd_align_merge macro call.
3054         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3055
3056 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3057
3058         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3059         bwd_align_merge macros.
3060         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3061         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3062         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3063
3064 2012-04-18  David S. Miller  <davem@davemloft.net>
3065
3066         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3067
3068 2012-04-18  Andreas Jaeger  <aj@suse.de>
3069
3070         [BZ# 6794]
3071         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3072         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3073         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3074
3075         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3076         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3077         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3078
3079         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3080         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3081         Adjust for changed ldbl-128 files.
3082
3083         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3084         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3085         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3086
3087 2012-04-17  David S. Miller  <davem@davemloft.net>
3088
3089         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3090
3091 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3092
3093         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3094         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3095         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3096         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3097         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3098         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3099
3100 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3101
3102         [BZ #6794]
3103         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3104         * math/libm-test.inc: Add ilogb errno and exception tests.
3105         * math/w_ilogb.c: New file: ilogb wrapper.
3106         * math/w_ilogbf.c: New file: ilogbf wrapper.
3107         * math/w_ilogbl.c: New file: ilogbl wrapper.
3108         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3109         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3110         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3111         exception being thrown with 0.0 as argument.
3112         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3113         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3114         exception being thrown with 0.0 as argument.
3115         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3116         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3117         exception being thrown with 0.0 as argument.
3118         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3119         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3120         exception being thrown with 0.0 as argument.
3121         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3122         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3123         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3124         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3125         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3126         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3127         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3128         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3129         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3130
3131 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3132
3133         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3134         with altivec.
3135
3136 2012-04-16  Marek Polacek  <polacek@redhat.com>
3137
3138         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3139
3140 2012-04-16  Marek Polacek  <polacek@redhat.com>
3141
3142         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3143         operands of fdivp instruction.
3144
3145 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3146
3147         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3148         * elf/tst-auditmod3b.c: Likewise.
3149         * elf/tst-auditmod4b.c: Likewise.
3150         * elf/tst-auditmod5b.c: Likewise.
3151         * elf/tst-auditmod6b.c: Likewise.
3152         * elf/tst-auditmod6c.c: Likewise.
3153         * elf/tst-auditmod7b.c: Likewise.
3154         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3155         * sysdeps/x86_64/preconfigure.in: Likewise.
3156         * sysdeps/x86_64/preconfigure: Regenerated.
3157
3158 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3159
3160         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3161         __ILP32__.
3162
3163 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3164
3165         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3166         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3167
3168 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3169
3170         [BZ #13973]
3171         * locale/iso-639.def: Fix gl language name. Spotted by
3172         Yaron Shahrabani.
3173
3174 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3175
3176         [BZ #2074]
3177         * libio/libio.h (__io_write_fn): Update comment.
3178
3179 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3180
3181         [BZ #2074]
3182         * stdio.texi (Hook Functions): The user provided writer function
3183         is not allowed to return -1.
3184
3185 2012-04-11  David S. Miller  <davem@davemloft.net>
3186
3187         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3188
3189 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3190
3191         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3192         Add a leading slash to rtkaio.
3193
3194 2012-04-11  Jim Meyering  <meyering@redhat.com>
3195
3196         [BZ #11959]
3197         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3198         It is not necessarily an error to ignore fwrite's return
3199         value.  One can reliably use ferror to test for errors after
3200         the fact.
3201
3202 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3203
3204         * bits/types.h (__snseconds_t): New type.
3205         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3206
3207         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3208         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3209         (__SNSECONDS_T_TYPE): Likewise.
3210         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3211         (__SNSECONDS_T_TYPE): Likewise.
3212         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3213         (__SNSECONDS_T_TYPE): Likewise.
3214
3215 2012-04-10  Andreas Jaeger  <aj@suse.de>
3216
3217         [BZ #2636]
3218         * manual/time.texi (Processor Time): Return type of times is
3219         elapsed real time since an arbitrary point in the past.
3220         (CPU Time): Move CLK_TCK from here...
3221         (Processor Time): ...to here.  Correct description.
3222         * manual/conf.texi (Constants for Sysconf): Correct description of
3223         _SC_CLK_TCK.
3224
3225 2012-04-10  David S. Miller  <davem@davemloft.net>
3226
3227         [BZ #13967]
3228         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3229         where the is a gap between DT_REL(A) and DT_JMPREL.
3230
3231 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3232
3233         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3234         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3235         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3236
3237 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3238
3239         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3240         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3241         (dl_main): Handle --inhibit-cache.
3242         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3243         _dl_inhibit_cache.
3244         * elf/dl-load.c (_dl_map_object): Use it.
3245         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3246
3247 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3248
3249         [BZ #13872]
3250         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3251         (__ieee754_powl): Saturate large exponents rather than testing for
3252         overflow of y*log2(x).
3253         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3254         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3255         exceptions.
3256
3257         [BZ #11521]
3258         * math/s_ctan.c: Include <float.h>.
3259         (__ctan): Avoid internal overflow or cancellation in calculating
3260         denominator.
3261         * math/s_ctanf.c: Likewise.
3262         * math/s_ctanl.c: Likewise.
3263         * math/s_ctanh.c: Likewise.
3264         * math/s_ctanhf.c: Likewise.
3265         * math/s_ctanhl.c: Likewise.
3266         * math/libm-test.inc (ctan_test): Add more tests.
3267         (ctanh_test): Likewise.
3268         * sysdeps/i386/fpu/libm-test-ulps: Update.
3269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3270
3271 2012-04-09  Andreas Jaeger  <aj@suse.de>
3272
3273         [BZ #6894]
3274         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3275         is an optional BSD extension.
3276
3277         [BZ #10254]
3278         * manual/stdio.texi (Opening Streams): Document additional fopen
3279         parameters.
3280
3281 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3282
3283         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3284         %eax without telling the compiler.
3285
3286 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3287
3288         [BZ # 13963]
3289         * manual/install.texi: Use sourceware.org.
3290
3291 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3292
3293         [BZ #13873]
3294         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3295         (__ieee754_pow): Generate overflow and underflow using huge*huge
3296         and tiny*tiny rather than just returning constant infinity or zero
3297         for large exponents.
3298         * math/libm-test.inc (pow_test): Require overflow exceptions for
3299         applicable cases of large exponents.
3300
3301         [BZ #706]
3302         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3303         (__ieee754_pow): Use iterative multiplication algorithm only for
3304         integer exponents with absolute value below 1024.  Check for odd
3305         integer exponents when using algorithm for real exponents.
3306         * math/libm-test.inc (pow_test): Add more tests.
3307         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3308
3309 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3310
3311         [BZ #13705]
3312         * math/libm-test.inc (exp_test): Do not allow overflow exception
3313         on underflow test.
3314
3315 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3316
3317         [BZ #13705]
3318         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3319         instead of __kernel_standard_f.
3320
3321 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3322
3323         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3324         * sysdeps/x86_64/memset_chk.S: Likewise.
3325
3326 2012-04-08  Andreas Jaeger  <aj@suse.de>
3327
3328         [BZ #10153]
3329         * manual/startup.texi (Environment Access): Describe return value
3330         for putenv and setenv.
3331
3332         [BZ #6895]
3333         * manual/filesys.texi (Directory Entries): Add description for
3334         DT_LNK.
3335
3336         [BZ #6890]
3337         * manual/filesys.texi (Directory Entries): Clarify that it's file
3338         system not operating system in the description of DT_UNKNOWN.
3339
3340         [BZ #6578]
3341         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3342
3343 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3344
3345         [BZ #6649]
3346         * manual/llio.texi (Opening and Closing Files): Add cross
3347         reference to explain mode argument.
3348
3349 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3350
3351         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3352         * sysdeps/x86_64/memset_chk.S: Likewise.
3353
3354 2012-04-07  David S. Miller  <davem@davemloft.net>
3355
3356         * elf/elf.h (R_SPARC_WDISP10): Define.
3357         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3358         R_SPARC_SIZE32.
3359         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3360         R_SPARC_SIZE64 and R_SPARC_H34.
3361
3362 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3363
3364         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3365         conditions and remove no longer applicable assertion.
3366
3367 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3368
3369         * bits/byteswap.h: Include <features.h>.
3370         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3371         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3372
3373 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3374
3375         * bits/byteswap.h (__bswap_16): Removed.
3376         Include <bits/byteswap-16.h> to get __bswap_16.
3377         * sysdeps/i386/bits/byteswap.h: Likewise.
3378         * sysdeps/s390/bits/byteswap.h: Likewise.
3379         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3380         * bits/byteswap-16.h: New file.
3381         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3382         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3383         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3384         * string/Makefile (headers): Add bits/byteswap-16.h.
3385
3386 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3387
3388         [BZ #13895]
3389         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3390         extra indirection.
3391         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3392         * nss/tst-nss-static.c: New.
3393
3394 2012-04-06  Robert Millan  <rmh@gnu.org>
3395
3396         [BZ #6486]
3397         * manual/llio.texi (File Position Primitive): lseek
3398         refers to WHENCE when it really means OFFSET.
3399
3400 2012-04-06  Andreas Jaeger  <aj@suse.de>
3401
3402         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3403         strncmp declarations.
3404
3405         * abilist/libc.abilist: Add __poll and __ppoll.
3406
3407 2012-04-05  David S. Miller  <davem@davemloft.net>
3408
3409         * scripts/check-local-headers.sh: Accept a host triplet in the
3410         path matched by the exclude regexp.
3411
3412         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3413         definition.
3414         * sysdeps/powerpc/powerpc32/dl-machine.h
3415         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3416         * sysdeps/s390/s390-32/dl-machine.h
3417         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3418         * sysdeps/sparc/sparc32/dl-machine.h
3419         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3420         * sysdeps/sparc/sparc64/dl-machine.h
3421         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3422
3423         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3424         lazy binding.
3425         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3426         undefined symbol errors.
3427
3428         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3429         DT_NEEDED entries.
3430
3431 2012-04-05  Michael Matz  <matz@suse.de>
3432
3433         [BZ #13592]
3434         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3435
3436 2012-04-05  Andreas Jaeger  <aj@suse.de>
3437
3438         [BZ #13908]
3439         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3440         comment.
3441
3442 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3443
3444         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3445         which ROUND is no valid rounding mode.
3446
3447 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3448
3449         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3450         read again.
3451         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3452
3453 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3454
3455         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3456         an exception using FPU order intentionally.
3457
3458 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3459
3460         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3461         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3462         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3463         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3464
3465 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3466
3467         [BZ #12340]
3468         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3469         EINVAL when BUFLEN is too smal.
3470
3471 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3472
3473         [BZ #13553]
3474         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3475         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3476
3477 2012-04-03  Andreas Jaeger  <aj@suse.de>
3478
3479         [BZ #13938]
3480         * manual/setjmp.texi (System V contexts): Fix sentence.
3481
3482         [BZ #13926]
3483         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3484         New macro for this case.
3485         [!__GNUC__] (__bswap_64): New inline function for this case.
3486         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3487         * bits/byteswap.h: Likewise.
3488         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3489         ull, guard with __GLIBC_HAVE_LONG_LONG.
3490
3491         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3492         __GLIBC_HAVE_LONG_LONG.
3493
3494         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3495         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3496
3497 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3498
3499         [BZ #13691]
3500         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3501         inptr and inend, rather than using last_ch.
3502
3503 2012-04-02  David S. Miller  <davem@davemloft.net>
3504
3505         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3506         * stdio-common/printf-parse.h (read_int): Change return type to
3507         'int', return -1 on INT_MAX overflow.
3508         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3509         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3510         overflows INT_MAX.  Check for overflow of in-format-string precision
3511         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3512         SIZE_MAX not INT_MAX for integer overflow test.
3513         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3514         skip the construct in the format string but do not record anything.
3515         * stdio-common/bug22.c: Adjust to test both width/prevision
3516         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3517         explicitly for proper errno values.
3518
3519 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3520
3521         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3522         CHAR_MAX.
3523         * string/test-strcmp.c [! WIDE]: Likewise.
3524         * time/tst-mktime2.c: Likewise for INT_MAX.
3525         * string/test-string.h: #include <sys/param.h> for MIN.
3526
3527         * csu/init-first.c (__libc_init_first): Call __ctype_init.
3528         * sysdeps/i386/init-first.c (init): Likewise.
3529         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
3530         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
3531         * sysdeps/sh/init-first.c (init): Likewise.
3532
3533 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
3534
3535         * po/ru.po: Update from translation team.
3536         * po/vi.po: Likewise.
3537
3538 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3539
3540         * resolv/nss_dns/dns-host.c: Merge copyright years.
3541
3542 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3543
3544         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3545         Optimize memcpy with prefetch if
3546         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
3547         src, dst pointers have unequal 16 byte alignments.
3548
3549 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3550
3551         [BZ #13928]
3552         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
3553         from a CNAME entry and return the minimum ttl for the query.
3554         (gaih_getanswer_slice): Likewise.
3555
3556 2012-03-30  Jeff Law  <law@redhat.com>
3557
3558         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
3559         due to long keys.
3560         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
3561         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
3562
3563         * resolv/nss_dns/dns-host.c: Update copyright year.
3564
3565 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
3566
3567         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
3568         requests to save a system call.  Fix check that all bytes are sent.
3569
3570         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
3571         comments for sendmmsg.
3572
3573 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3574
3575         [BZ #13691]
3576         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
3577         with only 1 character between 0x0041 and 0x01b0.
3578         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
3579         * wcsmbs/tst-mbsnrtowcs.c: New file.
3580
3581 2012-03-29  David S. Miller  <davem@davemloft.net>
3582
3583         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
3584         small copies by hand.
3585
3586 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3587
3588         [BZ #13761]
3589         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
3590         _nss_compat_initgroups_dyn): Fall back to malloc/free
3591         for large group memberships.
3592
3593 2012-03-28  David S. Miller  <davem@davemloft.net>
3594
3595         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
3596         that branches into memcpy.
3597         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3598         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
3599         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3600         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
3601         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
3602         bits.
3603         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
3604         implementation too.
3605         * sysdeps/sparc/mempcpy.S: New file.
3606
3607         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
3608         the IFUNC routine in the libc case.
3609         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3610
3611         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
3612         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
3613         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
3614         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
3615         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
3616         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
3617         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
3618         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
3619
3620         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
3621         loop to 256 bytes instead of 64 bytes and fix test signedness.
3622
3623         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
3624         * sysdeps/sparc/sparc32/Makefile: rather than here...
3625         * sysdeps/sparc/sparc64/Makefile: and here.
3626
3627 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
3628
3629         * malloc/mallocbug.c: Avoid warnings about unused variables.
3630
3631 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3632
3633         [BZ #13760]
3634         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
3635         in the right place. Discard and retry query if response is
3636         larger than input buffer size.
3637
3638 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
3639
3640         [BZ #369]
3641         [BZ #2678]
3642         [BZ #3866]
3643         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
3644         x for large integer exponent.
3645         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3646         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
3647         sign of result as needed afterwards.
3648         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3649         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
3650         result for underflowing pow the same as for overflow.
3651         (__kernel_standard_l): Handle powl overflow and underflow here
3652         rather than calling __kernel_standard.
3653         * math/libm-test.inc (pow_test): Add more tests.
3654
3655         [BZ #3868]
3656         [BZ #13879]
3657         [BZ #13910]
3658         [BZ #13911]
3659         [BZ #13912]
3660         [BZ #13913]
3661         [BZ #13915]
3662         [BZ #13916]
3663         [BZ #13917]
3664         [BZ #13918]
3665         [BZ #13919]
3666         [BZ #13920]
3667         [BZ #13921]
3668         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
3669         * sysdeps/ieee754/k_standard.c: Include <float.h>.
3670         (__kernel_standard_l): New function.
3671         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
3672         __kernel_standard.
3673         * math/w_acosl.c (__acosl): Likewise.
3674         * math/w_asinl.c (__asinl): Likewise.
3675         * math/w_atan2l.c (__atan2l): Likewise.
3676         * math/w_atanhl.c (__atanhl): Likewise.
3677         * math/w_coshl.c (__coshl): Likewise.
3678         * math/w_exp10l.c (__exp10l): Likewise.
3679         * math/w_exp2l.c (__exp2l): Likewise.
3680         * math/w_fmodl.c (__fmodl): Likewise.
3681         * math/w_hypotl.c (__hypotl): Likewise.
3682         * math/w_j0l.c (__j0l, __y0l): Likewise.
3683         * math/w_j1l.c (__j1l, __y1l): Likewise.
3684         * math/w_jnl.c (__jnl, __ynl): Likewise.
3685         * math/w_lgammal.c (__lgammal): Likewise.
3686         * math/w_log10l.c (__log10l): Likewise.
3687         * math/w_log2l.c (__log2l): Likewise.
3688         * math/w_logl.c (__logl): Likewise.
3689         * math/w_powl.c (__powl): Likewise.
3690         * math/w_remainderl.c (__remainderl): Likewise.
3691         * math/w_scalbl.c (sysv_scalbl): Likewise.
3692         * math/w_sinhl.c (__sinhl): Likewise.
3693         * math/w_sqrtl.c (__sqrtl): Likewise.
3694         * math/w_tgammal.c (__tgammal): Likewise.
3695         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
3696         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
3697         * math/libm-test.inc (acos_test): Add more tests.
3698         (acosh_test): Likewise.
3699         (asin_test): Likewise.
3700         (atanh_test): Likewise.
3701         (exp_test): Likewise.
3702         (exp10_test): Likewise.
3703         (exp2_test): Likewise.
3704         (expm1_test): Likewise.
3705         (lgamma_test): Likewise.
3706         (log_test): Likewise.
3707         (log10_test): Likewise.
3708         (log1p_test): Likewise.
3709         (log2_test): Likewise.
3710         (pow_test): Do not allow some spurious overflow exceptions.
3711         (sqrt_test): Add more tests.
3712         (tgamma_test): Likewise.
3713         (y0_test): Likewise.
3714         (y1_test): Likewise.
3715         (yn_test): Likewise.
3716
3717 2012-03-27  Anton Blanchard  <anton@samba.org>
3718
3719         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
3720         MAP_HUGETLB.
3721         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3722         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3723         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3724
3725 2012-03-27  David S. Miller  <davem@davemloft.net>
3726
3727         * conform/Makefile: Run run-conformtest.sh using $(BASH).
3728
3729         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
3730         have-as-vis3 check.
3731
3732 2012-03-27  Andreas Jaeger  <aj@suse.de>
3733
3734         * sysdeps/x86_64/elf/configure.in: Moved to ...
3735         * sysdeps/x86_64/configure.in: ... here.
3736         * sysdeps/x86_64/elf/start.S: Moved to ...
3737         * sysdeps/x86_64/start.S: ... here.
3738         * sysdeps/x86_64/elf/configure: Delete.
3739
3740         * sysdeps/x86_64/configure.in: Merge contents from
3741         sysdeps/i386/configure.in (without i686 check).
3742
3743         * sysdeps/i386/elf/Versions: Merge into ...
3744         * sysdeps/i386/Versions: ... this.
3745         * sysdeps/i386/elf/Versions: Delete file.
3746         * sysdeps/i386/elf/start.S: Moved to ...
3747         * sysdeps/i386/start.S: ...here.
3748         * sysdeps/i386/elf/configure.in: Merge into...
3749         * sysdeps/i386/configure.in: ...here.
3750         * sysdeps/i386/elf/configure.in: Delete file.
3751         * sysdeps/i386/elf/configure: Delete file.
3752
3753         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
3754         * debug/backtracesyms.c: ... here.
3755         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
3756         * debug/backtracesymsfd.c: ... here.
3757         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
3758         * sysdeps/generic/ifunc-sel.h: ... here.
3759
3760         * sysdeps/unix/i386/start.c: Delete file.
3761         * sysdeps/unix/sparc/start.c: Delete file.
3762         * sysdeps/unix/start.c: Delete file.
3763
3764         * sysdeps/sh/elf/configure.in: Moved to ...
3765         * sysdeps/sh/configure.in: ... here.
3766         * sysdeps/sh/elf/start.S: Moved to ...
3767         * sysdeps/sh/start.S: ... here.
3768         * sysdeps/sh/elf/configure: Delete file.
3769
3770         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
3771         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
3772         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
3773         * sysdeps/powerpc/powerpc64/entry.h: ... here.
3774         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
3775         * sysdeps/powerpc/powerpc64/start.S: here.
3776         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
3777         * sysdeps/powerpc/powerpc64/Makefile: ... this.
3778         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
3779         * sysdeps/powerpc/powerpc64/configure.in: ... this.
3780         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
3781
3782         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
3783         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
3784         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
3785         * sysdeps/powerpc/powerpc32/start.S: ... here.
3786         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
3787         * sysdeps/powerpc/powerpc32/configure.in: ... this.
3788         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
3789
3790         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
3791         * sysdeps/powerpc/ifunc-sel.h: ... here.
3792         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
3793         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
3794
3795         * sysdeps/sparc/elf/configure.in: Moved to ...
3796         * sysdeps/sparc/configure.in: ... here.
3797         * sysdeps/sparc/elf/configure: Delete file.
3798         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
3799         * sysdeps/sparc/sparc32/start.S: ... here.
3800         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
3801         * sysdeps/sparc/sparc64/start.S: ... here.
3802         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
3803         * sysdeps/sparc/sparc32/Makefile: ... this.
3804         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
3805         * sysdeps/sparc/sparc64/Makefile: ... this.
3806
3807         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
3808         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
3809         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
3810         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
3811         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
3812         * sysdeps/s390/s390-32/setjmp.S: ... here.
3813         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
3814         * sysdeps/s390/s390-32/configure.in: ... here.
3815         * sysdeps/s390/s390-32/elf/configure: Delete file.
3816         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
3817         * sysdeps/s390/s390-32/start.S: ... here.
3818
3819         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
3820         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
3821         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
3822         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
3823         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
3824         * sysdeps/s390/s390-64/setjmp.S: ... here.
3825         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
3826         * sysdeps/s390/s390-64/configure.in: ... here
3827         * sysdeps/s390/s390-64/elf/configure: Delete file.
3828         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
3829         * sysdeps/s390/s390-64/start.S: ... here.
3830         * sysdeps/s390/s390-64/elf/configure: Delete.
3831
3832         * configure.in: Remove support for elf directories in sysdeps.
3833
3834         * configure: Regenerated.
3835         * sysdeps/i386/configure: Regenerated.
3836         * sysdeps/powerpc/powerpc32/configure: Regenerated.
3837         * sysdeps/powerpc/powerpc64/configure: Regenerated.
3838         * sysdeps/s390/s390-32/configure: Regenerated.
3839         * sysdeps/s390/s390-64/configure: Regenerated.
3840         * sysdeps/sh/configure: Regenerated.
3841         * sysdeps/sparc/configure: Regenerated.
3842         * sysdeps/x86_64/configure: Regenerated.
3843
3844 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
3845
3846         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3847
3848         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
3849         denormal result into account.
3850
3851 2012-03-25  Roland McGrath  <roland@hack.frob.com>
3852
3853         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
3854         Reported by Allan McRae <allan@archlinux.org>.
3855
3856 2012-03-23  Jeff Law  <law@redhat.com>
3857
3858         * nss/getnssent.c (__nss_getent): Fix typo.
3859
3860 2012-03-23  David S. Miller  <davem@davemloft.net>
3861
3862         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3863
3864 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
3865
3866         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
3867         to pad to uint64_t for each field.
3868         (dl_tls_index): Replace unsigned long with uint64_t.
3869
3870 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
3871         Paul Pluzhnikov  <ppluzhnikov@google.com>
3872
3873         [BZ #6528]
3874         * grp/Makefile (otherlibs): Don't set it.
3875         * inet/Makefile (otherlibs): Likewise.
3876         * login/Makefile (otherlibs): Likewise.
3877         * nscd/Makefile (otherlibs): Likewise.
3878         * posix/Makefile (otherlibs): Likewise.
3879         * pwd/Makefile (otherlibs): Likewise.
3880         * rt/Makefile (otherlibs): Likewise.
3881         * sunrpc/Makefile (otherlibs): Likewise.
3882         * nss/Makefile (otherlibs): Likewise.
3883         Add libnss_files to routines and static-only-routines.
3884         ($(objpfx)getent): Remove rule.
3885         * resolv/Makefile: Add libnss_dns and libresolv to routines and
3886         static-only-routines.
3887
3888 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3889
3890         [BZ #13892]
3891         * math/s_cexp.c: Include <float.h>.
3892         (__cexp): Handle exp result overflowing not necessarily
3893         overflowing both real and imaginary parts of result.
3894         * math/s_cexpf.c: Likewise.
3895         * math/s_cexpl.c: Likewise.
3896         * math/libm-test.inc (cexp_test): Add more tests.
3897         * sysdeps/i386/fpu/libm-test-ulps: Update.
3898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3899
3900 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3901
3902         * include/link.h (ELFW): New macro.
3903         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
3904         Replace ELF64_R_TYPE with ELFW(R_TYPE).
3905
3906 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3907
3908         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
3909         with uint64_t.
3910
3911 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3912
3913         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
3914         declaration.
3915         (struct La_x32_retval): Likewise.
3916
3917 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3918
3919         * sysdeps/x86_64/preconfigure.in: New file.
3920         * sysdeps/x86_64/preconfigure: New generated file.
3921
3922 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3923
3924         [BZ #13824]
3925         * math/e_exp2l.c: Include <float.h>.
3926         (__ieee754_exp2l): Handle overflow and underflow cases
3927         separately.  Only pass fractional part of argument to
3928         __ieee754_expl.
3929         * math/libm-test.inc (exp2_test): Add more tests.
3930
3931         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
3932         negating x to take absolute value.
3933         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3934         Likewise.
3935         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3936         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
3937         Likewise.
3938         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
3939         computing low part if x was negated.
3940         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3941
3942 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3943
3944         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
3945         la_x32_gnu_pltexit.
3946         (pltexit): Cast int_retval to ptrdiff_t.
3947         * elf/tst-auditmod3b.c: Likewise.
3948         * elf/tst-auditmod4b.c: Likewise.
3949         * elf/tst-auditmod5b.c: Likewise.
3950         * elf/tst-auditmod6b.c: Likewise.
3951         * elf/tst-auditmod6c.c: Likewise.
3952         * elf/tst-auditmod7b.c: Likewise.
3953
3954         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
3955         and x32_gnu_pltexit.
3956
3957         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
3958         __ELF_NATIVE_CLASS.
3959         (La_x32_regs): New macro.
3960         (La_x32_retval): Likewise.
3961         (la_x32_gnu_pltenter): New function prototype.
3962         (la_x32_gnu_pltexit): Likewise.
3963
3964 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
3965
3966         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
3967         exponent.
3968
3969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3970
3971         * configure.in (libc_cv_cc_nofma): Check for option to disable
3972         generation of FMA instructions.
3973         * configure: Regenerate.
3974         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
3975         * sysdeps/ieee754/dbl-64/Makefile: New file.
3976         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3977         Remove brandred-fma4.
3978         (CFLAGS-brandred-fma4.c): Remove.
3979         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
3980         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
3981         define.
3982         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
3983         define.
3984
3985 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3986
3987         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3988         LLONG_MAX != LONG_MAX.
3989         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3990         (_fitoa_word): Likewise.
3991         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
3992         LLONG_MAX != LONG_MAX.
3993         * stdio-common/_itowa.h: Include <_itoa.h>.
3994         (_itowa_word): Use _ITOA_WORD_TYPE on value.
3995         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
3996         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
3997         only if not defined.
3998         (_ITOA_WORD_TYPE): Likewise.
3999         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4000         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4001
4002 2012-03-21  David S. Miller  <davem@davemloft.net>
4003
4004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4005
4006 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4007
4008         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4009         of x86_64 when setting libc_cv_slibdir, libdir and
4010         libc_cv_localedir.
4011         * sysdeps/unix/sysv/linux/configure: Regenerated.
4012
4013 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4014
4015         * manual/lang.texi (Old Varargs): Remove section.
4016         (How Variadic): Update menu.
4017         (va_start): Do not mention varargs.h.
4018
4019 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4020             Joseph Myers  <joseph@codesourcery.com>
4021
4022         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4023         link test.
4024         * configure: Regenerated.
4025
4026 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4027
4028         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4029         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4030         conformtest.pl
4031
4032 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4033
4034         * NOTES: Remove.
4035         * Makefile (files-for-dist): Remove NOTES.
4036         (NOTES): Remove rule.
4037         * README: Don't refer to NOTES.
4038         * manual/creature.texi: Don't include macros.texi.
4039         * manual/intro.texi (creature.texi): Remove comment referring to
4040         NOTES.
4041
4042         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4043         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4044         * configure: Regenerated.
4045         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4046         LIBC_TRY_CC_OPTION.
4047         (libc_cv_as_i686): Likewise.
4048         (libc_cv_cc_avx): Likewise.
4049         (libc_cv_cc_sse2avx): Likewise.
4050         (libc_cv_cc_fma4): Likewise.
4051         (libc_cv_cc_novzeroupper): Likewise.
4052         * sysdeps/i386/configure: Regenerated.
4053
4054         [BZ #13883]
4055         * sysdeps/i386/fpu/s_cexp.S: Remove.
4056         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4057         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4058         * math/libm-test.inc (cexp_test): Add more tests.
4059         * sysdeps/i386/fpu/libm-test-ulps: Update.
4060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4061
4062 2012-03-21  Allan McRae  <allan@archlinux.org>
4063
4064         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4065
4066 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4067
4068         [BZ #13871]
4069         * math/w_exp2.c: Do not include <float.h>.
4070         (o_threshold, u_threshold): Remove.
4071         (__exp2): Calculate result before checking finiteness and calling
4072         __kernel_standard.
4073         * math/w_exp2f.c: Likewise.
4074         * math/w_exp2l.c: Likewise.
4075         * math/libm-test.inc (exp2_test): Require overflow exception for
4076         1e6 input.
4077
4078         [BZ #3866]
4079         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4080         range of signed 64-bit integers before using fistpll.  Remove
4081         checks for whether integers fit in mantissa bits.
4082         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4083         the range of signed 32-bit integers before using fistpl.  Remove
4084         checks for whether integers fit in mantissa bits.
4085         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4086         (__ieee754_powl): Test for y outside the range of signed 64-bit
4087         integers before using fistpll.  Reduce 64-bit values to 63-bit
4088         ones as needed.
4089         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4090         divide-by-zero is raised for zero to large negative powers.
4091         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4092         (__ieee754_powl): Test for y outside the range of signed 64-bit
4093         integers before using fistpll.  Reduce 64-bit values to 63-bit
4094         ones as needed.
4095         * math/libm-test.inc (pow_test): Add more tests.
4096
4097 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4098
4099         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4100         <stdio-common/_itoa.h>.
4101         * debug/segfault.c: Likewise.
4102         * elf/dl-cache.c: Likewise.
4103         * elf/dl-minimal.c: Likewise.
4104         * elf/dl-misc.c: Likewise.
4105         * elf/dl-sysdep.c: Likewise.
4106         * elf/dl-version.c: Likewise.
4107         * elf/rtld.c: Likewise.
4108         * hurd/hurdsock.c: Likewise.
4109         * hurd/lookup-retry.c: Likewise.
4110         * malloc/malloc.c: Likewise.
4111         * malloc/mtrace.c: Likewise.
4112         * nscd/nscd_getgr_r.c: Likewise.
4113         * nscd/nscd_getpw_r.c: Likewise.
4114         * nscd/nscd_getserv_r.c: Likewise.
4115         * posix/getopt_init.c: Likewise.
4116         * posix/wordexp.c: Likewise.
4117         * stdio-common/_itoa.c: Likewise.
4118         * stdio-common/printf_fphex.c: Likewise.
4119         * stdio-common/vfprintf.c: Likewise.
4120         * string/_strerror.c: Likewise.
4121         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4122         * sysdeps/i386/i686/hp-timing.h: Likewise.
4123         * sysdeps/mach/_strerror.c: Likewise.
4124         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4125         * sysdeps/mach/hurd/sethostid.c: Likewise.
4126         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4127         * sysdeps/mach/xpg-strerror.c: Likewise.
4128         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4129         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4130         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4131         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4132         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4133         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4134         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4135         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4136         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4137         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4138         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4139         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4140         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4141         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4142         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4143         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4144         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4145         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4146         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4147         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4148         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4149
4150         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4151
4152         * stdio-common/_itoa.h: Moved to ...
4153         * sysdeps/generic/_itoa.h: Here.
4154
4155         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4156
4157         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4158         instead of "_itoa.h" and "_itowa.h".
4159         * stdio-common/vfprintf.: Likewise.
4160
4161 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4162
4163         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4164         <bits/wordsize.h>.
4165         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4166         (__signbit): Likwise.
4167         (llrintf): Likwise.
4168         (llrint): Likwise.
4169
4170 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4171
4172         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4173         __WORDSIZE != 64.
4174
4175 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4176
4177         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4178         OVERFLOW_EXCEPTION_OK.
4179         * math/libm-test.inc ("Philosophy"): Update comment about
4180         exception testing.
4181         (OVERFLOW_EXCEPTION): Define.
4182         (OVERFLOW_EXCEPTION_OK): Likewise.
4183         (INVALID_EXCEPTION_OK): Renumber.
4184         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4185         (IGNORE_ZERO_INF_SIGN): Likewise.
4186         (test_exceptions): Handle FE_OVERFLOW.
4187         (exp10_test): Expect overflow exceptions.
4188         (exp2_test): Likewise.
4189         (expm1_test): Likewise.
4190         (nextafter_test): Likewise.
4191         (pow_test): Likewise.
4192         (scalbn_test): Likewise.
4193         (scalbln_test): Likewise.
4194
4195 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4196
4197         * sysdeps/x86_64/bits/atomic.h
4198         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4199         64bit integer.
4200         (atomic_exchange_acq): Likewise.
4201         (__arch_exchange_and_add_body): Likewise.
4202         (__arch_add_body): Likewise.
4203         (atomic_add_negative): Likewise.
4204         (atomic_add_zero): Likewise.
4205
4206 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4207
4208         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4209         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4210
4211 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4212
4213         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4214         Check __x86_64__ instead of __WORDSIZE.
4215
4216 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4217
4218         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4219
4220 2012-03-19  David S. Miller  <davem@davemloft.net>
4221
4222         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4223
4224         * sysdeps/sparc/fpu/fenv_private.h: New file.
4225         * sysdeps/sparc/fpu/math_private.h: Use it.
4226         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4227         Remove.
4228         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4229         (libc_feholdexcept_setroundl): Remove.
4230         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4231         Remove.
4232         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4233         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4234
4235 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4236
4237         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4238         int64_t instead of long int.
4239         (INSERT_WORDS64): Likwise.
4240
4241 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4242
4243         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4244         _Unwind_GetCFA return to _Unwind_Ptr first.
4245
4246 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4247
4248         [BZ #13629]
4249         * math/s_clog.c: Include <float.h>.
4250         (__clog): Scale large or subnormal inputs.
4251         * math/s_clogf.c: Likewise.
4252         * math/s_clogl.c: Likewise.
4253         * math/s_clog10.c: Include <float.h>.
4254         (M_LOG10_2): Define.
4255         (__clog10): Scale large or subnormal inputs.
4256         * math/s_clog10f.c: Likewise.
4257         * math/s_clog10l.c: Likewise.
4258         * math/libm-test.inc (clog_test): Add more tests.
4259         (clog10_test): Likewise.
4260         * sysdeps/i386/fpu/libm-test-ulps: Update.
4261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4262
4263         [BZ #11451]
4264         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4265         x and y.
4266         * math/libm-test.inc (atan2_test): Add another test.
4267
4268         * Makerules (common-objdir-compile): Remove.
4269         * sysdeps/unix/Makefile (config-generated): Do not add
4270         $(unix-generated) to variable.
4271         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4272         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4273         Remove rule.
4274         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4275         Likewise.
4276         [generic bits/local_lim.h] (before-compile): Do not append to
4277         variable.
4278         [generic bits/local_lim.h] (common-generated): Likewise.
4279         [generic sys/param.h] (before-compile): Do not append to variable.
4280         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4281         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4282         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4283         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4284         include.
4285         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4286         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4287         [generic sys/param.h] ($(addprefix
4288         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4289         [generic sys/param.h] (common-generated): Do not append to
4290         variable.
4291         [generic sys/param.h] (sysdep_headers): Likewise.
4292         [generic bits/errno.h] (before-compile): Do not append to
4293         variable.
4294         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4295         rule.
4296         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4297         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4298         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4299         [generic bits/errno.h] (common-generated): Do not append to
4300         variable.
4301         [generic bits/ioctls.h] (before-compile): Do not append to
4302         variable.
4303         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4304         rule.
4305         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4306         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4307         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4308         rule.
4309         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4310         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4311         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4312         [generic bits/ioctls.h] (common-generated): Do not append to
4313         variable.
4314         [generic sys/syscall.h] (syscall.h): Remove variable.
4315         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4316         rule.
4317         [generic sys/syscall.h] (before-compile): Do not append to
4318         variable.
4319         [generic sys/syscall.h] (common-generated): Likewise.
4320         * sysdeps/unix/errnos-tmpl.c: Remove file.
4321         * sysdeps/unix/errnos.awk: Likewise.
4322         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4323         * sysdeps/unix/ioctls.awk: Likewise.
4324         * sysdeps/unix/mk-local_lim.c: Likewise.
4325         * sysdeps/unix/snarf-ioctls: Likewise.
4326
4327 2012-03-19  Richard Henderson  <rth@twiddle.net>
4328
4329         * sysdeps/i386/fpu/fenv_private.h: New file.
4330         * sysdeps/i386/fpu/math_private.h: Use it.
4331         (math_opt_barrier, math_force_eval): Remove.
4332         (libc_feholdexcept_setround_53bit): Remove.
4333         (libc_feupdateenv_53bit): Remove.
4334         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4335         (math_opt_barrier, math_force_eval): Remove.
4336         (libc_feholdexcept): Remove.
4337         (libc_feholdexcept_setround): Remove.
4338         (libc_fetestexcept, libc_fesetenv): Remove.
4339         (libc_feupdateenv_test): Remove.
4340         (libc_feupdateenv, libc_feholdsetround): Remove.
4341         (libc_feresetround): Remove.
4342
4343         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4344         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4345
4346         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4347         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4348         (libc_feupdateenv_testl): New.
4349         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4350         (libc_feupdateenv_testf): New.
4351         (libc_feupdateenv): Use libc_feupdateenv_test.
4352         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4353         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4354
4355         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4356         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4357         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4358         (libc_feresetround_noex): New.
4359         (libc_feresetround_noexf): New.
4360         (libc_feresetround_noexl): New.
4361         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4362         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4363         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4364         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4365         SET_RESTORE_ROUND.
4366         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4367         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4368         (__cos): Likewise.
4369         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4370         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4371         SET_RESTORE_ROUND_NOEX.
4372         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4373         SET_RESTORE_ROUND_NOEXF.
4374         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4375         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4376         (libc_feholdsetroundf): New.
4377         (libc_feresetround, libc_feresetroundf): New.
4378
4379         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4380         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4381         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4382
4383         * sysdeps/generic/math_private.h: Include <fenv.h>.
4384         (default_libc_feholdexcept): New.
4385         (default_libc_feholdexcept_setround): New.
4386         (default_libc_fesetenv, default_libc_feupdateenv): New.
4387         (libc_feholdexcept): Only define if undefined.
4388         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4389         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4390         (libc_feholdexcept_setroundl): Likewise.
4391         (libc_feholdexcept_setround_53bit): Likewise.
4392         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4393         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4394         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4395         (libc_feupdateenv_53bit): Likewise.
4396         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4397         (libc_feholdexcept): Convert from macro to inline function.
4398         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4399         (libc_fesetenv, libc_feupdateenv): Likewise.
4400
4401         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4402         not previously defined.
4403         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4404         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4405         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4406         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4407         * sysdeps/ieee754/flt-32/math_private.h: New file.
4408         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4409         math_private.h below SET_FLOAT_WORD.
4410         (__isnan, __isinf_ns, __finite): Remove.
4411         (__isnanf, __isinf_nsf, __finitef): Remove.
4412
4413 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4414
4415         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4416
4417 2012-03-17  David S. Miller  <davem@davemloft.net>
4418
4419         [BZ #6471]
4420         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4421         for 2.16.
4422
4423 2012-03-16  David S. Miller  <davem@davemloft.net>
4424
4425         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4426         warnings.
4427
4428         [BZ #6471]
4429         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4430         properly.
4431         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4432         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4433         sysdep_routines when subdir is sysvipc.
4434         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4435         __getshmlba helper.
4436
4437         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4438
4439 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4440
4441         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4442         [__LP64__].
4443
4444 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4445
4446         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4447         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4448         (__lround): Renamed to ...
4449         (__llround): This.  Replace long int with long long int.
4450         Define lround functions as aliases of llround functions.
4451         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4452
4453 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4454
4455         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4456         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4457         adresses to uintptr_t.  Replace "long int" and "unsigned long
4458         int" with "greg_t" on va_arg.
4459
4460 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4461
4462         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4463         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4464
4465         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4466         Move e_machine check before EI_CLASS check.  Handle x32
4467         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4468         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4469         SKIP_EM_IA_64 and include
4470         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4471
4472         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4473         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4474         (add_system_dir): New macro.
4475
4476         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4477         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4478
4479 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4480
4481         [BZ #2551]
4482         [BZ #2552]
4483         [BZ #2553]
4484         [BZ #2554]
4485         [BZ #2562]
4486         [BZ #2563]
4487         [BZ #2565]
4488         [BZ #2566]
4489         [BZ #2576]
4490         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4491         (y0): Likewise.
4492         * math/w_j0f.c (j0f): Likewise.
4493         (y0f): Likewise.
4494         * math/w_j0l.c (__j0l): Likewise.
4495         (__y0l): Likewise.
4496         * math/w_j1.c (j1): Likewise.
4497         (y1): Likewise.
4498         * math/w_j1f.c (j1f): Likewise.
4499         (y1f): Likewise.
4500         * math/w_j1l.c (__j1l): Likewise.
4501         (__y1l): Likewise.
4502         * math/w_jn.c (jn): Likewise.
4503         (yn): Likewise.
4504         * math/w_jnf.c (jnf): Likewise.
4505         (ynf): Likewise.
4506         * math/w_jnl.c (__jnl): Likewise.
4507         (__ynl): Likewise.
4508         * math/libm-test.inc (j0_test): Add more tests.
4509         (j1_test): Likewise.
4510         (jn_test): Likewise.  Add trailing semicolon to existing test.
4511         (y0_test): Likewise.
4512         (y1_test): Likewise.
4513         * sysdeps/i386/fpu/libm-test-ulps: Update.
4514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4515
4516         [BZ #13851]
4517         [BZ #13854]
4518         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4519         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4520         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4521         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4522         (__tanl): Set errno for infinite argument.
4523         * sysdeps/i386/fpu/mptan.c: Remove.
4524         * sysdeps/i386/fpu/s_tan.S: Likewise.
4525         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4526         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4527         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4528         * math/libm-test.inc (tan_test): Add more tests and enable more
4529         tests for double and long double.
4530         * sysdeps/i386/fpu/libm-test-ulps: Update.
4531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4532
4533 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4534
4535         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
4536         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
4537
4538 2012-03-16  Roland McGrath  <roland@hack.frob.com>
4539
4540         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
4541         * configure.in: Use it for both main tree and add-ons.
4542         * configure: Regenerated.
4543
4544 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4545
4546         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
4547
4548 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4549
4550         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
4551         in comment.
4552
4553         [BZ #13851]
4554         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
4555         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
4556         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4557         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
4558         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
4559         infinite argument.
4560         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
4561         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
4562         != 0 for prec == 2.
4563         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
4564         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
4565         * sysdeps/i386/fpu/s_cosl.S: Likewise.
4566         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4567         * sysdeps/i386/fpu/s_sinl.S: Likewise.
4568         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
4569         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
4570         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
4571         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4572         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
4573         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4574         * math/libm-test.inc (cos_test): Add more tests and enable more
4575         tests for long double.
4576         (sin_test): Likewise.
4577         (sincos_test): Likewise.
4578         * sysdeps/i386/fpu/libm-test-ulps: Update.
4579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4580
4581 2012-03-16  David S. Miller  <davem@davemloft.net>
4582
4583         * sysdeps/sparc/fpu/math_private.h: New file.
4584
4585 2012-03-15  David S. Miller  <davem@davemloft.net>
4586
4587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
4588         file.
4589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
4590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
4591         file.
4592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
4593         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
4594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
4595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
4596         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
4597         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
4598         sysdep routines.
4599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4600
4601         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
4602         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
4603
4604         * sysdeps/sparc/sparc-ifunc.h: New file.
4605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
4606         sparc-ifunc.h
4607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4609         Likewise.
4610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4611         Likewise.
4612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
4613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4616         Likewise.
4617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
4622         Likewise.
4623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
4624         Likewise.
4625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4629         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4630         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4631         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
4632         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
4633         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4634         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4636         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4637         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4638         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4639         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
4640         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4641         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
4642         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4643         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
4644         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4645         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
4646         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4647         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
4648         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4649
4650 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4651
4652         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
4653         scaling.
4654         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4655
4656 2012-03-15  Andreas Jaeger  <aj@suse.de>
4657
4658         [BZ #13852]
4659         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
4660         ieee754/flt-32 implementation for sin, cos and sincos.
4661         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
4662         * sysdeps/i386/fpu/s_cosf.S: Likewise.
4663         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
4664         * sysdeps/i386/fpu/s_sinf.S: Likewise.
4665         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
4666         ieee754/flt-32 implementation for tan.
4667
4668         * math/libm-test.inc (cos_test): Enable some large input tests for
4669         float as well
4670         (sin_test): Likewise.
4671         (sincos_test): Likewise.
4672         (tan_test): Add tests for large input.
4673
4674         * sysdeps/i386/fpu/libm-test-ulps: Update.
4675
4676 2012-03-15  Andreas Jaeger  <aj@suse.de>
4677
4678         [BZ #13658]
4679         * math/libm-test.inc (cos_test): Add more test cases.
4680         (sin_test): Likewise.
4681         (sincos_test): Likewise.
4682
4683 2012-03-15  Andreas Jaeger  <aj@suse.de>
4684
4685         [BZ #13837]
4686         * math/libm-test.inc (cos_test): Add a test case for large input
4687         value.
4688         (sin_test): Likewise.
4689         (sincos_test): Likewise.
4690
4691 2012-03-15  Andreas Jaeger  <aj@suse.de>,
4692         Joseph Myers  <joseph@codesourcery.com>
4693
4694         [BZ #13658]
4695         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
4696         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
4697         * sysdeps/i386/fpu/branred.c: Likewise.
4698         * sysdeps/i386/fpu/dosincos.c: Likewise.
4699         * sysdeps/i386/fpu/mpa.c: Likewise.
4700         * sysdeps/i386/fpu/s_cos.S: Likewise.
4701         * sysdeps/i386/fpu/s_sin.S: Likewise.
4702         * sysdeps/i386/fpu/s_sincos.S: Likewise.
4703         * sysdeps/i386/fpu/sincos32.c: Likewise.
4704
4705         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
4706         Define.
4707         (libc_feupdateenv_53bit): Define.
4708         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
4709         Define.
4710         (libc_feupdateenv_53bit): Define.
4711
4712         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
4713         53 bit (without extend i386 double precision).
4714
4715         * math/libm-test.inc (sincos_test): Add tests for large input.
4716         (sin): Likewise.
4717         (cos): Likewise.
4718
4719         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
4720
4721 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4722
4723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4724
4725 2012-03-15  David S. Miller  <davem@davemloft.net>
4726
4727         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
4728         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
4729         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
4730         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
4731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
4732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
4733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
4734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
4735         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
4736         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
4737         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
4738         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
4739         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
4740         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
4741         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
4742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
4743         file.
4744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
4745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
4746         file.
4747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
4748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
4749         file.
4750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
4751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
4752         file.
4753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
4754         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
4755         fmin/fmax sysdep routines.
4756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4757
4758 2012-03-14  David S. Miller  <davem@davemloft.net>
4759
4760         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
4761         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
4762         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
4763         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
4764         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
4765         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
4766         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
4767         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
4768         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
4769         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
4770         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
4771         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
4772         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
4773         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
4774         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
4775         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
4776         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
4777         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
4778         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
4779         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
4780         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
4781         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
4782         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
4783         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
4784         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
4785         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
4786         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
4787         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
4788         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
4789         routines.
4790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
4791         file.
4792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
4793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
4794         file.
4795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
4796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
4797         file.
4798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
4799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
4800         file.
4801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
4802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
4803         file.
4804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
4805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
4806         file.
4807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
4808         file.
4809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
4810         file.
4811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
4812         file.
4813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
4814         New file.
4815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
4816         file.
4817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
4818         file.
4819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
4820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
4821         file.
4822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
4823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
4824         file.
4825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
4826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
4827         file.
4828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
4829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
4830         VIS3 routines.
4831
4832         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4833         New file.
4834
4835         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4836
4837         * sysdeps/sparc/configure.in: New file.
4838         * sysdeps/sparc/configure: Generate.
4839         * configure.in (libc_cv_sparc_as_vis3): Substitute.
4840         * configure: Regenerate.
4841         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
4842         * config.make.in (have-as-vis3): New.
4843         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
4844         available use -Av9d instead of -Av9a.
4845         * sysdeps/sparc/sparc64/Makefile: Likewise.
4846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
4847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
4848         New file.
4849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
4850         file.
4851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
4852         New file.
4853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
4854         file.
4855         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
4856         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
4857         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
4858         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
4859         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
4860
4861         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
4862         fzeros/fnegs to load 0x80000000 into a float register instead of
4863         using the stack.
4864         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
4865
4866 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
4867
4868         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4869         bits/syscall.h.
4870         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
4871         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
4872         ($(inst_includedir)/bits/syscall.h): Remove rule.
4873         ($(objpfx)bits/syscall.d): Include instead of
4874         $(objpfx)syscall-list.d.
4875         (generated): Change syscall-list.h and syscall-list.d to
4876         bits/syscall.h and bits/syscall.d.
4877
4878 2012-03-14  Roland McGrath  <roland@hack.frob.com>
4879
4880         [BZ #13846]
4881         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
4882
4883 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
4884
4885         [BZ #13841]
4886         * math/s_csqrt.c: Include <float.h>.
4887         (__csqrt): Scale large or subnormal inputs.
4888         * math/s_csqrtf.c: Likewise.
4889         * math/s_csqrtl.c: Likewise.
4890         * math/libm-test.inc (csqrt_test): Add more tests.
4891         * sysdeps/i386/fpu/libm-test-ulps: Update.
4892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4893
4894         [BZ #13840]
4895         * math/libm-test.inc (hypot_test): Add more tests.
4896
4897 2012-03-13  David S. Miller  <davem@davemloft.net>
4898
4899         [BZ #13840]
4900         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
4901         double-precision for the calculation instead of scaling.
4902
4903 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
4904
4905         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
4906         manipulate bits before adding and subtracting TWO52[sx].
4907         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
4908         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4909         Likewise.
4910         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
4911
4912 2012-03-13  David S. Miller  <davem@davemloft.net>
4913
4914         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
4915         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
4916         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
4917         rtld-global-offsets.h
4918         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4919
4920         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
4921         large parameters.
4922
4923         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
4924
4925         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
4926         'err' in the ifdef scope in which it is actually used.
4927
4928         * nss/nss_db/db-init.c: Include string.h
4929
4930 2012-03-12  David S. Miller  <davem@davemloft.net>
4931
4932         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
4933         masking out of the most significant byte of random value used.
4934         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4935         Fix coding style in previous change.
4936
4937         * sysdeps/unix/sysv/linux/kernel-features.h
4938         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
4939         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
4940         expression.
4941         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
4942         later.
4943
4944 2012-03-11  David S. Miller  <davem@davemloft.net>
4945
4946         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4947         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
4948         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
4949         for 'resultvar' otherwise things get truncated on 64-bit.
4950
4951         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4952         Fix masking out of the most significant byte of random value used.
4953
4954         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4955
4956 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
4957
4958         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4959
4960 2012-03-09  David S. Miller  <davem@davemloft.net>
4961
4962         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
4963         variables with appropriate CPP guards.
4964         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
4965         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
4966         on resulting framesize and the management of the outregs buffer for pltexit.
4967         Preserve floating point return values across _dl_call_pltexit call.
4968         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
4969         framesize and the management of the outregs buffer for pltexit.
4970         Preserve floating point return values across _dl_call_pltexit
4971         call.
4972         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
4973         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
4974         (print_exit): Fix format string for return register value.
4975
4976 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
4977
4978         * sunrpc/Makefile (others): Add rpcgen.
4979         ($(objpfx)rpcgen): Remove special build rule and dependency on
4980         libc.
4981         * sunrpc/rpcgen.c: New file.
4982
4983 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
4984
4985         [BZ #13673]
4986         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
4987         * stdio-common/bug-vfprintf-nargs.c: Likewise.
4988         * sysdeps/i386/crti.S: Likewise.
4989         * sysdeps/i386/crtn.S: Likewise.
4990         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
4991         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
4992         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
4993         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
4994         * sysdeps/sh/crti.S: Likewise.
4995         * sysdeps/sh/crtn.S: Likewise.
4996         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4997
4998         [BZ #13673]
4999         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5000         with URL.
5001         * locale/programs/locfile-kw.gperf: Likewise.
5002         * locale/programs/charmap-kw.h: Regenerated.
5003         * locale/programs/locfile-kw.h: Likewise.
5004
5005         [BZ #13673]
5006         * intl/plural.y: Replace FSF snail mail address with URL.
5007         * intl/plural.c: Regenerated.
5008
5009 2012-03-09  Richard Henderson  <rth@twiddle.net>
5010
5011         * include/math_private.h: Remove file.
5012         * math/math_private.h: Move file ...
5013         * sysdeps/generic/math_private.h: ... here.
5014
5015         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5016         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5017         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5018
5019         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5020         and <math_private.h>.
5021         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5022         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5023         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5024         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5025         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5026         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5027         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5028         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5029         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5030         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5031         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5032         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5033         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5034         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5035         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5036         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5037         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5038         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5039         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5040         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5041         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5042         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5043         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5044         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5045         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5046         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5047         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5048         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5049         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5050         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5051         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5052         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5053         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5054         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5055         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5056         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5057         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5058         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5059         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5060         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5061         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5062         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5063         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5064         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5065         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5066         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5067         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5068         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5069         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5070         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5071         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5072         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5073         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5074         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5075         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5076         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5077         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5078         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5079         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5080         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5081         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5082         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5083         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5084         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5085         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5086         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5087         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5088         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5089         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5090         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5091         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5092         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5093         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5094         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5095         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5096         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5097         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5098         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5099         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5100         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5101         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5102         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5103         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5104         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5105         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5106         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5107         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5108         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5109         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5110         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5111         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5112         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5113         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5114         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5115         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5116         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5117         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5118         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5119         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5120         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5121         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5122         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5123         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5124         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5125         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5126         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5127         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5128         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5129         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5130         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5131         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5132         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5133         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5134         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5135         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5136         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5137         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5138         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5139         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5140         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5141         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5142         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5143         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5144         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5145         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5146         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5147         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5148         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5149         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5150         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5151         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5152         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5153         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5154         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5155         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5156         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5157         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5158         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5159         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5160         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5161         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5162         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5163         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5164         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5165         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5166         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5167         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5168         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5169         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5170         * sysdeps/ieee754/k_standard.c: Likewise.
5171         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5172         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5173         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5174         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5175         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5176         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5177         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5178         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5179         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5180         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5181         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5182         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5183         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5184         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5185         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5186         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5187         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5188         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5189         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5190         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5191         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5192         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5193         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5194         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5195         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5196         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5197         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5198         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5199         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5200         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5201         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5202         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5203         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5204         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5205         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5206         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5207         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5208         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5209         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5210         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5211         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5212         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5213         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5214         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5215         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5216         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5217         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5218         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5219         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5220         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5221         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5222         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5223         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5224         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5225         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5226         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5227         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5228         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5229         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5230         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5231         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5232         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5233         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5234         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5235         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5236         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5237         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5238         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5239         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5240         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5241         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5242         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5243         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5244         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5245         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5246         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5247         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5248         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5249         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5250         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5251         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5252         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5253         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5254         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5255         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5256         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5257         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5258         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5259         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5260         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5261         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5262         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5263         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5264         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5265         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5266         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5267         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5268         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5269         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5270         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5271         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5272         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5273         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5274         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5275         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5276         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5277         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5278         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5279         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5280         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5281         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5282         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5283         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5284         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5285         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5286         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5287         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5288         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5289         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5290         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5291         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5292         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5293         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5294         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5295         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5296         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5297         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5298         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5299         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5300         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5301         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5302         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5303         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5304         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5305         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5306         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5307         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5308         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5309         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5310         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5311         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5312         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5313         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5314         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5315         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5316         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5317         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5318         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5319         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5320         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5321         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5322         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5323         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5324         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5325         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5326         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5327         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5328         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5329         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5330         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5331         * sysdeps/ieee754/s_lib_version.c: Likewise.
5332         * sysdeps/ieee754/s_matherr.c: Likewise.
5333         * sysdeps/ieee754/s_signgam.c: Likewise.
5334         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5335         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5336         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5337         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5338         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5339         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5340         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5341         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5342         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5343         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5344         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5345         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5346         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5347         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5348         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5349         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5350         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5351         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5352         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5353         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5354         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5355
5356 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5357
5358         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5359         * sunrpc/rpc_main.c: Likewise.
5360         * sunrpc/rpc_svcout.c: Likewise.
5361
5362 2012-03-09  David S. Miller  <davem@davemloft.net>
5363
5364         * include/math_private.h: New file.
5365
5366 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5367
5368         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5369         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5370         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5371         from <bits/socket_type.h>.
5372         (enum __socket_type): Don't define here.
5373         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5374         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5375         bits/socket_type.h.
5376
5377         [BZ #13566]
5378         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5379         checking __USE_GNU.
5380
5381         * Makerules ($(inst_includedir)/%.h): New rule.
5382         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5383         (install-others): Remove variable setting.
5384         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5385
5386 2012-03-08  Richard Henderson  <rth@twiddle.net>
5387
5388         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5389         from macro to inline function; merge with the
5390         !__LIBC_INTERNAL_MATH_INLINES version.
5391         (__ieee754_sqrtf): Likewise.
5392
5393         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5394         to inline function.
5395         (__rintf, __floor, __floorf): Likewise.
5396
5397         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5398         macro to inline function.
5399         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5400
5401         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5402         not <math/math_private.h>.
5403
5404 2012-03-08  David S. Miller  <davem@davemloft.net>
5405
5406         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5407         copyright year.
5408         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5409
5410 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5411
5412         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5413         normalization.
5414         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5415         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5416
5417 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5418
5419         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5420         be defined individually, they must be defined as a block.  Define
5421         S for printing a string instead of hidint the different by using a
5422         macro for adding the 'l'.
5423         * stdio-common/tst-fphex-wide.c: Adjust.
5424
5425 2012-03-07  Marek Polacek  <polacek@redhat.com>
5426
5427         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5428
5429 2012-03-08  Marek Polacek  <polacek@redhat.com>
5430
5431         [BZ #13806]
5432         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5433         * stdio-common/tst-fphex.c: Define a few macros to make the
5434         test reusable.  Use them.
5435         * stdio-common/tst-fphex-wide.c: New file.
5436
5437 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5438
5439         [BZ #6911]
5440         * manual/macros.texi (gnusystems): New macro.
5441         (nongnusystems): Likewise.
5442         (gnulinuxhurdsystems): Likewise.
5443         (gnuhurdsystems): Likewise..
5444         (gnulinuxsystems): Likewise.
5445         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5446         variants of the GNU system, not "GNU system".
5447         * manual/conf.texi: Likewise.
5448         * manual/errno.texi: Likewise.  Update example of errno macro
5449         expansion.
5450         * manual/filesys.texi: Likewise.
5451         (getumask): Document as specific to GNU/Hurd.
5452         * manual/install.texi: Likewise.  Reword some references to
5453         GNU/Linux.
5454         * manual/intro.texi: Likewise.
5455         * manual/io.texi: Likewise.
5456         (File Name Portability): Detail which constraints are inapplicable
5457         to all GNU systems and which are only inapplicable to GNU/Hurd.
5458         * manual/job.texi: Likewise.
5459         * manual/llio.texi: Likewise.
5460         (O_NOCTTY): Document as present on GNU/Linux.
5461         * manual/maint.texi: Likewise.
5462         * manual/memory.texi: Likewise.
5463         * manual/pattern.texi: Likewise.
5464         * manual/pipe.texi: Likewise.
5465         * manual/process.texi: Likewise.
5466         * manual/resource.texi: Likewise.
5467         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5468         child on GNU/Hurd.
5469         * manual/setjmp.texi: Likewise.
5470         * manual/signal.texi: Likewise.
5471         * manual/startup.texi: Likewise.
5472         * manual/stdio.texi: Likewise.
5473         * manual/terminal.texi: Likewise.
5474         (ONLCR): Document as POSIX.
5475         (OXTABS): Document availability on GNU/Linux as XTABS.
5476         (ONOEOT): Document availability separately from other bits.
5477         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5478         * manual/time.texi: Likewise.
5479         * manual/users.texi: Likewise.
5480         * INSTALL: Regenerated.
5481         * sysdeps/gnu/errlist.c: Regenerated.
5482
5483         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5484         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5485         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5486         puts.
5487         * configure: Regenerated.
5488
5489 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5490
5491         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5492         default includes instead of AC_HEADER_CHECK.
5493         * sysdeps/i386/configure: Regenerated.
5494
5495         [BZ #10716]
5496         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5497         * math/s_cacoshf.c (__cacoshf): Likewise.
5498         * math/s_cacoshl.c (__cacoshl): Likewise.
5499         * math/s_casinh.c (__casinh): Set signs of result from argument.
5500         * math/s_casinhf.c (__casinhf): Likewise.
5501         * math/s_casinhl.c (__casinhl): Likewise.
5502         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5503         (casinh_test): Add more tests.
5504         * sysdeps/i386/fpu/libm-test-ulps: Update.
5505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5506
5507 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5508
5509         * po/zh_TW.po: Update from translation team.
5510
5511         * login/Makefile (distribute): Remove variable.
5512         * catgets/Makefile: Likewise.
5513         * mach/Makefile: Likewise.
5514         * malloc/Makefile: Likewise.
5515         * misc/Makefile: Likewise.
5516         * iconv/Makefile: Likewise.
5517         * nscd/Makefile: Likewise.
5518         * hurd/Makefile: Likewise.
5519         * manual/Makefile: Likewise.
5520         * locale/Makefile: Likewise.
5521         * intl/Makefile: Likewise.
5522         * conform/Makefile: Likewise.
5523         * nss/Makefile: Likewise.
5524         * time/Makefile: Likewise.
5525         * soft-fp/Makefile: Likewise.
5526         * dirent/Makefile: Likewise.
5527         * gmon/Makefile: Likewise.
5528         * po/Makefile: Likewise.
5529         * rt/Makefile: Likewise.
5530         * socket/Makefile: Likewise.
5531         * math/Makefile: Likewise.
5532         * signal/Makefile: Likewise.
5533         * debug/Makefile: Likewise.
5534         * elf/Makefile: Likewise.
5535         * timezone/Makefile: Likewise.
5536         * stdlib/Makefile: Likewise.
5537         * iconvdata/Makefile: Likewise.
5538         * sunrpc/Makefile: Likewise.
5539         * io/Makefile: Likewise.
5540         * argp/Makefile: Likewise.
5541         * inet/Makefile: Likewise.
5542         * hesiod/Makefile: Likewise.
5543         * grp/Makefile: Likewise.
5544         * csu/Makefile: Likewise.
5545         * wctype/Makefile: Likewise.
5546         * crypt/Makefile: Likewise.
5547         * libio/Makefile: Likewise.
5548         * string/Makefile: Likewise.
5549         * nis/Makefile: Likewise.
5550         * resolv/Makefile: Likewise.
5551         * stdio-common/Makefile: Likewise.
5552         * wcsmbs/Makefile: Likewise.
5553         * dlfcn/Makefile: Likewise.
5554         * posix/Makefile: Likewise.
5555
5556         [BZ #6959]
5557         * timezone/Makefile: Don't install timezone files, just the programs
5558         and scripts.
5559
5560 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
5561
5562         * nss/databases.def: Add missing gshadow entry.
5563
5564         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
5565
5566 2012-03-06  Marek Polacek  <polacek@redhat.com>
5567
5568         [BZ #13726]
5569         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
5570         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5571         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
5572         * stdio-common/tst-long-dbl-fphex.c: New file.
5573
5574 2012-03-06  David S. Miller  <davem@davemloft.net>
5575
5576         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5577         (set_obp_int): New function.
5578         (get_obp_int): New function.
5579         (__get_clockfreq_via_dev_openprom): Likewise.
5580         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5581         Avoid unused variable warnings on 'val' and use builtin_expect.
5582         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
5583         __builtin_expect.
5584         (INLINE_CLONE_SYSCALL): Likewise.
5585
5586 2012-03-05  David S. Miller  <davem@davemloft.net>
5587
5588         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5589
5590 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
5591
5592         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5593
5594         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
5595         only for |x| >= 40.
5596         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5597
5598 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5599
5600         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
5601         Replace gettimeofday with __vdso_gettimeofday.
5602
5603         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5604         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
5605         __vdso_clock_gettime and __vdso_getcpu.
5606
5607         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
5608         time with __vdso_time.
5609
5610 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5611
5612         * manual/lang.texi (size_t): Note types to which size_t may be
5613         equivalent with the GNU C Library, but do not describe when
5614         differences between them are significant.
5615
5616 2012-03-05  Andreas Jaeger  <aj@suse.de>
5617
5618         * sysdeps/i386/fpu/libm-test-ulps: Update.
5619
5620 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5621
5622         [BZ #3976]
5623         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
5624         (__ieee754_pow): Save and restore rounding mode and use
5625         round-to-nearest for main computations.
5626         * math/libm-test.inc (pow_test_tonearest): New function.
5627         (pow_test_towardzero): Likewise.
5628         (pow_test_downward): Likewise.
5629         (pow_test_upward): Likewise.
5630         (main): Call the new functions.
5631         * sysdeps/i386/fpu/libm-test-ulps: Update.
5632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5633
5634         [BZ #3976]
5635         * math/libm-test.inc (cosh_test_tonearest): New function.
5636         (cosh_test_towardzero): Likewise.
5637         (cosh_test_downward): Likewise.
5638         (cosh_test_upward): Likewise.
5639         (sinh_test_tonearest): Likewise.
5640         (sinh_test_towardzero): Likewise.
5641         (sinh_test_downward): Likewise.
5642         (sinh_test_upward): Likewise.
5643         (main): Call the new functions.
5644         * sysdeps/i386/fpu/libm-test-ulps: Update.
5645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5646
5647 2012-03-05  Tom de Vries  <tom@codesourcery.com>
5648
5649         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
5650         default stack guard is set in last bytes.
5651         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
5652
5653 2012-03-05  Kees Cook  <keescook@chromium.org>
5654
5655         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
5656
5657         [BZ #13656]
5658         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
5659         possibly allocate from heap instead of stack.
5660         * stdio-common/bug-vfprintf-nargs.c: New file.
5661         * stdio-common/Makefile (tests): Add nargs overflow test.
5662
5663 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
5664
5665         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5666
5667 2012-03-03  Marek Polacek  <polacek@redhat.com>
5668
5669         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
5670         * math/math_private.h: Likewise.
5671         * stdlib/tst-strtod.c: Likewise.
5672         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5673         * sysdeps/x86_64/bits/atomic.h: Likewise.
5674
5675 2012-03-02  David S. Miller  <davem@davemloft.net>
5676
5677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
5678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
5679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
5680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
5681         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
5682         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
5683         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
5684         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
5685
5686 2012-03-02  Roland McGrath  <roland@hack.frob.com>
5687
5688         [BZ #13792]
5689         * manual/examples/README: New file, says the example source files
5690         can be used under GPL>=2.
5691         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
5692         line containing just "*/".
5693         * manual/examples/add.c: Add copyright header (GPL>=2).
5694         * manual/examples/argp-ex1.c: Likewise.
5695         * manual/examples/argp-ex2.c: Likewise.
5696         * manual/examples/argp-ex3.c: Likewise.
5697         * manual/examples/argp-ex4.c: Likewise.
5698         * manual/examples/atexit.c: Likewise.
5699         * manual/examples/db.c: Likewise.
5700         * manual/examples/dir.c: Likewise.
5701         * manual/examples/dir2.c: Likewise.
5702         * manual/examples/execinfo.c: Likewise.
5703         * manual/examples/filecli.c: Likewise.
5704         * manual/examples/filesrv.c: Likewise.
5705         * manual/examples/fmtmsgexpl.c: Likewise.
5706         * manual/examples/genpass.c: Likewise.
5707         * manual/examples/inetcli.c: Likewise.
5708         * manual/examples/inetsrv.c: Likewise.
5709         * manual/examples/isockad.c: Likewise.
5710         * manual/examples/longopt.c: Likewise.
5711         * manual/examples/memopen.c: Likewise.
5712         * manual/examples/memstrm.c: Likewise.
5713         * manual/examples/mkfsock.c: Likewise.
5714         * manual/examples/mkisock.c: Likewise.
5715         * manual/examples/mygetpass.c: Likewise.
5716         * manual/examples/pipe.c: Likewise.
5717         * manual/examples/popen.c: Likewise.
5718         * manual/examples/rprintf.c: Likewise.
5719         * manual/examples/search.c: Likewise.
5720         * manual/examples/select.c: Likewise.
5721         * manual/examples/setjmp.c: Likewise.
5722         * manual/examples/sigh1.c: Likewise.
5723         * manual/examples/sigusr.c: Likewise.
5724         * manual/examples/stpcpy.c: Likewise.
5725         * manual/examples/strdupa.c: Likewise.
5726         * manual/examples/strftim.c: Likewise.
5727         * manual/examples/strncat.c: Likewise.
5728         * manual/examples/subopt.c: Likewise.
5729         * manual/examples/swapcontext.c: Likewise.
5730         * manual/examples/termios.c: Likewise.
5731         * manual/examples/testopt.c: Likewise.
5732         * manual/examples/testpass.c: Likewise.
5733         * manual/examples/timeval_subtract.c: Likewise.
5734
5735         [BZ #13792]
5736         * manual/time.texi (Elapsed Time): Move timeval_subtract example
5737         function to ...
5738         * manual/timeval_subtract.c.texi: ... here, new file.
5739
5740 2012-03-02  David S. Miller  <davem@davemloft.net>
5741
5742         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
5743
5744 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
5745
5746         [BZ #3976]
5747         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
5748         (__sin): Save and restore rounding mode and use round-to-nearest
5749         for all computations.
5750         (__cos): Save and restore rounding mode and use round-to-nearest
5751         for all computations.
5752         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
5753         <fenv.h>.
5754         (tan): Save and restore rounding mode and use round-to-nearest for
5755         all computations.
5756         * math/libm-test.inc (cos_test_tonearest): New function.
5757         (cos_test_towardzero): Likewise.
5758         (cos_test_downward): Likewise.
5759         (cos_test_upward): Likewise.
5760         (sin_test_tonearest): Likewise.
5761         (sin_test_towardzero): Likewise.
5762         (sin_test_downward): Likewise.
5763         (sin_test_upward): Likewise.
5764         (tan_test_tonearest): Likewise.
5765         (tan_test_towardzero): Likewise.
5766         (tan_test_downward): Likewise.
5767         (tan_test_upward): Likewise.
5768         (main): Call the new functions.
5769         * sysdeps/i386/fpu/libm-test-ulps: Update.
5770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5771
5772         [BZ #10135]
5773         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
5774         small n, then large n, before computing and testing k+n.
5775         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5776         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5777         Likewise.
5778         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5779         Likewise.
5780         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
5781         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5782         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5783         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5784         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5785         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5786         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5787         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
5788         * math/libm-test.inc (scalbn_test): Add more tests.
5789         (scalbln_test): Likewise.
5790
5791         * manual/filesys.texi (mode_t): Describe constraints on size and
5792         signedness, not exact equivalence to a particular type.
5793         (ino_t): Likewise.
5794         (ino64_t): Likewise.
5795         (dev_t): Likewise.
5796         (nlink_t): Likewise.
5797         (blkcnt_t): Likewise.
5798         (blkcnt64_t): Likewise.
5799         * manual/llio.texi (off_t): Likewise.
5800
5801         [BZ #3976]
5802         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
5803         (__ieee754_exp): Save and restore rounding mode and use
5804         round-to-nearest for all computations.
5805         * math/libm-test.inc (exp_test_tonearest): New function.
5806         (exp_test_towardzero): Likewise.
5807         (exp_test_downward): Likewise.
5808         (exp_test_upward): Likewise.
5809         (main): Call the new functions.
5810         * sysdeps/i386/fpu/libm-test-ulps: Update.
5811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5812
5813 2012-03-01  Chris Demetriou  <cgd@google.com>
5814
5815         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
5816         have predictable order.
5817
5818 2012-03-01  David S. Miller  <davem@davemloft.net>
5819
5820         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
5821
5822         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
5823         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
5824         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
5825         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
5826
5827         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
5828         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
5829         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
5830         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
5831         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
5832         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
5833         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
5834         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
5835         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
5836
5837         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5838
5839         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
5840         * sysdeps/sparc/fpu/libm-test-ulps: to here.
5841         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
5842
5843         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
5844         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5845         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5846         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5847         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5848         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5849         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5850         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5851         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5852         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5853         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5854         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5855         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5856         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
5857         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
5858         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5859         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
5860         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
5861         * sysdeps/sparc/elf/configure: Regenerated.
5862
5863 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
5864
5865         * configure.in (AS, LD): Require binutils 2.20 or later.
5866         * configure: Regenerated.
5867         * manual/install.texi (Tools for Compilation): Give binutils 2.20
5868         as required minimum version.
5869         * INSTALL: Regenerated.
5870
5871         [BZ #2541]
5872         [BZ #4108]
5873         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
5874         before squaring exponent.
5875         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
5876         bottom long double and 27 bits of top long double before squaring
5877         exponent.
5878         * math/libm-test.inc (erfc_test): Add more tests.
5879         * sysdeps/i386/fpu/libm-test-ulps: Update.
5880         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5882
5883 2012-03-01  Kai Tietz  <ktietz@redhat.com>
5884
5885         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
5886         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
5887         containing bit-fields.
5888         * soft-fp/extended.h (_FP_UNION_E): Likewise.
5889         * soft-fp/single.h (_FP_UNION_S): Likewise.
5890         * soft-fp/double.h (_FP_UNION_D): Likewise.
5891
5892 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5893
5894         [BZ #13786]
5895         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
5896         not include ../strcmp.S.
5897         [USE_AS_STRNCASECMP_L]: Likewise.
5898         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
5899         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
5900         * sysdeps/i386/i686/multiarch/strncase_l-c.c
5901         (__strncasecmp_l_ia32): Define as alias to
5902         __strncasecmp_l_nonascii.
5903
5904         [BZ #5794]
5905         * math/libm-test.inc (expm1_test): Add test for bug 5794.
5906         * sysdeps/i386/fpu/libm-test-ulps: Update.
5907         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5908
5909         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
5910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5911
5912 2012-02-29  Jeff Law  <law@redhat.com>
5913
5914         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
5915         out of bounds read.
5916
5917 2012-02-29  Marek Polacek  <polacek@redhat.com>
5918
5919         [BZ #13706]
5920         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
5921         * elf/Makefile: Add rules to run tst-unused-dep.out.
5922
5923 2012-02-28  David S. Miller  <davem@davemloft.net>
5924
5925         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
5926         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
5927         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
5928         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
5929         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
5930         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
5931
5932 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5933
5934         * math/libm-test.inc (llround_test): Move one test from
5935         lround_test.  Use TEST_f_L in moved test.
5936         (lround_test): Move misplaced test to llround_test.  Add testcase
5937         from bug 2561.
5938
5939 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
5940
5941         * sysdeps/x86_64/fpu/e_expf.S: New file.
5942         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
5943
5944 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
5945
5946         [BZ #13637]
5947         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
5948         of remain_len that may cause incomplete multi-byte character and
5949         false match.
5950         * posix/bug-regex33.c: New file.
5951         * posix/Makefile (tests): Add bug-regex33.
5952
5953 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
5954
5955         * manual/macros.texi: New file.
5956         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
5957         * manual/libc.texinfo: Include macros.texi.
5958         * manual/creatute.texi: Likewise.
5959         * manual/install.texi: Likewise.
5960         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
5961         @glibcadj{} in references to the GNU C Library.
5962         * manual/charset.texi: Likewise.
5963         * manual/conf.texi: Likewise.
5964         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
5965         when not using those macros.
5966         * manual/creature.texi: Likewise.
5967         * manual/crypt.texi: Likewise.
5968         * manual/errno.texi: Likewise.
5969         * manual/filesys.texi: Likewise.
5970         * manual/header.texi: Likewise.
5971         * manual/install.texi: Likewise.
5972         * manual/intro.texi: Likewise.
5973         * manual/io.texi: Likewise.
5974         * manual/job.texi: Likewise.
5975         * manual/lang.texi: Likewise.
5976         * manual/libc.texiinfo: Likewise.
5977         * manual/llio.texi: Likewise.
5978         * manual/locale.texi: Likewise.
5979         * manual/maint.texi: Likewise.
5980         * manual/math.texi: Likewise.
5981         * manual/memory.texi: Likewise.
5982         * manual/message.texi: Likewise.
5983         * manual/nss.texi: Likewise.
5984         * manual/pattern.texi: Likewise.
5985         * manual/process.texi: Likewise.
5986         * manual/resource.texi: Likewise.
5987         * manual/search.texi: Likewise.
5988         * manual/setjmp.texi: Likewise.
5989         * manual/signal.texi: Likewise.
5990         * manual/socket.texi: Likewise.
5991         * manual/startup.texi: Likewise.
5992         * manual/stdio.texi: Likewise.
5993         * manual/string.texi: Likewise.
5994         * manual/sysinfo.texi: Likewise.
5995         * manual/syslog.texi: Likewise.
5996         * manual/terminal.texi: Likewise.
5997         * manual/time.texi: Likewise.
5998         * manual/users.texi: Likewise.
5999         * INSTALL: Regenerated.
6000         * NOTES: Regenerated.
6001         * sysdeps/gnu/errlist.c: Regenerated.
6002
6003 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6004
6005         * include/dirent.h: Include <dirstream.h> before
6006         <dirent/dirent.h>.
6007
6008 2012-02-28  David S. Miller  <davem@davemloft.net>
6009
6010         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6011         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6012         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6013         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6014
6015 2012-02-27  David S. Miller  <davem@davemloft.net>
6016
6017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6019         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6020         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6021
6022         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6023         frame pointer instead of stack pointer relative arg slot.
6024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6025         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6026         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6027
6028 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6029
6030         [BZ #3992]
6031         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6032
6033 2012-02-27  David S. Miller  <davem@davemloft.net>
6034
6035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6039         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6040         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6041         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6042         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6043
6044 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6045
6046         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6047         later.  Allow versions 5-9.
6048         * configure: Regenerated.
6049         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6050         required minimum version and 4.6 as recommended version.  Do not
6051         mention bugs in GCC 2.7 and 2.8.
6052         * INSTALL: Regenerated.
6053
6054 2012-02-27  David S. Miller  <davem@davemloft.net>
6055
6056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6060         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6061         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6062         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6063         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6064
6065         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6066         manipulate bits before adding and subtracting TWO112[sx].
6067         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6068
6069 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6070
6071         [BZ #13775]
6072         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6073         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6074         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6075         being in POSIX, because they are in 1003.1-2008.
6076
6077         * rt/tst-aio.c: Include <fcntl.h>.
6078         * rt/tst-aio7.c: Likewise.
6079         * rt/tst-aio64.c: Likewise.
6080
6081         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6082
6083 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6084
6085         * manual/install.texi (--with-headers): Describe headers as
6086         interface headers, not private headers.
6087         (Specific advice for GNU/Linux systems): Describe use of headers
6088         from "make headers_install", not private headers from older
6089         kernels.
6090         * INSTALL: Regenerated.
6091         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6092         Change to 2.6.19.
6093         * sysdeps/unix/sysv/linux/configure: Regenerated.
6094
6095         * manual/llio.texi (fclean): Remove documentation.
6096
6097         * manual/Makefile (libc-texi-generated): New variable.  Include
6098         version.texi.
6099         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6100         $(libc-texi-generated), not duplicated list of files.
6101         (version.texi, stamp-version): New rules.
6102         (realclean): Remove $(libc-texi-generated), not individual files
6103         from that list.  Do not remove dir-add.texinfo.
6104         * manual/libc.texinfo: Comment out uses of edition numbers and
6105         references to printed manual.  Remove last-updated dates.
6106         (EDITION): Comment out.
6107         (ISBN): Likewise.
6108         (VERSION, UPDATED): Remove.
6109         (version.texi): Include.
6110
6111 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6112
6113         * sysdeps/posix/spawni.c: Include <signal.h>.
6114         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6115         * sysdeps/pthread/aio_fsync.c: Likewise.
6116
6117 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6118
6119         * conform/Makefile (tests): Run only when not cross-compiling and
6120         when fast-check is not defined.
6121
6122         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6123         * conform/data/limits.h-data: Fixes for POSIX2008.
6124         * conform/run-conformtest.sh: Run all tests.
6125         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6126         headers.
6127         * include/bits/dlfcn.h: Likewise.
6128         * include/langinfo.h: Likewise.
6129         * include/monetary.h: Likewise.
6130         * include/sys/poll.h: Likewise.
6131
6132         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6133         for __USE_GNU.
6134         * posix/spawn.h: Define __need_sigset_t.
6135         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6136         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6137         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6138         to get sigevent_t only.
6139         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6140         only for __USE_GNU.
6141         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6142         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6143         process_vm_writev only for __USE_GNU.
6144         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6145
6146         * conform/Makefile: For now ignore errors from run-conformtest.
6147         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6148         POSIX to avoid namespace pollution.  Don't prepend headers.
6149         * conform/data/aio.h-data: Fixes for POSIX testing.
6150         * conform/data/fcntl.h-data: Likewise.
6151         * conform/data/glob.h-data: Likewise.
6152         * conform/data/grp.h-data: Likewise.
6153         * conform/data/pthread.h-data: Likewise.
6154         * conform/data/pwd.h-data: Likewise.
6155         * conform/data/signal.h-data: Likewise.
6156         * conform/data/spawn.h-data: Likewise.
6157         * conform/data/stdio.h-data: Likewise.
6158         * conform/data/stdlib.h-data: Likewise.
6159         * conform/data/stropts.h-data: Likewise.
6160         * conform/data/sys/mman.h-data: Likewise.
6161         * conform/data/sys/stat.h-data: Likewise.
6162         * conform/data/sys/types.h-data: Likewise.
6163         * conform/data/sys/wait.h-data: Likewise.
6164         * conform/data/time.h-data: Likewise.
6165         * conform/data/unistd.h-data: Likewise.
6166         * conform/data/utime.h-data: Likewise.
6167
6168         * io/sys/stat.h: fchmod was always in POSIX.
6169         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6170         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6171         * rt/aio.h: Define __need_timespec before including <time.h>.
6172         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6173         struct.  Add forward declaration of pthread_attr_t and use it in
6174         sigevent.
6175         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6176         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6177         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6178         always remove CLK_TCK definition.
6179
6180 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6181
6182         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6183
6184 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6185
6186         * conform/run-conformtest.sh: New file.
6187         * conform/Makefile: Run run-conformtest for tests.
6188         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6189         support.
6190
6191         * conform/data/uchar.h-data: New file.
6192         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6193         * conform/data/arpa/inet.h-data: Likewise.
6194         * conform/data/assert.h-data: Likewise.
6195         * conform/data/complex.h-data: Likewise.
6196         * conform/data/cpio.h-data: Likewise.
6197         * conform/data/ctype.h-data: Likewise.
6198         * conform/data/dirent.h-data: Likewise.
6199         * conform/data/dlfcn.h-data: Likewise.
6200         * conform/data/errno.h-data: Likewise.
6201         * conform/data/fcntl.h-data: Likewise.
6202         * conform/data/float.h-data: Likewise.
6203         * conform/data/fmtmsg.h-data: Likewise.
6204         * conform/data/fnmatch.h-data: Likewise.
6205         * conform/data/ftw.h-data: Likewise.
6206         * conform/data/glob.h-data: Likewise.
6207         * conform/data/grp.h-data: Likewise.
6208         * conform/data/iconv.h-data: Likewise.
6209         * conform/data/inttypes.h-data: Likewise.
6210         * conform/data/langinfo.h-data: Likewise.
6211         * conform/data/libgen.h-data: Likewise.
6212         * conform/data/limits.h-data: Likewise.
6213         * conform/data/locale.h-data: Likewise.
6214         * conform/data/math.h-data: Likewise.
6215         * conform/data/monetary.h-data: Likewise.
6216         * conform/data/mqueue.h-data: Likewise.
6217         * conform/data/ndbm.h-data: Likewise.
6218         * conform/data/net/if.h-data: Likewise.
6219         * conform/data/netdb.h-data: Likewise.
6220         * conform/data/netinet/in.h-data: Likewise.
6221         * conform/data/nl_types.h-data: Likewise.
6222         * conform/data/poll.h-data: Likewise.
6223         * conform/data/pthread.h-data: Likewise.
6224         * conform/data/pwd.h-data: Likewise.
6225         * conform/data/regex.h-data: Likewise.
6226         * conform/data/sched.h-data: Likewise.
6227         * conform/data/search.h-data: Likewise.
6228         * conform/data/semaphore.h-data: Likewise.
6229         * conform/data/setjmp.h-data: Likewise.
6230         * conform/data/signal.h-data: Likewise.
6231         * conform/data/spawn.h-data: Likewise.
6232         * conform/data/stdarg.h-data: Likewise.
6233         * conform/data/stdio.h-data: Likewise.
6234         * conform/data/stdlib.h-data: Likewise.
6235         * conform/data/string.h-data: Likewise.
6236         * conform/data/strings.h-data: Likewise.
6237         * conform/data/stropts.h-data: Likewise.
6238         * conform/data/sys/ipc.h-data: Likewise.
6239         * conform/data/sys/mman.h-data: Likewise.
6240         * conform/data/sys/msg.h-data: Likewise.
6241         * conform/data/sys/resource.h-data: Likewise.
6242         * conform/data/sys/select.h-data: Likewise.
6243         * conform/data/sys/sem.h-data: Likewise.
6244         * conform/data/sys/shm.h-data: Likewise.
6245         * conform/data/sys/socket.h-data: Likewise.
6246         * conform/data/sys/stat.h-data: Likewise.
6247         * conform/data/sys/statvfs.h-data: Likewise.
6248         * conform/data/sys/time.h-data: Likewise.
6249         * conform/data/sys/timeb.h-data: Likewise.
6250         * conform/data/sys/times.h-data: Likewise.
6251         * conform/data/sys/types.h-data: Likewise.
6252         * conform/data/sys/uio.h-data: Likewise.
6253         * conform/data/sys/un.h-data: Likewise.
6254         * conform/data/sys/utsname.h-data: Likewise.
6255         * conform/data/sys/wait.h-data: Likewise.
6256         * conform/data/syslog.h-data: Likewise.
6257         * conform/data/tar.h-data: Likewise.
6258         * conform/data/termios.h-data: Likewise.
6259         * conform/data/utime.h-data: Likewise.
6260         * conform/data/utmpx.h-data: Likewise.
6261         * conform/data/varargs.h-data: Likewise.
6262         * conform/data/wchar.h-data: Likewise.
6263         * conform/data/wctype.h-data: Likewise.
6264         * conform/data/wordexp.h-data: Likewise.
6265
6266         * include/stropts.h: New file.
6267         * include/uchar.h: New file.
6268         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6269         * include/assert.h: Likewise.
6270         * include/ctype.h: Likewise.
6271         * include/dirent.h: Likewise.
6272         * include/dlfcn.h: Likewise.
6273         * include/fcntl.h: Likewise.
6274         * include/fnmatch.h: Likewise.
6275         * include/glob.h: Likewise.
6276         * include/grp.h: Likewise.
6277         * include/libio.h: Likewise.
6278         * include/locale.h: Likewise.
6279         * include/math.h: Likewise.
6280         * include/net/if.h: Likewise.
6281         * include/netdb.h: Likewise.
6282         * include/netinet/in.h: Likewise.
6283         * include/pthread.h: Likewise.
6284         * include/pwd.h: Likewise.
6285         * include/regex.h: Likewise.
6286         * include/sched.h: Likewise.
6287         * include/search.h: Likewise.
6288         * include/setjmp.h: Likewise.
6289         * include/signal.h: Likewise.
6290         * include/stdio.h: Likewise.
6291         * include/stdlib.h: Likewise.
6292         * include/string.h: Likewise.
6293         * include/sys/cdefs.h: Likewise.
6294         * include/sys/mman.h: Likewise.
6295         * include/sys/msg.h: Likewise.
6296         * include/sys/resource.h: Likewise.
6297         * include/sys/select.h: Likewise.
6298         * include/sys/socket.h: Likewise.
6299         * include/sys/stat.h: Likewise.
6300         * include/sys/statvfs.h: Likewise.
6301         * include/sys/time.h: Likewise.
6302         * include/sys/times.h: Likewise.
6303         * include/sys/uio.h: Likewise.
6304         * include/sys/utsname.h: Likewise.
6305         * include/sys/wait.h: Likewise.
6306         * include/termios.h: Likewise.
6307         * include/time.h: Likewise.
6308         * include/ulimit.h: Likewise.
6309         * include/unistd.h: Likewise.
6310         * include/utime.h: Likewise.
6311         * include/wchar.h: Likewise.
6312         * include/wctype.h: Likewise.
6313         * include/wordexp.h: Likewise.
6314
6315         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6316
6317         * time/time.h: TIME_UTC must be a macro.
6318         Make timespec_get available for ISO C11 only as well.
6319
6320 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6321
6322         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6323         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6324
6325 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6326
6327         * configure.in: Use -o not -a in test for unsupported multi-arch.
6328
6329 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6330
6331         * manual/texinfo.tex: Update to version 2012-01-19.16.
6332
6333 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6334
6335         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6336
6337 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6338
6339         [BZ #13738]
6340         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6341         * manual/fdl-1.3.texi: New file.
6342         * manual/fdl-1.1.texi: File removed.
6343
6344         [BZ #13738]
6345         * manual/libc.texinfo (FDL_VERSION): New @set.
6346         Use it for mention of FDL in cover text.
6347         (Documentation License): Use it in @include file name.
6348
6349 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6350             Roland McGrath  <roland@hack.frob.com>
6351
6352         [BZ #5461]
6353         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6354         not LONG_LONG_MAX and LONG_LONG_MIN.
6355         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6356         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6357         name.
6358         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6359
6360 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6361
6362         [BZ #2547]
6363         [BZ #11365]
6364         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6365         manipulate bits before adding and subtracting TWO23[sx].
6366         * math/libm-test.inc (nearbyint_test): Add more tests.
6367
6368 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6369
6370         [BZ #2548]
6371         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6372         bits before adding and subtracting TWO23[sx].
6373         * math/libm-test.inc (rint_test): Add more tests.
6374         (rint_test_tonearest): Likewise.
6375         (rint_test_towardzero): Likewise.
6376         (rint_test_downward): Likewise.
6377         (rint_test_upward: Likewise.
6378
6379 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6380
6381         [BZ #10110]
6382         * include/stdc-predef.h: New file.  Extracted from features.h.
6383         * include/features.h: Include stdc-predef.h.
6384         * Makefile (headers): Add stdc-predef.h.
6385         * CONFORMANCE (Compiler limitations): Update.
6386
6387 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6388
6389         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6390
6391 2012-02-21  David S. Miller  <davem@davemloft.net>
6392
6393         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6394         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6395
6396 2012-02-20  David S. Miller  <davem@davemloft.net>
6397
6398         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6399         using a normal save/restore sequence, rather than allocating a
6400         dummy stack frame just to store a frame pointer and restore.
6401         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6402
6403 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6404
6405         * manual/install.texi: Fix stray word in line-wrapped comment.
6406
6407 2012-02-20  David S. Miller  <davem@davemloft.net>
6408
6409         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6410         both binutils and gcc support GOTDATA.
6411
6412         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6413         "rd %pc" in the PIC register setup sequences.
6414
6415         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6416         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6417         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6418         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6419         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6420         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6421         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6422         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6423         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6424         (SYSCALL_ERROR_HANDLER): Likewise.
6425         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6426         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6427         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6428         (SYSCALL_ERROR_HANDLER): Likewise.
6429
6430         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6431         (HAVE_GCC_GOTDATA): New.
6432         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6433         relocation support in both binutils and gcc.
6434         * sysdeps/sparc/elf/configure: Regenerate.
6435
6436         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6437         * sysdeps/sparc/sparc32/elf/configure: Delete.
6438         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6439         * sysdeps/sparc/sparc64/elf/configure: Delete.
6440         * sysdeps/sparc/elf/configure.in: New file.
6441         * sysdeps/sparc/elf/configure: Generate.
6442
6443         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6444         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6445         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6446         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6447         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6448
6449 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6450
6451         * manual/install.texi: Do not mention specific glibc version
6452         numbers.
6453         * manual/libc.texinfo (VERSION, UPDATED): Update.
6454         (@copying): Use @copyright{} and range of years.
6455
6456 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6457
6458         [BZ #13695]
6459         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6460         [crti.S not in sysdirs] (generated): Do not append.
6461         [crti.S not in sysdirs] (omit-deps): Likewise.
6462         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6463         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6464         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6465         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6466         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6467         Likewise.
6468         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6469         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6470         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6471         * csu/defs.awk: Remove file.
6472         * sysdeps/generic/initfini.c: Likewise.
6473         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6474         variable.
6475         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6476         Likewise.
6477
6478 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6479
6480         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6481         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6482         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6483         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6484         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6485         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6486         <bits/epoll.h>.
6487         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6488         (__EPOLL_PACKED): Define to empty if not defined by
6489         <bits/epoll.h>.
6490         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6491         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6492         bits/epoll.h.
6493
6494 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6495
6496         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6497         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6498         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6499         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6500         <bits/timerfd.h>.
6501         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6503         bits/timerfd.h.
6504
6505 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6506
6507         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6508         in C locale.
6509         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6510         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6511         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6513
6514 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6515
6516         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6517         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6518
6519 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6520
6521         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6522         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6523         defined.
6524         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6525         Likewise.
6526         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6527         entry for 2.16.
6528
6529 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
6530
6531         * math/w_acos.c: Use non-signaling floating-point comparisons.
6532         * math/w_acosf.c: Likewise.
6533         * math/w_acosh.c: Likewise.
6534         * math/w_acoshf.c: Likewise.
6535         * math/w_acoshl.c: Likewise.
6536         * math/w_acosl.c: Likewise.
6537         * math/w_asin.c: Likewise.
6538         * math/w_asinf.c: Likewise.
6539         * math/w_asinl.c: Likewise.
6540         * math/w_atanh.c: Likewise.
6541         * math/w_atanhf.c: Likewise.
6542         * math/w_atanhl.c: Likewise.
6543         * math/w_exp2.c: Likewise.
6544         * math/w_exp2f.c: Likewise.
6545         * math/w_exp2l.c: Likewise.
6546         * math/w_j0.c: Likewise.
6547         * math/w_j0f.c: Likewise.
6548         * math/w_j0l.c: Likewise.
6549         * math/w_j1.c: Likewise.
6550         * math/w_j1f.c: Likewise.
6551         * math/w_j1l.c: Likewise.
6552         * math/w_jn.c: Likewise.
6553         * math/w_jnf.c: Likewise.
6554         * math/w_log.c: Likewise.
6555         * math/w_log10.c: Likewise.
6556         * math/w_log10f.c: Likewise.
6557         * math/w_log10l.c: Likewise.
6558         * math/w_log2.c: Likewise.
6559         * math/w_log2f.c: Likewise.
6560         * math/w_log2l.c: Likewise.
6561         * math/w_logf.c: Likewise.
6562         * math/w_logl.c: Likewise.
6563         * math/w_sqrt.c: Likewise.
6564         * math/w_sqrtf.c: Likewise.
6565         * math/w_sqrtl.c: Likewise.
6566         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6567         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6568         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6569         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6570         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6571
6572 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6573
6574         [BZ #9739]
6575         * manual/string.texi (strnlen): Use correct parameter name in
6576         equivalent expression.
6577
6578 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6579
6580         [BZ #11174]
6581         * manual/users.texi (seteuid): Consistently use neweuid for
6582         argument name.
6583
6584 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6585
6586         [BZ #13704]
6587         * manual/nss.texi (Services in the NSS configuration): Correct
6588         list of services in example configuration file.
6589
6590 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
6591
6592         [BZ #11322]
6593         * manual/arith.texi: Remove statements about negative zero
6594         behaving identically to zero.
6595
6596 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6597
6598         [BZ #5993]
6599         * manual/install.texi: Do not document upgrading from libc5.
6600
6601 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6602
6603         [BZ #4596]
6604         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
6605
6606 2012-02-18  David S. Miller  <davem@davemloft.net>
6607
6608         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
6609         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
6610         %o7 across the call.
6611         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
6612         instead.
6613         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
6614         SETUP_PIC_REG_LEAF.
6615         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6616         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
6617         * sysdeps/sparc/crtn.S: Likewise.
6618
6619 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
6620
6621         * aout/Makefile: Remove.
6622
6623 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
6624
6625         [BZ #13058]
6626         * manual/examples/argp-ex1.c (main): Format definition in GNU
6627         style.
6628         * manual/examples/argp-ex2.c (main): Likewise.
6629         * manual/examples/argp-ex3.c (main): Likewise.
6630         * manual/examples/argp-ex4.c (main): Likewise.
6631         * manual/examples/longopt.c (main): Use new-style prototype
6632         definition.
6633         * manual/examples/strncat.c (main): Specify return type and use
6634         (void) for arguments.
6635         * manual/examples/subopt.c (main): Use char **argv argument.
6636
6637 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6638
6639         [BZ #5077]
6640         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
6641         rounding modes.
6642
6643 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
6644
6645         [BZ #6907]
6646         * manual/string.texi (strchr): Change when strchrnul is
6647         recommended.
6648
6649 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
6650
6651         [BZ #174]
6652         * manual/locale.texi (setlocale): Document LOCPATH.
6653
6654 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6655
6656         [BZ #10210]
6657         * manual/process.texi (execle): Move @dots{} before last argument.
6658
6659 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
6660
6661         [BZ #12047]
6662         * manual/charset.texi (Generic Charset Conversion): Fix typo
6663         (LC_TYPE -> LC_CTYPE).
6664
6665 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
6666
6667         [BZ #5805]
6668         * manual/arith.texi (scalbn): Use @var{} on parameter names.
6669         (scalbnf): Likewise.
6670         (scalbnl): Likewise.
6671         (scalbln): Likewise.
6672         (scalblnf): Likewise.
6673         (scalblnl): Likewise.
6674         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
6675         (vwarnx): Likewise.
6676         (verr): Likewise.
6677         (verrx): Likewise.
6678         * manual/filesys.texi (telldir): Use braces around return type.
6679         * manual/llio.texi (mmap): Add space after comma.
6680         (mmap64): Likewise.
6681         * manual/math.texi (jn): Use @var{} on parameter names.
6682         (jnf): Likewise.
6683         (jnl): Likewise.
6684         (yn): Likewise.
6685         (ynf): Likewise.
6686         (ynl): Likewise.
6687         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
6688         line.
6689         * manual/resource.texi (ulimit): Use @dots{} instead of literal
6690         "...".
6691         (sched_get_priority_min): Remove semicolon on @deftypefun line.
6692         (sched_get_priority_max): Likewise.
6693         * manual/signal.texi (sigvec): Add space after comma.
6694         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
6695         names.
6696         (if_indextoname): Likewise.
6697         (if_freenameindex): Likewise.
6698         (sendto): Use ',' instead of '.' in prototype.
6699         * manual/startup.texi (syscall): Use @dots{} instead of literal
6700         "...".
6701         * manual/stdio.texi (__fpending): Separate initial words of
6702         paragraph from @deftypefun line.
6703         * manual/syslog.texi (syslog): Use @dots{} instead of literal
6704         "...".
6705         (vsyslog): Use @var{} on parameter names.
6706         * manual/terminal.texi (stty): Use @var{} on parameter names.
6707         * manual/users.texi (getutmp): Use @var{} on parameter names.
6708         (getutmpx): Likewise.
6709
6710 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6711
6712         [BZ #6884]
6713         * manual/stdio.texi (fopen): Fix typos in description of
6714         ",ccs=STRING".
6715
6716 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
6717
6718         [BZ #4026]
6719         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
6720         get clock_id definition.
6721
6722 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
6723
6724         [BZ #4822]
6725         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
6726         (madvise): Cast every argument to void on its own.
6727
6728 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6729
6730         [BZ #9902]
6731         * manual/startup.texi (Exit Status): Fix typo.
6732
6733 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6734
6735         [BZ #10140]
6736         * manual/examples/argp-ex1.c: Include <stdlib.h>.
6737         * manual/examples/argp-ex2.c: Likewise.
6738         * manual/examples/argp-ex3.c: Likewise.
6739
6740 2012-02-16  Richard Henderson  <rth@redhat.com>
6741
6742         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
6743         * sysdeps/s390/s390-32/initfini.c: Remove.
6744         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
6745         * sysdeps/s390/s390-64/initfini.c: Remove.
6746
6747 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6748
6749         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
6750         compiler output for sysdeps/generic/initfini.c.
6751         * sysdeps/sh/elf/initfini.c: Remove file.
6752
6753 2012-02-16  David S. Miller  <davem@davemloft.net>
6754
6755         [BZ #11494]
6756         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
6757
6758         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
6759         * sysdeps/sparc/crti.S: New file.
6760         * sysdeps/sparc/crtn.S: New file.
6761         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
6762         * sysdeps/sparc/sparc64/Makefile: Likewise.
6763
6764 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
6765
6766         [BZ #3335]
6767         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
6768
6769 2012-02-15  Roland McGrath  <roland@hack.frob.com>
6770
6771         [BZ #4822]
6772         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
6773
6774         * mach/devstream.c (cookie_io_functions_t): Macro removed.
6775         (write, read, close): Likewise.
6776         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6777
6778 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
6779
6780         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
6781         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
6782         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
6783         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
6784         <bits/signalfd.h>.
6785         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
6786         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6787         bits/signalfd.h.
6788
6789 2012-02-14  Marek Polacek  <polacek@redhat.com>
6790
6791         * sysdeps/x86_64/crti.S: New file.
6792         * sysdeps/x86_64/crtn.S: New file.
6793         * sysdeps/x86_64/elf/initfini.c: Remove file.
6794
6795 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
6796
6797         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
6798         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
6799         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
6800         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
6801         <bits/inotify.h>.
6802         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
6803         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6804         bits/inotify.h.
6805
6806 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
6807
6808         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
6809         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
6810         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
6811         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
6812         <bits/eventfd.h>.
6813         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
6814         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6815         bits/eventfd.h.
6816
6817 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
6818
6819         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
6820         __feraiseexcept instead of feraiseexcept.
6821
6822         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
6823         nanosleep invocations.
6824         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
6825         strings, and add error checking for a nanosleep invocations.
6826
6827 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6828
6829         Replace FSF snail mail address with URLs, as per GNU coding standards.
6830         Most of the snail mail addresses were wrong anyway, and omitting
6831         them makes the source code easier to maintain.  Almost all of the
6832         changes are to license notices and to locale LC_IDENTIFICATION
6833         addresses, except for this one:
6834         * manual/libc.texinfo: In "Published by", give the FSF's URL,
6835         not its snail mail address.
6836
6837 2012-02-09  Richard Henderson  <rth@twiddle.net>
6838
6839         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
6840         of kernel-features.h.
6841
6842         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
6843
6844 2012-02-08  Marek Polacek  <polacek@redhat.com>
6845
6846         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
6847         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
6848         * sysdeps/gnu/_G_config.h: Likewise.
6849         * sysdeps/generic/_G_config.h: Likewise.
6850
6851 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
6852
6853         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
6854         tests.
6855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6856
6857         * sysdeps/powerpc/powerpc32/crti.S: New file.
6858         * sysdeps/powerpc/powerpc32/crtn.S: New file.
6859         * sysdeps/powerpc/powerpc64/crti.S: New file.
6860         * sysdeps/powerpc/powerpc64/crtn.S: New file.
6861
6862         * Makeconfig (have-initfini): Don't set.
6863         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
6864         * configure.in (nopic_initfini): Don't substitute.
6865         * config.h.in (HAVE_INITFINI): Don't #undef.
6866         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
6867         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
6868
6869 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
6870
6871         Support crti.S and crtn.S provided directly by architectures.
6872         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
6873         [crti.S in sysdirs] (omit-deps): Likewise.
6874         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
6875         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
6876         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
6877         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
6878         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
6879         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
6880         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
6881         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
6882         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
6883         compiler output for sysdeps/generic/initfini.c.
6884         * sysdeps/i386/elf/Makefile: Remove file.
6885         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
6886
6887 2012-02-07  Marek Polacek  <polacek@redhat.com>
6888
6889         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
6890         * sysdeps/gnu/_G_config.h: Likewise.
6891         * sysdeps/mach/hurd/_G_config.h: Likewise.
6892
6893 2012-02-07  Marek Polacek  <polacek@redhat.com>
6894
6895         * math/Makefile (tests): Add tst-CMPLX2.
6896         * math/tst-CMPLX2.c: New file.
6897
6898 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
6899
6900         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6901
6902         * math/libm-test.inc (jn_test): Add missing L suffix.
6903
6904 2012-02-06  Marek Polacek  <polacek@redhat.com>
6905
6906         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
6907         * sysdeps/i386/fpu/e_powf.S: Likewise.
6908         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6909         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6910         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6911         * sysdeps/i386/fpu/e_pow.S: Likewise.
6912         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
6913         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6914         * sysdeps/i386/fpu/s_expm1.S: Likewise.
6915         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6916         * sysdeps/i386/fpu/e_log2.S: Likewise.
6917         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6918         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6919         * sysdeps/i386/fpu/e_powl.S: Likewise.
6920         * sysdeps/i386/fpu/s_log1p.S: Likewise.
6921         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6922         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
6923         * sysdeps/i386/fpu/e_logl.S: Likewise.
6924         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
6925         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
6926         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6927         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
6928         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6929         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6930         * sysdeps/i386/fpu/e_log.S: Likewise.
6931         * sysdeps/i386/fpu/s_cexp.S: Likewise.
6932         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6933         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
6934         * sysdeps/i386/fpu/e_logf.S: Likewise.
6935         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6936         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6937         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
6938         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
6939         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6940         * sysdeps/i386/fpu/e_log10.S: Likewise.
6941         * sysdeps/i386/fpu/s_frexp.S: Likewise.
6942         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6943         * sysdeps/i386/fpu/s_asinh.S: Likewise.
6944         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
6945         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6946         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
6947         * sysdeps/i386/asm-syntax.h: Likewise.
6948         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6949         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6950         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6951         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
6952         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
6953         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6954         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
6955         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
6956         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6957         * sysdeps/powerpc/sysdep.h: Likewise.
6958         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6959         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6960
6961 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6962
6963         [BZ #411]
6964         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
6965
6966 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6967
6968         * sysdeps/i386/sysdep.h: Include <features.h>.
6969         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
6970         version.
6971
6972 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
6973
6974         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
6975         Define.
6976         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
6977         LOAD_PIC_REG_STR.
6978
6979 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6980
6981         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
6982         (SETUP_PIC_REG): Use GET_PC_THUNK.
6983         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
6984         macro.
6985
6986 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6987
6988         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
6989         for non-PIC compilation.
6990         (SETUP_PIC_REG): Add .p2align directive.
6991         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
6992         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
6993         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6994         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6995         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6996         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6997         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
6998         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6999         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7000         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7001         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7002         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7003         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7004         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7005         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7006         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7007         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7008         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7009         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7010         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7011         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7012         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7013         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7014         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7015         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7016         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7017         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7018         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7019         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7020         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7021         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7022         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7023         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7024         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7025         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7026         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7027         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7028         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7029         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7030         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7031         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7032
7033 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7034
7035         * math/tst-CMPLX.c: Include <stdio.h>.
7036
7037 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7038
7039         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7040         float.
7041         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7042         * sysdeps/sparc/bits/mathdef.h: Likewise.
7043
7044 2012-01-31  Marek Polacek  <polacek@redhat.com>
7045
7046         * libio/libio.h: Don't define _PARAMS.
7047         * locale/programs/config.h: Don't define PARAMS.
7048         * stdlib/strtol_l.c: Likewise.
7049         (__strtol_l): Remove PARAMS from the prototype.
7050
7051 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7052
7053         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7054         names.  Just use the correct names.  Remove unnecessary wrapper
7055         functions.
7056         * malloc/arena.c: Likewise.
7057         * malloc/hooks.c: Likewise.
7058
7059         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7060         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7061         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7062
7063 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7064
7065         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7066         into tail calls.
7067         (update_get_addr): New function.
7068         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7069         GET_ADDR_MODULE parameter.
7070
7071 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7072
7073         * crypt/cert.c: Remove __STDC__ conditionals.
7074         * crypt/crypt-entry.c: Likewise.
7075         * crypt/crypt_util.c: Likewise.
7076         * libio/filedoalloc.c: Likewise.
7077         * libio/fileops.c: Likewise.
7078         * libio/genops.c: Likewise.
7079         * libio/iofclose.c: Likewise.
7080         * libio/iofdopen.c: Likewise.
7081         * libio/iofopen.c: Likewise.
7082         * libio/iofopen64.c: Likewise.
7083         * libio/iogetdelim.c: Likewise.
7084         * libio/iopopen.c: Likewise.
7085         * libio/obprintf.c: Likewise.
7086         * libio/oldfileops.c: Likewise.
7087         * libio/oldiofclose.c: Likewise.
7088         * libio/oldiofdopen.c: Likewise.
7089         * libio/oldiofopen.c: Likewise.
7090         * libio/oldiopopen.c: Likewise.
7091         * libio/wfiledoalloc.c: Likewise.
7092         * libio/wgenops.c: Likewise.
7093         * locale/programs/xmalloc.c: Likewise.
7094         * misc/syslog.c: Likewise.
7095         * stdio-common/xbug.c: Likewise.
7096         * string/memchr.c: Likewise.
7097         * string/memcmp.c: Likewise.
7098         * string/memrchr.c: Likewise.
7099         * string/rawmemchr.c: Likewise.
7100         * sysdeps/posix/getcwd.c: Likewise.
7101         * time/strftime_l.c: Likewise.
7102
7103 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7104
7105         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7106         * config.make.in (config-cflags-sse2avx): Define.
7107         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7108         Fix typo.
7109
7110 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7111
7112         * scripts/config.guess: Update from upstream config git repository.
7113         * scripts/config.sub: Likewise.
7114
7115 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7116
7117         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7118         (EM_NUM): Update.
7119         (R_TILEPRO_*, R_TILEGX_*): New macros.
7120
7121         * scripts/firstversions.awk: Fix bug in version range handling.
7122
7123         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7124
7125         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7126
7127         * include/sys/epoll.h: New file.
7128         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7129         libc_hidden_def.
7130
7131 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7132
7133         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7134         Avoid unnecessary __WORDSIZE == 64 test.
7135         (fmaxf): Use VEX format if possible.
7136         (fmax): Likewise.
7137         (fminf): Likewise.
7138         (fmin): Likewise.
7139
7140         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7141         * math/math_private.h: Remove libc_fegetround* and
7142         libc_fesetround*.
7143         * sysdeps/i386/configure.in: Check for -msse2avx.
7144         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7145         also if SSE2AVX is defined.
7146         Remove libc_fegetround* and libc_fesetround*.
7147         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7148         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7149         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7150         of HAS_YMM_USABLE.
7151         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7152         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7153         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7154         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7155         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7156
7157         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7158
7159 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7160
7161         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7162         size is not set.
7163         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7164
7165 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7166
7167         [BZ #13618]
7168         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7169         relocation.
7170         * Makeconfig (libm): Define.
7171         * elf/Makefile: Add rules to build and run tst-relsort1.
7172         * elf/tst-relsort1.c: New file.
7173         * elf/tst-relsort1mod1.c: New file.
7174         * elf/tst-relsort1mod2.c: New file.
7175
7176 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7177
7178         * math/s_ldexp.c: Remove __STDC__ conditionals.
7179         * math/s_ldexpf.c: Likewise.
7180         * math/s_ldexpl.c: Likewise.
7181         * math/s_nextafter.c: Likewise.
7182         * math/s_nexttowardf.c: Likewise.
7183         * math/s_significand.c: Likewise.
7184         * math/s_significandf.c: Likewise.
7185         * math/s_significandl.c: Likewise.
7186         * math/w_jnl.c: Likewise.
7187         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7188         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7189         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7190         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7191         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7192         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7193         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7194         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7195         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7196         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7197         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7198         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7199         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7200         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7201         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7202         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7203         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7204         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7205         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7206         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7207         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7208         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7209         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7210         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7211         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7212         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7213         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7214         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7215         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7216         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7217         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7218         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7219         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7220         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7221         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7222         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7223         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7224         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7225         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7226         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7227         * sysdeps/ieee754/k_standard.c: Likewise.
7228         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7229         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7230         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7231         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7232         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7233         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7234         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7235         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7236         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7237         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7238         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7239         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7240         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7241         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7242         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7243         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7244         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7245         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7246         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7247         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7248         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7249         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7250         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7251         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7252         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7253         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7254         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7255         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7257         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7258         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7259         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7260         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7261         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7262         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7263         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7264         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7265         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7266         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7267         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7268         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7269         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7270         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7271         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7272         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7273         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7274         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7275         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7276         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7277         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7278         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7279         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7280         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7281         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7282         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7283         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7284         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7285         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7286         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7287         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7288         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7289         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7290         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7291         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7292         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7293         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7294         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7295         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7296         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7297         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7298         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7299         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7300         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7301         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7302         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7303         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7304         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7305         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7306         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7307         * sysdeps/ieee754/s_matherr.c: Likewise.
7308         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7309         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7310         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7311         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7312
7313 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7314
7315         * crypt/md5.h: Remove __STDC__ conditionals.
7316         * libio/libioP.h: Likewise.
7317         * locale/programs/config.h: Likewise.
7318         * sysdeps/generic/sysdep.h: Likewise.
7319         * sysdeps/i386/asm-syntax.h: Likewise.
7320         * sysdeps/s390/asm-syntax.h: Likewise.
7321         * sysdeps/unix/sysdep.h: Likewise.
7322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7324
7325 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7326
7327         * libio/libio.h: Remove __STDC__ conditionals.
7328         * malloc/obstack.h: Likewise.
7329         * math/complex.h: Likewise.
7330         * math/math.h: Likewise.
7331         * sysdeps/generic/_G_config.h: Likewise.
7332         * sysdeps/gnu/_G_config.h: Likewise.
7333         * sysdeps/mach/hurd/_G_config.h: Likewise.
7334         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7335         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7336         * sysdeps/sparc/bits/mathdef.h: Likewise.
7337
7338 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7339
7340         [BZ #13583]
7341         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7342         Clean up HAS_* macros.
7343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7344         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7345         possible.
7346         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7347         HAS_AVX.
7348         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7349         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7350         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7351         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7352         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7353
7354 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7355
7356         * elf/tst-unique3.cc (gets): Remove declaration.
7357         * elf/tst-unique3lib.cc (gets): Likewise.
7358         * elf/tst-unique3lib2.cc (gets): Likewise.
7359         * elf/tst-unique4.cc (gets): Likewise.
7360
7361 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7362
7363         * include/stdio.h: Add C++ protection.  Add gets declarations and
7364         definitions.
7365         * debug/tst-chk1.c: Don't declare gets here.
7366         * stdio-common/tst-gets.c: Likewise.
7367
7368 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7369
7370         * posix/glob: Remove directory.
7371
7372 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7373
7374         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7375
7376 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7377
7378         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7379         of the non-standard EPFNOSUPPORT.
7380
7381 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7382
7383         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7384         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7385         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7386
7387 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7388
7389         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7390
7391 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7392
7393         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7394         transient errors.
7395         * nscd/grpcache.c (cache_addgr): Likewise.
7396         * nscd/hstcache.c (cache_addhst): Likewise.
7397         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7398         * nscd/pwdcache.c (cache_addpw): Likewise.
7399         * nscd/servicescache.c (cache_addserv): Likewise.
7400
7401 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7402
7403         * malloc/malloc.c: Various cleanups.
7404         * malloc/hooks.c: Likewise.
7405
7406         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7407         * stdlib/bug-fmtmsg1.c: New file.
7408
7409         * stdlib/fmtmsg.c (init): Add missing unlock.
7410         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7411
7412 2012-01-12  Marek Polacek  <polacek@redhat.com>
7413
7414         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7415         and _GNU_SOURCE.
7416
7417 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7418
7419         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7420         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7421         macro to ensure uniqueness of label name.
7422         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7423         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7424
7425 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7426
7427         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7428
7429         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7430         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7431         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7432         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7433
7434 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7435
7436         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7437
7438         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7439         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7440         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7441
7442         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7443
7444         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7445         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7446         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7447         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7448
7449         * math/bits/math-finite.h: Add ldexp support.
7450
7451 2012-01-10  Marek Polacek  <polacek@redhat.com>
7452
7453         * locale/programs/localedef.h (show_archive_content): Add noreturn
7454         attribute.
7455
7456 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7457
7458         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7459
7460 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7461
7462         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7463
7464         * io/Makefile (headers): Add bits/poll2.h.
7465
7466 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7467
7468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7469         typo #include statement.
7470
7471 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7472
7473         * include/sys/cdefs.h: Define __attribute_alloc_size.
7474         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7475         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7476         * elf/pldd.c: Likewise.
7477         * iconv/iconv_charmap.c: Likewise.
7478         * iconv/iconvconfig.c: Likewise.
7479         * iconv/strtab.c: Likewise.
7480         * locale/programs/locale.c: Likewise.
7481         * locale/programs/localedef.h: Likewise.
7482         * locale/programs/simple-hash.c: Likewise.
7483         * nscd/nscd.h: Likewise.
7484         * nss/makedb.c: Likewise.
7485         * sysdeps/generic/ldconfig.h: Likewise.
7486         * locale/programs/localedef.c: Remove xmalloc prototype.
7487         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7488
7489 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7490
7491         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7492         appropriate.
7493
7494 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7495
7496         * math/Makefile (tests): Add tst-CMPLX.
7497         * math/tst-CMPLX.c: New file.
7498
7499         * math/complex.h (CMPLXL): Fix typo.
7500
7501         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7502         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7503         GLIBC_2.16.
7504         * debug/tst-chk1.c: Add poll and ppoll tests.
7505         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7506         * include/sys/poll.h: Add hidden proto for ppoll.
7507         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7508         * sysdeps/mach/hurd/ppoll.c: Likewise.
7509         * io/ppoll.c: Likewise.
7510         * debug/poll_chk.c: New file.
7511         * debug/ppoll_chk.c: New file.
7512         * include/bits/poll2.h: New file.
7513         * io/bits/poll2.h: New file.
7514
7515         [BZ #1350]
7516         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7517
7518         * configure.in: static is always set to yes.  Remove.
7519         * config.make.in: Don't set build-static.
7520         * Makeconfig: Remove use of build-static.
7521         * dlfcn/Makefile: Likewise.
7522         * elf/Makefile: Likewise.
7523         * math/Makefile: Likewise.
7524         * misc/Makefile: Likewise.
7525         * nptl/Makefile: Likewise.
7526         * sysdeps/mach/hurd/Makefile: Likewise.
7527
7528         * configure.in: PWD_P is not used anymore.
7529         * config.make.in: Remove PWD_P entry.
7530
7531         * configure.in: Remove last remnants of RANLIB.
7532         No need to check for signed size_t anymore.
7533         Don't set libc_commonpagesize and libc_relro_required here for Alpha
7534         and IA-64.
7535         Remove __builtin_expect test because we require at least gcc 3.4.
7536         * aclocal.m4: Likewise.
7537
7538         * wcsmbs/mbrtoc16.c: Implement using towc function.
7539         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
7540         * wcsmbs/wcsmbsload.c: Likewise.
7541         * iconv/gconv_simple.c: Likewise.
7542         * iconv/gconv_int.h: Likewise.
7543         * iconv/gconv_builtin.h: Likewise.
7544         * iconv/iconv_prog.c: Remove CHAR16 handling.
7545
7546         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
7547
7548         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
7549
7550         * configure.in: Remove --with-elf and --enable-bounded options.
7551         Dont set base_machine for ia64.  More non-ELF conditions removed.
7552         Remove testing and setting of leading underscore information.
7553         * config.make.in (build-bounded): Set to no.
7554         * config.h.in: Remove NO_UNDERSCORES entry.
7555         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
7556         them.
7557         * csu/start.c: Remove !NO_UNDERSCORE code.
7558         * locale/localeinfo.h: Likewise.
7559         * sysdeps/generic/machine-gmon.h: Likewise.
7560         * sysdeps/generic/sysdep.h: Likewise.
7561         * sysdeps/i386/sysdep.h: Likewise.
7562         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7563         * sysdeps/mach/sysdep.h: Likewise.
7564         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7565         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7566         * sysdeps/sh/sysdep.h: Likewise.
7567         * sysdeps/sparc/sparc32/alloca.S: Likewise.
7568         * sysdeps/unix/i386/sysdep.S: Likewise.
7569         * sysdeps/unix/sparc/start.c: Likewise.
7570         * sysdeps/unix/sparc/sysdep.S: Likewise.
7571         * sysdeps/unix/sparc/sysdep.h: Likewise.
7572         * sysdeps/unix/start.c: Likewise.
7573         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7574         * sysdeps/x86_64/sysdep.h: Likewise.
7575
7576 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
7577
7578         [BZ #13553]
7579         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
7580         for non-gcc.
7581         * argp/argp-fmtstream.h: Use const instead __const.
7582         * argp/argp.h: Likewise.
7583         * assert/assert.h: Likewise.
7584         * bits/fenv.h: Likewise.
7585         * bits/sched.h: Likewise.
7586         * bits/sigset.h: Likewise.
7587         * bits/sigthread.h: Likewise.
7588         * catgets/nl_types.h: Likewise.
7589         * conform/data/pthread.h-data: Likewise.
7590         * crypt/crypt-private.h: Likewise.
7591         * crypt/crypt.h: Likewise.
7592         * crypt/crypt_util.c: Likewise.
7593         * ctype/ctype.h: Likewise.
7594         * debug/execinfo.h: Likewise.
7595         * debug/mbsnrtowcs_chk.c: Likewise.
7596         * debug/mbsrtowcs_chk.c: Likewise.
7597         * debug/wcsnrtombs_chk.c: Likewise.
7598         * debug/wcsrtombs_chk.c: Likewise.
7599         * debug/wcstombs_chk.c: Likewise.
7600         * dirent/dirent.h: Likewise.
7601         * dlfcn/dlfcn.h: Likewise.
7602         * elf/neededtest4.c: Likewise.
7603         * grp/grp.h: Likewise.
7604         * gshadow/gshadow.h: Likewise.
7605         * iconv/gconv.h: Likewise.
7606         * iconv/gconv_int.h: Likewise.
7607         * iconv/gconv_simple.c: Likewise.
7608         * iconv/iconv.h: Likewise.
7609         * iconv/loop.c: Likewise.
7610         * iconv/skeleton.c: Likewise.
7611         * include/aio.h: Likewise.
7612         * include/aliases.h: Likewise.
7613         * include/argz.h: Likewise.
7614         * include/arpa/inet.h: Likewise.
7615         * include/assert.h: Likewise.
7616         * include/dirent.h: Likewise.
7617         * include/dlfcn.h: Likewise.
7618         * include/execinfo.h: Likewise.
7619         * include/fcntl.h: Likewise.
7620         * include/fenv.h: Likewise.
7621         * include/glob.h: Likewise.
7622         * include/grp.h: Likewise.
7623         * include/libintl.h: Likewise.
7624         * include/mntent.h: Likewise.
7625         * include/netdb.h: Likewise.
7626         * include/pwd.h: Likewise.
7627         * include/rpc/netdb.h: Likewise.
7628         * include/sched.h: Likewise.
7629         * include/search.h: Likewise.
7630         * include/shadow.h: Likewise.
7631         * include/signal.h: Likewise.
7632         * include/stdio.h: Likewise.
7633         * include/stdlib.h: Likewise.
7634         * include/string.h: Likewise.
7635         * include/sys/socket.h: Likewise.
7636         * include/sys/stat.h: Likewise.
7637         * include/sys/statfs.h: Likewise.
7638         * include/sys/statvfs.h: Likewise.
7639         * include/sys/syslog.h: Likewise.
7640         * include/sys/time.h: Likewise.
7641         * include/sys/uio.h: Likewise.
7642         * include/time.h: Likewise.
7643         * include/unistd.h: Likewise.
7644         * include/utmp.h: Likewise.
7645         * include/wchar.h: Likewise.
7646         * include/wctype.h: Likewise.
7647         * inet/aliases.h: Likewise.
7648         * inet/arpa/inet.h: Likewise.
7649         * inet/netinet/ether.h: Likewise.
7650         * inet/netinet/in.h: Likewise.
7651         * intl/libintl.h: Likewise.
7652         * io/bits/fcntl2.h: Likewise.
7653         * io/fcntl.h: Likewise.
7654         * io/ftw.h: Likewise.
7655         * io/sys/poll.h: Likewise.
7656         * io/sys/stat.h: Likewise.
7657         * io/sys/statfs.h: Likewise.
7658         * io/sys/statvfs.h: Likewise.
7659         * io/utime.h: Likewise.
7660         * libio/bits/stdio.h: Likewise.
7661         * libio/bits/stdio2.h: Likewise.
7662         * libio/libio.h: Likewise.
7663         * libio/libioP.h: Likewise.
7664         * libio/stdio.h: Likewise.
7665         * locale/lc-ctype.c: Likewise.
7666         * locale/locale.h: Likewise.
7667         * login/utmp.h: Likewise.
7668         * malloc/arena.c: Likewise.
7669         * malloc/malloc.c: Likewise.
7670         * malloc/malloc.h: Likewise.
7671         * malloc/mcheck.c: Likewise.
7672         * malloc/mtrace.c: Likewise.
7673         * math/bits/mathcalls.h: Likewise.
7674         * math/fenv.h: Likewise.
7675         * math/math_private.h: Likewise.
7676         * misc/bits/error.h: Likewise.
7677         * misc/bits/syslog.h: Likewise.
7678         * misc/err.h: Likewise.
7679         * misc/error.h: Likewise.
7680         * misc/fstab.h: Likewise.
7681         * misc/mntent.h: Likewise.
7682         * misc/regexp.h: Likewise.
7683         * misc/search.h: Likewise.
7684         * misc/sgtty.h: Likewise.
7685         * misc/sys/mman.h: Likewise.
7686         * misc/sys/syslog.h: Likewise.
7687         * misc/sys/uio.h: Likewise.
7688         * misc/sys/xattr.h: Likewise.
7689         * misc/ttyent.h: Likewise.
7690         * nis/rpcsvc/ypclnt.h: Likewise.
7691         * nss/nss.h: Likewise.
7692         * posix/bits/unistd.h: Likewise.
7693         * posix/fnmatch.h: Likewise.
7694         * posix/glob.h: Likewise.
7695         * posix/sched.h: Likewise.
7696         * posix/spawn.h: Likewise.
7697         * posix/sys/wait.h: Likewise.
7698         * posix/unistd.h: Likewise.
7699         * posix/wordexp.h: Likewise.
7700         * pwd/pwd.h: Likewise.
7701         * resolv/netdb.h: Likewise.
7702         * resource/sys/resource.h: Likewise.
7703         * rt/aio.h: Likewise.
7704         * rt/bits/mqueue2.h: Likewise.
7705         * rt/mqueue.h: Likewise.
7706         * shadow/shadow.h: Likewise.
7707         * signal/signal.h: Likewise.
7708         * socket/send.c: Likewise.
7709         * socket/sendto.c: Likewise.
7710         * socket/sys/socket.h: Likewise.
7711         * stdio-common/printf.h: Likewise.
7712         * stdlib/bits/stdlib.h: Likewise.
7713         * stdlib/fmtmsg.h: Likewise.
7714         * stdlib/monetary.h: Likewise.
7715         * stdlib/stdlib.h: Likewise.
7716         * stdlib/ucontext.h: Likewise.
7717         * streams/stropts.h: Likewise.
7718         * string/argz.h: Likewise.
7719         * string/bits/string2.h: Likewise.
7720         * string/string.h: Likewise.
7721         * string/strings.h: Likewise.
7722         * sunrpc/rpc/auth.h: Likewise.
7723         * sunrpc/rpc/auth_des.h: Likewise.
7724         * sunrpc/rpc/clnt.h: Likewise.
7725         * sunrpc/rpc/netdb.h: Likewise.
7726         * sunrpc/rpc/pmap_clnt.h: Likewise.
7727         * sunrpc/rpc/xdr.h: Likewise.
7728         * sysdeps/generic/inttypes.h: Likewise.
7729         * sysdeps/generic/net/if.h: Likewise.
7730         * sysdeps/generic/sys/swap.h: Likewise.
7731         * sysdeps/gnu/net/if.h: Likewise.
7732         * sysdeps/gnu/utmpx.h: Likewise.
7733         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
7734         * sysdeps/i386/i486/bits/string.h: Likewise.
7735         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
7736         * sysdeps/s390/bits/string.h: Likewise.
7737         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
7738         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
7739         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7740         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
7741         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7742         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7743         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7744         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
7745         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
7746         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
7747         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
7748         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
7749         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
7750         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
7751         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7752         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
7753         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
7754         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7755         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
7756         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
7757         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
7758         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
7759         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
7760         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
7761         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
7762         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
7763         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
7764         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7765         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
7766         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
7767         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
7768         * sysvipc/sys/ipc.h: Likewise.
7769         * sysvipc/sys/msg.h: Likewise.
7770         * sysvipc/sys/sem.h: Likewise.
7771         * sysvipc/sys/shm.h: Likewise.
7772         * termios/termios.h: Likewise.
7773         * time/sys/time.h: Likewise.
7774         * time/time.h: Likewise.
7775         * wcsmbs/bits/wchar2.h: Likewise.
7776         * wcsmbs/uchar.h: Likewise.
7777         * wcsmbs/wchar.h: Likewise.
7778         * wctype/wctype.h: Likewise.
7779
7780         [BZ #13551]
7781         * Makeconfig: Remove all but ELF support including AIX support.
7782         * Makerules: Likewise.
7783         * config.h.in: Likewise.
7784         * config.make.in: Likewise.
7785         * configure: Likewise.
7786         * configure.in: Likewise.
7787         * csu/Makefile: Likewise.
7788         * csu/version.c: Likewise.
7789         * debug/Makefile: Likewise.
7790         * dlfcn/Makefile: Likewise.
7791         * elf/Makefile: Likewise.
7792         * extra-lib.mk: Likewise.
7793         * iconv/Makefile: Likewise.
7794         * include/libc-symbols.h: Likewise.
7795         * include/shlib-compat.h: Likewise.
7796         * resolv/Makefile: Likewise.
7797         * resolv/res_libc.c: Likewise.
7798         * rt/Makefile: Likewise.
7799         * sysdeps/i386/asm-syntax.h: Likewise.
7800         * sysdeps/i386/sysdep.h: Likewise.
7801         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7802         * sysdeps/mach/sysdep.h: Likewise.
7803         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
7804         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
7805         * sysdeps/s390/asm-syntax.h: Likewise.
7806         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7807         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7808         * sysdeps/sh/sysdep.h: Likewise.
7809         * sysdeps/unix/sparc/sysdep.h: Likewise.
7810         * sysdeps/wordsize-32/divdi3.c: Likewise.
7811         * sysdeps/x86_64/sysdep.h: Likewise.
7812
7813         * argp/Versions: Remove _argp_unlock_xxx.
7814
7815         [BZ #13559]
7816         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
7817         * abilist/libBrokenLocale.abilist: Likewise.
7818         * abilist/libanl.abilist: Likewise.
7819         * abilist/libc.abilist: Likewise.
7820         * abilist/libcrypt.abilist: Likewise.
7821         * abilist/libdl.abilist: Likewise.
7822         * abilist/libm.abilist: Likewise.
7823         * abilist/libnsl.abilist: Likewise.
7824         * abilist/libpthread.abilist: Likewise.
7825         * abilist/libresolv.abilist: Likewise.
7826         * abilist/librt.abilist: Likewise.
7827         * abilist/libthread_db.abilist: Likewise.
7828         * abilist/libutil.abilist: Likewise.
7829         * abilist/libnss_db.abilist: New file.
7830
7831         * scripts/abilist.awk: Add support for indirect functions.
7832
7833         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
7834
7835         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
7836
7837         * shlib-versions: Remove entries for ports architectures.
7838
7839         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
7840         files in ports.
7841         * elf/stackguard-macros.h: Remove support for IA-64.
7842         * elf/tst-auditmod1.c: Likewise.
7843         * sysdeps/generic/ldsodefs.h: Likewise.
7844
7845         * sysdeps/unix/sysv/linux/configure.in: Ports should define
7846         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
7847         configure files.
7848
7849         [BZ #13552]
7850         * configure.in: Remove --enable-omitfp support.
7851         * FAQ.in: Adjust.
7852         * config.make.in: Likewise.
7853         * Makeconfig: Likewise.
7854         * manual/install.texi: Likewise.
7855
7856         In case anyone cares, the IA-64 architecture could move to ports.
7857         * sysdeps/ia64/*: Removed.
7858         * sysdeps/unix/sysv/linux/ia64/*: Removed.
7859         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
7860
7861         [BZ #13555]
7862         * configure.in: Remove entries for unsupported architectures.
7863
7864         [BZ #13533]
7865         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
7866         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
7867         routines.
7868         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
7869         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
7870         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
7871         fall back to using wcrtomb.
7872         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
7873         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
7874         renaming.
7875         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
7876         * wcsmbs/tst-c16c32-1.c: New file.
7877
7878         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
7879         local variable.
7880
7881         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
7882
7883         * elf/tst-unique3.cc: Add explicit declaration of gets.
7884         * elf/tst-unique3lib.cc: Likewise.
7885         * elf/tst-unique3lib2.cc: Likewise.
7886         * elf/tst-unique4.cc: Likewise.
7887
7888         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
7889
7890 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
7891
7892         [BZ #13566]
7893         * assert/assert.h (static_assert): Don't define for C++.
7894         * libio/stdio.h (gets): Do declare for C++ <= C++11.
7895         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
7896
7897 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
7898
7899         * iconv/loop.c (single loop): Fix assertion in storing of
7900         remaining bytes.
7901
7902         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
7903
7904 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
7905
7906         * posix/getconf.c: Update copyright year.
7907         * nss/getent.c: Likewise.
7908         * nss/makedb.c: Likewise.
7909         * iconv/iconvconfig.c: Likewise.
7910         * iconv/iconv_prog.c: Likewise.
7911         * elf/ldconfig.c: Likewise.
7912         * elf/pldd.c: Likewise.
7913         * elf/sotruss.ksh: Likewise.
7914         * catgets/gencat.c: Likewise.
7915         * csu/version.c: Likewise.
7916         * elf/ldd.bash.in: Likewise.
7917         * elf/sprof.c (print_version): Likewise.
7918         * locale/programs/locale.c: Likewise.
7919         * locale/programs/localedef.c: Likewise.
7920         * login/programs/pt_chown.c: Likewise.
7921         * nscd/nscd.c (print_version): Likewise.
7922         * debug/xtrace.sh: Likewise.
7923         * malloc/memusage.sh: Likewise.
7924         * malloc/mtrace.pl: Likewise.
7925         * debug/catchsegv.sh: Likewise.
7926
7927 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
7928
7929         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
7930         pure attribute.
7931
7932 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
7933
7934         [BZ #13533]
7935         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
7936         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
7937         transformations.
7938         * iconv/gconv_int.h: Likewise.
7939         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
7940         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
7941         from libc for GLIBC_2.16.
7942         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
7943         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
7944         * wcsmbs/uchar.h: Really define mbstate_t.
7945         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
7946         * wcsmbs/c16rtomb.c: New file.
7947         * wcsmbs/mbrtoc16.c: New file.
7948         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
7949         for C/POSIX locale.
7950         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
7951         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
7952
7953         * wcsmbs/wchar.h: Add missing __restrict.
7954
7955 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
7956
7957         [BZ #13532]
7958         * time/Makefile (routines): Add timespec_get.
7959         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
7960         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
7961         timespec for ISO C11.
7962         * time/timespec_get.c: New file.
7963         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
7964         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
7965
7966         [BZ #13531]
7967         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
7968         * stdlib/stdlib.h: Declare aligned_alloc.
7969         * Versions.def: Add GLIBC_2.16 for libc.
7970         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
7971
7972         [BZ 13527]
7973         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
7974         ISO C11.
7975
7976         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
7977         code.
7978
7979         [BZ #13528]
7980         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
7981
7982         [BZ #13529]
7983         * assert/assert.h (static_assert): Define.
7984
7985         * version.h: Update for 2.16 development version.
7986
7987         [BZ #13526]
7988         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
7989         _ISOC11_SOURCE.
7990
7991         * version.h (RELEASE): Bump for 2.15 release.
7992         * include/features.h (__GLIBC_MINOR__): Bump to 15.
7993
7994         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
7995         Patch by Marek Polacek <mpolacek@redhat.com>.
7996
7997         * bits/byteswap.h: Protect long long constants with __extension__.
7998         * sysdeps/i386/bits/byteswap.h: Likewise.
7999         * sysdeps/ia64/bits/byteswap.h: Likewise.
8000         * sysdeps/s390/bits/byteswap.h: Likewise.
8001         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8002
8003 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8004
8005         [BZ #13540]
8006         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8007         destination buffer.
8008         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8009
8010 2011-12-23  Marek Polacek  <polacek@redhat.com>
8011
8012         * elf/dl-addr.c (determine_info): Add inline keyword.
8013         * elf/tst-auditmod4b.c (check_avx): Likewise.
8014         * elf/tst-auditmod6b.c (check_avx): Likewise.
8015         * elf/tst-auditmod6c.c (check_avx): Likewise.
8016         * elf/tst-auditmod7b.c (check_avx): Likewise.
8017
8018 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8019
8020         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8021         !__SSE_MATH__.
8022
8023 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8024
8025         [BZ #13540]
8026         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8027         processing for last bytes.
8028
8029 2011-08-06  Bruno Haible  <bruno@clisp.org>
8030
8031         [BZ #13061]
8032         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8033         U+0385, not to U+1FEE.
8034
8035         [BZ #13062]
8036         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8037         entry for U+00A5 U+0301.
8038
8039 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8040
8041         [BZ #13166]
8042         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8043         buffer for the output is too small.
8044
8045         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8046         optimization.
8047
8048         [BZ #13185]
8049         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8050         SSE flags if possible.
8051
8052 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8053
8054         [BZ #13540]
8055         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8056         processing for last bytes.
8057
8058 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8059
8060         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8061         (syscall-list-default-options, syscall-list-default-condition)
8062         (syscall-list-includes): Define.
8063         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8064         list of ABIs and options and #if conditions for each ABI.  Do not
8065         handle common syscalls between ABIs specially.
8066         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8067         Remove.
8068         (syscall-list-variants, syscall-list-32bit-options)
8069         (syscall-list-32bit-condition, syscall-list-64bit-options)
8070         (syscall-list-64bit-condition): Define.
8071         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8072         (syscall-list-variants, syscall-list-32bit-options)
8073         (syscall-list-32bit-condition, syscall-list-64bit-options)
8074         (syscall-list-64bit-condition): Define.
8075         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8076         Remove.
8077         (syscall-list-variants, syscall-list-32bit-options)
8078         (syscall-list-32bit-condition, syscall-list-64bit-options)
8079         (syscall-list-64bit-condition): Define.
8080         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8081         Remove.
8082         (syscall-list-variants, syscall-list-32bit-options)
8083         (syscall-list-32bit-condition, syscall-list-64bit-options)
8084         (syscall-list-64bit-condition): Define.
8085
8086 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8087
8088         * locale/iso-639.def: Add brx entry.
8089
8090         [BZ #13328]
8091         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8092         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8093
8094         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8095         __feraiseexcept_renamed.
8096
8097 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8098
8099         [BZ #13538]
8100         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8101         EPOLLET with unsigned values.
8102         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8103         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8104
8105         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8106         to large cancellation.
8107         * math/s_cacoshf.c: Likewise.
8108         * math/s_cacoshl.c: Likewise.
8109
8110 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8111
8112         [BZ #13305]
8113         [BZ #12786]
8114         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8115         * math/s_cacoshf.c: Likewise.
8116         * math/s_cacoshl.c: Likewise.
8117
8118 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8119
8120         [BZ #13439]
8121         * iconv/gconv.h: Define __GCONV_SWAP.
8122         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8123         * iconvdata/utf-16.c: Likewise.
8124         * iconvdata/utf-32.c: Likewise.
8125
8126 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8127
8128         [BZ #13524]
8129         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8130         numerator after shifting it by one limb.
8131
8132 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8133
8134         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8135         under [__USE_EXTERN_INLINES].
8136
8137 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8138
8139         [BZ #13446]
8140         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8141
8142 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8143
8144         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8145         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8146         optimized code.
8147         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8148         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8149         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8150         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8151         for strncasecmp/strncasecmp_l compilation.
8152         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8153         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8154
8155 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8156
8157         [BZ #13484]
8158         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8159         of __asm__.
8160
8161 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8162
8163         [BZ #13506]
8164         * time/tzfile.c (__tzfile_read): Check values from file header.
8165
8166 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8167
8168         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8169         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8170         * powerpc/powerpc32/dl-start.S: Likewise.
8171         * powerpc/powerpc32/elf/start.S: Likewise.
8172         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8173         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8174         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8175         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8176         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8177         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8178         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8179         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8180         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8181         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8182         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8183         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8184         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8185         * powerpc/powerpc32/memset.S: Likewise.
8186         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8187         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8188         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8189         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8190         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8191         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8192         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8193         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8194         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8195         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8196         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8197         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8198         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8199
8200 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8201
8202         * math/libm-test.inc: Added more nearbyint tests.
8203         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8204         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8205         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8206         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8207
8208 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8209
8210         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8211         FD_CLOEXEC.
8212
8213 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8214
8215         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8216         Add wcscpy-ssse3 wcscpy-c.
8217         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8218         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8219         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8220         * sysdeps/x86_64/wcschr.S: New file.
8221         * sysdeps/x86_64/wcsrchr.S: New file.
8222         * string/test-strcmp.c: Remove checking of wcscmp function for
8223         wrong alignments.
8224         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8225         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8226         wcsrchr-sse2 wcsrchr-c.
8227         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8228         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8229         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8230         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8231         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8232         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8233         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8234         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8235         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8236         * wcsmbc/wcschr.c (WCSCHR): New macro.
8237
8238 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8239
8240         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8241         * wcsmbs/test-wcsrchr.c: New file.
8242         * string/test-strrchr.c: Add wcsrchr support.
8243         (WIDE): New macro.
8244         * wcsmbs/test-wcscpy.c: New file.
8245         * string/test-strcpy.c: Add wcscpy support.
8246         (WIDE): New macro.
8247
8248 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8249
8250         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8251         the inner loop.
8252
8253 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8254
8255         [BZ #13472]
8256         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8257
8258 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8259
8260         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8261         Minor optimizations.
8262
8263         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8264         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8265         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8266
8267 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8268
8269         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8270         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8271         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8272         for gcc to avoid warnings.
8273         * inet/Makefile (tests): Add tst-checks.
8274         * inet/tst-checks.c: New file.
8275
8276         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8277         warning.
8278
8279         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8280         __wmemcmp_sse2.
8281
8282         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8283         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8284
8285         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8286
8287 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8288
8289         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8290         problem.
8291
8292         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8293
8294 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8295
8296         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8297         conditional on GCC version.
8298         (__arch_compare_and_exchange_val_8_acq)
8299         (__arch_compare_and_exchange_val_16_acq)
8300         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8301         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8302         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8303
8304 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8305
8306         * sysdeps/sh/backtrace.c: New file.
8307
8308 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8309
8310         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8311         parenthesis.
8312
8313 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8314
8315         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8316         falling back to utime.
8317
8318 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8319
8320         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8321         expectations for float.
8322
8323 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8324
8325         * locale/weight.h (findidx): Add parameter len.
8326         * locale/weightwc.h (findidx): Likewise.
8327         * posix/fnmatch_loop.c (FCT): Adjust caller.
8328         * posix/regcomp.c (build_equiv_class): Likewise.
8329         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8330         * posix/regexec.c (check_node_accept_bytes): Likewise.
8331         * string/strcoll_l.c (STRCOLL): Likewise.
8332         * string/strxfrm_l.c (STRXFRM): Likewise.
8333
8334 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8335
8336         * Makefile.in: Remove CVSOPT handling.
8337         * configure.in: Remove use of AC_REVISION.
8338         * iconvdata/Makefile (distribute): No need to filter out CVS.
8339         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8340         handling.
8341
8342 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8343
8344         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8345         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8346         [USE_AS_STRNCASECMP_L]: Likewise.
8347         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8348         NO_TLS_DIRECT_SEG_REFS.
8349         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8350         Fix argument offsets for non-PIC.
8351         [USE_AS_STRNCASECMP_L]: Likewise.
8352         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8353         NO_TLS_DIRECT_SEG_REFS.
8354
8355 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8356
8357         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8358         O_CLOEXEC.
8359         * locale/loadlocale.c (_nl_load_locale): Likewise.
8360
8361 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8362
8363         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8364         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8365         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8366         (SYSCALL_GETTIME): Set errno on error.
8367
8368         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8369         count references to noai6ai_cached.
8370
8371 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8372
8373         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8374
8375         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8376         FD_CLOEXEC for /proc/self/maps.
8377
8378         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8379         FD_CLOEXEC for /proc/meminfo.
8380
8381         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8382         gai.conf.
8383
8384         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8385         FD_CLOEXEC for given file.
8386
8387         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8388
8389         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8390         FD_CLOEXEC for /etc/hosts.
8391         (_gethtent): Likewise.
8392
8393         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8394
8395         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8396         cancellation and set FD_CLOEXEC for /etc/netgroup.
8397
8398         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8399         reading /etc/publickey.
8400
8401         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8402         allow cancellation when reading /etc/group.
8403
8404         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8405         cancellation.
8406         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8407
8408         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8409         when using data file.
8410
8411         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8412
8413         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8414         (write_nis_obj): Use "c" and "e" in fopen.
8415
8416         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8417
8418         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8419
8420         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8421
8422         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8423
8424         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8425         locale.alias.
8426
8427         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8428
8429         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8430
8431         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8432
8433         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8434         file parsing and set FD_CLOEXEC.
8435
8436 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8437
8438         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8439
8440 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8441
8442         * malloc/arena.c (arena_get2): Don't call reused_arena when
8443         _int_new_arena failed.
8444
8445 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8446
8447         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8448         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8449         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8450         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8451         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8452         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8453         to compile strcasecmp and strncasecmp.
8454         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8455         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8456
8457         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8458
8459 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8460
8461         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8462         locale-defines.sym to gen-as-const-headers.
8463         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8464         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8465         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8466         to compile strcasecmp and strncasecmp.
8467         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8468         strcasecmp_l and strncasecmp_l.
8469         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8470         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8471         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8472         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8473         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8474         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8475         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8476         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8477         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8478         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8479         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8480
8481 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8482
8483         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8484         result of SYSDEP_GETTIME_CPU to retval.
8485         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8486         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8487
8488         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8489         variable.
8490
8491         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8492         mantissa words.
8493         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8494
8495         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8496         from unused variable.
8497
8498         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8499         DWARF definitions.
8500         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8501         for assembling.
8502
8503         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8504         over namespaces.
8505
8506         * sunrpc/rpc_prot.c (rejected): Fix case value.
8507
8508         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8509         unsigned long long int to avoid warnings in shift.
8510
8511         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8512         of use of trans.
8513         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8514         variable tmp.
8515
8516         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8517         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8518         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8519
8520         * nis/nis_table.c (nis_list): Use variable of correct type for
8521         result of __follow_path call.
8522
8523 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8524
8525         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8526         of math functions ceil, trunc, floor, round, and sqrt, when
8527         avaliable on the platform.
8528         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
8529         name clash.
8530         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8531         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8532         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8533
8534 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
8535
8536         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
8537         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8538
8539 2011-11-11  Roland McGrath  <roland@hack.frob.com>
8540
8541         * include/unistd.h: Fix __readlink return type.
8542         Reported by Chris Metcalf <cmetcalf@tilera.com>.
8543
8544 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
8545
8546         * stdlib/ucontext.h: Undo last change for makecontext.
8547
8548 2011-11-11  Andreas Schwab  <schwab@redhat.com>
8549
8550         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
8551
8552         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
8553         * setjmp/setjmp.h: Mark functions as non-leaf.
8554         * setjmp/bits/setjmp2.h: Likewise.
8555         * stdlib/ucontext.h: Likewise.
8556
8557 2011-11-10  Andreas Schwab  <schwab@redhat.com>
8558
8559         * malloc/arena.c (_int_new_arena): Don't increment narenas.
8560         (reused_arena): Don't check arena limit.
8561         (arena_get2): Atomically check arena limit.
8562
8563 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
8564
8565         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
8566         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
8567
8568         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
8569         instructions.
8570
8571 2011-11-07  Andreas Schwab  <schwab@redhat.com>
8572
8573         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
8574         handler when locking.
8575
8576         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8577         Fix size of allocated buffer.
8578
8579 2011-11-04  Andreas Schwab  <schwab@redhat.com>
8580
8581         [BZ #10103]
8582         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
8583         declarations for long double functions.
8584         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
8585
8586         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
8587
8588 2011-11-03  Andreas Schwab  <schwab@redhat.com>
8589
8590         * nscd/nscd.c (main): Don't start AVC thread until credentials are
8591         installed.
8592
8593         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
8594         is disabled.
8595
8596 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8597
8598         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
8599
8600 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8601
8602         * include/alloca.h (stackinfo_alloca_round): Define.
8603         (extend_alloca): Use it.
8604         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
8605         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
8606         here.
8607
8608         * scripts/check-local-headers.sh: Ignore libaudit.h.
8609
8610         * nscd/Makefile (extra-objs): Make recursively expanded.
8611
8612 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
8613
8614         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
8615         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
8616
8617         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
8618         * posix/tst-rfc3484-2.c: Likewise.
8619         * posix/tst-rfc3484-3.c: Likewise.
8620
8621         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8622         process_vm_writev.
8623         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
8624         process_vm_writev.
8625         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
8626         process_vm_writev from libc using GLIBC_2.15 version.
8627
8628         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
8629
8630 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8631
8632         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
8633         stack usage.
8634
8635 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
8636
8637         [BZ #13367]
8638         * nss/getent.c (initgroups_keys): Show error message in case no group
8639         names are given.
8640
8641         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
8642         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
8643         __bump_nl_timestamp.
8644         * nscd/connections (nscd_init): When host database is served open
8645         netlink socket and request notification about configuration changes.
8646         (main_loop_poll): Track netlink file descriptor and bump timestamp
8647         in case data becomes available.
8648         (main_loop_epoll): Likewise.
8649         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
8650         (database_pers_head): Add extra_data fileds.
8651         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
8652         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
8653         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
8654         Adjust caller.
8655         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
8656         in6ai data, call __free_in6ai.
8657         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
8658         Add -DHAVE_NETLINK.
8659         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
8660         interface information.  Reuse previous data if netlink timestamp
8661         is not changed.
8662         (__bump_nl_timestamp): New function.
8663         (__free_in6ai): New function.
8664
8665 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
8666
8667         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
8668         close_not_cancel_no_status here.
8669         (__check_pf): Reorganize code a bit to not call close twice if OOM.
8670
8671 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8672
8673         [BZ #13276]
8674         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
8675         return value.
8676
8677         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
8678         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
8679         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
8680
8681 2011-07-03  Andreas Jaeger  <aj@suse.de>
8682
8683         [BZ #10709]
8684         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
8685         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
8686         * math/libm-test.inc (sin_test): Add test case.
8687
8688 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8689
8690         [BZ #13337]
8691         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
8692         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8693
8694         * elf/chroot_canon.c (chroot_canon): Cleanups.
8695
8696         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
8697
8698         [BZ #13335]
8699         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
8700         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8701
8702         * string/test-strchr.c: Make usable for strchrnul testing.
8703         * string/test-strchrnul.c: New file.
8704         * string/Makefile (strop-tests): Add strchrnul.
8705
8706         * po/it.po: Update from translation team.
8707         * po/es.po: Likewise.
8708
8709 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
8710
8711         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
8712         the three constants needed as parameters.  Drop the others.
8713         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
8714         __m128i_strloadu_tolower.
8715         Create and initialize variable zero and use it in all the places
8716         where _mm_setzero_si128 was used.
8717
8718         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
8719         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
8720         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
8721         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
8722         anymore.
8723         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
8724         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
8725         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
8726         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
8727         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
8728         __mpranred, __mptan.
8729         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
8730         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
8731         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
8732         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
8733         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
8734         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
8735         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
8736         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
8737         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
8738
8739 2011-10-28  Andreas Schwab  <schwab@redhat.com>
8740
8741         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
8742         redefine if SHARED.
8743         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
8744
8745         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
8746         wide char related routines to wcsmbs subdir.
8747
8748 2011-10-27  Andreas Schwab  <schwab@redhat.com>
8749
8750         [BZ #13344]
8751         * misc/sys/cdefs.h (__THROWNL): Define.
8752         * posix/unistd.h: Use __THREADNL instead of __THREAD
8753         for memory synchronization functions.
8754
8755 2011-10-26  Roland McGrath  <roland@hack.frob.com>
8756
8757         [BZ #13349]
8758         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
8759         doesn't exist.
8760         * manual/stdio.texi (Obstack Streams): Node removed.
8761
8762 2011-10-26  Andreas Schwab  <schwab@redhat.com>
8763
8764         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
8765         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8766         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8767
8768         * math/math_private.h (math_force_eval): Allow non-addressable
8769         arguments.
8770         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
8771
8772 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8773
8774         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
8775         file is not needed.
8776
8777         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
8778         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8779         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8780         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8781         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8782         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8783         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8784         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
8785         Add AVX variants.
8786         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
8787         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
8788         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
8789         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
8790         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
8791         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
8792         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
8793         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
8794         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
8795         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
8796         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
8797         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
8798         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
8799         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
8800         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
8801         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
8802         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
8803         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
8804         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
8805
8806         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
8807         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
8808
8809         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
8810         place.  Use VEX encoding when compiling for AVX.
8811
8812 2011-10-25  Andreas Schwab  <schwab@redhat.com>
8813
8814         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
8815         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
8816
8817         * string/test-strchr.c (do_test): Don't generate NUL bytes.
8818
8819 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8820
8821         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
8822         useless if() expression.
8823         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8824         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8825         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8826         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8827         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8828         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8829         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8830         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8831         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8832         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8833         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8834         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8835         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8836         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8837         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8838         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8839         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8840         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8841         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8842
8843         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
8844
8845 2011-10-25  Andreas Schwab  <schwab@redhat.com>
8846
8847         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
8848         condition.
8849         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8850
8851 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8852
8853         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
8854         .text section.  Avoid duplicate constants.
8855         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8856         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8857         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8858         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8859         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8860         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8861         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8862         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8863         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
8864         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
8865         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
8866         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
8867         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
8868         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
8869         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
8870         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
8871         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
8872         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
8873         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8874         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8875         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8876         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8877         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8878         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
8879         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
8880         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
8881         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
8882         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
8883         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
8884         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
8885         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
8886         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
8887         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8888         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
8889         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
8890         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
8891         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
8892         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
8893         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
8894         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
8895         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
8896         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
8897         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
8898         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
8899         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
8900
8901 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
8902
8903         * sysdeps/x86_64/dla.h: Move to ...
8904         * sysdeps/x86_64/fpu/dla.h: ...here.
8905         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
8906         situations.  Use __builtin_fma only for gcc 4.6 and up.
8907
8908         * config.make.in: Add have-mfma4 entry.
8909         * configure.in: Substitute libc_cv_cc_fma4.
8910         * math/Makefile (dbl-only-routines): Add sincostab.
8911         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
8912         Use __sincostab not sincos.
8913         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
8914         name is a macro.
8915         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8916         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8917         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8918         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
8919         using __copysign.
8920         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
8921         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
8922         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
8923         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
8924         and __inv.
8925         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
8926         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
8927         __copysign.
8928         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
8929         define aliases when function name is a macro.
8930         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
8931         sysdeps/ieee754/dbl-64/sincos.tbl.
8932         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
8933         fma4-enabled routines.
8934         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
8935         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
8936         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
8937         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
8938         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
8939         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
8940         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
8941         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
8942         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
8943         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
8944         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
8945         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
8946         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
8947         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
8948         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
8949         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
8950         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
8951         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
8952         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
8953         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
8954         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
8955         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
8956         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
8957         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
8958         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
8959         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
8960         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
8961         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
8962         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
8963         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
8964
8965         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
8966         rename.
8967         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8968         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8969         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8970         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8971         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8972         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8973         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8974         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8975
8976 2011-10-24  Andreas Schwab  <schwab@redhat.com>
8977
8978         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
8979
8980 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8981
8982         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
8983
8984         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
8985         prediction.
8986         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
8987
8988         * string/strnlen.c: Don't define STRNLEN, reverse logic.
8989         Remove unused variable magic_bits.
8990         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
8991
8992         * string/strnlen.c: Define and use STRNLEN macro.
8993         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
8994         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
8995         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
8996         * wcsmbs/wcslen.c: Define and use WCSLEN.
8997         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
8998         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
8999         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9000         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9001         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9002         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9003         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9004
9005 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9006
9007         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9008         strnlen-sse2-no-bsf.
9009         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9010         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9011         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9012         Add strnlen support.
9013         (USE_AS_STRNLEN): New macro.
9014         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9015         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9016         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9017         * sysdeps/x86_64/wcslen.S: New file.
9018
9019 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9020
9021         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9022         XMM-moves are used for copying on small sizes.
9023
9024 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9025
9026         * wcsmbs/Makefile (strop-tests): Add wcschr.
9027         * wcsmbs/test-wcschr.c: New file.
9028         * string/test-strchr.c: Update.
9029         Add wcschr support.
9030         (WIDE): New macro.
9031
9032 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9033
9034         * wcsmbs/Makefile (strop-tests): Add wcslen.
9035         * wcsmbs/test-wcslen.c: New file.
9036         * string/test-strlen.c: Update.
9037         Add wcslen support.
9038         (WIDE): New macro.
9039
9040 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9041
9042         * po/it.po: Update from translation team.
9043
9044 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9045
9046         * sysdeps/x86_64/wcscmp.S: Update.
9047         Fix wrong comparison semantics.
9048         wcscmp shall use signed comparison not unsigned.
9049         Don't use substraction to avoid overflow bug.
9050         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9051         * wcsmbc/wcscmp.c: Likewise.
9052         * string/test-strcmp.c: Likewise.
9053         Add new tests to check cases with negative values.
9054
9055 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9056
9057         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9058         * sysdeps/x86_64/dla.h: ...here.  New file.
9059         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9060         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9061         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9062         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9063         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9064         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9065         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9066         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9067         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9068
9069 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9070
9071         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9072         __ynl_finite aliases.
9073
9074 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9075
9076         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9077
9078         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9079         define DLA_FMA.
9080         [DLA_FMA] (EMULV): Use DLA_FMA.
9081         [DLA_FMA] (MUL12): Use EMULV.
9082         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9083         that are not needed.
9084         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9085         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9086         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9087         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9088         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9089         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9090         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9091
9092 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9093
9094         * math/s_nan.c: Undef __nan.
9095         * math/s_nanf.c: Undef __nanf.
9096         * math/s_nanl.c: Undef __nanl.
9097         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9098         "math_private.h".
9099
9100 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9101
9102         * math/s_catan.c: Add branch predictions.
9103         * math/s_catanf.c: Likewise.
9104         * math/s_catanh.c: Likewise.
9105         * math/s_catanhf.c: Likewise.
9106         * math/s_catanhl.c: Likewise.
9107         * math/s_catanl.c: Likewise.
9108         * math/s_cexp.c: Likewise.
9109         * math/s_cexpf.c: Likewise.
9110         * math/s_cexpl.c: Likewise.
9111         * math/s_clog.c: Likewise.
9112         * math/s_clog10.c: Likewise.
9113         * math/s_clog10f.c: Likewise.
9114         * math/s_clog10l.c: Likewise.
9115         * math/s_clogf.c: Likewise.
9116         * math/s_clogl.c: Likewise.
9117         * math/s_csqrt.c: Likewise.
9118         * math/s_csqrtf.c: Likewise.
9119         * math/s_csqrtl.c: Likewise.
9120         * math/s_ctanf.c: Likewise.
9121         * math/s_ctanh.c: Likewise.
9122         * math/s_ctanhf.c: Likewise.
9123         * math/s_ctanhl.c: Likewise.
9124         * math/s_ctanl.c: Likewise.
9125
9126         * math/math_private.h: Define __nan, __nanf, __nanl.
9127         * math/s_cacosh.c: Include <math_private.h>.
9128         * math/s_cacoshl.c: Likewise.
9129         * math/s_casinh.c: Likewise.
9130         * math/s_casinhf.c: Likewise.
9131         * math/s_casinhl.c: Likewise.
9132         * math/s_ccos.c: Rely entire on ccosh.
9133         * math/s_ccosf.c: Rely entire on ccoshf.
9134         * math/s_ccosl.c: Rely entirely on ccoshl.
9135         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9136         Remove tests for FE_INVALID.
9137         * math/s_ccoshf.c: Likewise.
9138         * math/s_ccoshl.c: Likewise.
9139         * math/s_csin.c: Likewise.
9140         * math/s_csinf.c: Likewise.
9141         * math/s_csinh.c Likewise.
9142         * math/s_csinhf.c: Likewise.
9143         * math/s_csinhl.c: Likewise.
9144         * math/s_csinl.c: Likewise.
9145         * math/s_ctan.c: Likewise.
9146         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9147         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9148         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9149
9150 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9151
9152         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9153         compilation problems.
9154
9155         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9156         __builtin_expect.
9157
9158 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9159
9160         * sysdeps/i386/configure.in: Test for -mfma4 option.
9161         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9162         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9163         COMMON_CPUID_INDEX_80000001.
9164         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9165         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9166         use it if FMA3 is not supported.
9167         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9168
9169         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9170         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9171
9172 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9173
9174         [BZ #12892]
9175         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9176         it would create a cycle with a link time dependency.
9177
9178 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9179
9180         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9181         instruction.
9182         * string/Makefile (strop-tests): Add rawmemchr.
9183         * string/test-rawmemchr.c: New file.
9184
9185         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9186         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9187         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9188         when compiling str{,n}casecmp and when AVX is available.  Hook up
9189         new optimized code in initializers.
9190
9191 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9192
9193         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9194         __feraiseexcept instead of feraiseexcept.
9195
9196 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9197
9198         * math/math_private.h: Define defaults for libc_fetestexcept and
9199         libc_feupdateenv.
9200         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9201         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9202         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9203         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9204         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9205         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9206         libc_fetestexcept and libc_feupdateenv.
9207
9208         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9209         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9210         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9211         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9212         libc_feholdexcept_setround.
9213
9214         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9215         Add s_nearbyint-c and s_nearbyintf-c.
9216         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9217         nearbyintf inlines.
9218         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9219         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9220         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9221         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9222
9223         * math/math_private.h: Define defaults for libc_fegetround,
9224         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9225         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9226         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9227         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9228         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9229         standard functions.
9230         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9231         Remove comments and hacks for old compiler versions.
9232         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9233         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9234         libc_feholdexceptl.
9235
9236 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9237
9238         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9239         (__feraiseexcept_renamed): Add __NTH.
9240         (feraiseexcept): Add __NTH.  Rename local variables to fix
9241         namespace violations.
9242
9243 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9244
9245         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9246
9247         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9248
9249         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9250         recently added interfaces.
9251         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9252
9253         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9254         about macro parameter expansion.
9255
9256         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9257         __NO_MATH_INLINES is defined.  Cleanups.
9258
9259         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9260         and __floorf is target has SSE4.1.
9261         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9262         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9263         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9264         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9265
9266         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9267         name.
9268         (floorf): Likewise.
9269
9270         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9271
9272 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9273
9274         * misc/sys/cdefs.h: Fix last change.
9275
9276         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9277         database lookup.
9278
9279 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9280
9281         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9282
9283         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9284         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9285         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9286         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9287         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9288         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9289         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9290         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9291         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9292         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9293         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9294         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9295         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9296         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9297         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9298         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9299         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9300         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9301         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9302         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9303         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9304         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9305
9306         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9307         ceil, ceilf, floor, floorf.
9308
9309         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9310         Perform IRELATIVE relocations last.
9311
9312         * elf/do-rel.h: Add another parameter nrelative, replacing the
9313         local variable with the same name.  Change name of the function
9314         to end in Rel or Rela (uppercase).
9315         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9316         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9317         elf_dynamic_do_##reloc function.
9318
9319 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9320
9321         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9322         is sufficient, at least on modern CPUs.
9323
9324         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9325
9326         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9327         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9328
9329         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9330         __expl_finite.
9331         * math/bits/math-finite.h: Add entries for exp.
9332         * math/e_expl.c: Add __*_finite alias.
9333         * sysdeps/i386/fpu/e_exp.S: Likewise.
9334         * sysdeps/i386/fpu/e_expf.S: Likewise.
9335         * sysdeps/i386/fpu/e_expl.c: Likewise.
9336         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9337         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9338         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9339         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9340         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9341         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9342         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9343
9344         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9345         is sufficient, at least on modern CPUs.
9346
9347         * ctype/ctype-info.c (__ctype_init): Define.
9348         * include/ctype.h (__ctype_init): Declare.
9349         (__ctype_b_loc): The variable is always initialized.
9350         (__ctype_toupper_loc): Likewise.
9351         (__ctype_tolower_loc): Likewise.
9352         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9353         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9354
9355 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9356
9357         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9358
9359         * configure.in: Also look in $cxxmachine/include for C++ system
9360         headers.
9361
9362 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9363
9364         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9365         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9366         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9367         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9368         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9369         (USE_AS_WMEMCMP): New macro.
9370         Fixing indents.
9371         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9372         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9373         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9374         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9375         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9376         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9377         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9378         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9379         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9380         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9381         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9382         (USE_AS_WMEMCMP): New macro.
9383         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9384         * sysdeps/string/test-memcmp.c: Update.
9385         Fix simple_wmemcmp.
9386         Add new tests.
9387         * wcsmbs/wmemcmp.c: Update.
9388         (WMEMCMP): New macro.
9389         Fix overflow bug.
9390
9391 2011-10-12  Andreas Jaeger  <aj@suse.de>
9392
9393         [BZ #13268]
9394         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9395
9396 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9397
9398         * libio/iofwide.c (do_length): Avoid warning.
9399
9400         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9401
9402 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9403
9404         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9405
9406         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9407         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9408         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9409         * sysdeps/i386/i686/fpu/e_log.S: New file.
9410         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9411         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9412
9413         * ctype/ctype.h: Add support for inlined isXXX functions when
9414         compiling C++ code.
9415
9416 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9417
9418         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9419
9420         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9421
9422 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9423
9424         [BZ #13291]
9425         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9426
9427 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9428
9429         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9430         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9431         feraiseexcept.
9432
9433         * sysdeps/x86_64/memrchr.S: Check for zero size.
9434
9435         * string/stratcliff.c: Add memrchr tests.
9436
9437 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9438
9439         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9440         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9441         rawmemchr-sse2 rawmemchr-sse2-bsf.
9442         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9443         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9444         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9445         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9446         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9447         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9448         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9449         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9450         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9451         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9452         * string/memrchr.c (MEMRCHR): New macro.
9453
9454 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9455
9456         Add integration with gcc's -ffinite-math-only and optimize wrapper
9457         functions in libm.
9458         * Versions.def: Define GLIBC_2.15 version for libm.
9459         * math/Makefile (headers): Add bits/math-finite.h.
9460         * math/bits/math-finite.h: New file.
9461         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9462         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9463         * math/e_acoshl.c: Add __*_finite alias.
9464         * math/e_acosl.c: Likewise.
9465         * math/e_asinl.c: Likewise.
9466         * math/e_atan2l.c: Likewise.
9467         * math/e_atanhl.c: Likewise.
9468         * math/e_coshl.c: Likewise.
9469         * math/e_exp10.c: Likewise.
9470         * math/e_exp10f.c: Likewise.
9471         * math/e_exp10l.c: Likewise.
9472         * math/e_exp2l.c: Likewise.
9473         * math/e_fmodl.c: Likewise.
9474         * math/e_gammal_r.c: Likewise.
9475         * math/e_hypotl.c: Likewise.
9476         * math/e_j0l.c: Likewise.
9477         * math/e_j1l.c: Likewise.
9478         * math/e_jnl.c: Likewise.
9479         * math/e_lgammal_r.c: Likewise.
9480         * math/e_log10l.c: Likewise.
9481         * math/e_log2l.c: Likewise.
9482         * math/e_logl.c: Likewise.
9483         * math/e_powl.c: Likewise.
9484         * math/e_sinhl.c: Likewise.
9485         * math/e_sqrtl.c: Likewise.
9486         * math/e_scalb.c: Completely rewritten and optimized.
9487         * math/e_scalbf.c: Likewise.
9488         * math/e_scalbl.c: Likewise.
9489         * math/w_acos.c: Likewise.
9490         * math/w_acosf.c: Likewise.
9491         * math/w_acosl.c: Likewise.
9492         * math/w_acosh.c: Likewise.
9493         * math/w_acoshf.c: Likewise.
9494         * math/w_acoshl.c: Likewise.
9495         * math/w_asin.c: Likewise.
9496         * math/w_asinf.c: Likewise.
9497         * math/w_asinl.c: Likewise.
9498         * math/w_atan2.c: Likewise.
9499         * math/w_atan2f.c: Likewise.
9500         * math/w_atan2l.c: Likewise.
9501         * math/w_atanh.c: Likewise.
9502         * math/w_atanhf.c: Likewise.
9503         * math/w_atanhl.c: Likewise.
9504         * math/w_exp10.c: Likewise.
9505         * math/w_exp10f.c: Likewise.
9506         * math/w_exp10l.c: Likewise.
9507         * math/w_fmod.c: Likewise.
9508         * math/w_fmodf.c: Likewise.
9509         * math/w_fmodl.c: Likewise.
9510         * math/w_j0.c: Likewise.
9511         * math/w_j0f.c: Likewise.
9512         * math/w_j0l.c: Likewise.
9513         * math/w_j1.c: Likewise.
9514         * math/w_j1f.c: Likewise.
9515         * math/w_j1l.c: Likewise.
9516         * math/w_jn.c: Likewise.
9517         * math/w_jnf.c: Likewise.
9518         * math/w_log.c: Likewise.
9519         * math/w_logf.c: Likewise.
9520         * math/w_logl.c: Likewise.
9521         * math/w_log10.c: Likewise.
9522         * math/w_log10f.c: Likewise.
9523         * math/w_log10l.c: Likewise.
9524         * math/w_log2.c: Likewise.
9525         * math/w_log2f.c: Likewise.
9526         * math/w_log2l.c: Likewise.
9527         * math/w_pow.c: Likewise.
9528         * math/w_powf.c: Likewise.
9529         * math/w_powl.c: Likewise.
9530         * math/w_remainder.c: Likewise.
9531         * math/w_remainderf.c: Likewise.
9532         * math/w_remainderl.c: Likewise.
9533         * math/w_scalb.c: Likewise.
9534         * math/w_scalbf.c: Likewise.
9535         * math/w_scalbl.c: Likewise.
9536         * math/w_sqrt.c: Likewise.
9537         * math/w_sqrtf.c: Likewise.
9538         * math/w_sqrtl.c: Likewise.
9539         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
9540         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
9541         used.
9542         * math/math_private.h: Declare __kernel_standard_f.
9543         * math/w_cosh.c: Remove cruft and optimize a bit.
9544         * math/w_coshf.c: Likewise.
9545         * math/w_coshl.c: Likewise.
9546         * math/w_exp2.c: Likewise.
9547         * math/w_exp2f.c: Likewise.
9548         * math/w_exp2l.c: Likewise.
9549         * math/w_hypot.c: Likewise.
9550         * math/w_hypotf.c: Likewise.
9551         * math/w_hypotl.c: Likewise.
9552         * math/w_lgamma.c: Likewise.
9553         * math/w_lgamma_r.c: Likewise.
9554         * math/w_lgammaf.c: Likewise.
9555         * math/w_lgammaf_r.c: Likewise.
9556         * math/w_lgammal.c: Likewise.
9557         * math/w_lgammal_r.c: Likewise.
9558         * math/w_sinh.c: Likewise.
9559         * math/w_sinhf.c: Likewise.
9560         * math/w_sinhl.c: Likewise.
9561         * math/w_tgamma.c: Likewise.
9562         * math/w_tgammaf.c: Likewise.
9563         * math/w_tgammal.c: Likewise.
9564         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9565         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9566         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
9567         Minor optimizations.  Pretty printing.  Remove cruft.
9568         * sysdeps/i386/fpu/e_acosf.S: Likewise.
9569         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9570         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9571         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9572         * sysdeps/i386/fpu/e_acosl.c: Likewise.
9573         * sysdeps/i386/fpu/e_asin.S: Likewise.
9574         * sysdeps/i386/fpu/e_asinf.S: Likewise.
9575         * sysdeps/i386/fpu/e_atan2.S: Likewise.
9576         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
9577         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
9578         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9579         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9580         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9581         * sysdeps/i386/fpu/e_exp10.S: Likewise.
9582         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
9583         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
9584         * sysdeps/i386/fpu/e_exp2.S: Likewise.
9585         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
9586         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
9587         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9588         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
9589         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9590         * sysdeps/i386/fpu/e_hypot.S: Likewise.
9591         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
9592         * sysdeps/i386/fpu/e_log.S: Likewise.
9593         * sysdeps/i386/fpu/e_log10.S: Likewise.
9594         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9595         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9596         * sysdeps/i386/fpu/e_log2.S: Likewise.
9597         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9598         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9599         * sysdeps/i386/fpu/e_logf.S: Likewise.
9600         * sysdeps/i386/fpu/e_logl.S: Likewise.
9601         * sysdeps/i386/fpu/e_pow.S: Likewise.
9602         * sysdeps/i386/fpu/e_powf.S: Likewise.
9603         * sysdeps/i386/fpu/e_powl.S: Likewise.
9604         * sysdeps/i386/fpu/e_remainder.S: Likewise.
9605         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
9606         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
9607         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9608         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9609         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9610         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
9611         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
9612         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
9613         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9614         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9615         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9616         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9617         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9618         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9619         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9620         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9621         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9622         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9623         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9624         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9625         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9626         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9627         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9628         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9629         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9630         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9631         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9632         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9633         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9634         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9635         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9636         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9637         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9638         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9639         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9640         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9641         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9642         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9643         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9644         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9645         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9646         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9647         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9648         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9649         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9650         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9651         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9652         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9653         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9654         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9655         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9656         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9657         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9658         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9659         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9660         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9661         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9662         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9663         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9664         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9665         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9666         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9667         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9668         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9669         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9670         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9671         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9672         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9673         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9674         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9675         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9676         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9677         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9678         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9679         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9680         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9681         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9682         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9683         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9684         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9685         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9686         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9687         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9688         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9689         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
9690         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9691         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9692         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9693         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9694         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9695         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9696         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9697         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9698         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9699         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9700         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9701         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9702         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9703         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9704         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9705         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9706         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9707         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9708         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
9709         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
9710         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
9711         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
9712         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
9713         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
9714         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
9715         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
9716         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
9717         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9718         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9719         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9720         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9721         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
9722         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9723         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
9724         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
9725         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
9726         (__isnanf): Likewise.
9727         (__isinf_ns): Likewise.
9728         (__isinf_nsf): Likewise.
9729         (__finite): Likewise.
9730         (__finitef): Likewise.
9731         (__ieee754_sqrt): Define as macro.
9732         (__ieee754_sqrtf): Define as macro.
9733         (__ieee754_sqrtl): Define as macro.
9734         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
9735         inlined copy.
9736         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
9737         __FINITE_MATH_ONLY__ consistent.
9738         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
9739
9740 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
9741
9742         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
9743         of rawmemchr.
9744
9745         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
9746
9747 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
9748
9749         * po/ja.po: Update from translation team.
9750
9751 2011-10-08  Roland McGrath  <roland@hack.frob.com>
9752
9753         * locale/programs/locarchive.c (prepare_address_space): New function.
9754         (create_archive, enlarge_archive, open_archive): Use it.
9755
9756         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
9757         inside [SHARED], where it is used.
9758
9759         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
9760
9761         * nss/getent.c (netgroup_keys): Remove unused variable.
9762         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9763
9764 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
9765
9766         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
9767         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
9768         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
9769         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
9770         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
9771         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
9772         * math/Makefile (libm-calls): Add s_isinf_ns.
9773         * math/divtc3.c: Use __isinf_nsl instead of isinf.
9774         * math/multc3.c: Likewise.
9775         * math/s_casin.c: Likewise.
9776         * math/s_casinf.c: Likewise.
9777         * math/s_casinl.c: Likewise.
9778         * math/s_ccos.c: Likewise.
9779         * math/s_ccosf.c: Likewise.
9780         * math/s_ccosl.c: Likewise.
9781         * math/s_ctan.c: Likewise.
9782         * math/s_ctanf.c: Likewise.
9783         * math/s_ctanh.c: Likewise.
9784         * math/s_ctanhf.c: Likewise.
9785         * math/s_ctanhl.c: Likewise.
9786         * math/s_ctanl.c: Likewise.
9787         * math/w_fmod.c: Likewise.
9788         * math/w_fmodf.c: Likewise.
9789         * math/w_fmodl.c: Likewise.
9790         * math/w_remainder.c: Likewise.
9791         * math/w_remainderf.c: Likewise.
9792         * math/w_remainderl.c: Likewise.
9793         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
9794         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
9795         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
9796         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
9797         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
9798         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
9799         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
9800         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
9801
9802         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
9803         of the number.
9804         * stdio-common/printf_fphex.c: Likewise.
9805         * stdio-common/printf_size.c: Likewise.
9806
9807         * math/e_exp10.c: Include math_private.h using <...> not "...".
9808         * math/e_exp10f.c: Likewise.
9809         * math/e_exp10l.c: Likewise.
9810         * math/e_exp2l.c: Likewise.
9811         * math/e_j0l.c: Likewise.
9812         * math/e_j1l.c: Likewise.
9813         * math/e_jnl.c: Likewise.
9814         * math/e_lgammal_r.c: Likewise.
9815         * math/e_rem_pio2l.c: Likewise.
9816         * math/e_scalb.c: Likewise.
9817         * math/e_scalbf.c: Likewise.
9818         * math/e_scalbl.c: Likewise.
9819         * math/k_cosl.c: Likewise.
9820         * math/k_sinl.c: Likewise.
9821         * math/k_tanl.c: Likewise.
9822         * math/s_cacoshf.c: Likewise.
9823         * math/s_catan.c: Likewise.
9824         * math/s_catanf.c: Likewise.
9825         * math/s_catanh.c: Likewise.
9826         * math/s_catanhf.c: Likewise.
9827         * math/s_catanhl.c: Likewise.
9828         * math/s_catanl.c: Likewise.
9829         * math/s_ccosh.c: Likewise.
9830         * math/s_ccoshf.c: Likewise.
9831         * math/s_ccoshl.c: Likewise.
9832         * math/s_cexp.c: Likewise.
9833         * math/s_cexpf.c: Likewise.
9834         * math/s_cexpl.c: Likewise.
9835         * math/s_clog.c: Likewise.
9836         * math/s_clog10.c: Likewise.
9837         * math/s_clog10f.c: Likewise.
9838         * math/s_clog10l.c: Likewise.
9839         * math/s_clogf.c: Likewise.
9840         * math/s_clogl.c: Likewise.
9841         * math/s_csin.c: Likewise.
9842         * math/s_csinf.c: Likewise.
9843         * math/s_csinh.c: Likewise.
9844         * math/s_csinhf.c: Likewise.
9845         * math/s_csinhl.c: Likewise.
9846         * math/s_csinl.c: Likewise.
9847         * math/s_csqrt.c: Likewise.
9848         * math/s_csqrtf.c: Likewise.
9849         * math/s_csqrtl.c: Likewise.
9850         * math/s_ctan.c: Likewise.
9851         * math/s_ctanf.c: Likewise.
9852         * math/s_ctanh.c: Likewise.
9853         * math/s_ctanhf.c: Likewise.
9854         * math/s_ctanhl.c: Likewise.
9855         * math/s_ctanl.c: Likewise.
9856         * math/s_ldexp.c: Likewise.
9857         * math/s_ldexpf.c: Likewise.
9858         * math/s_ldexpl.c: Likewise.
9859         * math/s_significand.c: Likewise.
9860         * math/s_significandf.c: Likewise.
9861         * math/s_significandl.c: Likewise.
9862         * math/w_acos.c: Likewise.
9863         * math/w_acosf.c: Likewise.
9864         * math/w_acosh.c: Likewise.
9865         * math/w_acoshf.c: Likewise.
9866         * math/w_acoshl.c: Likewise.
9867         * math/w_acosl.c: Likewise.
9868         * math/w_asin.c: Likewise.
9869         * math/w_asinf.c: Likewise.
9870         * math/w_asinl.c: Likewise.
9871         * math/w_atan2.c: Likewise.
9872         * math/w_atan2f.c: Likewise.
9873         * math/w_atan2l.c: Likewise.
9874         * math/w_atanh.c: Likewise.
9875         * math/w_atanhf.c: Likewise.
9876         * math/w_atanhl.c: Likewise.
9877         * math/w_cosh.c: Likewise.
9878         * math/w_coshf.c: Likewise.
9879         * math/w_coshl.c: Likewise.
9880         * math/w_dremf.c: Likewise.
9881         * math/w_exp10.c: Likewise.
9882         * math/w_exp10f.c: Likewise.
9883         * math/w_exp10l.c: Likewise.
9884         * math/w_exp2.c: Likewise.
9885         * math/w_exp2f.c: Likewise.
9886         * math/w_fmod.c: Likewise.
9887         * math/w_fmodf.c: Likewise.
9888         * math/w_fmodl.c: Likewise.
9889         * math/w_hypot.c: Likewise.
9890         * math/w_hypotf.c: Likewise.
9891         * math/w_hypotl.c: Likewise.
9892         * math/w_j0.c: Likewise.
9893         * math/w_j0f.c: Likewise.
9894         * math/w_j0l.c: Likewise.
9895         * math/w_j1.c: Likewise.
9896         * math/w_j1f.c: Likewise.
9897         * math/w_j1l.c: Likewise.
9898         * math/w_jn.c: Likewise.
9899         * math/w_jnf.c: Likewise.
9900         * math/w_jnl.c: Likewise.
9901         * math/w_lgamma.c: Likewise.
9902         * math/w_lgamma_r.c: Likewise.
9903         * math/w_lgammaf.c: Likewise.
9904         * math/w_lgammaf_r.c: Likewise.
9905         * math/w_lgammal.c: Likewise.
9906         * math/w_lgammal_r.c: Likewise.
9907         * math/w_log.c: Likewise.
9908         * math/w_log10.c: Likewise.
9909         * math/w_log10f.c: Likewise.
9910         * math/w_log10l.c: Likewise.
9911         * math/w_log2.c: Likewise.
9912         * math/w_log2f.c: Likewise.
9913         * math/w_log2l.c: Likewise.
9914         * math/w_logf.c: Likewise.
9915         * math/w_logl.c: Likewise.
9916         * math/w_pow.c: Likewise.
9917         * math/w_powf.c: Likewise.
9918         * math/w_powl.c: Likewise.
9919         * math/w_remainder.c: Likewise.
9920         * math/w_remainderf.c: Likewise.
9921         * math/w_remainderl.c: Likewise.
9922         * math/w_scalb.c: Likewise.
9923         * math/w_scalbf.c: Likewise.
9924         * math/w_scalbl.c: Likewise.
9925         * math/w_sinh.c: Likewise.
9926         * math/w_sinhf.c: Likewise.
9927         * math/w_sinhl.c: Likewise.
9928         * math/w_sqrt.c: Likewise.
9929         * math/w_sqrtf.c: Likewise.
9930         * math/w_sqrtl.c: Likewise.
9931         * math/w_tgamma.c: Likewise.
9932         * math/w_tgammaf.c: Likewise.
9933         * math/w_tgammal.c: Likewise.
9934
9935         * po/ja.po: Update from translation team.
9936
9937 2011-09-29  Andreas Jaeger  <aj@suse.de>
9938
9939         [BZ #13179]
9940         * sunrpc/netname.c (netname2host): Fix logic.
9941
9942         [BZ #6779]
9943         [BZ #6783]
9944         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
9945         correctly.
9946         * math/w_remainder.c (__remainder): Likewise.
9947         * math/w_remainderf.c (__remainderf): Likewise.
9948         * math/libm-test.inc (remainder_test): Add test cases.
9949
9950 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9951
9952         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
9953         sdiv_qrnnd.
9954
9955 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9956
9957         * string/test-memcmp.c: Avoid unncessary #defines.
9958         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9959
9960 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9961
9962         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
9963         Use new sse2 version for core i3 - i7 as it's faster
9964         than sse42 version.
9965         (bit_Prefer_PMINUB_for_stringop): New.
9966         * sysdeps/x86_64/rawmemchr.S: Update.
9967         Replace with faster SSE2 version.
9968         * sysdeps/x86_64/memrchr.S: New file.
9969         * sysdeps/x86_64/memchr.S: Update.
9970         Replace with faster SSE2 version.
9971
9972 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
9973
9974         * elf/dl-load.c (lose): Add cast to avoid warning.
9975
9976 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9977
9978         * po/ca.po: Update from translation team.
9979
9980         * inet/getnetgrent_r.c: Hook up nscd.
9981         * nscd/Makefile (routines): Add nscd_netgroup.
9982         (nscd-modules): Add netgroupcache.
9983         (CFLAGS-netgroupcache.c): Define.
9984         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
9985         (cache_search): Add const to second parameter.
9986         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
9987         INNETGR.
9988         (dbs): Add netgrdb entry.
9989         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
9990         (verify_persistent_db): Handle netgrdb.
9991         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
9992         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
9993         GETFDNETGR.
9994         (netgroup_response_header): Define.
9995         (innetgroup_response_header): Define.
9996         (datahead): Add netgroup_response_header and innetgroup_response_header
9997         elements.
9998         * nscd/nscd.conf: Add entries for netgroup cache.
9999         * nscd/nscd.h (dbtype): Add netgrdb.
10000         (_PATH_NSCD_NETGROUP_DB): Define.
10001         (netgroup_iov_disabled): Declare.
10002         (xmalloc, xcalloc, xrealloc): Move declarations here.
10003         (cache_search): Adjust prototype.
10004         Add netgroup-related prototypes.
10005         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10006         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10007         (__nscd_innetgr): Declare.
10008         * nscd/selinux.c (perms): Use access_vector_t as element type and
10009         add netgroup-related initializers.
10010         * nscd/netgroupcache.c: New file.
10011         * nscd/nscd_netgroup.c: New file.
10012         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10013         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10014         For four parameters use innetgr.
10015         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10016         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10017         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10018         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10019
10020         * nscd/connections.c (register_traced_file): Don't register file
10021         for disabled databases.
10022
10023 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10024
10025         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10026
10027         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10028         from tree and freeing node.
10029
10030 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10031
10032         * nss/nsswitch.c (__nss_database_lookup): Handle
10033         nss_parse_service_list out of memory case.
10034
10035 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10036
10037         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10038         out of memory case.
10039
10040 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10041
10042         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10043         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10044         pass it down.
10045         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10046         elf_machine_rela, elf_machine_lazy_rel.
10047         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10048         (ELF_DYNAMIC_DO_REL): Likewise.
10049         (ELF_DYNAMIC_DO_RELA): Likewise.
10050         (ELF_DYNAMIC_RELOCATE): Likewise.
10051         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10052         to ELF_DYNAMIC_DO_REL.
10053         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10054         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10055         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10056         elf_machine_rela.
10057         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10058         skip_ifunc, don't call ifunc function if non-zero.
10059         (elf_machine_rela): Likewise.
10060         (elf_machine_lazy_rel): Likewise.
10061         (elf_machine_lazy_rela): Likewise.
10062         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10063         (elf_machine_lazy_rel): Likewise.
10064         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10065         Likewise.
10066         (elf_machine_lazy_rel): Likewise.
10067         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10068         Likewise.
10069         (elf_machine_lazy_rel): Likewise.
10070         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10071         (elf_machine_lazy_rel): Likewise.
10072         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10073         (elf_machine_lazy_rel): Likewise.
10074         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10075         (elf_machine_lazy_rel): Likewise.
10076         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10077         (elf_machine_lazy_rel): Likewise.
10078         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10079         (elf_machine_lazy_rel): Likewise.
10080         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10081         (elf_machine_lazy_rel): Likewise.
10082
10083 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10084
10085         * nss/nss_files/files-init.c (_nss_files_init): Use static
10086         initialization for all the *_traced_file variables.
10087
10088 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10089
10090         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10091
10092 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10093
10094         [BZ #13226]
10095         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10096
10097 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10098
10099         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10100         Reread the line before reparsing it.
10101
10102 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10103
10104         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10105
10106 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10107             Maxim Kuvyrkov  <maxim@codesourcery.com>
10108             Joseph Myers  <joseph@codesourcery.com>
10109
10110         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10111         if needed for __stack_chk_guard.
10112
10113 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10114
10115         * sysdeps/posix/spawni.c (script_execute): Always define it.
10116         It will be optimized away if unused.
10117         (maybe_script_execute): New function.
10118         (__spawni): Call it.
10119
10120         * Makerules: Don't include tls.make.
10121         (config-tls): Always set to thread.
10122         * tls.make.c: File removed.
10123
10124 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10125
10126         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10127         * config.make.in (CPPFLAGS-config): New substituted variable.
10128
10129 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10130
10131         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10132
10133         [BZ #13192]
10134         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10135         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10136
10137 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10138
10139         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10140         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10141         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10142         (CALL_FAIL): Likewise.
10143         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10144         (CALL_FAIL): Macro removed.
10145         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10146
10147 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10148
10149         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10150         for __FINITE_MATH_ONLY__ == 1.
10151
10152 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10153
10154         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10155         __ieee754_sqrt instead of sqrt.
10156         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10157         __ieee754_sqrtf instead of sqrtf.
10158         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10159         __floorf instead of floorf.
10160         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10161         __floorf, __truncf instead of floorf, truncf.
10162
10163 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10164
10165         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10166
10167         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10168         __extern_always_inline.
10169         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10170         32-bit.
10171
10172 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10173
10174         * elf/rtld.c (dl_main): Also relocate in dependency order when
10175         doing symbol dependency testing.
10176
10177 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10178
10179         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10180         Always define `refsym'.
10181
10182 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10183
10184         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10185         (__FD_ELT): Renamed from __FDELT.
10186         * misc/bits/select2.h (__FD_ELT): Likewise.
10187         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10188         __FD_MASK instead of __FDELT, __FDMASK.
10189         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10190         Likewise.
10191         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10192         Likewise.
10193
10194         * elf/Makefile (gen-ldd): Fix pattern.
10195
10196         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10197         (init_tls): Likewise.
10198
10199 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10200
10201         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10202
10203 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10204
10205         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10206         `struct cmsghdr *' instead of `void *'.
10207         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10208         Likewise.
10209
10210 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10211
10212         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10213         if non-absolute.
10214         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10215         ldd_rewrite_script.
10216
10217 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10218
10219         * configure.in: Remove --with-tls option.
10220         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10221         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10222         out in case it is missing.
10223         * sysdeps/ia64/elf/configure.in: Likewise.
10224         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10225         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10226         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10227         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10228         * sysdeps/sh/elf/configure.in: Likewise.
10229         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10230         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10231         * sysdeps/x86_64/elf/configure.in: Likewise.
10232         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10233         * sysdeps/mach/hurd/tls.h: Likewise.
10234
10235         [BZ #13067]
10236         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10237
10238         [BZ #13090]
10239         * configure.in: Fix use of AC_INIT.
10240
10241         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10242
10243 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10244
10245         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10246         __set_errno.
10247         * malloc/hooks.c: Likewise.
10248
10249         [BZ #11929]
10250         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10251         variables statically.
10252         (narenas): Initialize.
10253         (list_lock): Initialize.
10254         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10255         initializtion of main_arena and list_lock.  Small cleanups.
10256         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10257         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10258         Add initializers to main_arena and mp_.
10259         (malloc_state): Remove pagesize member.  Change all users to use
10260         GLRO(dl_pagesize).
10261
10262         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10263         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10264         is always initialized.
10265
10266         * malloc/malloc.c: Removed unused configurations and dead code.
10267         * malloc/arena.c: Likewise.
10268         * malloc/hooks.c: Likewise.
10269         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10270
10271         * include/tls.h: Removed.  USE___THREAD must always be defined.
10272         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10273         * elf/dl-libc.c: Likewise.
10274         * elf/dl-tsd.c: Likewise.
10275         * include/errno.h: Likewise.
10276         * include/netdb.h: Likewise.
10277         * include/resolv.h: Likewise.
10278         * inet/herrno-loc.c: Likewise.
10279         * inet/herrno.c: Likewise.
10280         * malloc/arena.c: Likewise.
10281         * malloc/hooks.c: Likewise.
10282         * malloc/malloc.c: Likewise.
10283         * resolv/res-state.c: Likewise.
10284         * resolv/res_libc.c: Likewise.
10285         * sysdeps/i386/dl-machine.h: Likewise.
10286         * sysdeps/ia64/dl-machine.h: Likewise.
10287         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10288         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10289         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10290         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10291         * sysdeps/sh/dl-machine.h: Likewise.
10292         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10293         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10294         * sysdeps/unix/i386/sysdep.S: Likewise.
10295         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10296         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10297         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10298         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10299         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10300         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10301         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10302         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10303         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10304         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10305         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10306         * sysdeps/x86_64/dl-machine.h: Likewise.
10307         * tls.make.c: Likewise.
10308
10309         * configure.in: Remove --with-__thread option.  Make tests for
10310         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10311         tls_model attribute fail if no support is available.  Remove
10312         USE_IN_LIBIO.
10313         * Makeconfig: Adjust for dropped configure option.  All features are
10314         now mandatory.
10315         * Makerules: Likewise.
10316         * Versions.def: Likewise.
10317         * argp/argp-fmtstream.c: Likewise.
10318         * argp/argp-fmtstream.h: Likewise.
10319         * argp/argp-help.c: Likewise.
10320         * assert/assert.c: Likewise.
10321         * config.h.in: Likewise.
10322         * config.make.in: Likewise.
10323         * configure: Likewise.
10324         * configure.in: Likewise.
10325         * csu/Versions: Likewise.
10326         * csu/init.c: Likewise.
10327         * elf/tst-audit2.c: Likewise.
10328         * elf/tst-tls10.c: Likewise.
10329         * elf/tst-tls10.h: Likewise.
10330         * elf/tst-tls11.c: Likewise.
10331         * elf/tst-tls12.c: Likewise.
10332         * elf/tst-tls14.c: Likewise.
10333         * elf/tst-tlsmod11.c: Likewise.
10334         * elf/tst-tlsmod12.c: Likewise.
10335         * elf/tst-tlsmod13.c: Likewise.
10336         * elf/tst-tlsmod13a.c: Likewise.
10337         * elf/tst-tlsmod14a.c: Likewise.
10338         * elf/tst-tlsmod15b.c: Likewise.
10339         * elf/tst-tlsmod16a.c: Likewise.
10340         * elf/tst-tlsmod16b.c: Likewise.
10341         * elf/tst-tlsmod7.c: Likewise.
10342         * elf/tst-tlsmod8.c: Likewise.
10343         * elf/tst-tlsmod9.c: Likewise.
10344         * gmon/gmon.c: Likewise.
10345         * grp/fgetgrent_r.c: Likewise.
10346         * grp/putgrent.c: Likewise.
10347         * hurd/fopenport.c: Likewise.
10348         * include/libc-symbols.h: Likewise.
10349         * include/tls.h: Likewise.
10350         * intl/gettextP.h: Likewise.
10351         * intl/loadinfo.h: Likewise.
10352         * locale/global-locale.c: Likewise.
10353         * locale/localeinfo.h: Likewise.
10354         * mach/devstream.c: Likewise.
10355         * malloc/arena.c: Likewise.
10356         * malloc/set-freeres.c: Likewise.
10357         * misc/err.c: Likewise.
10358         * misc/getttyent.c: Likewise.
10359         * misc/mntent_r.c: Likewise.
10360         * posix/getopt.c: Likewise.
10361         * posix/wordexp.c: Likewise.
10362         * pwd/fgetpwent_r.c: Likewise.
10363         * resolv/Versions: Likewise.
10364         * resolv/res_hconf.c: Likewise.
10365         * shadow/fgetspent_r.c: Likewise.
10366         * shadow/putspent.c: Likewise.
10367         * stdio-common/printf_fphex.c: Likewise.
10368         * stdio-common/tmpfile.c: Likewise.
10369         * stdlib/abort.c: Likewise.
10370         * stdlib/fmtmsg.c: Likewise.
10371         * sunrpc/auth_unix.c: Likewise.
10372         * sunrpc/clnt_perr.c: Likewise.
10373         * sunrpc/clnt_tcp.c: Likewise.
10374         * sunrpc/clnt_udp.c: Likewise.
10375         * sunrpc/clnt_unix.c: Likewise.
10376         * sunrpc/openchild.c: Likewise.
10377         * sunrpc/svc_simple.c: Likewise.
10378         * sunrpc/svc_tcp.c: Likewise.
10379         * sunrpc/svc_udp.c: Likewise.
10380         * sunrpc/svc_unix.c: Likewise.
10381         * sunrpc/xdr.c: Likewise.
10382         * sunrpc/xdr_array.c: Likewise.
10383         * sunrpc/xdr_rec.c: Likewise.
10384         * sunrpc/xdr_ref.c: Likewise.
10385         * sunrpc/xdr_stdio.c: Likewise.
10386
10387 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10388
10389         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10390
10391 2011-07-03  Andreas Jaeger  <aj@suse.de>
10392
10393         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10394         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10395         regenerate with gen-libm-tests.pl.
10396
10397 2010-05-12  Petr Baudis  <pasky@suse.cz>
10398
10399         [BZ #11589]
10400         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10401         around j0() zero points by switching to j1().
10402         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10403         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10404         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10405         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10406
10407 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10408
10409         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10410         instead of 0.
10411         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10412         instead of 0.                              .
10413         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10414         Patch in part by Pavel Roskin <proski@gnu.org>.
10415
10416         [BZ #13138]
10417         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10418         realloc.
10419         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10420         Free memory block if necessary.
10421
10422         [BZ #12847]
10423         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10424         be NULL.  Don't lock in this case.
10425
10426 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10427
10428         * elf/elf.h (ELFOSABI_GNU): New macro.
10429         (ELFOSABI_LINUX): Define to that.
10430
10431 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10432
10433         * string/strncat.c (strncat): Undef the symbol in case it has been
10434         defined in bits/string.h.
10435
10436 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10437
10438         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10439
10440         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10441         link map.
10442
10443 2011-08-17  Andreas Jaeger  <aj@suse.de>
10444
10445         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10446
10447 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10448             Ian Lance Taylor  <iant@google.com>
10449
10450         * math/libm-test.inc (lround_test): New testcase.
10451         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10452
10453 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10454
10455         * Makefile: Remove support for automatic cvs check-ins.
10456         * Makerules: Likewise.
10457         * config.make.in: Likewise.
10458         * configure.in: Likewise.
10459         * intl/Makefile: Likewise.
10460         * locale/Makefile: Likewise.
10461         * po/Makefile: Likewise.
10462         * posix/Makefile: Likewise.
10463         * sysdeps/gnu/Makefile: Likewise.
10464         * sysdeps/mach/hurd/Makefile: Likewise.
10465         * sysdeps/sparc/sparc32/Makefile: Likewise.
10466
10467         [BZ #13118]
10468         * posix/Makefile (bug-regex32-ENV): Define.
10469         Patch by John Stanley <jpsinthemix@verizon.net>.
10470
10471         * misc/Makefile (headers): Add bits/select2.h.
10472         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10473         * misc/bits/select2.h: New file.
10474         * include/bits/select2.h: New file.
10475         * debug/Makefile (routines): Add fdelt_chk.
10476         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10477         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10478         FD_ISSET.
10479         * debug/fdelt_chk.c: New file.
10480
10481         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10482         * wcsmbs/test-wmemcmp.c: Likewise.
10483         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10484         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10485
10486 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10487
10488         * string/Makefile (strop-tests): Add memcmp.
10489         * string/test-wmemcmp.c: New file.
10490         * string/test-memcmp.c: Add wmemcmp support.
10491
10492 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10493
10494         [BZ #13153]
10495         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10496         2011-07-19 change.
10497
10498         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10499         garbage value in a __mach_port_mod_refs call in the cases of the
10500         task-self and thread-self ports.
10501
10502 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10503
10504         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10505
10506 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10507
10508         * elf/dl-load.c (lose): Check for non-null L.
10509
10510 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10511
10512         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10513
10514         * elf/dl-libc.c (dlerror_run): Pass back error code from
10515         dl_catch_error.
10516
10517         [BZ #13123]
10518         * elf/dl-load.c (lose): Free l_origin if it is valid.
10519
10520         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10521         names.
10522         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10523         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10524         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10525         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10526         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10527         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
10528
10529 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10530
10531         * sysdeps/powerpc/fpu/e_hypot.c: New file.
10532         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
10533         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
10534         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
10535         * sysdeps/powerpc/fpu/k_cosf.c: New file.
10536         * sysdeps/powerpc/fpu/k_sinf.c: New file.
10537         * sysdeps/powerpc/fpu/s_cosf.c: New file.
10538         * sysdeps/powerpc/fpu/s_sinf.c: New file.
10539         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
10540         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
10541
10542 2011-08-15  Alan Modra  <amodra@gmail.com>
10543
10544         [BZ #13092]
10545         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
10546         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
10547         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
10548         ppc_mcount to static-only-routines.
10549         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
10550         __mcount_internal.
10551         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
10552         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
10553
10554 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
10555
10556         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
10557         for finite and infinity parameters.
10558
10559 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10560
10561         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
10562         and add nop instructions for throughput optimization.
10563         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10564
10565 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
10566
10567         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
10568         aligned copy for power7 with vector-scalar instructions.
10569         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10570
10571 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10572
10573         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
10574         AVX check.
10575
10576 2011-09-07  Andreas Schwab  <schwab@redhat.com>
10577
10578         [BZ #13144]
10579         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
10580         last change.
10581
10582 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10583
10584         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10585         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
10586         syscall wrapper around clock_gettime in __vdso_clock_gettime.
10587         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
10588         clock_gettime.
10589
10590 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10591
10592         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
10593         Forgot to demangle the pointer.
10594
10595         * sysdeps/i386/sysdep.h: Define atom_text_section.
10596         * sysdeps/x86_64/sysdep.h: Likewise.
10597         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
10598         section with atom_text_section.
10599         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10600         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10601         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
10602         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10603         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
10604
10605         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
10606         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
10607         already be defined.  Change to take two parameters and don't assign
10608         result to variable.  Adjust all users.
10609         Define INTERNAL_GETTIME if not already defined.
10610         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
10611         call.
10612         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
10613         HAVE_CLOCK_GETTIME_VSYSCALL.
10614         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
10615
10616         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
10617         gettimeofday vsyscall, just use time.
10618
10619 2011-09-06  Andreas Schwab  <schwab@redhat.com>
10620
10621         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
10622         <errno.h>.
10623
10624 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10625
10626         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
10627         syscall on x86-64.
10628         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
10629         syscall.
10630         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
10631         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
10632         syscall if possible.
10633
10634 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10635
10636         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
10637         e_ident.  Don't pass to find_mapsXX.
10638         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
10639
10640 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10641
10642         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10643         strchr-sse2-no-bsf strrchr-sse2-no-bsf
10644         * sysdeps/x86_64/multiarch/strchr.S: Update.
10645         Check bit_slow_BSF bit.
10646         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10647         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
10648         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
10649
10650 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10651
10652         [BZ #13134]
10653         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
10654         before glibc 2.15.
10655         (tryshell): Define.
10656         (__spawni): Change last parameter to be flag.  Test
10657         SPAWN_XFLAGS_USE_PATH flag to use path or not.
10658         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
10659         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
10660         * posix/spawni.c: Likewise.
10661         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
10662         * posix/spawnp.c: Likewise.  Change normal version to use
10663         SPAWN_XFLAGS_USE_PATH.
10664         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
10665         SPAWN_XFLAGS_TRY_SHELL.
10666
10667         [BZ #13150]
10668         * posix/glob.h: Remove gcc 1.x support.
10669
10670         [BZ #13068]
10671         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
10672
10673 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10674
10675         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10676         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
10677         strrchr-sse2-bsf
10678         * sysdeps/i386/i686/multiarch/strchr.S: New file.
10679         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
10680         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
10681         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
10682         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
10683         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
10684
10685 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10686
10687         * sysdeps/x86_64/wcscmp.S: New file.
10688
10689         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
10690         wcscmp-c wcscmp-sse2
10691         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
10692         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
10693         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
10694         * wcsmbs/wcscmp.c: Allow renaming.
10695
10696 2011-09-05  David S. Miller  <davem@davemloft.net>
10697
10698         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
10699         stack slot, rather than the struct return pointer slot.
10700         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
10701         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
10702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
10703         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
10704
10705 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10706
10707         * po/ja.po: Update from translation team.
10708
10709         [BZ #13144]
10710         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
10711         kernel in 64-bit binaries.
10712
10713 2011-09-01  David S. Miller  <davem@davemloft.net>
10714
10715         * elf/elf.h (HWCAP_SPARC_*): Move to..
10716         * sysdeps/sparc/sysdep.h: this new file and add new values.
10717         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
10718         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
10719         _DL_HWCAP_COUNT to 24.
10720         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10721         entries.
10722         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
10723         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
10724         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
10725         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
10726         instead of magic constants.
10727         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10728
10729 2011-08-31  David S. Miller  <davem@davemloft.net>
10730
10731         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
10732         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
10733         Reimplement to do errno handling inline.
10734         (SYSCALL_ERROR_HANDLER): New macro.
10735         (__SYSCALL_STRING): Do not do errno handling in asm.
10736         (__CLONE_SYSCALL_STRING): Delete.
10737         (__INTERNAL_SYSCALL_STRING): Delete.
10738         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10739         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
10740         (PSEUDO): Reimplement to do errno handling inline.
10741         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
10742         (SYSCALL_ERROR_HANDLER): New macro.
10743         (__SYSCALL_STRING): Do not do errno handling in asm.
10744         (__CLONE_SYSCALL_STRING): Delete.
10745         (__INTERNAL_SYSCALL_STRING): Delete.
10746         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
10747         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
10748         i386.
10749         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
10750         (inline_syscall*): Add 'err' argument.
10751         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
10752         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
10753         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
10754         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
10755
10756         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
10757         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
10758
10759 2011-08-30  Andreas Schwab  <schwab@redhat.com>
10760
10761         * elf/rtld.c (dl_main): Relocate objects in dependency order.
10762
10763 2011-08-29  Jiri Olsa <jolsa@redhat.com>
10764
10765         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
10766         directive.
10767
10768 2011-08-24  David S. Miller  <davem@davemloft.net>
10769
10770         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
10771
10772 2011-08-24  Andreas Schwab  <schwab@redhat.com>
10773
10774         * elf/Makefile: Add rules to build and run unload8 test.
10775         * elf/unload8.c: New file.
10776         * elf/unload8mod1.c: New file.
10777         * elf/unload8mod1x.c: New file.
10778         * elf/unload8mod2.c: New file.
10779         * elf/unload8mod3.c: New file.
10780
10781         * elf/dl-close.c (_dl_close_worker): Reset private search list if
10782         it wasn't used.
10783
10784 2011-08-23  David S. Miller  <davem@davemloft.net>
10785
10786         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
10787         subtract stack bias.
10788         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
10789         %sp not %fp in calculations.
10790         (_JMPBUF_UNWINDS_ADJ): Likewise.
10791
10792         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
10793         (aio_suspend): Call it to force an exception region around the
10794         AIO_MISC_WAIT() invocation.
10795
10796 2011-08-23  Andreas Schwab  <schwab@redhat.com>
10797
10798         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
10799         backslash.
10800
10801 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
10802
10803         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
10804         protection macro.
10805         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
10806         and <dl-machine.h>.
10807         (Elf64_FuncDesc): Remove.
10808
10809 2011-08-22  David S. Miller  <davem@davemloft.net>
10810
10811         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
10812         sigaltstack check, add missing cfi directives.
10813         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
10814         missing cfi directives, and sigaltstack handling.
10815
10816 2011-08-16  Andreas Schwab  <schwab@redhat.com>
10817
10818         [BZ #11724]
10819         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
10820         object is seen twice.
10821         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10822
10823         * elf/Makefile (distribute): Add tst-initorder2.c.
10824         (tests): Add tst-initorder2.
10825         (modules-names): Add tst-initorder2a tst-initorder2b
10826         tst-initorder2c tst-initorder2d.  Add rules to build them.
10827         ($(objpfx)tst-initorder2.out): New rule.
10828         * elf/tst-initorder2.c: New file.
10829         * elf/tst-initorder2.exp: New file.
10830
10831 2011-08-22  Andreas Schwab  <schwab@redhat.com>
10832
10833         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
10834
10835         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
10836         dependencies back to end of function.
10837
10838         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
10839         $(elfobjdir)/ld.so.
10840
10841 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
10842
10843         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
10844         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
10845         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10846         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
10847         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
10848         of __vdso_gettimeofday.
10849         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
10850         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
10851         attribute_hidden.
10852         (_libc_vdso_platform_setup): Remove initialization of
10853         __vdso_gettimeofday and __vdso_time.
10854
10855 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
10856
10857         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
10858         and fgetc_unlocked.
10859         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
10860         getc_unlocked.
10861
10862         * elf/dl-open.c (add_to_global): Report additions to the global scope
10863         for LD_DEBUG=scopes.
10864         (dl_open_worker): Also print scope of newly loaded dependencies.
10865         (_dl_show_scope): Indicate if there is no scope.
10866
10867         [BZ #13114]
10868         * stdio-common/Makefile (tests): Add bug24.
10869         * stdio-common/bug24.c: New file.
10870
10871 2011-08-19  Andreas Jaeger  <aj@suse.de>
10872
10873         [BZ #13114]
10874         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
10875         non-existant file when using close-on-exec mode.
10876
10877 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
10878
10879         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
10880         the very first instruction.
10881
10882         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
10883         the CFI state in the end.
10884         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
10885         inclusion of dl-trampoline.h.
10886         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
10887
10888 2011-08-19  Andreas Schwab  <schwab@redhat.com>
10889
10890         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
10891         expectations for long double.
10892
10893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
10894         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
10895
10896 2011-08-14  David S. Miller  <davem@davemloft.net>
10897
10898         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
10899         artificual limit depends upon the system page size.
10900
10901 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10902
10903         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
10904         * resolv/Makefile: Define CFLAGS-libresolv.
10905
10906 2011-08-17  Andreas Schwab  <schwab@redhat.com>
10907
10908         * nss/makedb.c (compute_tables): Make variables used in nested
10909         function static.
10910
10911 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10912
10913         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
10914         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
10915         if buffer was too small.
10916
10917         * elf/pldd.c (main): Attach to all threads in the process.
10918         Rewrite /proc handling to use *at functions.
10919
10920 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
10921
10922         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
10923         specifies first scope to show.
10924         (dl_open_worker): Update callers.  Move printing scope of new
10925         object to before the relocation.
10926         * elf/rtld.c (dl_main): Update _dl_show_scope call.
10927         * sysdeps/generic/ldsodefs.h: Update declaration.
10928
10929         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
10930         string for the scope number.
10931
10932 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
10933
10934         * nscd/servicescache.c (cache_addserv): Make sure written is always
10935         initialized.
10936
10937 2011-08-14  Roland McGrath  <roland@hack.frob.com>
10938
10939         * sysdeps/i386/i486/bits/atomic.h
10940         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
10941         statement expression, so as to suppress "set but not used" warning.
10942         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
10943
10944         * string/strncat.c (STRNCAT): Use prototype definition.
10945
10946         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
10947         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
10948         -Iprograms here.
10949         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
10950         (localedef-modules): Add localedef.
10951         (locale-modules): Add locale.
10952
10953         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
10954         * elf/rtld.c (dl_main): Invert order of assignment in last change,
10955         to avoid a warning.
10956
10957 2011-08-14  David S. Miller  <davem@davemloft.net>
10958
10959         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
10960         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
10961
10962 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
10963
10964         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
10965         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
10966         * elf/rtld.c (dl_main): Set l_name of vDSO.
10967         Call _dl_show_scope when DL_DEBUG_SCOPES.
10968         (process_dl_debug): Recognize scopes flag and also set it for all.
10969         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
10970         Declare _dl_show_scope.
10971
10972         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
10973         (do_dlopen): Pass caller_dlopen to dl_open.
10974         (__libc_dlopen_mode): Initialize caller_dlopen.
10975
10976         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
10977         of libc.  Make tolower call locale-independent.  Optimize a bit by
10978         using isdigit instead of isalnum.
10979         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
10980
10981 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
10982
10983         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
10984         was a dependency or dynamically loaded.
10985
10986 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
10987
10988         * intl/l10nflist.c: Allow architecture-specific pop function.
10989         * sysdeps/x86_64/l10nflist.c: New file.
10990
10991         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
10992         classification.
10993
10994 2011-08-10  Andreas Schwab  <schwab@redhat.com>
10995
10996         * include/dirent.h: Add libc_hidden_proto for scandirat and
10997         scandirat64.  Don't declare __scandirat64.
10998         * dirent/scandirat.c: Add libc_hidden_def.
10999         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11000         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11001
11002 2011-08-10  David S. Miller  <davem@davemloft.net>
11003
11004         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11005         enum.
11006         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11007         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11008         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11009
11010 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11011
11012         * Versions.def [libc]: Add GLIBC_2.15.
11013         * dirent/Makefile (routines): Add scandirat and scandirat64.
11014         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11015         GLIBC_2.15.
11016         * dirent/dirent.h: Declare scandirat and scandirat64.
11017         * dirent/scandirat.c: New file.
11018         * dirent/scandirat64.c: New file.
11019         * sysdeps/wordsize-64/scandirat.c: New file.
11020         * sysdeps/wordsize-64/scandirat64.c: New file.
11021         * dirent/opendir.c: Define opendirat.
11022         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11023         using scandirat.
11024         * dirent/scandir64.c: Adjust for scandir.c change.
11025         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11026         __scandirat64, and __scandir_cancel_handler.
11027         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11028         additional parameter and use openat instead of open (outside of ld.so).
11029         Add new __opendir as wrapper around __opendirat.
11030         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11031         here without requiring old scandirat implementation.
11032
11033 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11034
11035         * dirent/scandir.c (cancel_handler): Renamed to
11036         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11037         defined.  Adjust users.
11038         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11039         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11040
11041 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11042
11043         * string/test-string.h (IMPL): Use __STRING to expand name and then
11044         stringify it.
11045
11046         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11047         of cleanups.
11048
11049 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11050
11051         * string/Makefile: Update.
11052         (strop-tests): Append strncat.
11053         * string/test-wcscmp.c: New file.
11054         New comprehensive test for wcscmp.
11055         * string/test-strcmp.c: Update.
11056         (WIDE): New define.
11057
11058 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11059
11060         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11061         line.
11062
11063 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11064
11065         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11066         encoding to ACE if AI_IDN.
11067
11068 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11069
11070         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11071         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11072
11073 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11074
11075         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11076         Fix overflow bug in strncat.
11077         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11078
11079         * string/test-strncat.c: Update.
11080         Add new tests for checking overflow bugs.
11081
11082 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11083
11084         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11085         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11086         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11087         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11088         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11089         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11090         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11091         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11092         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11093
11094         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11095         (USE_AS_STRCAT): Define.
11096         Add strcat and strncat support.
11097         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11098
11099 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11100
11101         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11102         __n bigger than INT_MAX+1.
11103         (__strncmp_g): Likewise.
11104
11105 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11106
11107         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11108         * libio/stido.h: Likewise.
11109
11110         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11111         (AF_NFC): Define.
11112         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11113         (AF_NFC): Define.
11114
11115         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11116         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11117         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11118         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11119         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11120
11121         [BZ #13021]
11122         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11123         installed.
11124
11125         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11126         typo.
11127         (_dl_x86_64_save_sse): Likewise.
11128
11129 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11130
11131         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11132         OSXSAVE.
11133         (_dl_x86_64_save_sse): Likewise.
11134
11135         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11136
11137         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11138
11139 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11140
11141         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11142         change.
11143         (_dl_x86_64_save_sse): Use correct AVX check.
11144
11145 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11146
11147         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11148         bug in strncpy/strncat.
11149         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11150
11151 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11152
11153         * string/tester.c (test_strcat): Add tests for different alignments
11154         of source and destination.
11155         (test_strncat): Likewise.
11156
11157 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11158
11159         [BZ #12852]
11160         * posix/glob.c (glob): Check passed in values before using them in
11161         expressions to avoid some overflows.
11162         (glob_in_dir): Likewise.
11163
11164         [BZ #13007]
11165         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11166         check for AVX enablement so that we don't crash with old kernels and
11167         new hardware.
11168         * elf/tst-audit4.c: Add same checks here.
11169         * elf/tst-audit6.c: Likewise.
11170
11171         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11172
11173 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11174
11175         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11176
11177 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11178
11179         * po/cs.po: Update from translation team.
11180         * po/bg.po: Likewise.
11181
11182 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11183
11184         * misc/sys/cdefs.h: Add support for const attribute.
11185         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11186         to gnu_dev_{major,minor,makedev} functions.
11187
11188 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11189
11190         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11191
11192 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11193
11194         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11195         strlen results.
11196
11197 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11198
11199         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11200         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11201         register in order to avoid conflicts with the soft frame pointer
11202         being held in r11 when necessary.
11203         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11204         (INTERNAL_VSYSCALL_NCS): Likewise.
11205
11206 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11207
11208         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11209         * elf/dl-fini.c (_dl_fini): Adjust caller.
11210         * elf/dl-close.c (_dl_close_worker): Likewise.
11211         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11212
11213 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11214
11215         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11216         "aux_cache->nlibs < 0".
11217
11218         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11219         in the reload-count case.
11220
11221 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11222
11223         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11224         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11225         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11226         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11227         * sysdeps/x86_64/multiarch/strcat.S: New file.
11228         * sysdeps/x86_64/multiarch/strncat.S: New file.
11229         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11230         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11231         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11232         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11233         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11234         (USE_AS_STRCAT): Define.
11235         Add strcat and strncat support.
11236         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11237         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11238         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11239         * string/strncat.c: Update.
11240         (USE_AS_STRNCAT): Define.
11241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11242         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11243         and i7.
11244         * sysdeps/x86_64/multiarch/init-arch.h
11245         (bit_Prefer_PMINUB_for_stringop): New.
11246         (index_Prefer_PMINUB_for_stringop): Likewise.
11247         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11248         bit_Prefer_PMINUB_for_stringop.
11249
11250 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11251
11252         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11253         buffer64.
11254         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11255         of casting of buffer.
11256         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11257         buffer32 and buffer64.
11258         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11259         writes instead of casting of buffer.
11260         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11261         buffer32.
11262         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11263         casting of buffer.
11264
11265 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11266
11267         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11268
11269 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11270
11271         * nscd/nscd.c (termination_handler): Don't do anything for a database
11272         if it has not yet been initialized.
11273
11274 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11275
11276         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11277
11278 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11279
11280         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11281
11282 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11283
11284         * po/nl.po: Update from translation team.
11285         * po/sv.po: Likewise.
11286
11287 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11288
11289         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11290         now disallowed by GCC.
11291
11292         * configure.in (use-default-link): Default to yes if a test -shared
11293         link meets our qualifications.
11294         * configure: Regenerated.
11295
11296         * config.make.in (output-format): New variable.
11297         * configure.in: Check for ld --print-output-format support.
11298         * configure: Regenerated.
11299         * Makerules ($(common-objpfx)format.lds)
11300         [$(output-format) != unknown]: Just use $(output-format),
11301         instead of the linker-script munging.
11302
11303 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11304
11305         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11306         of $(common-objpfx)shlib.lds.
11307         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11308
11309         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11310         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11311
11312         * configure.in (-z relro check): Adjust test code to add a large
11313         writable data section after it.
11314         * configure: Regenerated.
11315
11316 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11317
11318         * configure.in (-z relro check): Fix test code to make the variable
11319         truly const.
11320         * configure: Regenerated.
11321
11322 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11323
11324         * nscd/nscd.h (struct traced_file): Define.
11325         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11326         elements.  Add traced_files.
11327         (inotify_fd): Declare.
11328         (register_traced_file): Declare.
11329         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11330         (inotify_fd): Export.
11331         (resolv_conf_descr): Remove.
11332         (nscd_init): Move inotify descriptor creation to main.
11333         Don't register files for notification here.
11334         (register_traced_file): New function.
11335         (invalidate_cache): Don't use reset_res to determine whether to call
11336         res_init, go through the list of registered files.
11337         (main_loop_poll): The inotify descriptors are now stored in the
11338         structures for the traced files.
11339         (main_loop_epoll): Likewise
11340         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11341         to __nss_disable_nscd.
11342         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11343         for a database anymore.  Check the records for all the registered
11344         files instead.
11345         * nss/Makefile (libnss_files-routines): Add files-init.
11346         (libnss_db-routines): Add db-init.
11347         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11348         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11349         * nss/nss_db/db-init.c: New file.
11350         * nss/nss_files/files-init.c: New file.
11351         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11352         __nss_lookup_function.
11353         (__nss_lookup_function): Call nss_load_library.
11354         (nss_load_all_libraries): New function.
11355         (__nss_disable_nscd): Take parameter with callback function for files
11356         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11357         used for the cached services.
11358         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11359         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11360         options for features to all the files in nscd.
11361
11362         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11363
11364 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11365
11366         * csu/elf-init.c (__libc_csu_init): Comment typo.
11367
11368 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11369
11370         * po/pl.po: Update from translation team.
11371         * po/ja.po: Likewise.
11372         * po/ru.po: Likewise.
11373         * po/ko.po: Likewise.
11374         * po/fr.po: Likewise.
11375
11376 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11377
11378         * configure.in (.ctors/.dtors header and trailer check):
11379         Use an empirical test on a built program.
11380         * configure: Regenerated.
11381
11382         * configure.in (-z relro check): Use an empirical test on a built DSO.
11383         Detect, but do not require, on ia64.
11384         * configure: Regenerated.
11385
11386         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11387         Update tests that use readelf to use $READELF instead.
11388         * configure: Regenerated.
11389
11390 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11391
11392         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11393         if the result is not used.
11394
11395 2011-07-05  Andreas Jaeger  <aj@suse.de>
11396
11397         [BZ#9696]
11398         * stdlib/tst-strtod.c: Add testcase.
11399
11400 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11401
11402         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11403         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11404         The latter has a higher limit.  Take additional parameter to pass to
11405         the new function.
11406         (__pathconf): Pass file to __statfs_link_max.
11407         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11408         __statfs_link_max.
11409         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11410         __statfs_link_max.
11411
11412         [BZ #12868]
11413         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11414         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11415         Handle Lustre.
11416         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11417         (__statfs_filesize_max): Likewise.
11418         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11419
11420 2011-07-05  Andreas Jaeger  <aj@suse.de>
11421
11422         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11423
11424 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11425
11426         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11427         `status' variable.
11428         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11429         Likewise.
11430
11431 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11432
11433         * Makefile (strop-tests): Add strncat.
11434         * string/test-strncat.c: New file.
11435
11436 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11437
11438         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11439
11440 2011-06-21  Andreas Jaeger  <aj@suse.de>
11441
11442         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11443         Copy rule from iconvdata/Makefile.
11444
11445 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11446
11447         [BZ #12922]
11448         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11449         but no long options are defined, just return 'W'.
11450
11451 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11452
11453         [BZ #9696]
11454         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11455
11456 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11457
11458         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11459         netgroups to read.
11460         (innetgr): Likewise.
11461
11462 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11463
11464         * config.make.in (install_root): Default to $(DESTDIR).
11465
11466 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11467
11468         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11469
11470 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11471
11472         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11473
11474         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11475         containing directory rather than embedding absolute directory names.
11476
11477         * scripts/check-local-headers.sh: Rewritten using awk.
11478         Match by word, not by line.  Print error messages for matches.
11479         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11480
11481         * Makerules [shlib-lds-flags empty]:
11482         ($(common-objpfx)libc_pic.opts): New target.
11483         ($(common-objpfx)libc_pic.os.clean): New target.
11484         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11485
11486         * config.make.in (OBJCOPY): New variable.
11487         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11488         * configure: Regenerated.
11489
11490         * config.make.in (use-default-link): New variable.
11491         * configure.in (use_default_link): Grok --with-default-link to set it.
11492         * configure: Regenerated.
11493         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11494         (shlib-lds, shlib-lds-flags): Define to empty.
11495
11496         * Makerules (shlib-lds): New variable.
11497         (shlib-lds-flags): New variable.
11498         (build-shlib, build-moduile, build-module-asneeded): Use it.
11499         ($(common-objpfx)libc.so): Use $(shlib-lds).
11500         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11501         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11502
11503         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11504         DT_FLAGS/DT_FLAGS_1 with zero flags.
11505
11506         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11507         linker script munging.
11508
11509 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11510
11511         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11512         as 128-bit value.
11513         * crypt/sha512.c (sha512_process_block): Perform total addition using
11514         128-bit if possible.
11515         (__sha512_finish_ctx): Likewise.
11516         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11517         as 64-bit value.
11518         * crypt/sha256.c (SWAP64): Define.
11519         (sha256_process_block): Perform total addition using 64-bit if
11520         possible.
11521         (__sha256_finish_ctx): Likewise.
11522
11523 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11524
11525         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11526         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11527         * nscd/hstcache.c (cache_addhst): Likewise.
11528         * nscd/grpcache.c (cache_addgr): Likewise.
11529         * nscd/aicache.c (addhstaiX): Likewise
11530         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
11531
11532 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
11533
11534         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
11535         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11536         * nscd/hstcache.c (cache_addhst): Likewise.
11537         * nscd/grpcache.c (cache_addgr): Likewise.
11538         * nscd/aicache.c (addhstaiX): Likewise
11539
11540 2011-07-01  Andreas Schwab  <schwab@redhat.com>
11541
11542         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
11543         domain only when needed.
11544
11545 2011-06-30  Andreas Schwab  <schwab@redhat.com>
11546
11547         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
11548         is always restored.
11549
11550 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
11551
11552         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
11553         are re-adding the entry.
11554         * nscd/servicescache.c (cache_addserv): Likewise.
11555
11556 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
11557
11558         * sysdeps/generic/dl-irel.h: fix protection against multiple
11559         inclusions.
11560         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
11561
11562 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
11563
11564         [BZ #12935]
11565         * malloc/memusage.sh: Fix quoting in message.
11566         * debug/xtrace.sh: Likewise.
11567
11568         * configure.in: Remove support for --experimental-malloc option, make
11569         it the default.
11570         * config.make.in: Likewise.
11571         * malloc/Makefile: Likewise.
11572
11573 2011-06-27  Andreas Schwab  <schwab@redhat.com>
11574
11575         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
11576         two-byte characters.
11577
11578 2011-06-27  Roland McGrath  <roland@hack.frob.com>
11579
11580         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
11581         AC_CACHE_CHECK invocation.
11582         * configure: Regenerated.
11583
11584         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
11585
11586 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
11587
11588         [BZ #12350]
11589         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
11590         bit from old_res_options.
11591
11592         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
11593
11594         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
11595         value type for setfct.
11596
11597 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11598
11599         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11600         __gettimeofday instead of gettimeofday.
11601
11602 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
11603
11604         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
11605
11606 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11607
11608         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
11609
11610         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
11611         info.
11612
11613 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11614
11615         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11616         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11617         strcpy-sse2-unaligned strncpy-sse2-unaligned
11618         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
11619         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
11620         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
11621         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
11622         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
11623         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
11624         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
11625         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
11626         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
11627         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
11628         (STRCPY): Support SSE2 and SSSE3 versions.
11629
11630 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
11631
11632         [BZ #12874]
11633         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
11634         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
11635         kernels which artificially limit size of requests.
11636
11637 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11638
11639         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11640         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11641         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
11642         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
11643         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
11644         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
11645         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
11646         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
11647         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
11648         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
11649         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
11650         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
11651         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
11652         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
11653         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
11654         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11655         Enable unaligned load optimization for Intel Core i3, i5 and i7
11656         processors.
11657         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
11658         Define.
11659         (index_Fast_Unaligned_Load): Define.
11660         (HAS_FAST_UNALIGNED_LOAD): Define.
11661
11662 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
11663
11664         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
11665
11666 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11667
11668         [BZ #12907]
11669         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
11670         until it is clear that the information is realy needed.
11671         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
11672
11673 2011-06-22  Andreas Schwab  <schwab@redhat.com>
11674
11675         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
11676
11677 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11678
11679         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11680         /sys/devices/system/cpu/online if it is usable.
11681
11682         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
11683         reading the information from the /proc filesystem to once a second.
11684
11685 2011-06-21  Andreas Jaeger  <aj@suse.de>
11686
11687         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
11688         NULL after inclusion of kernel headers.
11689
11690 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
11691
11692         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
11693         calls to internal_setent.
11694
11695         [BZ #12885]
11696         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
11697         addresses using gethostbyname4_r ignore IPv4 addresses.
11698
11699         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
11700         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
11701
11702         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
11703
11704 2011-06-20  David S. Miller  <davem@davemloft.net>
11705
11706         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
11707         inclusions.
11708         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
11709
11710         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
11711         (elf_irel): Use it.
11712         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
11713         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
11714         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
11715         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
11716         * sysdeps/x86_64/dl-irel.h: Likewise.
11717
11718         * elf/dl-runtime.c: Use elf_ifunc_invoke.
11719         * elf/dl-sym.c: Likewise.
11720
11721 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
11722
11723         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
11724         need to dereference resplen2.
11725
11726 2011-06-14  Andreas Schwab  <schwab@redhat.com>
11727
11728         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
11729
11730 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
11731
11732         * Makeconfig: Define vardbdir and inst_vardbdir.
11733         * nss/Makefile: Add rules to install db-Makefile.
11734
11735         * nss/nss_db/db-XXX.c: Cleanup.
11736
11737         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
11738         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
11739         GLIBC_PRIVATE.
11740         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
11741         * nss/makedb.c: Implement -g option to specify that value strings
11742         are generated and should not be added to table iterated over for
11743         get*ent calls.
11744         * nss/nss_db/db-initgroups.c: New file.
11745
11746         * nss/getent.c: Add support for initgroups lookups through getgrouplist
11747         interface.
11748
11749         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
11750         (internal_getgrouplist): Adjust to name change.
11751         Update use_initgroups_entry if this is not the first call.
11752         * nss/databases.def: Add initgroups entry.
11753
11754         * nss/makedb.c (compute_tables): Check result of multiple hash table
11755         sizes to minimize maximum chain length.
11756
11757 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
11758
11759         * Versions.def: Add entry for libnss_db.
11760         * shlib-versions: Likewise.
11761         * nss/Makefile: Add rules to build libnss_db.
11762         * nss/Versions: Add libnss_db information.  Organize libnss_files
11763         entries better.
11764         * nss/db-Makefile: Add gshadow support.  Change rules for the new
11765         makedb progra.  Some minor improvements to generate smaller files.
11766         * nss/nss_db/nss_db.h: Move NSS database header data structures to
11767         here from...
11768         * nss/makedb.c: ...here.
11769         Improve database format to be smaller and require less memory at
11770         runtime.
11771         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
11772         db anymore.
11773         * nss/nss_db/db-netgrp.c: Likewise.
11774         * nss/nss_db/db-open.c: Likewise.
11775         * nss/nss_files/flies-XXX.x: Adjust comments.
11776         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
11777         * nss/nss_files/files-grp.c: Likewise.
11778         * nss/nss_files/files-hosts.c: Likewise.
11779         * nss/nss_files/files-network.c: Likewise.
11780         * nss/nss_files/files-proto.c: Likewise.
11781         * nss/nss_files/files-pwd.c: Likewise.
11782         * nss/nss_files/files-rpc.c: Likewise.
11783         * nss/nss_files/files-service.c: Likewise.
11784         * nss/nss_files/files-sgrp.c: Likewise.
11785         * nss/nss_files/files-spwd.c: Likewise.
11786         * nss/nss_db/db-alias.c: Removed.
11787         * nss/nss_db/dummy-db.h: Removed.
11788
11789 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
11790
11791         * nss/makedb.c: Rewritten to not use database library.
11792         * nss/Makefile: Update to build new makedb program.
11793
11794 2011-06-14  Andreas Jaeger  <aj@suse.de>
11795
11796         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
11797         memset declaration.
11798
11799 2011-06-10  Andreas Schwab  <schwab@redhat.com>
11800
11801         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
11802         tmpbuf.
11803
11804 2011-06-10  Roland McGrath  <roland@hack.frob.com>
11805
11806         * Makerules (shlib.lds): Fail if the linker script comes out empty.
11807         * elf/Makefile ($(objpfx)ld.so): Likewise.
11808
11809         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
11810         Don't list ld.so twice in dependencies.
11811
11812         * posix/bug-regex31.c: Include <stdlib.h>.
11813
11814         * nscd/hstcache.c (cache_addhst): Remove unused variable.
11815
11816         * nis/nss_compat/compat-spwd.c
11817         (getspent_next_nss_netgr): Remove unused variable.
11818         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
11819
11820         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
11821         nonmembers" output to use the right array.
11822
11823         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
11824
11825         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
11826
11827         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
11828         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
11829         * catgets/gencat.c (read_input_file): Likewise.
11830         * locale/programs/locarchive.c (enlarge_archive): Likewise.
11831
11832         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
11833         variable definition inside #if's controlling its use.
11834
11835         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
11836
11837         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
11838
11839         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
11840
11841         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
11842         unreachable code.
11843
11844         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
11845
11846         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
11847         * configure: Regenerated.
11848
11849         * Makerules: Revert last change.
11850         * elf/Makefile: Likewise.
11851
11852 2011-06-09  Roland McGrath  <roland@hack.frob.com>
11853
11854         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
11855         * elf/Makefile ($(objpfx)librtld.os): Likewise.
11856         (reloc-link): Likewise.
11857
11858 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
11859
11860         * elf/Makefile: Add rules to build pldd.
11861         * elf/pldd.c: New file.
11862         * elf/pldd-xx.c: New file.
11863
11864 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
11865
11866         * version.h: Update for 2.15 development version.
11867
11868 2011-06-07  David S. Miller  <davem@davemloft.net>
11869
11870         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
11871         ifuncs.
11872         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
11873         elf_machine_lazy_rel): Likewise.
11874         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
11875         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
11876         elf_machine_lazy_rel): Likewise.
11877         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
11878         dl_hwcap via passed in argument.
11879         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
11880         Likewise.
11881
11882 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11883
11884         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
11885
11886 2011-06-06  Roland McGrath  <roland@hack.frob.com>
11887
11888         [BZ #12849]
11889         * manual/fdl-1.1.texi: New file, verbatim from:
11890         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
11891         * manual/lgpl-2.1.texi: New file, verbatim from:
11892         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
11893         * manual/Makefile (licenses): New variable, list those new file names.
11894         (texis): Use it.
11895         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
11896
11897         * manual/fdl.texi: File removed.
11898         * manual/lesser.texi: File removed.
11899         * manual/libc.texinfo (Copying, Documentation License):
11900         Use new @include file names, put @appendix directive before @include.
11901
11902 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11903
11904         [BZ #12841]
11905         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
11906         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
11907         (mq_open): Add __NTH.
11908
11909 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11910
11911         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11912         Assume Intel Core i3/i5/i7 processor if AVX is available.
11913
11914 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11915
11916         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11917         typo.
11918
11919 2011-05-31  Andreas Schwab  <schwab@redhat.com>
11920
11921         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
11922         memory.  Use alloca_account.  Fix memory leak when retrying.
11923
11924 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11925
11926         * version.h (RELEASE): Bump for 2.14 release.
11927         * include/features.h (__GLIBC_MINOR__): Bump to 14.
11928
11929         * config.make.in (RANLIB): Remove entry.
11930
11931 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
11932
11933         * po/Makefile (po-sed-cmd): Add ksh to extensions.
11934         (libc.pot): Work around missing support for .ksh extension in xgettext.
11935
11936         [BZ #12684]
11937         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
11938         if both request failed.
11939         (send_dg): In case of server errors clear resplen or *resplen2.
11940
11941         [BZ #12454]
11942         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
11943         when there are multiple maps.
11944         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
11945         (_dl_fini): Remove test here.
11946
11947         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
11948
11949 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
11950
11951         [BZ #12350]
11952         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
11953         bit from old_res_options.
11954         (gaih_inet): Likewise.
11955
11956         [BZ #11099]
11957         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
11958         as signed.
11959
11960         * resolv/res_init.c (res_setoptions): Make the code more compact.
11961
11962         [BZ #11558]
11963         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
11964         set RES_USEVC.
11965
11966         [BZ #11634]
11967         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
11968
11969         * malloc/malloc.h: Mark malloc hook variables as deprecated.
11970
11971         [BZ #11781]
11972         * malloc/malloc.h: Declare malloc hook variables as volatile.
11973
11974         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
11975         in last patch.
11976
11977         [BZ #11799]
11978         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
11979         raise in the comment.
11980         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11981         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11982         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11983
11984 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
11985
11986         [BZ #12811]
11987         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
11988         grow the buffers more if it already has to be sufficient.
11989         (build_wcs_upper_buffer): Likewise.
11990         * posix/regexec.c (check_matching): Likewise.
11991         (clean_state_log_if_needed): Likewise.
11992         (extend_buffers): Don't enlarge buffers beyond size of the input
11993         buffer.
11994         Patches mostly by Emil Wojak <emil@wojak.eu>.
11995         * posix/bug-regex32.c: New file.
11996         * posix/Makefile (tests): Add bug-regex32.
11997
11998         * locale/findlocale.c (_nl_find_locale): Return right away if
11999         _nl_explode_name failed.
12000         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12001
12002         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12003
12004         * debug/xtrace.sh: Unify messages.
12005         * malloc/memusage.sh: Likewise.
12006
12007         [BZ #12813]
12008         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12009         time symbol from vDSO.  Substitute with vsyscall if not available.
12010         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12011         __vdso_time.
12012
12013         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12014         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12015         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12016         Add sendmmsg and internal_sendmmsg.
12017         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12018         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12019         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12020
12021         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12022         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12023         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12024
12025 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12026
12027         [BZ #12813]
12028         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12029         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12030         available.
12031         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12032         __vdso_getcpu.
12033
12034         [BZ #12814]
12035         * iconvdata/Makefile (tests): Add bug-iconv9.
12036         * iconvdata/bug-iconv9.c: New file.
12037
12038 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12039
12040         [BZ #12814]
12041         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12042
12043 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12044
12045         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12046         (struct user_regs_struct): Change intcs field back to cs.
12047
12048 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12049
12050         * po/ja.po: Update from translation team.
12051
12052 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12053
12054         [BZ #12795]
12055         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12056         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12057
12058 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12059
12060         * stdlib/longlong.h: Update from GCC.
12061
12062 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12063
12064         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12065         parameter name.
12066         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12067         Add parameter name.
12068         (__sysconf): Pass it down.
12069
12070 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12071
12072         [BZ #12671]
12073         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12074         some situations.
12075         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12076         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12077         add in in __libc_use_alloca calls.  Adjust callers.
12078         (glob): Use malloc in some situations.
12079
12080         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12081         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12082         pltexit.
12083
12084 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12085
12086         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12087         and CLOCK_BOOTTIME_ALARM.
12088
12089         [BZ #12782]
12090         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12091         is returned.
12092
12093         * string/_strerror.c (__strerror_r): Print negative errors as signed
12094         numbers.
12095
12096         [BZ #12777]
12097         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12098         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12099         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12100
12101         * configure.in: Fix typo in redirection and correct removal of test
12102         files in two cases.
12103
12104         [BZ #12788]
12105         * locale/setlocale.c (new_composite_name): Fix test to check for
12106         identical name of all categories.
12107
12108         [BZ #12792]
12109         * libio/filedoalloc.c (local_isatty): New function.
12110         (_IO_file_doallocate): Use local_isatty.
12111         * stdio-common/perror.c (perror): In case a new stream is used
12112         forward the stream error.
12113         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12114         error flag.
12115
12116 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12117
12118         [BZ #11869]
12119         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12120         alloca.
12121         * include/alloca.h (extend_alloca_account): Define.
12122
12123         [BZ #11857]
12124         * posix/regex.h: Fix comments with documentation of user-accessible
12125         fields after compilation and describe correct free'ing of pattern
12126         after re_compile_pattern.
12127         Patch by Reuben Thomas <rrt@sc3d.org>.
12128
12129 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12130
12131         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12132         and -mno-altivec to prevent the compiler from using Altivec and/or
12133         VSX instructions when the corresponding registers are not available.
12134
12135 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12136
12137         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12138
12139 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12140
12141         * libio/freopen.c (freopen): Use __dup2, not dup2.
12142         * libio/freopen64.c (freopen64): Likewise.
12143
12144 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12145
12146         [BZ #12775]
12147         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12148         * math/Makefile (tests): Add test-powl.
12149         (CFLAGS-test-powl.c): Define.
12150         * math/test-powl.c: New file.
12151
12152 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12153
12154         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12155
12156 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12157
12158         [BZ #11837]
12159         * iconvdata/gb18030.c: Update to GB18020-2005.
12160
12161 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12162
12163         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12164         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12165         Patch by Aharon Robbins <arnold@skeeve.com>.
12166
12167         [BZ #11892]
12168         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12169         on the stack.
12170
12171         [BZ #11895]
12172         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12173         through underflows.
12174
12175         [BZ #12766]
12176         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12177         point to strings before performing equality test for error_one_per_line
12178         mode.
12179
12180         [BZ #11697]
12181         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12182
12183         [BZ #11820]
12184         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12185         (struct user_fpregs_struct): Avoid __uint*_t types.
12186
12187         [BZ #6420]
12188         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12189         symbol info.  Use it instead of calling _dl_addr locally.
12190         (lock_and_info): New function.
12191         (tr_freehook): Call lock_and_info and pass symbol info as additional
12192         parameter to tr_where.
12193         (tr_mallochook): Likewise.
12194         (tr_reallochook): Likewise.
12195         (tr_memalignhook): Likewise.
12196
12197         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12198         used and couldn't be at all thread-safe.
12199
12200 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12201
12202         * libio/freopen.c (freopen): Don't close old file descriptor
12203         before the new one is opened.  Instead dup the new file descriptor
12204         to the old one after the new stream is created.
12205         * libio/freopen64.c (freopen64): Likewise.
12206         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12207         * libio/fileops.c (_IO_new_file_close_it): Handle new
12208         _IO_FLAGS2_NOCLOSE flag.
12209         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12210         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12211         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12212         _IO_FLAGS2_NOCLOSE flag.
12213         * include/unistd.h: Add hidden_proto for dup3.
12214         Define __have_dup3.
12215         * io/dup3.c: Define hidden symbol.
12216         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12217
12218         [BZ #7101]
12219         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12220         when an incomplete long option is used.
12221         * posix/tst-getopt_long1.c: New file.
12222         * posix/Makefile (tests): Add tst-getopt_long1.
12223
12224         [BZ #10138]
12225         * scripts/config.guess: Update from autoconf-2.68.
12226         * scripts/config.sub: Likewise.
12227
12228         [BZ #10157]
12229         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12230         tests into ...
12231         (has_cpuclock): ...this.  New function.
12232         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12233         macro here based on has_cpuclock code.
12234
12235         [BZ #10149]
12236         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12237         First byte (not low byte) is now always NUL.
12238         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12239
12240         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12241         Use non-cancelable interfaces.
12242
12243         [BZ #9809]
12244         * locale/iso-639.def: Add entry for Sorani.
12245
12246         [BZ #11901]
12247         * include/stdlib.h: Move include protection to the right place.
12248         Define abort_msg_s.  Declare __abort_msg with it.
12249         * stdlib/abort.c (__abort_msg): Adjust type.
12250         * assert/assert.c (__assert_fail_base): New function.  Majority
12251         of code from __assert_fail.  Allocate memory for __abort_msg with
12252         mmap.
12253         (__assert_fail): Now call __assert_fail_base.
12254         * assert/assert-perr.c: Remove bulk of implementation.  Use
12255         __assert_fail_base.
12256         * include/assert.hL Declare __assert_fail_base.
12257         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12258         mmap.
12259         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12260
12261 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12262
12263         [BZ #11952]
12264         [BZ #12453]
12265         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12266         until all modules are registered in the DTV.
12267         * elf/Makefile: Add rules to build and run tst-tls19.
12268         * elf/tst-tls19.c: New file.
12269         * elf/tst-tls19mod1.c: New file.
12270         * elf/tst-tls19mod2.c: New file.
12271         * elf/tst-tls19mod3.c: New file.
12272         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12273
12274         [BZ #12083]
12275         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12276         correctly.
12277
12278         [BZ #12601]
12279         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12280         two-byte sequence errors.
12281         * iconvdata/Makefile (tests): Add bug-iconv8.
12282         * iconvdata/bug-iconv8.c: New file.
12283
12284         [BZ #12626]
12285         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12286         buf2 definition.
12287
12288         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12289
12290         [BZ #12432]
12291         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12292         (dummy_getcfa): New function.
12293         (init): Get _Unwind_GetCFA address, use dummy if not found.
12294         (backtrace_helper): In recursion check, also check whether CFA changes.
12295         (__backtrace): Completely initialize arg.
12296
12297         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12298         storing incomplete byte sequence in state object.  Avoid testing for
12299         guaranteed too small input if we know there is enough data available.
12300
12301 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12302
12303         * Makeconfig (+link-pie): Indent.
12304         * Rules (binaries-pie): Define if $(have-fpie) and
12305         $(build-shared).
12306         (binaries-shared): Also filter out $(binaries-pie).
12307         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12308         * nscd/Makefile (others-pie): Add nscd.
12309         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12310         ($(objpfx)nscd): Remove command override.
12311         * login/Makefile (others-pie): Add pt_chown.
12312         ($(objpfx)pt_chown): Remove command override.
12313         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12314         remove command overrides.
12315
12316 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12317
12318         * libio/tst_putwc.c: Fix error messages.
12319
12320         [BZ #12724]
12321         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12322         currently writing and seek to current position when not.
12323         * libio/Makefile (tests): Add bug-fclose1.
12324         * libio/bug-fclose1.c: New file.
12325
12326 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12327
12328         [BZ #12511]
12329         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12330         don't set DF_1_NODELETE here.
12331         (do_lookup_x): When entering new entry test for copy relocation
12332         and if necessary set DF_1_NODELETE flag.
12333         * elf/tst-unique4.cc: New file.
12334         * elf/tst-unique4.h: New file.
12335         * elf/tst-unique4lib.cc: New file.
12336         * elf/Makefile: Add rules to build and run tst-unique4.
12337         Patch by Piotr Bury <pbury@goahead.com>.
12338
12339 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12340
12341         [BZ #12052]
12342         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12343
12344         [BZ #12625]
12345         * misc/mntent_r.c (addmntent): Flush the stream after the output
12346
12347         [BZ #12393]
12348         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12349         (is_trusted_path_normalize): Skip initial colon.  Append slash
12350         to empty buffer.  Duplicate is_trusted_path code but allow
12351         constructed patch to be prefix.
12352         (is_dst): Allow $ORIGIN followed by /.
12353         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12354         Correct testing of result of is_trusted_path_normalize
12355         (decompose_rpath): Fix warning.
12356
12357 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12358
12359         [BZ #11257]
12360         * grp/initgroups.c (internal_getgrouplist): When we found the service
12361         list through the initgroups entry in nsswitch.conf do not always
12362         continue on a successful lookup.  Don't always use the
12363         __nss_group_database value if it is set.
12364         * nss/nsswitch.conf (initgroups): Change action for successful db
12365         lookup to continue for compatibility.
12366
12367 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12368
12369         [BZ #11532]
12370         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12371         and CP774 modules.
12372         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12373         and CP774 modules.
12374         * iconvdata/tst-tables.sh: Likewise.
12375         * iconvdata/cp770.c: New file.
12376         * iconvdata/cp771.c: New file.
12377         * iconvdata/cp772.c: New file.
12378         * iconvdata/cp773.c: New file.
12379         * iconvdata/cp774.c: New file.
12380         * iconvdata/testdata/CP770: New file.
12381         * iconvdata/testdata/CP770..UTF8: New file.
12382         * iconvdata/testdata/CP771: New file.
12383         * iconvdata/testdata/CP771..UTF8: New file.
12384         * iconvdata/testdata/CP772: New file.
12385         * iconvdata/testdata/CP772..UTF8: New file.
12386         * iconvdata/testdata/CP773: New file.
12387         * iconvdata/testdata/CP773..UTF8: New file.
12388         * iconvdata/testdata/CP774: New file.
12389         * iconvdata/testdata/CP774..UTF8: New file.
12390
12391         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12392         END CHARMAP line.
12393         * iconvdata/gen-8bit-gap.sh: Likewise.
12394         * iconvdata/gen-8bit.sh: Likewise.
12395
12396         * locale/iso-639.def: Add ary entry.
12397
12398         [BZ #11258]
12399         * locale/C-translit.h.in: Add U20A1 transliteration.
12400
12401         [BZ #12178]
12402         * locale/iso-639.def: Add wae entry.
12403         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12404
12405         [BZ #12545]
12406         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12407         for n.
12408
12409         [BZ #12711]
12410         * locale/C-translit.h.in: Add entry for U20B9.
12411         Patch by pravin.d.s@gmail.com.
12412
12413 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12414
12415         [BZ #12713]
12416         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12417         ENAMETOOLONG use generic getcwd.
12418         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12419         in rtld.  Use *stat64.
12420         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12421         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12422         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12423         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12424         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12425         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12426         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12427         __fstatat64 macros.
12428         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12429         * dirent/rewinddir.c: Add libc_hidden_def.
12430         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12431         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12432
12433         * include/dirent.h (__alloc_dir): Add flags parameter.
12434         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12435         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12436         __alloc_dir.
12437         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12438         from fdopendir if O_CLOEXEC is already set.
12439
12440 2011-03-15  Alan Modra  <amodra@gmail.com>
12441
12442         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12443         l_tls_firstbyte_offset non-zero.  Save padding offset in
12444         l_tls_firstbyte_offset for later use.
12445         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12446         freeing static tls block.
12447
12448 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12449
12450         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12451         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12452         being defined by the kernel headers.
12453
12454 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12455
12456         [BZ #12734]
12457         * resolv/resolv.h: Define RES_NOTLDQUERY.
12458         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12459         no-tld-query and set RES_NOTLDQUERY.
12460         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12461         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12462         modern BIND to search name as TLD unless forbidden.
12463
12464 2011-05-07  Petr Baudis  <pasky@suse.cz>
12465             Ulrich Drepper  <drepper@gmail.com>
12466
12467         [BZ #12393]
12468         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12469         (is_trusted_path): ...to here.
12470         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12471         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12472         using is_trusted_path_normalize() in setuid scripts.
12473
12474 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12475
12476         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12477         __BEGIN/__END_DECLS.
12478
12479 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12480
12481         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12482         NSS_STATUS_NOTFOUND if no record was found.
12483
12484 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12485
12486         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12487         (headers-not-in-tirpc): Remove rpc/netdb.h
12488         * resolv/netdb.h: Revert last change.
12489
12490 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12491
12492         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12493         circular dependency between libgcc.a and libc.a.
12494
12495 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12496
12497         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12498         * nis/Makefile: Don't install rpcsvc/*.
12499         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12500         instead of <rpc/types.h>.
12501         (MAXHOSTNAMELEN): Define.
12502
12503 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12504
12505         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12506
12507 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12508
12509         [BZ #12714]
12510         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12511         gethostbyname4_r when IPv6 results are possible.
12512
12513 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12514
12515         [BZ #12723]
12516         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12517         _PC_PIPE_BUF handling.
12518
12519 2011-04-30  Bruno Haible  <bruno@clisp.org>
12520
12521         [BZ #12717]
12522         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12523         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12524         to 'int'.
12525         * inet/getnameinfo.c (getnameinfo): Likewise.
12526
12527 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
12528
12529         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
12530         to groups setting in database lookup.
12531         * nss/nsswitch.conf: Add initgroups entry.
12532
12533 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
12534
12535         [BZ #12685]
12536         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
12537         mode string.
12538         Patch by Eric Blake <eblake@redhat.com>.
12539
12540 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12541
12542         * sunrpc/Makefile (need-export-routines): Add svc_run.
12543         (routines): Remove svc_run.
12544         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
12545         * sunrpc/clnt_perr.c (clnt_perrno): Export.
12546         * sunrpc/svc_run.c (svc_run): Likewise.
12547         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12548
12549 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
12550
12551         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
12552         problem in reallocation in last patch.
12553
12554 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
12555
12556         * sunrpc/Makefile: Move inclusion of Rules.
12557
12558 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12559
12560         * nss/nss_files/files-initgroups.c: New file.
12561         * nss/Makefile (libnss_files-routines): Add files-initgroups.
12562         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
12563         _nss_files_initgroups_dyn.
12564
12565 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
12566
12567         * elf/elf.h (R_ARM_IRELATIVE): Define.
12568
12569 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12570
12571         * po/ru.po: Update from translation team.
12572
12573 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12574
12575         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
12576         dependencies.
12577
12578 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
12579
12580         [BZ #12653]
12581         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
12582         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
12583         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12584         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12585         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12586
12587 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
12588
12589         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
12590         differing bytes.
12591         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12592         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12593         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12594
12595 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12596
12597         [BZ #12420]
12598         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
12599         storing it.
12600         * stdlib/bug-getcontext.c: New file.
12601         * stdlib/Makefile: Add rules to build and run bug-getcontext.
12602
12603 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12604
12605         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
12606         instructions into .machine "z9-109".
12607         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
12608         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
12609
12610 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12611
12612         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
12613         between environment variables and auxiliary vector.
12614
12615 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
12616
12617         * Makefile: Add rules to build linkobj/libc.so.
12618         * include/libc-symbols.h: Define libc_hidden_nolink.
12619         * include/rpc/auth.h: Mark functions which are to be hidden.
12620         * include/rpc/auth_des.h: Likewise.
12621         * include/rpc/auth_unix.h: Likewise.
12622         * include/rpc/clnt.h: Likewise.
12623         * include/rpc/des_crypt.h: Likewise.
12624         * include/rpc/key_prot.h: Likewise.
12625         * include/rpc/pmap_clnt.h: Likewise.
12626         * include/rpc/pmap_prot.h: Likewise.
12627         * include/rpc/pmap_rmt.h: Likewise.
12628         * include/rpc/rpc_msg.h: Likewise.
12629         * include/rpc/svc.h: Likewise.
12630         * include/rpc/svc_auth.h: Likewise.
12631         * include/rpc/xdr.h: Likewise.
12632         * nis/Makefile: Link all DSOs against linkobj/libc.so.
12633         * nss/Makefile: Likewise.
12634         * sunrpc/Makefile: Don't install headers.  Build library with normal
12635         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
12636         * sunrpc/auth_des.c: Hide exported symbols by default, export some
12637         for the compat linking library.  Remove use of INTDEF/INTUSE.
12638         * sunrpc/auth_none.c: Likewise.
12639         * sunrpc/auth_unix.c: Likewise.
12640         * sunrpc/authdes_prot.c: Likewise.
12641         * sunrpc/authuxprot.c: Likewise.
12642         * sunrpc/clnt_gen.c: Likewise.
12643         * sunrpc/clnt_perr.c: Likewise.
12644         * sunrpc/clnt_raw.c: Likewise.
12645         * sunrpc/clnt_simp.c: Likewise.
12646         * sunrpc/clnt_tcp.c: Likewise.
12647         * sunrpc/clnt_udp.c: Likewise.
12648         * sunrpc/clnt_unix.c: Likewise.
12649         * sunrpc/des_crypt.c: Likewise.
12650         * sunrpc/des_soft.c: Likewise.
12651         * sunrpc/get_myaddr.c: Likewise.
12652         * sunrpc/key_call.c: Likewise.
12653         * sunrpc/key_prot.c: Likewise.
12654         * sunrpc/netname.c: Likewise.
12655         * sunrpc/pm_getmaps.c: Likewise.
12656         * sunrpc/pm_getport.c: Likewise.
12657         * sunrpc/pmap_clnt.c: Likewise.
12658         * sunrpc/pmap_prot.c: Likewise.
12659         * sunrpc/pmap_prot2.c: Likewise.
12660         * sunrpc/pmap_rmt.c: Likewise.
12661         * sunrpc/publickey.c: Likewise.
12662         * sunrpc/rpc_cmsg.c: Likewise.
12663         * sunrpc/rpc_common.c: Likewise.
12664         * sunrpc/rpc_dtable.c: Likewise.
12665         * sunrpc/rpc_prot.c: Likewise.
12666         * sunrpc/rpc_thread.c: Likewise.
12667         * sunrpc/rtime.c: Likewise.
12668         * sunrpc/svc.c: Likewise.
12669         * sunrpc/svc_auth.c: Likewise.
12670         * sunrpc/svc_authux.c: Likewise.
12671         * sunrpc/svc_raw.c: Likewise.
12672         * sunrpc/svc_run.c: Likewise.
12673         * sunrpc/svc_simple.c: Likewise.
12674         * sunrpc/svc_tcp.c: Likewise.
12675         * sunrpc/svc_udp.c: Likewise.
12676         * sunrpc/svc_unix.c: Likewise.
12677         * sunrpc/svcauth_des.c: Likewise.
12678         * sunrpc/xcrypt.c: Likewise.
12679         * sunrpc/xdr.c: Likewise.
12680         * sunrpc/xdr_array.c: Likewise.
12681         * sunrpc/xdr_float.c: Likewise.
12682         * sunrpc/xdr_intXX_t.c: Likewise.
12683         * sunrpc/xdr_mem.c: Likewise.
12684         * sunrpc/xdr_rec.c: Likewise.
12685         * sunrpc/xdr_ref.c: Likewise.
12686         * sunrpc/xdr_sizeof.c: Likewise.
12687         * sunrpc/xdr_stdio.c: Likewise.
12688
12689 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
12690
12691         [BZ #12650]
12692         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
12693         * sysdeps/ia64/dl-tls.h: Likewise.
12694         * sysdeps/powerpc/dl-tls.h: Likewise.
12695         * sysdeps/s390/dl-tls.h: Likewise.
12696         * sysdeps/sh/dl-tls.h: Likewise.
12697         * sysdeps/sparc/dl-tls.h: Likewise.
12698         * sysdeps/x86_64/dl-tls.h: Likewise.
12699         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
12700
12701 2011-03-14  Andreas Schwab  <schwab@redhat.com>
12702
12703         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
12704         rpath element also skip the following colon.
12705         (expand_dynamic_string_token): Add is_path parameter and pass
12706         down to DL_DST_REQUIRED and _dl_dst_substitute.
12707         (decompose_rpath): Call expand_dynamic_string_token with
12708         non-zero is_path.  Ignore empty rpaths.
12709         (_dl_map_object_from_fd): Call expand_dynamic_string_token
12710         with zero is_path.
12711
12712 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
12713
12714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
12715         Make cancelable.
12716
12717 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
12718
12719         [BZ #12655]
12720         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
12721         Patch by Filipe David Manana <fdmanana@apache.org>.
12722
12723 2011-04-07  Andreas Schwab  <schwab@redhat.com>
12724
12725         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
12726         Maintain aligned stack.
12727         (CHECK_RSP): Remove unused macro.
12728
12729 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
12730
12731         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
12732         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
12733
12734 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
12735
12736         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
12737
12738         * include/features.h: Mention __USE_XOPEN2K8 in comment.
12739
12740 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
12741
12742         [BZ #12518]
12743         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
12744         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
12745         * sysdeps/x86_64/memmove.c: New file.
12746         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
12747         (memcpy): Renamed to ...
12748         (__new_memcpy): This.
12749         (memcpy): Provide GLIBC_2_14 memcpy.
12750         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
12751         (memcpy): Provide GLIBC_2_2_5 memcpy.
12752
12753 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12754
12755         [BZ #12631]
12756         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
12757
12758 2011-03-30  Andreas Schwab  <schwab@redhat.com>
12759
12760         * misc/syncfs.c: New file.
12761         * misc/Makefile (routines): Add syncfs.
12762         * posix/unistd.h: Declare syncfs.
12763         * sysdeps/unix/syscalls.list: Add syncfs.
12764
12765 2011-04-01  Andreas Schwab  <schwab@redhat.com>
12766
12767         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
12768         open_by_handle_at.
12769         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12770         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12771         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12772         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12773         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12774         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
12775         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12776
12777 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12778
12779         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
12780         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12781         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12782         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12783         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12784         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12785         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12786
12787         * io/Makefile: Compile fallocate.c, fallocate64.c, and
12788         sync_file_range.c with -fexceptions.
12789         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
12790         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
12791         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
12792         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
12793         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
12794         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
12795         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
12796         sync_file_range as cancellation point
12797         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
12798         now a wrapper around __call_sync_file_range with cancellation handling.
12799         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
12800         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
12801         function name to __call_sync_file_range.
12802         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
12803         Add call_sync_file_range.
12804
12805 2011-04-01  Andreas Schwab  <schwab@redhat.com>
12806
12807         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12808         bits/timex.h.
12809
12810 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12811
12812         * iconv/iconv.h: Fix typo in comment.
12813         * io/fcntl.h: Likewise.
12814         * libio/stdio.h: Likewise.
12815         * posix/spawn.h: Likewise.
12816         * posix/unistd.h: Likewise.
12817         * stdlib/stdlib.h: Likewise.
12818         * time/time.h: Likewise.
12819         * wcsmbs/wchar.h: Likewise.
12820
12821         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
12822         open_by_handle): Add.
12823         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
12824         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
12825         Augment a few comments.
12826         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12827         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12828         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12829         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12830         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12831         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
12832         open_by_handle.
12833
12834         * io/fcntl.h (AT_EMPTY_PATH): Define.
12835
12836 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
12837
12838         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
12839         * sysdeps/unix/sysv/linux/bits/time.h: New file.
12840         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
12841         to...
12842         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
12843         * Versions.def: Add GLIBC_2.14.
12844         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
12845         Export.
12846
12847 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
12848
12849         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
12850         round counter.
12851         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
12852
12853 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12854
12855         [BZ #12597]
12856         * string/test-strncmp.c (do_page_test): New function.
12857         (check2): Likewise.
12858         (test_main): Call check2.
12859         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
12860
12861 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
12862
12863         [BZ #12587]
12864         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12865         Handle cache information in CPU leaf 4.
12866         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
12867
12868 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
12869
12870         [BZ #12583]
12871         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
12872         character representation.
12873         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
12874
12875 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
12876
12877         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
12878         END(__isnan) to END(__isnanf) to match function entry point/label
12879         EALIGN(__isnanf,...).
12880
12881 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
12882
12883         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
12884
12885 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
12886
12887         [BZ #12510]
12888         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
12889         copy from the symbol referenced in the relocation to initialize the
12890         used variable.
12891         Patch by Piotr Bury <pbury@goahead.com>.
12892         * elf/Makefile: Add rules to build and tst-unique3.
12893         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
12894         * elf/tst-unique3.cc: New file.
12895         * elf/tst-unique3.h: New file.
12896         * elf/tst-unique3lib.cc: New file.
12897         * elf/tst-unique3lib2.cc: New file.
12898
12899         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
12900
12901 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
12902
12903         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
12904         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
12905         to _start.
12906
12907 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
12908
12909         * elf/dl-load.c (_dl_map_object): If we are looking for the first
12910         to-be-loaded object along a path to loader is ld.so.
12911
12912 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12913             Ulrich Drepper  <drepper@gmail.com>
12914
12915         * sysdeps/x86_64/memset.S: After aligning destination, code
12916         branches to different locations depending on the value of
12917         misalignment, when multiarch is enabled. Fix this.
12918
12919 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12920
12921         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
12922         Set _x86_64_preferred_memory_instruction for AMD processsors.
12923         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12924         Set bit_Prefer_SSE_for_memop for AMD processors.
12925
12926 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
12927
12928         * libio/fmemopen.c (fmemopen): Optimize a bit.
12929
12930 2011-03-03  Andreas Schwab  <schwab@redhat.com>
12931
12932         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
12933
12934 2011-03-03  Roland McGrath  <roland@redhat.com>
12935
12936         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
12937
12938 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
12939
12940         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
12941         __bzero_ultra1 instead of __memset_ultra1.
12942
12943 2011-02-23  Andreas Schwab  <schwab@redhat.com>
12944             Ulrich Drepper  <drepper@gmail.com>
12945
12946         [BZ #12509]
12947         * include/link.h (struct link_map): Add l_orig_initfini.
12948         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
12949         returning unsuccessfully.
12950         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
12951         close of a file loaded at startup, restore the original l_initfini
12952         list.
12953         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
12954         list, store the pointer.
12955         * elf/Makefile ($(objpfx)noload-mem): New rule.
12956         (noload-ENV): Define.
12957         (tests): Add $(objpfx)noload-mem.
12958         * elf/noload.c: Include <memcheck.h>.
12959         (main): Call mtrace.  Close all opened handles.
12960
12961 2011-02-17  Andreas Schwab  <schwab@redhat.com>
12962
12963         [BZ #12454]
12964         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
12965         dependencies are missing.
12966
12967 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12968
12969         Fix __if_freereq crash: Unlike the generic version which uses free,
12970         Hurd needs munmap.
12971         * sysdeps/mach/hurd/ifreq.h: New file.
12972
12973 2011-01-27  Petr Baudis  <pasky@suse.cz>
12974             Ulrich Drepper  <drepper@gmail.com>
12975
12976         [BZ 12445]#
12977         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
12978         to extend_alloca().
12979         * stdio-common/bug23.c: New file.
12980         * stdio-common/Makefile (tests): Add bug23.
12981
12982 2010-09-28  Andreas Schwab  <schwab@redhat.com>
12983             Ulrich Drepper  <drepper@gmail.com>
12984
12985         [BZ #12489]
12986         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
12987         before performing relro protection.  At old place add assertion
12988         to make sure nothing changed.
12989
12990 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
12991             Glauber de Oliveira Costa  <glommer@gmail.com>
12992
12993         * elf/elf.h: Add new ARM TLS relocs.
12994
12995 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
12996
12997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12998         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
12999         cast from r3.
13000         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13001         'tests' variable.
13002         * sysdeps/wordsize-64/tst-writev.c: New file.
13003
13004 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13005
13006         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13007         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13008         insns in _dl_start to prevent a TOC reference before relocs are
13009         resolved.
13010
13011 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13012
13013         [BZ #12469]
13014         * Makeconfig: Remove RANLIB definition.
13015         * Makerules: Don't use RANLIB.
13016         * aclocal.m4: Remove ranlib test.
13017         * configure.in: No need to check for ranlib.
13018         * elf/rtld-Rules: Don't use RANLIB.
13019
13020 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13021
13022         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13023         protection macro.
13024         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13025         inclusion protection macro.
13026
13027         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13028         SIGRTMIN and SIGRTMAX and print information in that case only when
13029         SIGRTMIN is defined.
13030
13031 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13032
13033         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13034         arginfo fn returning -1.
13035
13036         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13037         and thousands string is zero terminated.
13038
13039 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13040
13041         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13042         sysdeps/unix/sysv/linux/bits/socket.h.
13043
13044 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13045
13046         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13047         (__CPU_COUNT): Remove old macros.
13048         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13049         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13050         (__CPU_ALLOC, __CPU_FREE): Add macros.
13051         (__sched_cpualloc, __sched_cpufree): Add declarations.
13052
13053 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13054
13055         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13056         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13057         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13058         (readdhstai): Return value of addhstaiX call.
13059         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13060         (addgrbyX): Return value returned by cache_addgr.
13061         (readdgrbyname): Return value returned by addgrbyX.
13062         (readdgrbygid): Likewise.
13063         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13064         (addpwbyX): Return value returned by cache_addpw.
13065         (readdpwbyname): Return value returned by addhstbyX.
13066         (readdpwbyuid): Likewise.
13067         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13068         (addservbyX): Return value returned by cache_addserv.
13069         (readdservbyname): Return value returned by addservbyX:
13070         (readdservbyport): Likewise.
13071         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13072         (addhstbyX): Return value returned by cache_addhst.
13073         (readdhstbyname): Return value returned by addhstbyX.
13074         (readdhstbyaddr): Likewise.
13075         (readdhstbynamev6): Likewise.
13076         (readdhstbyaddrv6): Likewise.
13077         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13078         (readdinitgroups): Return value returned by addinitgroupsX.
13079         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13080         (prune_cache): Keep track of timeout value of re-added entries.
13081         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13082         * nscd/nscd.h: Adjust prototypes of readd* functions.
13083
13084 2011-02-04  Roland McGrath  <roland@redhat.com>
13085
13086         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13087         (nis_stats): Likewise.
13088         * nis/nis_modify.c (nis_modify): Likewise.
13089         * nis/nis_remove.c (nis_remove): Likewise.
13090         * nis/nis_add.c (nis_add): Likewise.
13091
13092         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13093
13094         * posix/fnmatch_loop.c: Add some consts.
13095
13096         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13097
13098 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13099
13100         [BZ #12460]
13101         * config.make.in (config-cflags-novzeroupper): Define.
13102         * configure.in: Substitute libc_cv_cc_novzeroupper.
13103         * elf/Makefile (AVX-CFLAGS): Define.
13104         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13105         (CFLAGS-tst-auditmod4a.c): Likewise.
13106         (CFLAGS-tst-auditmod4b.c): Likewise.
13107         (CFLAGS-tst-auditmod6b.c): Likewise.
13108         (CFLAGS-tst-auditmod6c.c): Likewise.
13109         (CFLAGS-tst-auditmod7b.c): Likewise.
13110         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13111
13112 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13113
13114         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13115         function to the callback.
13116         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13117
13118 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13119
13120         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13121         of errno.
13122
13123 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13124
13125         [BZ #11724]
13126         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13127         of constructors.
13128         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13129         of destructors.
13130         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13131
13132         [BZ #11724]
13133         * elf/Makefile: Add rules to build and run new test.
13134         * elf/tst-initorder.c: New file.
13135         * elf/tst-initorder.exp: New file.
13136         * elf/tst-initordera1.c: New file.
13137         * elf/tst-initordera2.c: New file.
13138         * elf/tst-initordera3.c: New file.
13139         * elf/tst-initordera4.c: New file.
13140         * elf/tst-initorderb1.c: New file.
13141         * elf/tst-initorderb2.c: New file.
13142         * elf/tst-order-a1.c: New file.
13143         * elf/tst-order-a2.c: New file.
13144         * elf/tst-order-a3.c: New file.
13145         * elf/tst-order-a4.c: New file.
13146         * elf/tst-order-b1.c: New file.
13147         * elf/tst-order-b2.c: New file.
13148         * elf/tst-order-main.c: New file.
13149         New test case by George Gensure <werkt0@gmail.com>.
13150
13151 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13152
13153         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13154         decoding ACE if AI_CANONIDN.
13155
13156 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13157
13158         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13159
13160 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13161
13162         * version.h (RELEASE): Bump for 2.13 release.
13163         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13164
13165         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13166
13167         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13168         MADV_NOHUGEPAGE.
13169         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13170         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13171         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13172         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13173         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13174         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13175
13176         * posix/getconf.c: Update copyright year.
13177         * catgets/gencat.c: Likewise.
13178         * csu/version.c: Likewise.
13179         * debug/catchsegv.sh: Likewise.
13180         * debug/xtrace.sh: Likewise.
13181         * elf/ldconfig.c: Likewise.
13182         * elf/ldd.bash.in: Likewise.
13183         * elf/sprof.c (print_version): Likewise.
13184         * iconv/iconv_prog.c: Likewise.
13185         * iconv/iconvconfig.c: Likewise.
13186         * locale/programs/locale.c: Likewise.
13187         * locale/programs/localedef.c: Likewise.
13188         * malloc/memusage.sh: Likewise.
13189         * malloc/mtrace.pl: Likewise.
13190         * nscd/nscd.c (print_version): Likewise.
13191         * nss/getent.c: Likewise.
13192
13193         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13194         PF_CAIF, and PF_ALG.
13195         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13196
13197 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13198
13199         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13200         (modules-names): Use them.
13201         (ifunc-test-modules, ifunc-pie-tests): Define.
13202         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13203         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13204         (test-extras): Likewise.
13205         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13206         $(compile-command.c).
13207         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13208         (all-built-dso): Define.
13209         (check-textrel.out, check-execstack.out): Depend on it.
13210
13211         * configure.in: Don't override --enable-multi-arch.
13212
13213 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13214
13215         [BZ #6812]
13216         * nscd/hstcache.c (tryagain): Define.
13217         (cache_addhst): Return tryagain not notfound for temporary errors.
13218         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13219         failed.
13220
13221 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13222
13223         [BZ #10563]
13224         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13225         to make the syscall.
13226         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13227
13228         [BZ #12378]
13229         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13230         and fall back to matching as normal character if the string ends before
13231         the matching ']' is found.  This is what POSIX requires.
13232         * posix/testfnm.c: Adjust test result.
13233         * posix/globtest.sh: Adjust test result.  Add new test.
13234         * posix/tst-fnmatch.input: Likewise.
13235         * posix/tst-fnmatch2.c: Add new test.
13236
13237 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13238
13239         * elf/Makefile (check-execstack): Revert last change.  Depend on
13240         check-execstack.h.
13241         (check-execstack.h): New target.
13242         (generated): Add check-execstack.h.
13243         * elf/check-execstack.c: Include "check-execstack.h".
13244         (main): Revert last change.
13245         (handle_file): Return zero if GNU_STACK is absent and
13246         DEFAULT_STACK_PERMS doesn't include PF_X.
13247
13248 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13249
13250         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13251         in child fails because the descriptor is already closed.
13252         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13253         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13254         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13255
13256         [BZ #12397]
13257         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13258         syscall.
13259
13260         [BZ #10484]
13261         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13262         temporary buffer used to handle multi lookups locally.
13263         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13264
13265 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13266
13267         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13268         loader is ld.so.
13269
13270 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13271
13272         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13273         alignment for SSE2.
13274
13275 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13276
13277         [BZ #12394]
13278         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13279         characters.  When rounding increased number of integer digits recompute
13280         number of groups.
13281         * stdio-common/tst-grouping.c: New file.
13282         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13283
13284 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13285
13286         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13287         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13288
13289         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13290         void.
13291         * bits/select.h: Likewise.
13292
13293 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13294
13295         * po/ja.po: Update from translation team.
13296
13297 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13298
13299         [BZ #11155]
13300         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13301         implementation just like for lxstat, fxstatat, et al.
13302
13303 2010-12-27  Jim Meyering  <meyering@redhat.com>
13304
13305         [BZ #12348]
13306         * posix/regexec.c (build_trtable): Return failure indication upon
13307         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13308
13309 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13310
13311         [BZ #12201]
13312         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13313         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13314         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13315         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13316
13317         [BZ #12207]
13318         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13319
13320         [BZ #12204]
13321         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13322         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13323
13324 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13325
13326         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13327         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13328         script has SORT_BY_INIT_PRIORITY.
13329         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13330         NO_CTORS_DTORS_SECTIONS is defined.
13331         * elf/soinit.c: Likewise.
13332         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13333         NO_CTORS_DTORS_SECTIONS is defined.
13334         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13335         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13336         * sysdeps/sh/init-first.c: Likewise.
13337         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13338
13339 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13340
13341         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13342         always use the slow path.
13343
13344 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13345
13346         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13347         similar rule which adds the sysdep directories to the header search in
13348         order to pick up the correct platform stackinfo.h.
13349         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13350         perform test if it is, otherwise return successfully without testing.
13351         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13352         DEFAULT_STACK_PERMS define in stackinfo.h.
13353         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13354         defined in stackinfo.h.
13355         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13356         DEFAULT_STACK_PERMS defined in stackinfo.h.
13357         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13358         * sysdeps/ia64/stackinfo.h: Likewise.
13359         * sysdeps/s390/stackinfo.h: Likewise.
13360         * sysdeps/sh/stackinfo.h: Likewise.
13361         * sysdeps/sparc/stackinfo.h: Likewise.
13362         * sysdeps/x86_64/stackinfo.h: Likewise.
13363         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13364         PF_X for powerpc64.  Retain PF_X for powerpc32.
13365
13366 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13367
13368         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13369         accurately.
13370         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13371         GETDENTS_64BIT_ALIGNED.
13372
13373 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13374
13375         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13376
13377 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13378
13379         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13380         _GNU_SOURCE.
13381
13382         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13383         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13384         Remove __restrict.
13385         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13386         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13387
13388 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13389
13390         [BZ #11655]
13391         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13392         are initialized.
13393
13394 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13395
13396         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13397
13398 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13399
13400         * po/it.po: Update from translation team.
13401
13402 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13403
13404         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13405         unused codes.
13406
13407 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13408
13409         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13410
13411 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13412
13413         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13414         specially.
13415         (gaih_getanswer_slice): Likewise.
13416
13417 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13418
13419         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13420
13421 2010-05-31  Petr Baudis  <pasky@suse.cz>
13422
13423         [BZ #11149]
13424         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13425         silently even in the chroot mode.
13426
13427 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13428
13429         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13430         last patch a bit.  Pretty printing
13431
13432 2010-05-31  Petr Baudis <pasky@suse.cz>
13433
13434         [BZ #10085]
13435         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13436         initialization of skip_initgroups_dyn.
13437
13438 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13439
13440         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13441         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13442
13443 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13444
13445         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13446
13447 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13448
13449         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13450         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13451         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13452         ($(objpfx)tst-fnmatch-mem): New rule.
13453         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13454         * posix/tst-fnmatch.c (main): Call mtrace.
13455
13456 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13457
13458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13459         Support Intel processor model 6 and model 0x2c.
13460
13461 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13462
13463         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13464           signed comparison.
13465
13466 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13467
13468         [BZ #12205]
13469         * string/test-strncasecmp.c (check_result): New function.
13470         (do_one_test): Use it.
13471         (check1): New function.
13472         (test_main): Use it.
13473         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13474         Support strcasecmp and strncasecmp.
13475
13476 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13477
13478         [BZ #12194]
13479         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13480         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13481
13482 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13483
13484         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13485         IFUNC support.
13486         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13487         memset-x86-64.
13488         * sysdeps/x86_64/multiarch/bzero.S: New file.
13489         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13490         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13491         * sysdeps/x86_64/multiarch/memset.S: New file.
13492         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13493         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13494         Set bit_Prefer_SSE_for_memop for Intel processors.
13495         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13496         Define.
13497         (index_Prefer_SSE_for_memop): Define.
13498         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13499
13500 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13501
13502         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13503         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13504
13505 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13506
13507         [BZ #12191]
13508         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13509         (__x86_64_raw_data_cache_size_half): Likewise.
13510         (__x86_64_raw_shared_cache_size): Likewise.
13511         (__x86_64_raw_shared_cache_size_half): Likewise.
13512
13513         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13514         (__x86_64_raw_data_cache_size_half): Likewise.
13515         (__x86_64_raw_shared_cache_size): Likewise.
13516         (__x86_64_raw_shared_cache_size_half): Likewise.
13517         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13518         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13519         and __x86_64_raw_shared_cache_size_half.  Round
13520         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13521         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13522         to multiple of 256 bytes.
13523
13524 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13525
13526         [BZ #12167]
13527         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
13528         of inacessible symlinks.  Verify result of symlink before returning it.
13529         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
13530         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
13531
13532 2010-10-28  Erich Ritz  <erichritz@gmail.com>
13533
13534         * math/math.h (isinf): Fix typo in comment.
13535
13536 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
13537
13538         * po/da.po: Update from translation team.
13539
13540 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
13541
13542         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
13543         is added to the list.
13544
13545 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13546             Ulrich Drepper  <drepper@gmail.com>
13547
13548         * elf/dl-object.c (_dl_new_object): Don't append the new object to
13549         the global list here.  Move code to...
13550         (_dl_add_to_namespace_list): ...here.  New function.
13551         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
13552         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
13553         * elf/dl-load.c (lose): Don't remove the element from the list.
13554         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
13555         (_dl_map_object): Likewise.
13556
13557 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
13558
13559         [BZ #12159]
13560         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
13561         into all bytes of SSE register.
13562         Patch by Richard Li <richardpku@gmail.com>.
13563
13564 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
13565
13566         [BZ #12140]
13567         * malloc/malloc.c (_int_free): Fill correct number of bytes when
13568         perturbing.
13569
13570 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
13571
13572         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
13573         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
13574         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
13575         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
13577         submachine.
13578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13579
13580 2010-10-22  Andreas Schwab  <schwab@redhat.com>
13581
13582         * include/dlfcn.h (__RTLD_SECURE): Define.
13583         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
13584         mode & __RTLD_SECURE instead.
13585         (open_path): Rename preloaded parameter to secure.
13586         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
13587         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
13588         * elf/dl-deps.c (openaux): Likewise.
13589         * elf/rtld.c (struct map_args): Remove is_preloaded.
13590         (map_doit): Don't use it.
13591         (dl_main): Likewise.
13592         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
13593         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
13594
13595 2010-09-09  Andreas Schwab  <schwab@redhat.com>
13596
13597         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
13598         (sysd-rules-targets): Remove duplicates.
13599         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
13600         rtld-%.$o dependency.
13601
13602 2010-10-18  Andreas Schwab  <schwab@redhat.com>
13603
13604         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
13605         _dl_map_object do it.
13606
13607 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
13608
13609         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
13610         fast fma builtins, define the macros in the C99 standard.
13611         (FP_FAST_FMAF): Likewise.
13612         (FP_FAST_FMAL): Likewise.
13613         * sysdeps/x86_64/bits/mathdef.h: Likewise.
13614
13615         * bits/mathdef.h: Update copyright year.
13616         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13617
13618 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13619
13620         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
13621         builtins, define the macros in the C99 standard.
13622         (FP_FAST_FMAF): Likewise.
13623         (FP_FAST_FMAL): Likewise.
13624         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
13625         multiply/add.
13626         (FP_FAST_FMAF): Likewise.
13627
13628 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
13629
13630         [BZ #3268]
13631         * math/libm-test.inc (fma_test): Some new testcases.
13632         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
13633         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
13634         y and infinite z.  Do multiplication by C already in long double.
13635         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
13636         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
13637         y and infinite z.  Do bitwise or of inexact bit into u.d.
13638         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
13639         * sysdeps/i386/fpu/s_fmaf.S: Removed.
13640         * sysdeps/i386/fpu/s_fma.S: Removed.
13641         * sysdeps/i386/fpu/s_fmal.S: Removed.
13642
13643 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
13644
13645         [BZ #3268]
13646         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
13647         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
13648         computation is not scheduled after fetestexcept.  Fix value
13649         of minimum denormal long double.
13650
13651 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
13652
13653         [BZ #3268]
13654         * math/libm-test.inc (fma_test): Add some more tests.
13655         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
13656         correctly.
13657
13658 2010-10-15  Andreas Schwab  <schwab@redhat.com>
13659
13660         * scripts/data/localplt-s390-linux-gnu.data: New file.
13661         * scripts/data/localplt-s390x-linux-gnu.data: New file.
13662
13663 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
13664
13665         [BZ #3268]
13666         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
13667         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
13668         instead of dbl-64.
13669         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
13670         inlines.
13671         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
13672         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
13673         if one of x and y is very large and the other is subnormal.
13674         * sysdeps/s390/fpu/s_fmaf.c: New file.
13675         * sysdeps/s390/fpu/s_fma.c: New file.
13676         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
13677         * sysdeps/powerpc/fpu/s_fma.S: New file.
13678         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
13679         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
13680         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
13681
13682 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
13683
13684         [BZ #3268]
13685         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
13686         fma tests.
13687         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
13688         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
13689         * sysdeps/i386/i686/multiarch/s_fma.c: Include
13690         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
13691         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
13692         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
13693         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
13694
13695 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
13696
13697         [BZ #12078]
13698         * posix/regcomp.c (parse_branch): One more memory leak plugged.
13699         * posix/bug-regex31.input: Add test case.
13700
13701 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
13702
13703         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
13704         * posix/bug-regex31.input: New file.
13705
13706         [BZ #12078]
13707         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
13708         (parse_sub_exp): Fix last change, use postorder.
13709
13710         * posix/bug-regex31.c: New file.
13711         * posix/Makefile: Add rules to build and run bug-regex31.
13712
13713         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
13714
13715         [BZ #12078]
13716         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
13717
13718         [BZ #12108]
13719         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
13720         to have entries in sys_siglist.
13721
13722         [BZ #12093]
13723         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
13724         be NULL.
13725
13726 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
13727
13728         [BZ #3268]
13729         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
13730         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
13731         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
13732         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
13733         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13734         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
13735         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
13736         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
13737         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
13738         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
13739         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
13740         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
13741         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
13742         * math/ftestexcept.c (fetestexcept): Likewise.
13743         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
13744         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
13745         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13746         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
13747         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
13748         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
13749         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13750
13751 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
13752
13753         [BZ #12107]
13754         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
13755         newline.
13756
13757 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
13758
13759         * string/bug-strstr1.c: New file.
13760         * string/Makefile: Add rules to build and run bug-strstr1.
13761
13762 2010-10-05  Eric Blake  <eblake@redhat.com>
13763
13764         [BZ #12092]
13765         * string/str-two-way.h (two_way_long_needle): Always clear memory
13766         when skipping input due to the shift table.
13767
13768 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
13769
13770         [BZ #12005]
13771         * malloc/mcheck.c: Handle large requests.
13772
13773         [BZ #12077]
13774         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
13775         for strncmp and strncasecmp.
13776         * string/stratcliff.c: Add tests for strcmp and strncmp.
13777         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
13778
13779 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13780
13781         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
13782         __set_fpscr.
13783
13784 2010-09-30  Andreas Jaeger  <aj@suse.de>
13785
13786         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
13787         (CGROUP_SUPER_MAGIC): Define.
13788         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13789         Handle btrfs and cgroup file systems.
13790         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
13791         Likewise.
13792
13793 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
13794
13795         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
13796         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
13797
13798 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13799
13800         [BZ #12067]
13801         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
13802         trying to locate the ELF header.
13803
13804 2010-09-27  Andreas Schwab  <schwab@redhat.com>
13805
13806         [BZ #11611]
13807         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
13808         Mask out sign-bit copies when constructing f_fsid.
13809
13810 2010-09-24  Petr Baudis <pasky@suse.cz>
13811
13812         * debug/stack_chk_fail_local.c: Add missing licence exception.
13813         * debug/warning-nop.c: Likewise.
13814
13815 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
13816
13817         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
13818         implementing getdents64 using getdents syscall, set d_type if
13819         __ASSUME_GETDENTS32_D_TYPE.
13820
13821 2010-09-16  Andreas Schwab  <schwab@redhat.com>
13822
13823         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
13824         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
13825
13826 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
13827
13828         [BZ #12037]
13829         * posix/unistd.h: Undo change of feature selection for ftruncate from
13830         2010-01-11.
13831
13832 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
13833
13834         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
13835         detection.
13836
13837 2010-09-20  Andreas Schwab  <schwab@redhat.com>
13838
13839         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
13840         fanotify_mark.
13841         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
13842
13843 2010-09-14  Andreas Schwab  <schwab@redhat.com>
13844
13845         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
13846         variables after CHECK_SP call.
13847         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
13848
13849 2010-09-13  Andreas Schwab  <schwab@redhat.com>
13850             Ulrich Drepper  <drepper@redhat.com>
13851
13852         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
13853         re-relocationg ld.so.
13854         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
13855         _dl_init_paths call.
13856         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
13857         here anymore.
13858
13859 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
13860
13861         * resolv/res_init.c (__res_vinit): Count the default server we added.
13862
13863 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
13864             Ulrich Drepper  <drepper@redhat.com>
13865
13866         [BZ #11968]
13867         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13868         (____longjmp_chk): Use %ebx for saving value across system call.
13869         Add unwind info.
13870
13871 2010-09-06  Andreas Schwab  <schwab@redhat.com>
13872
13873         * manual/Makefile: Don't mix pattern rules with normal rules.
13874
13875 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
13876
13877         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
13878         operation.
13879         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
13880         * libio/iofopncook.c (_IO_cookie_init): Likewise.
13881         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
13882         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
13883         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13884         Likewise.
13885
13886 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
13887
13888         [BZ #11979]
13889         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
13890         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
13891
13892 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
13893
13894         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
13895         * sysdeps/x86_64/addmul_1.S: Likewise.
13896         * sysdeps/x86_64/lshift.S: Likewise.
13897         * sysdeps/x86_64/mul_1.S: Likewise.
13898         * sysdeps/x86_64/rshift.S: Likewise.
13899         * sysdeps/x86_64/sub_n.S: Likewise.
13900         * sysdeps/x86_64/submul_1.S: Likewise.
13901
13902 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13903
13904         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
13905         Define __sched_param instead of SCHED_* and sched_param when
13906         <bits/sched.h> is included with __need_schedparam defined.
13907         * bits/sched.h [__need_schedparam]
13908         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
13909         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
13910         (__defined_schedparam): Define to 1.
13911         (__sched_param): New structure, identical to sched_param.
13912         (__need_schedparam): Undefine.
13913
13914 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
13915
13916         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
13917         (epoll_create1): Declare.
13918
13919         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
13920
13921 2010-08-31  Andreas Schwab  <schwab@redhat.com>
13922
13923         [BZ #7066]
13924         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
13925         shifting retval into place.
13926
13927 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
13928
13929         * nis/rpcsvc/nis.h: Update copyright notice.
13930         * nis/rpcsvc/nis.x: Likewise.
13931         * nis/rpcsvc/nis_callback.h: Likewise.
13932         * nis/rpcsvc/nis_callback.x: Likewise.
13933         * nis/rpcsvc/nis_object.x: Likewise.
13934         * nis/rpcsvc/nis_tags.h: Likewise.
13935         * nis/rpcsvc/yp.h: Likewise.
13936         * nis/rpcsvc/yp.x: Likewise.
13937         * nis/rpcsvc/ypupd.h: Likewise.
13938         * nis/yp_xdr.c: Likewise.
13939         * nis/ypupdate_xdr.c: Likewise.
13940
13941         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
13942         mainly the body of pmap_getport.  Add parameters to specify timeouts.
13943         (pmap_getport): Use __libc_rpc_getport.
13944         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
13945         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
13946         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
13947
13948 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
13949
13950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
13951         fanotify_mark.
13952
13953 2010-08-27  Roland McGrath  <roland@redhat.com>
13954
13955         * sysdeps/i386/i686/multiarch/Makefile
13956         (CFLAGS-varshift.c): New variable.
13957
13958 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
13959
13960         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
13961         * sysdeps/i386/i686/multiarch/varshift.c: New file.
13962
13963         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
13964
13965         * sysdeps/x86_64/strlen.S: Minimal code improvement.
13966
13967 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13968
13969         * sysdeps/x86_64/strlen.S: Unroll the loop.
13970         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13971         strlen-sse2 strlen-sse2-bsf.
13972         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
13973         __strlen_no_bsf if bit_Slow_BSF is set.
13974         (__strlen_sse42): Removed.
13975         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
13976         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
13977
13978 2010-08-25  Roland McGrath  <roland@redhat.com>
13979
13980         * sysdeps/x86_64/multiarch/varshift.S: File removed.
13981         * sysdeps/x86_64/multiarch/varshift.c: New file.
13982         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
13983         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
13984         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
13985         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13986
13987 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13988
13989         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13990         strlen-sse2 strlen-sse2-bsf.
13991         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
13992         __strlen_sse2_bsf if bit_Slow_BSF is unset.
13993         (__strlen_sse2): Removed.
13994         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
13995         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
13996         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
13997         bit_Slow_BSF for Atom.
13998         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
13999         (index_Slow_BSF): Define.
14000         (HAS_SLOW_BSF): Define.
14001
14002 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14003
14004         [BZ #10851]
14005         * resolv/res_init.c (__res_vinit): When no server address at all
14006         is given default to loopback.
14007
14008 2010-08-24  Roland McGrath  <roland@redhat.com>
14009
14010         * configure.in: Remove config-name.h generation.
14011         * configure: Regenerated.
14012         * config-name.in: File removed.
14013         * scripts/config-uname.sh: New file.
14014         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14015         ($(objdir)config-name.h): New target.
14016
14017         * sunrpc/rpc_parse.h: Avoid nested comment.
14018
14019 2010-08-24  Richard Henderson  <rth@redhat.com>
14020             Ulrich Drepper  <drepper@redhat.com>
14021             H.J. Lu  <hongjiu.lu@intel.com>
14022
14023         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14024         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14025         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14026         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14027         _mm_alignr_epi8 with _mm_loadu_si128.
14028         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14029         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14030         (__m128i_shift_right): Removed.
14031         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14032         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14033         * sysdeps/x86_64/multiarch/varshift.h: New file.
14034         * sysdeps/x86_64/multiarch/varshift.S: New file.
14035
14036 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14037
14038         * configure.in: Move assembler checks to before sysdep dir checking.
14039
14040 2010-08-20  Petr Baudis  <pasky@suse.cz>
14041
14042         * LICENSES: Sync the sunrpc license.
14043
14044 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14045
14046         * sunrpc/auth_des.c: Update copyright notice once again.
14047         * sunrpc/auth_none.c: Likewise.
14048         * sunrpc/auth_unix.c: Likewise.
14049         * sunrpc/authdes_prot.c: Likewise.
14050         * sunrpc/authuxprot.c: Likewise.
14051         * sunrpc/bindrsvprt.c: Likewise.
14052         * sunrpc/clnt_gen.c: Likewise.
14053         * sunrpc/clnt_perr.c: Likewise.
14054         * sunrpc/clnt_raw.c: Likewise.
14055         * sunrpc/clnt_simp.c: Likewise.
14056         * sunrpc/clnt_tcp.c: Likewise.
14057         * sunrpc/clnt_udp.c: Likewise.
14058         * sunrpc/clnt_unix.c: Likewise.
14059         * sunrpc/des_crypt.c: Likewise.
14060         * sunrpc/des_soft.c: Likewise.
14061         * sunrpc/get_myaddr.c: Likewise.
14062         * sunrpc/getrpcport.c: Likewise.
14063         * sunrpc/key_call.c: Likewise.
14064         * sunrpc/key_prot.c: Likewise.
14065         * sunrpc/openchild.c: Likewise.
14066         * sunrpc/pm_getmaps.c: Likewise.
14067         * sunrpc/pm_getport.c: Likewise.
14068         * sunrpc/pmap_clnt.c: Likewise.
14069         * sunrpc/pmap_prot.c: Likewise.
14070         * sunrpc/pmap_prot2.c: Likewise.
14071         * sunrpc/pmap_rmt.c: Likewise.
14072         * sunrpc/rpc/auth.h: Likewise.
14073         * sunrpc/rpc/auth_unix.h: Likewise.
14074         * sunrpc/rpc/clnt.h: Likewise.
14075         * sunrpc/rpc/des_crypt.h: Likewise.
14076         * sunrpc/rpc/key_prot.h: Likewise.
14077         * sunrpc/rpc/netdb.h: Likewise.
14078         * sunrpc/rpc/pmap_clnt.h: Likewise.
14079         * sunrpc/rpc/pmap_prot.h: Likewise.
14080         * sunrpc/rpc/pmap_rmt.h: Likewise.
14081         * sunrpc/rpc/rpc.h: Likewise.
14082         * sunrpc/rpc/rpc_des.h: Likewise.
14083         * sunrpc/rpc/rpc_msg.h: Likewise.
14084         * sunrpc/rpc/svc.h: Likewise.
14085         * sunrpc/rpc/svc_auth.h: Likewise.
14086         * sunrpc/rpc/types.h: Likewise.
14087         * sunrpc/rpc/xdr.h: Likewise.
14088         * sunrpc/rpc_clntout.c: Likewise.
14089         * sunrpc/rpc_cmsg.c: Likewise.
14090         * sunrpc/rpc_common.c: Likewise.
14091         * sunrpc/rpc_cout.c: Likewise.
14092         * sunrpc/rpc_dtable.c: Likewise.
14093         * sunrpc/rpc_hout.c: Likewise.
14094         * sunrpc/rpc_main.c: Likewise.
14095         * sunrpc/rpc_parse.c: Likewise.
14096         * sunrpc/rpc_parse.h: Likewise.
14097         * sunrpc/rpc_prot.c: Likewise.
14098         * sunrpc/rpc_sample.c: Likewise.
14099         * sunrpc/rpc_scan.c: Likewise.
14100         * sunrpc/rpc_scan.h: Likewise.
14101         * sunrpc/rpc_svcout.c: Likewise.
14102         * sunrpc/rpc_tblout.c: Likewise.
14103         * sunrpc/rpc_util.c: Likewise.
14104         * sunrpc/rpc_util.h: Likewise.
14105         * sunrpc/rpcinfo.c: Likewise.
14106         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14107         * sunrpc/rpcsvc/key_prot.x: Likewise.
14108         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14109         * sunrpc/rpcsvc/mount.x: Likewise.
14110         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14111         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14112         * sunrpc/rpcsvc/rex.x: Likewise.
14113         * sunrpc/rpcsvc/rstat.x: Likewise.
14114         * sunrpc/rpcsvc/rusers.x: Likewise.
14115         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14116         * sunrpc/rpcsvc/spray.x: Likewise.
14117         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14118         * sunrpc/rtime.c: Likewise.
14119         * sunrpc/svc.c: Likewise.
14120         * sunrpc/svc_auth.c: Likewise.
14121         * sunrpc/svc_authux.c: Likewise.
14122         * sunrpc/svc_raw.c: Likewise.
14123         * sunrpc/svc_run.c: Likewise.
14124         * sunrpc/svc_simple.c: Likewise.
14125         * sunrpc/svc_tcp.c: Likewise.
14126         * sunrpc/svc_udp.c: Likewise.
14127         * sunrpc/svc_unix.c: Likewise.
14128         * sunrpc/svcauth_des.c: Likewise.
14129         * sunrpc/xcrypt.c: Likewise.
14130         * sunrpc/xdr.c: Likewise.
14131         * sunrpc/xdr_array.c: Likewise.
14132         * sunrpc/xdr_float.c: Likewise.
14133         * sunrpc/xdr_mem.c: Likewise.
14134         * sunrpc/xdr_rec.c: Likewise.
14135         * sunrpc/xdr_ref.c: Likewise.
14136         * sunrpc/xdr_sizeof.c: Likewise.
14137         * sunrpc/xdr_stdio.c: Likewise.
14138
14139         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14140         handling.
14141
14142 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14143
14144         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14145
14146 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14147
14148         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14149         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14150         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14151         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14152         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14153         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14154         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14155         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14156         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14157         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14158         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14159         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14160         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14161         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14162
14163 2010-07-26  Anton Blanchard  <anton@samba.org>
14164
14165         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14166         * malloc/arena.c (heap_trim): Likewise.
14167
14168 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14169
14170         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14171         here.  Not...
14172         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14173         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14174
14175 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14176
14177         * sysdeps/i386/elf/Makefile: New file.
14178
14179 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14180
14181         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14182         from fanotify_init.
14183         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14184         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14185
14186 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14187
14188         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14189         of strncasecmp_l.
14190         * sysdeps/multiarch/strcmp.S: Likewise.
14191
14192 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14193
14194         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14195         strncase_l-nonascii.
14196         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14197         Add strncase_l-ssse3.
14198         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14199         * sysdeps/x86_64/strcmp.S: Likewise.
14200         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14201         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14202         * sysdeps/x86_64/strncase.S: New file.
14203         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14204         * sysdeps/x86_64/strncase_l.S: New file.
14205         * string/Makefile (strop-tests): Add strncasecmp.
14206         * string/test-strncasecmp.c: New file.
14207
14208         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14209         warning.
14210
14211         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14212         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14213
14214 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14215
14216         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14217
14218 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14219
14220         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14221         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14222         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14223
14224 2010-05-01  Alan Modra  <amodra@gmail.com>
14225
14226         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14227         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14228         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14229         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14230         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14231         tidying.  Don't tail-call __sigjmp_save for static lib.
14232         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14233         save location.
14234         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14235         (CALL_MCOUNT): Add eh info, and nop after bl.
14236         (TAIL_CALL_SYSCALL_ERROR): New macro.
14237         (PSEUDO_RET): Use it.
14238         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14239         Correct save location of integer regs and cr.
14240         (_dl_profile_resolve): Correct cr save location.  Delete nops
14241         after bl when SHARED.  Reduce cfi size a little by better
14242         placement of cfi directives.
14243         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14244         make a stack frame.  Instead use parm save area as a temp.
14245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14246         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14248         Don't make a stack frame for parent, use parm save area.
14249         Increase child stack frame to 112 bytes.  Don't save unused reg,
14250         and adjust reg usage.  Set up cfi on error recovery and
14251         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14253         (__makecontext): Add dummy nop after jump to exit.
14254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14255         Use correct parm save area and cr save, reduce stack frame.
14256         Correct cfi for possible PSEUDO_RET frame setup.
14257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14258         Branch to local label emitted by PSEUDO_RET rather than
14259         __syscall_error.
14260
14261 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14262
14263         [BZ #11904]
14264         * locale/programs/locale.c (print_assignment): New function.
14265         (show_locale_vars): Use it.
14266
14267 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14268
14269         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14270         field.
14271         (struct statfs64): Likewise.
14272         (_STATFS_F_FLAGS): Define.
14273         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14274         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14275         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14276         (ST_VALID): Define locally.
14277         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14278         __statvfs_getflags, use the provided value.
14279         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14280         __ASSUME_STATFS_F_FLAGS.
14281
14282         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14283
14284         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14285         Add sys/fanotify.h.
14286         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14287         fanotify_mask for GLIBC_2.13.
14288         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14289         fanotify_init and fanotify_mark.
14290         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14291         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14292
14293         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14294         Add prlimit.
14295         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14296         prlimit64 for GLIBC_2.13.
14297         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14298         prlimit64.
14299         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14300         syscall.
14301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14302         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14303         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14304         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14305         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14306         add prlimit alias.
14307         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14308
14309         [BZ #11903]
14310         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14311         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14312
14313         * nss/Makefile: Add rules to build and run tst-nss-test1.
14314         * shlib-versions: Add entry for libnss_test1.
14315         * nss/nss_test1.c: New file.
14316         * nss/tst-nss-test1.c: New file.
14317
14318         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14319         (__nss_configure_lookup): Set appropriate entry in
14320         __nss_configure_lookup to true.
14321         * nss/nsswitch.h: Define enum with indeces of databases in
14322         databases and __nss_database_custom arrays.  Declare
14323         __nss_database_custom.
14324         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14325         to avoid using nscd when custom rules are installed.
14326         * nss/getXXbyYY_r.c: Likewise.
14327         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14328
14329         * nss/nss_files/files-parse.c: Whitespace fixes.
14330
14331 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14332
14333         [BZ #11883]
14334         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14335         * posix/fnmatch_loop.c: Likewise.
14336
14337 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14338
14339         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14340         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14341         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14342         * Versions.def [GLIBC_2.13]: Add.
14343
14344 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14345
14346         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14347         Also fail if tpwd after pwuid call is NULL.
14348
14349 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14350
14351         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14352         when converting to ms.
14353
14354 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14355
14356         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14357         EOPNOTSUPP errors with ENOTTY.
14358         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14359         EOPNOTSUPP errors with ENOTTY.
14360
14361 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14362
14363         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14364         Add strcasecmp_l-ssse3.
14365         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14366         strcasecmp.
14367         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14368         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14369         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14370
14371 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14372
14373         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14374
14375         * string/Makefile (strop-tests): Add strcasecmp.
14376         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14377         strcasecmp_l-nonascii.
14378         (gen-as-const-headers): Add locale-defines.sym.
14379         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14380         * sysdeps/x86_64/strcasecmp.S: New file.
14381         * sysdeps/x86_64/strcasecmp_l.S: New file.
14382         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14383         * sysdeps/x86_64/locale-defines.sym: New file.
14384         * string/test-strcasecmp.c: New file.
14385
14386         * string/test-strcasestr.c: Test both ends of the range of characters.
14387         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14388
14389 2010-07-29  Roland McGrath  <roland@redhat.com>
14390
14391         [BZ #11856]
14392         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14393
14394 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14395
14396         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14397         for ld.so.
14398
14399 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14400
14401         * manual/memory.texi (Malloc Tunable Parameters): Document
14402         M_PERTURB.
14403
14404 2010-07-26  Roland McGrath  <roland@redhat.com>
14405
14406         [BZ #11840]
14407         * configure.in (-fgnu89-inline check): Set and substitute
14408         gnu89_inline, not libc_cv_gnu89_inline.
14409         * configure: Regenerated.
14410         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14411
14412 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14413
14414         * string/test-strnlen.c: New file.
14415         * string/Makefile (strop-tests): Add strnlen.
14416         * string/tester.c (test_strnlen): Add a few more test cases.
14417         * string/tst-strlen.c: Better error reporting.
14418
14419         * sysdeps/x86_64/strnlen.S: New file.
14420
14421 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14422
14423         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14424         lower-latency instructions.
14425
14426 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14427
14428         * string/test-strcasestr.c: New file.
14429         * string/test-strstr.c: New file.
14430         * string/Makefile (strop-tests): Add strstr and strcasestr.
14431         * string/str-two-way.h: Don't undefine MAX.
14432         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14433
14434 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14435
14436         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14437         strcasestr-nonascii.
14438         (CFLAGS-strcasestr-nonascii.c): Define.
14439         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14440         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14441         Remove unused attribute.
14442
14443 2010-07-20  Roland McGrath  <roland@redhat.com>
14444
14445         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14446         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14447         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14448         like LD_HWCAP_MASK can disable hwcaps.
14449
14450 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14451
14452         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14453
14454 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14455
14456         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14457         call in strcasestr.
14458         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14459         __strcasestr_sse42_nonascii.
14460         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14461         strcasestr-nonascii.c.
14462         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14463
14464 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14465
14466         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14467         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14468         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14469         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14470
14471 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14472
14473         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14474         fcntl.
14475
14476 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14477
14478         [BZ #11577]
14479         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14480         dl_signal_cerror.
14481
14482 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14483
14484         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14485         _PC_PIPE_BUF using F_GETPIPE_SZ.
14486
14487 2010-07-05  Roland McGrath  <roland@redhat.com>
14488
14489         * manual/arith.texi (Rounding Functions): Fix rint description
14490         implicit in round description.
14491
14492 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14493
14494         * elf/Makefile: Fix linking for a few tests to make recent linker
14495         happy.
14496
14497 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14498
14499         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14500         $(common-objpfx)libc_nonshared.a.
14501
14502 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14503
14504         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14505         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14506         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14507         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14508         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14509         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14510         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14511         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14526         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14527         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
14528         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
14529         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
14530         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
14531         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
14532         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
14533         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
14534         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
14535         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
14536         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
14537         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
14538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
14539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
14540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
14541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
14542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
14543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
14544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
14545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
14546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
14547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
14548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
14549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
14550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
14551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
14552
14553 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14554
14555         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
14556         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
14557         * string/memmove.c (memmove): Renamed to ...
14558         (MEMMOVE): ...this.  Default to memmove.
14559         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
14560         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
14561         (END_CHK): Define.
14562         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14563         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
14564         mempcpy-ssse3-back memmove-ssse3-back.
14565         * sysdeps/x86_64/multiarch/bcopy.S: New file .
14566         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
14567         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
14568         * sysdeps/x86_64/multiarch/memcpy.S: New file.
14569         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
14570         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
14571         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
14572         * sysdeps/x86_64/multiarch/memmove.c: New file.
14573         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
14574         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
14575         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
14576         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
14577         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
14578         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
14579         Define.
14580         (index_Fast_Copy_Backward): Define.
14581         (HAS_ARCH_FEATURE): Define.
14582         (HAS_FAST_REP_STRING): Define.
14583         (HAS_FAST_COPY_BACKWARD): Define.
14584
14585 2010-06-21  Andreas Schwab  <schwab@redhat.com>
14586
14587         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14588         Restore proper fallback handling.
14589
14590 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
14591
14592         [BZ #11701]
14593         * posix/group_member.c (__group_member): Correct checking loop.
14594
14595         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
14596         OOM in getpwuid_r correctly.  Return error number when the caller
14597         should return, otherwise -1.
14598         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
14599         call returning > 0 value.
14600         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
14601
14602 2010-06-07  Andreas Schwab  <schwab@redhat.com>
14603
14604         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
14605         libc_nonshared.a from targets in modules-names.
14606
14607 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
14608
14609         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
14610         requires it.
14611
14612 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
14613
14614         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
14615         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
14616         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
14617         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
14618
14619 2010-06-02  Andreas Schwab  <schwab@redhat.com>
14620
14621         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
14622
14623 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
14624
14625         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
14626         and F_GETPIPE_SZ.
14627         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14628         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14629         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14630         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14631         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14632         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
14633
14634 2010-06-14  Roland McGrath  <roland@redhat.com>
14635
14636         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
14637
14638 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
14639
14640         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
14641         __REDIRECT followed by __THROW.
14642         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
14643         * posix/getopt.h (getopt): Likewise.
14644
14645 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14646
14647         * hurd/lookup-at.c (__file_name_lookup_at): Accept
14648         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
14649         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
14650         in AT_FLAGS.
14651         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
14652         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
14653
14654 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
14655
14656         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
14657
14658 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14659
14660         [BZ #11640]
14661         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14662         Properly check family and model.
14663
14664 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
14665
14666         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
14667
14668 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
14669
14670         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
14671
14672 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
14673
14674         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
14675         symbol reference.
14676
14677 2010-05-19  Andreas Schwab  <schwab@redhat.com>
14678
14679         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
14680         symbol reference.
14681
14682 2010-05-21  Andreas Schwab  <schwab@redhat.com>
14683
14684         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
14685         and internal_recvmmsg.
14686         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
14687         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
14688         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
14689         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
14690
14691         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
14692         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
14693         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
14694
14695 2010-05-20  Andreas Schwab  <schwab@redhat.com>
14696
14697         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
14698
14699 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
14700
14701         POWER7 optimizations.
14702         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
14703         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
14704
14705 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
14706
14707         * version.h: Update for 2.13 development version.
14708
14709 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
14710
14711         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
14712         exceptions.  Return 0.
14713
14714 2010-05-07  Roland McGrath  <roland@redhat.com>
14715
14716         * elf/ldconfig.c (main): Add a const.
14717
14718 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
14719
14720         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
14721         (args_options): Add no-idn option.
14722         (ahosts_keys_int): Add idn_flags to ai_flags.
14723         (parse_option): Handle 'i' option to clear idn_flags.
14724
14725         * malloc/malloc.c (_int_free): Possible race in the most recently
14726         added check.  Only act on the data if no current modification
14727         happened.
14728
14729 See ChangeLog.17 for earlier changes.