Fix warning
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-17  Andreas Jaeger  <aj@suse.de>
2
3         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4         warning.
5
6 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
9
10 2012-05-17  Andreas Jaeger  <aj@suse.de>
11
12         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
13         when it is used.
14
15 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
16
17         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
18
19 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20
21         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
22         * sysdeps/x86_64/tst-mallocalign1.c: New file.
23
24 2012-05-17  Andreas Jaeger  <aj@suse.de>
25             Carlos O'Donell  <carlos_odonell@mentor.com>
26
27         [BZ #14059]
28         * sysdeps/x86_64/multiarch/init-arch.h
29         (bit_YMM_Usable): Rename to...
30         (bit_AVX_Usable): ... this.
31         (bit_FMA4_Usable): New macro.
32         (bit_XMM_state): New macro.
33         (bit_YMM_state): New macro.
34         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
35         [__ASSEMBLER__] (index_AVX_Usable): ... this.
36         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
37         (CPUID_OSXSAVE): New macro.
38         (CPUID_AVX): New macro.
39         (CPUID_FMA4): New macro.
40         (index_YMM_Usable): Rename to...
41         (index_AVX_Usable): ... this.
42         (HAS_AVX): Use HAS_ARCH_FEATURE.
43         (HAS_FMA4): Likewise.
44         (HAS_YMM_USABLE): Remove.
45         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
47         are present.
48         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
49         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
50         * sysdeps/x86_64/multiarch/Makefile: Likewise.
51         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
52         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
53
54 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
55
56         * math/libm-test.c: Support platforms without multiple rounding modes.
57         * math/bug-nextafter.c: Support platforms without FP exceptions.
58         * math/bug-nexttoward.c: Likewise.
59         * math/test-fenv.c: Likewise.
60         * math/test-misc.c: Likewise.
61         * stdlib/bug-getcontext.c: Likewise.
62
63 2012-05-17  Andreas Jaeger  <aj@suse.de>
64
65         * manual/examples/search.c (critter_cmp): Change signature to
66         avoid warnings.
67         * manual/string.texi (Collation Functions): Likewise.
68
69 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
70
71         * bits/types.h: Fold copyright years.
72         * bits/typesizes.h: Likewise.
73         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
74         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
75         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
76         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
77         * time/time.h: Likewise.
78
79 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
80
81         [BZ #208]
82         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
83         in instead of returning them.  Return void.
84         (__libc_mallinfo): Accumulate over all arenas.
85         (__malloc_stats): Adjust for change in int_mallinfo interface.
86
87 2012-05-16  Roland McGrath  <roland@hack.frob.com>
88
89         [BZ #10375]
90         * configure.in (NM): Add AC_CHECK_TOOL for it.
91         (libc_extra_cflags): New substituted variable.
92         Check for -fstack-protector being used implicitly.
93         * configure: Regenerated.
94         * config.make.in (config-extra-cflags): New variable,
95         gets @libc_extra_cflags@.
96         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
97
98         [BZ #10375]
99         * configure.in: Check for _FORTIFY_SOURCE being predefined.
100         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
101         * configure: Regenerated.
102         * config.make.in (CPPUNDEFS): New substituted variable.
103         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
104         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
105         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
106
107 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
108
109         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
110         (mq_attr): Use __syscall_slong_t.
111
112 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
113
114         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
115         Check __x86_64__ instead of __WORDSIZE.
116         (_STAT_VER_LINUX): Likewise.
117         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
118         __syscall_ulong_t and __syscall_slong_t.
119         (stat64): Likewise.
120
121 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
122
123         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
124
125 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
126
127         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
128
129 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
130
131         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
132         __syscall_ulong_t.
133
134         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
135         include <bits/wordsize.h>.  Check __x86_64__ instead of
136         __WORDSIZE.
137         (greg_t): Use "__extension__ long long int" if __x86_64__ is
138         defined.
139         (mcontext_t): Replace "unsigned long" with "unsigned long long".
140
141         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
142         include <bits/wordsize.h>.  Check __x86_64__ instead of
143         __WORDSIZE.
144         (user_regs_struct): Use "__extension__ unsigned long long"
145         instead of "unsigned long" if __x86_64__ is defined.
146         (user): Likewise.  Pad after pointer field if __ILP32__ is
147         defined.
148
149 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
150
151         * configure.in (makeinfo): Require version 4.5 or later.  Allow
152         versions 5 to 9.
153         * configure: Regenerated.
154         * manual/install.texi (texinfo): Increase version requirement to
155         4.5 or later.
156         * INSTALL: Regenerated.
157
158         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
159
160 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
161
162         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
163
164         * sysdeps/x86_64/x32/ffs.c: New file.
165
166         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
167         __syscall_ulong_t.
168         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
169         defined.  Use __syscall_ulong_t.
170         (shminfo): Use __syscall_ulong_t.
171         (shm_info): Likewise.
172
173         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
174         __syscall_ulong_t.
175
176         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
177         <bits/wordsize.h>.
178         (msgqnum_t): Use __syscall_ulong_t.
179         (msglen_t): Likewise.
180         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
181         __syscall_ulong_t.
182
183         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
184         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
185
186         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
187
188         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
189         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
190
191         * sysvipc/sys/msg.h (msgbuf): Replace long int with
192         __syscall_slong_t.
193
194         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
195         include <bits/wordsize.h>.  Check __x86_64__ instead of
196         __WORDSIZE.
197
198         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
199         "unsigned long long int" if __x86_64__ is defined.
200         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
201
202         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
203         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
204         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
205
206         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
207         <stdint.h>.
208         (GET_PC): Cast to uintptr_t first.
209         (GET_FRAME): Likewise.
210         (GET_STACK): Likewise.
211
212         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
213         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
214         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
215         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
216         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
217         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
218         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
219         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
220         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
221         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
222         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
223         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
224         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
225         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
226         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
227         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
228         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
229         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
230         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
231         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
232         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
233         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
234         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
235         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
236         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
237         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
238         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
239         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
240         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
241
242 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
243
244         * Makerules (+depfiles): Also collect depfiles from .oS in
245         $(extra-objs).
246         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
247         .oS, $(libnldbl-routines)).
248
249         * Makerules (native-compile-mkdep-flags): Define.
250         * sunrpc/Makefile (extra-objs): Add $(addprefix
251         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
252         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
253         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
254         calling $(make-target-directory).
255
256 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
257
258         * bits/types.h (__snseconds_t): Removed.
259         * time/time.h (struct timespec): Replace __snseconds_t with
260         __syscall_slong_t.
261         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
262         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
263         Likewise.
264         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
265         (__SNSECONDS_T_TYPE): Likewise.
266         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
267         (__SNSECONDS_T_TYPE): Likewise.
268         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
269         (__SNSECONDS_T_TYPE): Likewise.
270
271 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
272
273         * sysdeps/mach/hurd/bits/typesizes.h
274         (__SYSCALL_SLONG_TYPE): New macro.
275         (__SYSCALL_ULONG_TYPE): Likewise.
276
277 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
278
279         * bits/types.h (__syscall_slong_t): New type.
280         (__syscall_ulong_t): Likewise.
281
282         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
283         (__SYSCALL_ULONG_TYPE): Likewise.
284         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
285         (__SYSCALL_SLONG_TYPE): Likewise.
286         (__SYSCALL_ULONG_TYPE): Likewise.
287         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
288         (__SYSCALL_SLONG_TYPE): Likewise.
289         (__SYSCALL_ULONG_TYPE): Likewise.
290         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
291         (__SYSCALL_SLONG_TYPE): Likewise.
292         (__SYSCALL_ULONG_TYPE): Likewise.
293
294 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
295
296         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
297         Add sigaltstack-offsets.sym.
298         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
299         <sigaltstack-offsets.h>.
300         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
301         longjmp_msg pointer.
302         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
303         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
304         signal stack.
305         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
306
307 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
308
309         * elf/stackguard-macros.h: Remove file.
310         * sysdeps/generic/stackguard-macros.h: New file.
311         * sysdeps/i386/stackguard-macros.h: Likewise.
312         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
313         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
314         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
315         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
316         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
317         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
318         * sysdeps/x86_64/stackguard-macros.h: Likewise.
319         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
320         <elf/stackguard-macros.h>.
321
322         [BZ #14109]
323         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
324         __aligned__ in attribute.
325         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
326         (gregset_t): Likewise.
327
328 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
329
330         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
331         * sysdeps/x86_64/64/Implies-after: Here.  New file.
332         * sysdeps/x86_64/x32/Implies-after: New file.
333
334 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
335
336         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
337         and access return value for _dl_profile_fixup.  Use R10_LP to
338         load frame size.
339
340 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
341
342         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
343
344 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
345
346         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
347         * sysdeps/x86_64/x32/sysdep.h: New file.
348
349 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
350
351         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
352         * sysdeps/x86_64/setjmp.S: Likewise.
353
354 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
355
356         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
357         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
358         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
359         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
360         remove unused global constant.
361
362 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
363
364         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
365         include of <not-cancel.h>.
366
367 2012-05-15  Roland McGrath  <roland@hack.frob.com>
368
369         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
370
371 2012-05-15  Jeff Law  <law@redhat.com>
372             Andreas Jaeger  <aj@suse.de>
373
374         [BZ #13594]
375         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
376         out from...
377         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
378         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
379         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
380         code changing __hst_map_handle.map.
381
382 2012-05-15  Roland McGrath  <roland@hack.frob.com>
383
384         * configure.in (sysnames): Look for Implies-before and Implies-after
385         files.
386         * configure: Regenerated.
387
388 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
389
390         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
391         8-byte data alignment with LP_SIZE alignment.
392
393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
394
395         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
396         into R10_LP.
397
398 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
399
400         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
401
402 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
403
404         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
405         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
406         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
407         Likewise.
408         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
409
410 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
411
412         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
413         (stackinfo_sub_sp): Likewise.
414
415 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
416
417         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
418         RAX_LP.
419
420 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
421
422         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
423         into R*_LP.
424
425 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
426
427         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
428         sizes into R*_LP.
429
430 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
431
432         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
433
434 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
435
436         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
437         into R11_LP and load __x86_64_shared_cache_size_half into
438         R8_LP.
439
440 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
441
442         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
443         R8_LP.
444
445 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
446
447         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
448         logb for POWER7.
449         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
450         logbf for POWER7.
451         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
452         logbl for POWER7.
453         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
454         powerpc32/power7/fpu/s_logb.c via #include.
455         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
456         powerpc32/power7/fpu/s_logbf.c via #include.
457         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
458         powerpc32/power7/fpu/s_logbl.c via #include.
459
460 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
461
462         * README.libm: Remove file.
463
464 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
465
466         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
467         count for x32.  Use R*_LP and omit operand-size suffix.
468
469 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
470
471         * shlib-versions: Move x86_64-.*-linux.* entries to ...
472         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
473         * sysdeps/x86_64/x32/shlib-versions: New file.
474
475 2012-05-14  Roland McGrath  <roland@hack.frob.com>
476
477         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
478         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
479         Use _dl_fatal_printf instead.
480
481 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
482
483         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
484         set if not set by the user.  Do not allow for being unset.
485         * sysdeps/unix/sysv/linux/configure: Regenerated.
486
487 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
488
489         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
490         the `q' suffix from lea and replace .quad with ASM_ADDR.
491
492 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
493
494         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
495         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
496         instead of $17.
497         (PTR_DEMANGLE): Likewise.
498
499 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
500
501         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
502         (LP_OP): Likewise.
503         (ASM_ADDR): Likewise.
504         (RAX_LP): Likewise.
505         (RBP_LP): Likewise.
506         (RBX_LP): Likewise.
507         (RCX_LP): Likewise.
508         (RDI_LP): Likewise.
509         (RSI_LP): Likewise.
510         (RSP_LP): Likewise.
511         (R8_LP): Likewise.
512         (R9_LP): Likewise.
513         (R10_LP): Likewise.
514         (R10_LP): Likewise.
515         (R11_LP): Likewise.
516         (R12_LP): Likewise.
517         (R13_LP): Likewise.
518         (R14_LP): Likewise.
519         (R15_LP): Likewise.
520
521 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
522
523         * sysdeps/x86_64/x32/dl-machine.h: New file.
524
525 2012-05-14  Andreas Jaeger  <aj@suse.de>
526
527         * manual/Makefile (subdir): Remove export of subdir.
528         (all): Remove target.
529         (.PHONY): Remove all from list.
530         (mkinstalldirs): Remove.
531         (.PHONY): Remove installdirs from list.
532         ($(inst_infodir)/libc.info): Use make-target-directory.
533         (installdirs): Remove.
534         (subdir_%): Remove.
535         (glibc-targets): Remove.
536         (lib): Remove.
537         (stubs): Remove.
538         ($(objpfx)stubs ../po/manual.pot): Remove.
539         ($(objpfx)stamp%): Remove.
540         (make-target-directory): Remove.
541         (subdir_install): Remove.
542         (routines): Remove.
543         (aux): Remove.
544         (sources): Remove.
545         (objects): Remove.
546         (headers): Remove.
547
548         [BZ #13750]
549         * manual/.gitignore: Remove, it's not needed anymore.
550         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
551         all files in it.
552         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
553         directory.
554         (texis): Renamed to $(objpfx)texis.
555         (texis-path): New, contains path to generated files.
556         (chapters.%): Use texis-path for complete path, add extra argument
557         libc-texinfo.sh.
558         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
559         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
560         (summary,texi, stamp-summary): Use complete path of
561         files. Generate files in build dir.
562         (dir-add.texi): Build in build dir.
563         (libm-err.texi,stamp-libm-err): Likewise.
564         (version.texi, stamp-version): Likewise.
565         (.%c.texi): Likewise.
566         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
567         (mostlyclean): Remove target.
568         (realclean): Remove target.
569         (generated): Add new variable with contents from mostlyclean and
570         realclean, remove entries duplicated in common-mostlyclean, add
571         stamp-libm-err and stamp-version.
572         (generated-dirs): Add libc directory.
573         ($(inst_infodir)/libc.info): Install files from build dir.
574
575         * manual/install.texi (Configuring and compiling): Adjust since
576         the info files are not part of the tar ball anymore.
577
578 2012-05-14  Andreas Jaeger  <aj@suse.de>
579
580         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
581         variable.
582
583 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
584
585         [BZ #13717]
586         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
587         to 2.2.0 where earlier.
588         * sysdeps/unix/sysv/linux/configure: Regenerated.
589         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
590         Remove conditional code.
591         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
592         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
593         Remove conditional code.
594         [!__NR_lchown]: Likewise.
595         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
596         [__NR_lchown]: Likewise.
597         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
598         comment referencing __ASSUME_LCHOWN_SYSCALL.
599         * sysdeps/unix/sysv/linux/i386/sigaction.c
600         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
601         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
602         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
603         Remove conditional code.
604         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
605         (__protocol_available): Remove #if 0 code.
606         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
607         conditional code.
608         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
609         * sysdeps/unix/sysv/linux/kernel-features.h
610         (__ASSUME_GETCWD_SYSCALL): Don't define.
611         (__ASSUME_REALTIME_SIGNALS): Likewise.
612         (__ASSUME_PREAD_SYSCALL): Likewise.
613         (__ASSUME_PWRITE_SYSCALL): Likewise.
614         (__ASSUME_POLL_SYSCALL): Likewise.
615         (__ASSUME_LCHOWN_SYSCALL): Likewise.
616         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
617         non-SPARC.
618         (__ASSUME_SIOCGIFNAME): Don't define.
619         (__ASSUME_MSG_NOSIGNAL): Likewise.
620         (__ASSUME_SENDFILE): Define unconditionally.
621         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
622         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
623         conditional code.
624         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
625         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
626         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
627         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
628         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
629         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
630         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
632         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
633         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
635         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
636         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
638         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
639         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
641         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
642         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
644         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
645         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
647         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
648         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
650         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
651         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
653         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
654         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
655         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
656         Remove conditional code.
657         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
658         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
659         Remove conditional code.
660         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
661         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
662         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
663         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
664         Remove conditional code.
665         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
666         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
667         Remove conditional code.
668         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
669         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
670         Remove conditional code.
671         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
672         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
673         Remove conditional code.
674         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
675         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
676         Remove conditional code.
677         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
678         * sysdeps/unix/sysv/linux/sh/pwrite64.c
679         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
680         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
681         * sysdeps/unix/sysv/linux/sigaction.c
682         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
683         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
684         * sysdeps/unix/sysv/linux/sigpending.c
685         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
686         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
687         * sysdeps/unix/sysv/linux/sigprocmask.c
688         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
689         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
690         * sysdeps/unix/sysv/linux/sigsuspend.c
691         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
692         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
693         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
694         (__libc_missing_rt_sigs): Remove.
695         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
696         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
697         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
698         Remove conditional code.
699         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
700         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
701         return 1.
702         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
703         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
704         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
705         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
706
707 2012-05-14  Andreas Jaeger  <aj@suse.de>
708
709         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
710         it's not used in glibc.
711         (__coshm1): Likewise.
712         (__acosh1p): Likewise.
713         (__sgn): Likewise.
714
715         * manual/string.texi (Copying and Concatenation): Add missing
716         variable in concat example.
717         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
718
719 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
720
721         [BZ #14103]
722         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
723         __builtin_clzl with __builtin_clzll.
724
725 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
726
727         [BZ #14104]
728         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
729         libc_freeres_ptr.
730
731 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
732
733         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
734         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
735         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
736         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
737
738 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
739
740         * NEWS: Update ia64 info.
741
742 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
743
744         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
745         used as bcopy.
746
747 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
748
749         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
750         * sysdeps/unix/syscalls.list (dup3): Likewise.
751         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
752         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
753
754 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
755
756         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
757         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
758
759 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
760
761         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
762         thread pointer.
763         (TLS_IE): Use mov/add instead of movq/addq to load thread
764         pointer.
765         (TLS_GD_PREFIX): New.
766         (TLS_GD): Use it.
767
768 2012-05-11  David S. Miller  <davem@davemloft.net>
769
770         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
771         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
772         (_FPU_SETCW): Likewise.
773
774 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
775
776         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
777         is 32-byte aligned.
778
779 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
780
781         [BZ #11837]
782         * iconvdata/gb18030.c: Update tables.
783         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
784         characters specially.
785         (BODY for TO_LOOP): Add encoding of missing ranges.
786
787 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
788
789         [BZ #13673]
790         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
791         * sysdeps/mach/hurd/dup3.c: Likewise.
792         * sysdeps/mach/hurd/readlinkat.c: Likewise.
793         * sysdeps/powerpc/memmove.c:: Likewise.
794
795 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
796
797         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
798         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
799
800 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
801
802         * elf/elf.h (R_X86_64_RELATIVE64): New.
803         (R_X86_64_NUM): Updated.
804         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
805         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
806         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
807         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
808         tst-quad1pie tst-quad2pie
809         (modules-names): Add tst-quadmod1 tst-quadmod2.
810         ($(objpfx)tst-quad1): New dependency.
811         ($(objpfx)tst-quad2): Likewise.
812         ($(objpfx)tst-quad1pie): Likewise.
813         ($(objpfx)tst-quad2pie): Likewise.
814         * sysdeps/x86_64/tst-quad1.c: New file.
815         * sysdeps/x86_64/tst-quad1pie.c: New file.
816         * sysdeps/x86_64/tst-quad2.c: Likewise.
817         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
818         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
819         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
820         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
821         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
822
823 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
824
825         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
826         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
827         * streams/stropts.h (t_scalar_t): Define type.
828
829         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
830         (_PATH_PRESERVE): Set to "/var/lib".
831         (_PATH_RWHODIR): Set to "/var/spool/rwho".
832
833         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
834         instead of int.
835
836         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
837         if __dir_mkfile succeeded.
838
839         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
840         checking for _hurd_dtablesize.  Unlock it right after having
841         finished _hurd_dtable allocation.
842
843 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
844
845         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
846         * sysdeps/mach/hurd/configure: Regenerated.
847         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
848         special-casing to...
849         * sysdeps/gnu/configure.in: ... this new file.
850         * sysdeps/unix/sysv/linux/configure: Regenerated.
851         * sysdeps/gnu/configure: New generated file.
852
853         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
854         for Linux: use nsec instead of usec, as well as:
855         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
856         members of type struct timespec.
857         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
858         New macros.
859         (struct stat64): Likewise.
860         (_STATBUF_ST_NSEC): New macro.
861         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
862
863         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
864         __strtoul_internal rather than strtoul.
865
866 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
867
868         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
869         and reject them.
870
871 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
872
873         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
874         which preserves existing values.
875         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
876
877 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
878
879         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
880         TIMEOUT values.  Return EINVAL for NFDS values either negative or
881         greater than FD_SETSIZE.
882
883 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
884
885         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
886         allocated, call __vm_protect to finish enabling the existing space, and
887         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
888         allocate the remainder.
889
890 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
891
892         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
893         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
894
895 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
896
897         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
898         sysdeps/mach/hurd/readlink.c.
899
900         * posix/tst-sysconf.c (posix_options): Only use
901         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
902         _POSIX_SYNCHRONIZED_IO when they are defined
903         * sysdeps/mach/hurd/bits/posix_opt.h:
904         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
905         (_XOPEN_REALTIME): Undefine macro.
906         (_XOPEN_REALTIME_THREADS): Undefine macro.
907         (_XOPEN_SHM): Undefine macro.
908         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
909         macro to -1.
910         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
911         macro to -1.
912         (_POSIX_ASYNC_IO): Undefine macro.
913         (_POSIX_PRIORITIZED_IO): Undefine macro.
914         (_POSIX_SPIN_LOCKS): Define macro to -1.
915
916         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
917         SA_NODEFER, SA_RESETHAND.
918         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
919         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
920         F_DUPFD_CLOEXEC.
921
922 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
923
924         * elf/Makefile (pldd-modules): Define unconditionally.
925
926 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
927
928         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
929
930 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
931
932         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
933         Return ENOENT when name is empty.
934         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
935
936 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
937
938         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
939
940         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
941
942 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
943
944         Fix mlock in all cases except non-readable pages.
945         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
946         instead of VM_PROT_ALL as parameter to __vm_wire function.
947
948         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
949         (__mkdir): When path is `/', just fail with EEXIST.
950         * sysdeps/mach/hurd/mkdirat.c: Likewise.
951
952 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
953
954         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
955         <sys/uio.h> (for writev).
956         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
957         and <sys/param.h> (for MIN).
958
959 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
960
961         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
962         REQUESTED_TIME.  Properly set the remaining time and return EINTR
963         if interrupted.
964
965 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
966
967         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
968         Depend on against $(link-rpcuserlibs).
969
970 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
971
972         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
973         (__libc_stack_end): Do not use attribute_relro.
974         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
975         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
976         to libthread-provided value.
977         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
978         attribute_relro.
979
980 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
981
982         [BZ #3748]
983         * bits/libc-lock.h (__libc_once_get): New macro.
984         * sysdeps/mach/bits/libc-lock.h: Likewise.
985         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
986         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
987         instead of using implementation details.
988
989         * libio/fileops.c: Unconditionally include <kernel-features.h>.
990         * libio/freopen.c: Likewise.
991         * libio/freopen64.c: Likewise.
992         * misc/syslog.c: Likewise.
993         * nscd/connections.c: Likewise.
994         * nscd/netgroupcache.c: Likewise.
995         * sysdeps/posix/getcwd.c: Likewise.
996
997 2012-05-10  Roland McGrath  <roland@hack.frob.com>
998
999         * math/w_ilogbf.c: Add #include <limits.h>.
1000
1001 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1002
1003         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1004         path instead of returning without unlocking.
1005
1006         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1007         immediate-write ioctls.
1008         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1009
1010 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1011
1012         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1013         __builtin_frame_address instead of making assumptions about the
1014         location of the return address relative to DATA.  Force early load of
1015         the return address.
1016         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1017         __builtin_frame_address.
1018
1019         dup3 for GNU Hurd.
1020         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1021         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1022         implement dup3 and do some further code clean-ups.
1023         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1024         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1025
1026 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1027
1028         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1029
1030         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1031         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1032         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1033         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1034         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1035         d->port.lock.
1036
1037         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1038         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1039         when handler == SIG_ERR, not when handler != SIG_ERR.
1040
1041 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1042
1043         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1044         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1045         definitions.
1046
1047         accept4 for GNU Hurd.
1048         * include/sys/socket.h (__libc_accept4): New prototype.
1049         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1050         to implement __libc_accept4.
1051         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1052         __libc_accept4.
1053         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1054
1055         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1056         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1057         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1058         signal-defines.sym.
1059
1060 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1061
1062         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1063
1064 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1065
1066         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1067         assertion on O_CLOEXEC flag.
1068         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1069         * hurd/intern-fd.c: Likewise.
1070         * hurd/port2fd.c: Likewise.
1071
1072 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1073
1074         [BZ #3906]
1075         * bits/in.h (IPV6_PKTINFO): Define new macro.
1076         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
1077
1078 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1079
1080         [BZ #13954]
1081         [BZ #13955]
1082         [BZ #13956]
1083         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
1084         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
1085         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
1086         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
1087         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1088         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
1089         * math/libm-test.inc (logb_test) : Additional logb tests.
1090
1091 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
1092             Andreas Jaeger  <aj@suse.de>
1093
1094         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1095         * configure: Regenerated.
1096         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1097         * config.make.in (link-obsolete-rpc): New substituted variable.
1098         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1099         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1100         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1101         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1102         so that libc.a contains the symbols.
1103         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1104         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1105         * sunrpc/auth_none.c: Likewise.
1106         * sunrpc/auth_unix.c: Likewise.
1107         * sunrpc/authdes_prot.c: Likewise.
1108         * sunrpc/authuxprot.c: Likewise.
1109         * sunrpc/clnt_gen.c: Likewise.
1110         * sunrpc/clnt_perr.c: Likewise.
1111         * sunrpc/clnt_raw.c: Likewise.
1112         * sunrpc/clnt_simp.c: Likewise.
1113         * sunrpc/clnt_tcp.c: Likewise.
1114         * sunrpc/clnt_udp.c: Likewise.
1115         * sunrpc/clnt_unix.c: Likewise.
1116         * sunrpc/des_crypt.c: Likewise.
1117         * sunrpc/des_soft.c: Likewise.
1118         * sunrpc/get_myaddr.c: Likewise.
1119         * sunrpc/key_call.c: Likewise.
1120         * sunrpc/key_prot.c: Likewise.
1121         * sunrpc/netname.c: Likewise.
1122         * sunrpc/pm_getmaps.c: Likewise.
1123         * sunrpc/pm_getport.c: Likewise.
1124         * sunrpc/pmap_clnt.c: Likewise.
1125         * sunrpc/pmap_prot.c: Likewise.
1126         * sunrpc/pmap_prot2.c: Likewise.
1127         * sunrpc/pmap_rmt.c: Likewise.
1128         * sunrpc/publickey.c: Likewise.
1129         * sunrpc/rpc_cmsg.c: Likewise.
1130         * sunrpc/rpc_common.c: Likewise.
1131         * sunrpc/rpc_dtable.c: Likewise.
1132         * sunrpc/rpc_prot.c: Likewise.
1133         * sunrpc/rpc_thread.c: Likewise.
1134         * sunrpc/rtime.c: Likewise.
1135         * sunrpc/svc.c: Likewise.
1136         * sunrpc/svc_auth.c: Likewise.
1137         * sunrpc/svc_raw.c: Likewise.
1138         * sunrpc/svc_run.c: Likewise.
1139         * sunrpc/svc_tcp.c: Likewise.
1140         * sunrpc/svc_udp.c: Likewise.
1141         * sunrpc/svc_unix.c: Likewise.
1142         * sunrpc/svcauth_des.c: Likewise.
1143         * sunrpc/xcrypt.c: Likewise.
1144         * sunrpc/xdr.c: Likewise.
1145         * sunrpc/xdr_array.c: Likewise.
1146         * sunrpc/xdr_float.c: Likewise.
1147         * sunrpc/xdr_intXX_t.c: Likewise.
1148         * sunrpc/xdr_mem.c: Likewise.
1149         * sunrpc/xdr_rec.c: Likewise.
1150         * sunrpc/xdr_ref.c: Likewise.
1151         * sunrpc/xdr_sizeof.c: Likewise.
1152         * sunrpc/xdr_stdio.c: Likewise.
1153
1154 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1155
1156         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1157         change.  Update copyright years.
1158
1159 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1160
1161         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1162
1163 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1164             Joseph Myers  <joseph@codesourcery.com>
1165             Paul Pluzhnikov  <ppluzhnikov@google.com>
1166
1167         [BZ #14012]
1168         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1169         requiring rpcgen.
1170         [cross-compiling] (extra-libs): Likewise.
1171         [cross-compiling] (extra-libs-others): Likewise.
1172         [cross-compiling] (librpcsvc-routines): Likewise.
1173         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1174         [cross-compiling] (omit-deps): Likewise.
1175         (sunrpc-CPPFLAGS): New variable.
1176         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1177         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1178         (cross-rpcgen-objs): New variable.
1179         (extra-objs): Append $(cross-rpcgen-objs).
1180         ($(cross-rpcgen-objs)): New rule.
1181         ($(objpfx)cross-rpcgen): Likewise.
1182         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1183         comment.
1184         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1185         ($(objpfx)x%.stmp): Likewise.
1186         * sunrpc/proto.h [IS_IN_build] (_): Define.
1187         [IS_IN_build] (_libc_intl_domainname): Likewise.
1188
1189 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1190
1191         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1192         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1193         and R_X86_64_TPOFF64.
1194
1195 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1196
1197         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1198         sysdeps/unix/sysv/syscalls.list.
1199         (stime): Likewise.
1200         (utime): Likewise.
1201         * sysdeps/unix/sysv/syscalls.list: Remove file.
1202
1203 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         [BZ #3440]
1206         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1207         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1208         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1209         (__LC_IDENTIFICATION): Make these macros useful in #if
1210         expressions, as required by C99.
1211
1212 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1213
1214         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1215         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1216         after this.
1217
1218 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1219
1220         * stdlib/longlong.h: Updated from GCC.
1221
1222 2012-05-09  Andreas Jaeger  <aj@suse.de>
1223
1224         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1225         default is first entry.
1226         (run_mode): Set type.
1227         (main): Remove informal message about syslog.
1228         (options): Fix typo.
1229
1230         [BZ #14053]
1231         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1232         to asm.
1233         (lrint): Likewise.
1234         (llrintf): Likewise.
1235         (llrint): Likewise.
1236         (rint): Likewise.
1237         (rintf): Likewise.
1238         (nearbyint): Likewise.
1239         (nearbyintf): Likewise.
1240
1241 2012-05-09  Andreas Jaeger  <aj@suse.de>
1242             Pedro Alves  <palves@redhat.com>
1243
1244         * nscd/nscd.c (run_mode): Use enum.
1245         (main): Cleanup coding style issue.
1246
1247 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1248             Andreas Jaeger  <aj@suse.de>
1249
1250         * nscd/nscd.c (go_background): Replaced with...
1251         (run_mode): ... this.
1252         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1253         (options): Add -F --foreground.
1254         (main): Implement it.
1255         (parse_opt): Parse it.
1256
1257 2012-05-09  Andreas Jaeger  <aj@suse.de>
1258
1259         [BZ #14083]
1260         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1261         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1262         -Wconversion warning.
1263         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1264         Likewise.
1265
1266 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1267
1268         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1269         == 0.
1270         (LC_ALL): Use macro-int-constant.
1271         (LC_COLLATE): Likewise.
1272         (LC_CTYPE): Likewise.
1273         (LC_MESSAGES): Likewise.
1274         (LC_MONETARY): Likewise.
1275         (LC_NUMERIC): Likewise.
1276         (LC_TIME): Likewise.
1277         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1278         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1279         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1280         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1281         Specify type.
1282         [C99-based standards] (float_t): Expect type.
1283         [C99-based standards] (double_t): Expect type.
1284         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1285         type.
1286         [C99-based standards] (HUGE_VALL): Likewise.
1287         [C99-based standards] (INFINITY): Likewise.
1288         [C99-based standards] (NAN): Likewise.
1289         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1290         [C99-based standards] (FP_NAN): Likewise.
1291         [C99-based standards] (FP_NORMAL): Likewise.
1292         [C99-based standards] (FP_SUBNORMAL): Likewise.
1293         [C99-based standards] (FP_ZERO): Likewise.
1294         [C99-based standards] (FP_FAST_FMA): Use
1295         optional-macro-int-constant.  Specify type.  Require == 1.
1296         [C99-based standards] (FP_FAST_FMAF): Likewise.
1297         [C99-based standards] (FP_FAST_FMAL): Likewise.
1298         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1299         [C99-based standards] (FP_ILOGBNAN): Likewise.
1300         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1301         Specify type.
1302         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1303         [C99-based standards] (math_errhandling): Specify type.
1304         [ISO99 || ISO11] (signgam): Do not allow.
1305         [non-C99-based standards] (copysignf): Do not allow.
1306         [non-C99-based standards] (exp2f): Likewise.
1307         [non-C99-based standards] (log2f): Likewise.
1308         [non-C99-based standards] (modff): Allow.
1309         [non-C99-based standards] (erff): Do not allow.
1310         [non-C99-based standards] (erfcf): Likewise.
1311         [non-C99-based standards] (gammaf): Likewise.
1312         [non-C99-based standards] (hypotf): Likewise.
1313         [non-C99-based standards] (j0f): Likewise.
1314         [non-C99-based standards] (j1f): Likewise.
1315         [non-C99-based standards] (jnf): Likewise.
1316         [non-C99-based standards] (lgammaf): Likewise.
1317         [non-C99-based standards] (tgammaf): Likewise.
1318         [non-C99-based standards] (y0f): Likewise.
1319         [non-C99-based standards] (y1f): Likewise.
1320         [non-C99-based standards] (ynf): Likewise.
1321         [non-C99-based standards] (isnanf): Likewise.
1322         [non-C99-based standards] (acoshf): Likewise.
1323         [non-C99-based standards] (asinhf): Likewise.
1324         [non-C99-based standards] (atanhf): Likewise.
1325         [non-C99-based standards] (cbrtf): Likewise.
1326         [non-C99-based standards] (expm1f): Likewise.
1327         [non-C99-based standards] (ilogbf): Likewise.
1328         [non-C99-based standards] (log1pf): Likewise.
1329         [non-C99-based standards] (logbf): Likewise.
1330         [non-C99-based standards] (nextafterf): Likewise.
1331         [non-C99-based standards] (remainderf): Likewise.
1332         [non-C99-based standards] (rintf): Likewise.
1333         [non-C99-based standards] (scalbf): Likewise.
1334         [non-C99-based standards] (copysignl): Likewise.
1335         [non-C99-based standards] (exp2l): Likewise.
1336         [non-C99-based standards] (log2l): Likewise.
1337         [non-C99-based standards] (modfl): Allow.
1338         [non-C99-based standards] (erfl): Do not allow.
1339         [non-C99-based standards] (erfcl): Likewise.
1340         [non-C99-based standards] (gammal): Likewise.
1341         [non-C99-based standards] (hypotl): Likewise.
1342         [non-C99-based standards] (j0l): Likewise.
1343         [non-C99-based standards] (j1l): Likewise.
1344         [non-C99-based standards] (jnl): Likewise.
1345         [non-C99-based standards] (lgammal): Likewise.
1346         [non-C99-based standards] (tgammal): Likewise.
1347         [non-C99-based standards] (y0l): Likewise.
1348         [non-C99-based standards] (y1l): Likewise.
1349         [non-C99-based standards] (ynl): Likewise.
1350         [non-C99-based standards] (isnanl): Likewise.
1351         [non-C99-based standards] (acoshl): Likewise.
1352         [non-C99-based standards] (asinhl): Likewise.
1353         [non-C99-based standards] (atanhl): Likewise.
1354         [non-C99-based standards] (cbrtl): Likewise.
1355         [non-C99-based standards] (expm1l): Likewise.
1356         [non-C99-based standards] (ilogbl): Likewise.
1357         [non-C99-based standards] (log1pl): Likewise.
1358         [non-C99-based standards] (logbl): Likewise.
1359         [non-C99-based standards] (nextafterl): Likewise.
1360         [non-C99-based standards] (remainderl): Likewise.
1361         [non-C99-based standards] (rintl): Likewise.
1362         [non-C99-based standards] (scalbl): Likewise.
1363         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1364         [non-C99-based standards] (FP_*): Do not allow.
1365         [C99-based standards] (FP_*): Change to
1366         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1367         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1368         allow.
1369         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1370         (SIG_ERR): Likewise.
1371         [X/Open-based standards] (SIG_HOLD): Likewise.
1372         (SIG_IGN): Likewise.
1373         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1374         positive value.
1375         (SIGFPE): Likewise.
1376         (SIGILL): Likewise.
1377         (SIGINT): Likewise.
1378         (SIGSEGV): Likewise.
1379         (SIGTER): Likewise.
1380         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1381         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1382         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1383         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1384         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1385         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1386         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1387         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1388         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1389         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1390         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1391         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1392         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1393         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1394         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1395         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1396         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1397         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1398         [X/Open-based standards] (SIGTRAP): Likewise.
1399         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1400         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1401         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1402         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1403         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1404         allow.
1405
1406 2012-05-08  Ian Wienand  <ianw@vmware.com>
1407
1408         [BZ #14080]
1409         * time/tzset.c (__tzset_parse_tz): Update default rules for
1410         daylight time changes in the Energy Policy Act of 2005.
1411
1412 2012-05-09  Andreas Jaeger  <aj@suse.de>
1413
1414         [BZ #13983]
1415         * elf/ldconfig.c (parse_conf): Change string to make clear that
1416         ldconfig only issued a warning if ld.so.conf does not exist.
1417
1418 2012-05-08  David S. Miller  <davem@davemloft.net>
1419
1420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1421         movxtod instead of popping the value on the stack.
1422
1423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1424
1425 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1426
1427         * config.h.in: Add HAVE_ARM_PCS_VFP.
1428
1429 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1430
1431         [BZ #13979]
1432         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1433         checking but the checks are disabled for any reason.
1434
1435 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1436
1437         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1438         and ELF64_R_TYPE with ELFW(R_TYPE).
1439
1440 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1441
1442         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1443         (ulimit): Likewise.
1444
1445         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1446         (settimeofday): Likewise.
1447
1448 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1449
1450         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1451         a struct th_u2 inside the union, and move tu_block/tu_code into
1452         a new th_u3 union of tu_block/tu_code inside of that.  Move
1453         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1454         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1455         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1456         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1457         (th_stuff): Change to th_u1.tu_stuff.
1458         (th_data): Define.
1459         (th_msg): Change to th_u1.th_u2.tu_data.
1460
1461 2012-05-07  David S. Miller  <davem@davemloft.net>
1462
1463         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1464
1465         [BZ #14074]
1466         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
1467         (SETUP_PIC_REG): Use it.
1468         (SETUP_PIC_REG_LEAF): Use it.
1469
1470 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
1471
1472         [BZ #13885]
1473         [BZ #13923]
1474         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1475         USE_AS_EXPM1L.
1476         (EXPL_FINITE): Likewise.
1477         (FLDLOG): Likewise.
1478         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1479         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1480         e_expl.S.
1481         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1482         USE_AS_EXPM1L.
1483         (EXPL_FINITE): Likewise.
1484         (FLDLOG): Likewise.
1485         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1486         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1487         e_expl.S.
1488         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
1489         test of -max_value argument for long double.
1490         * sysdeps/i386/fpu/libm-test-ulps: Update.
1491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1492
1493 2012-05-06  David S. Miller  <davem@davemloft.net>
1494
1495         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
1496         quad soft-float symbols whose references which are compiler
1497         generated.
1498         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1499
1500 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
1501
1502         [BZ #13884]
1503         [BZ #13914]
1504         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1505         USE_AS_EXP10L.
1506         (EXPL_FINITE): Likewise.
1507         (FLDLOG): Likewise.
1508         (c0): Likewise.
1509         (c1): Likewise.
1510         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1511         Adjust comments for base varying.
1512         (__expl_finite): Change alias to EXPL_FINITE.
1513         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
1514         e_expl.S.
1515         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
1516         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1517         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1518         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
1519         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1520         USE_AS_EXP10L.
1521         (EXPL_FINITE): Likewise.
1522         (FLDLOG): Likewise.
1523         (c0): Likewise.
1524         (c1): Likewise.
1525         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1526         Adjust comments for base varying.
1527         (__expl_finite): Change alias to EXPL_FINITE.
1528         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
1529         tests for bugs.
1530         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1531
1532         [BZ #14064]
1533         * math/libm-test.inc (check_float_internal): Correct ulp
1534         calculation for subnormal expected results.
1535
1536 2012-05-06  Andreas Jaeger  <aj@suse.de>
1537
1538         * Makeconfig (+math-flags): New, set to -frounding-math.
1539         (+cflags): Add +math-flags so that all of glibc gets compiled with
1540         it.
1541
1542         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
1543
1544 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
1545
1546         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
1547         Disable one test.
1548
1549         [BZ #13787]
1550         [BZ #13922]
1551         [BZ #14036]
1552         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
1553         (__ieee754_expl): Allow for and saturate large arguments.
1554         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
1555         (u_threshold): Likewise.
1556         (__exp): Call __ieee754_exp before checking for overflow and
1557         underflow.
1558         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
1559         (u_threshold): Likewise.
1560         (__expf): Call __ieee754_expf before checking for overflow and
1561         underflow.
1562         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
1563         (u_threshold): Likewise.
1564         (__expl): Call __ieee754_expl before checking for overflow and
1565         underflow.
1566         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
1567         (__ieee754_expl): Allow for and saturate large arguments.
1568         * math/libm-test.inc (exp_test): Add another test.  Do not allow
1569         missing overflow exception on overflow.
1570         (expm1_test): Do not allow missing overflow exception on overflow.
1571
1572         * sysdeps/i386/fpu/e_expl.c: Move to ...
1573         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
1574         rather than using inline asm.
1575         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
1576         * sysdeps/x86_64/fpu/e_expl.S: Copy from
1577         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
1578
1579         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
1580         (nice): Likewise.
1581         (poll): Likewise.
1582         (signal): Likewise.
1583         (time): Likewise.
1584         (times): Likewise.
1585
1586 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1587
1588         * sysdeps/unix/syscalls.list (adjtime): Add entry from
1589         sysdeps/unix/common/syscalls.list.
1590         (fchmod): Likewise.
1591         (fchown): Likewise.
1592         (ftruncate): Likewise.
1593         (getrusage): Likewise.
1594         (gettimeofday): Likewise.
1595         (setpgid): Likewise.
1596         (setregid): Likewise.
1597         (setreuid): Likewise.
1598         (sigaction): Likewise.
1599         (truncate): Likewise.
1600         (vhangup): Likewise.
1601         * sysdeps/unix/common/syscalls.list: Remove file.
1602         * sysdeps/unix/bsd/Implies: Don't include unix/common.
1603         * sysdeps/unix/sysv/linux/Implies: Likewise.
1604
1605 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1606
1607         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
1608         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
1609         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
1610         Moved to ...
1611         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1612         Here.
1613         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
1614         to ...
1615         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
1616         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
1617         to ...
1618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
1619         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
1620         to ...
1621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
1622         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
1623         to ...
1624         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
1625         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
1626         to ...
1627         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
1628         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
1629         to ...
1630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
1631         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
1632         to ...
1633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
1634         Here.
1635         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
1636         to ...
1637         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
1638         Here.
1639         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
1640         to ...
1641         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
1642         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
1643         Moved to ...
1644         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
1645         Here.
1646         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
1647         to ...
1648         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
1649
1650 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1651
1652         * sysdeps/unix/common/bits/dirent.h: Remove file.
1653         * sysdeps/unix/common/bits/fcntl.h: Likewise.
1654
1655         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
1656         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
1657         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
1658         * sysdeps/unix/bsd/isatty.c: Likewise.
1659         * sysdeps/unix/bsd/tcdrain.c: Likewise.
1660         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
1661         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
1662
1663 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1664
1665         [BZ #13563]
1666         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
1667         long double comparison inaccuracies.
1668         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
1669         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1670
1671 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
1672
1673         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
1674         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
1675
1676 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1677
1678         [BZ #14049]
1679         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
1680         nonzero digits before rounding a hex value.
1681         * stdlib/tst-strtod.c (tests): Add another test.
1682
1683 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1684
1685         * sysdeps/s390/fpu/libm-test-ulps: Update.
1686
1687 2012-05-03  Andreas Jaeger  <aj@suse.de>
1688
1689         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
1690         does not get optimized out.
1691         (malloc_opt_barrier): New.
1692
1693 2012-05-03  Andreas Jaeger  <aj@suse.de>
1694             Roland McGrath  <roland@hack.frob.com>
1695
1696         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
1697         intermediate file deletion.
1698         (generated): Add .symlist files.
1699
1700 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
1701
1702         [BZ #13775]
1703         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
1704         Redirect under this condition.
1705         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
1706         [__USE_GNU] (__dprintf_chk): Not under this condition.
1707         [__USE_GNU] (__vdprintf_chk): Likewise.
1708         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
1709         under this condition.
1710         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
1711         [__USE_XOPEN2K8] (dprintf): Define under this condition.
1712         [__USE_XOPEN2K8] (vdprintf): Likewise.
1713         [__USE_GNU] (__dprintf_chk): Not under this condition.
1714         [__USE_GNU] (__vdprintf_chk): Likewise.
1715         [__USE_GNU] (dprintf): Likewise.
1716         [__USE_GNU] (vdprintf): Likewise.
1717
1718 2012-05-03  Roland McGrath  <roland@hack.frob.com>
1719
1720         * elf/Makefile (common-generated): Set this instead of generated for
1721         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
1722         $(all-built-dso)-derived lists.
1723
1724 2012-05-03  Andreas Jaeger  <aj@suse.de>
1725
1726         * sysdeps/i386/fpu/libm-test-ulps: Update.
1727
1728         * FAQ: Removed.
1729         * FAQ.in: Likewise.
1730         * scripts/gen-FAQ.pl: Likewise.
1731         * manual/install.texi (Installation): Point to online location of
1732         FAQ.
1733         * Makefile (files-for-dist): Remove FAQ.
1734         (FAQ): Remove.
1735
1736 2012-05-02  Allan McRae  <allan@archlinux.org>
1737
1738         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
1739         (LDFLAGS-reldepmod5.so): Likewise.
1740         (LDFLAGS-reldep6mod1.so): Likewise.
1741         (LDFLAGS-reldep6mod4.so): Likewise.
1742         (LDFLAGS-reldep8mod3.so): Likewise.
1743         (LDFLAGS-unload4mod1.so): Likewise.
1744         (LDFLAGS-unload4mod2.so): Likewise.
1745         (LDFLAGS-tst-initorder): Likewise.
1746         (LDFLAGS-tst-initordera2.so): Likewise.
1747         (LDFLAGS-tst-initordera3.so): Likewise.
1748         (LDFLAGS-tst-initordera4.so): Likewise.
1749         (LDFLAGS-tst-initorderb2.so): Likewise.
1750         (LDFLAGS-noload): Likewise.
1751         (LDFLAGS-next): Likewise.
1752         (LDFLAGS-order2mod1.so): Likewise.
1753         (LDFLAGS-order2mod2.so): Likewise.
1754         (LDFLAGS-tst-initorder2): Likewise.
1755         (LDFLAGS-tst-initorder2a.so): Likewise.
1756         (LDFLAGS-tst-initorder2b.so): Likewise.
1757         (LDFLAGS-tst-initorder2c.so): Likewise.
1758         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
1759
1760 2012-05-02  David S. Miller  <davem@davemloft.net>
1761
1762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1763
1764 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
1765
1766         [BZ #14055]
1767         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
1768
1769 2012-05-02  Andreas Jaeger  <aj@suse.de>
1770
1771         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
1772         since we manipulate rounding mode.
1773         (CPPFLAGS-test-idouble.c): Likewise.
1774         (CPPFLAGS-test-ifloat.c): Likewise.
1775         (CFLAGS-test-ldouble.c): Likewise.
1776         (CFLAGS-test-double.c): Likewise.
1777         (CFLAGS-test-float.c): Likewise.
1778         (CFLAGS-test-misc.c): Likewise.
1779         (CFLAGS-test-test-fenv.c): Likewise.
1780
1781 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1782
1783         [BZ #2550]
1784         [BZ #2570]
1785         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
1786         comparisons to determine direction to adjust input.
1787
1788 2012-05-01  Roland McGrath  <roland@hack.frob.com>
1789
1790         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
1791         output to the target.
1792
1793         * scripts/localplt.awk: New file.
1794         * elf/Makefile ($(objpfx)check-localplt): Target removed.
1795         (check-localplt-CFLAGS): Variable removed.
1796         ($(all-built-dso:=.jmprel)): New static pattern rule.
1797         (generated): Add those targets.
1798         (localplt-built-dso): New variable.
1799         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
1800
1801         * elf/check-localplt.c: File removed.
1802
1803         * scripts/check-execstack.awk: New file.
1804         * elf/Makefile ($(objpfx)check-execstack): Target removed.
1805         (check-execstack-CFLAGS): Variable removed.
1806         ($(objpfx)check-execstack.h): Target removed.
1807         ($(objpfx)execstack-default): New target.
1808         (generated): Add that instead of check-execstack.h.
1809         ($(all-built-dso:=.phdr)): New static pattern rule.
1810         (generated): Add those targets.
1811         * elf/check-execstack.c: File removed.
1812
1813         * scripts/check-textrel.awk: New file.
1814         * elf/Makefile ($(objpfx)check-textrel): Target removed.
1815         (check-textrel-CFLAGS): Variable removed.
1816         (all-built-dso): Use := to define.o
1817         ($(all-built-dso:=.dyn)): New static pattern rule.
1818         (generated): Add those targets.
1819         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
1820         * config.make.in (READELF): New substituted variable.
1821         * elf/check-textrel.c: File removed.
1822
1823 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
1824
1825         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1826         allow.
1827         * conform/data/ctype.h-data [C99-based standards] (isblank):
1828         Expect function.
1829         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
1830         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
1831         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1832         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
1833         Specify type.  Require positive value.
1834         (EILSEQ): Likewise.
1835         (ERANGE): Likewise.
1836         [ISO || POSIX] (EILSEQ): Do not expect.
1837         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
1838         Specify type.  Require positive value.
1839         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
1840         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
1841         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
1842         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
1843         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
1844         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
1845         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
1846         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
1847         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
1848         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
1849         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
1850         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
1851         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
1852         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
1853         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
1854         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
1855         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
1856         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
1857         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
1858         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
1859         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
1860         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
1861         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
1862         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
1863         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
1864         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
1865         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
1866         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
1867         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
1868         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
1869         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
1870         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
1871         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
1872         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
1873         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
1874         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
1875         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
1876         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
1877         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
1878         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
1879         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
1880         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
1881         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
1882         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
1883         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
1884         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
1885         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
1886         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
1887         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
1888         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
1889         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
1890         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
1891         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
1892         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
1893         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
1894         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
1895         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
1896         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
1897         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
1898         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
1899         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
1900         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
1901         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
1902         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
1903         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
1904         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
1905         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
1906         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
1907         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
1908         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
1909         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
1910         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
1911         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
1912         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
1913         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
1914         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
1915         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
1916         Require >= 2.
1917         (FLT_ROUNDS): Expect as macro, not constant.
1918         (FLT_MANT_DIG): Use macro-int-constant.
1919         (DBL_MANT_DIG): Likewise.
1920         (LDBL_MANT_DIG): Likewise.
1921         (FLT_DIG): Likewise.
1922         (DBL_DIG): Likewise.
1923         (LDBL_DIG): Likewise.
1924         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
1925         (DBL_MIN_EXP): Likewise.
1926         (LDBL_MIN_EXP): Likewise.
1927         (FLT_MAX_EXP): Use macro-int-constant.
1928         (DBL_MAX_EXP): Likewise.
1929         (LDBL_MAX_EXP): Likewise.
1930         (FLT_MAX_10_EXP): Likewise.
1931         (DBL_MAX_10_EXP): Likewise.
1932         (LDBL_MAX_10_EXP): Likewise.
1933         (FLT_MAX): Use macro-constant.
1934         (DBL_MAX): Likewise.
1935         (LDBL_MAX): Likewise.
1936         (FLT_EPSILON): Use macro-constant.  Give upper bound.
1937         (DBL_EPSILON): Likewise.
1938         (LDBL_EPSILON): Likewise.
1939         (FLT_MIN): Likewise.
1940         (DBL_MIN): Likewise.
1941         (LDBL_MIN): Likewise.
1942         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
1943         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
1944         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
1945         [ISO11] (FLT_HAS_SUBNORM): Likewise.
1946         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
1947         [ISO11] (DBL_DECIMAL_DIG): Likewise.
1948         [ISO11] (FLT_DECIMAL_DIG): Likewise.
1949         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
1950         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
1951         [ISO11] (FLT_TRUE_MIN): Likewise.
1952         [ISO11] (LDBL_TRUE_MIN): Likewise.
1953         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1954         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
1955         (SCHAR_MIN): Use macro-int-constant.  Specify type.
1956         (SCHAR_MAX): Likewise.
1957         (UCHAR_MAX): Likewise.
1958         (CHAR_MIN): Likewise.
1959         (CHAR_MAX): Likewise.
1960         (MB_LEN_MAX): Use macro-int-constant.
1961         (SHRT_MIN): Use macro-int-constant.  Specify type.
1962         (SHRT_MAX): Likewise.
1963         (USHRT_MAX): Likewise.
1964         (INT_MAX): Likewise.
1965         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
1966         bound negative.
1967         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1968         bound with "U".
1969         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1970         bound with "L".
1971         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
1972         bound negative.  Suffix upper bound with "L".
1973         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1974         bound with "UL".
1975         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
1976         Specify type.
1977         [C99-based standards] (LLONG_MAX): Likewise.
1978         [C99-based standards] (ULLONG_MAX): Likewise.
1979         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
1980         == 0.
1981         [ISO11] (max_align_t): Require type.
1982         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1983
1984         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
1985         from $CFLAGS, without defining away __attribute__ calls.
1986         (checknamespace): Use $CFLAGS_namespace.
1987
1988         * conform/conformtest.pl (@keywords): Only include C99 keywords
1989         for standards based on C99 or C11.
1990
1991         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
1992         Disable tests.
1993         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
1994         UNIX98]: Likewise.
1995
1996         * conform/conformtest.pl: Handle "macro-int-constant" and test for
1997         usability of symbols in #if.
1998
1999         * conform/conformtest.pl: If macro or constant types start
2000         "promoted:", expect the symbol to be of the following type
2001         promoted by the integer promotions.
2002
2003         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2004         in one place.  Also handle "macro-constant".
2005
2006         * conform/conformtest.pl: Only accept expected macro values with
2007         "==".  Parse all "macro" lines in one place.
2008         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2009
2010         * conform/conformtest.pl: Handle braced types on "constant" lines
2011         instead of handling "typed-constant".
2012         * conform/data/signal.h-data: Use "constant" instead of
2013         "typed-constant".
2014
2015         * conform/conformtest.pl: Handle "optional-" at start of lines in
2016         one place rather than duplicating several cases.  Handle each
2017         format of "macro" line with initial "optional-".
2018
2019         * conform/conformtest.pl: Only accept expected constant or
2020         optional-constant values with "==".  Parse all "constant" lines in
2021         one place.  Parse all "optional-constant" lines in one place.
2022         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2023         * conform/data/fmtmsg.h-data: Likewise.
2024         * conform/data/netinet/in.h-data: Likewise.
2025         * conform/data/tar.h-data: Likewise.
2026         * conform/data/limits.h-data: Use "==" form on "constant" and
2027         "optional-constant" lines.
2028
2029         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2030         Use -std=c99 for XOPEN2K.
2031         (@knownproblems): Remove.
2032         (newtoken): Don't check %isknown.
2033
2034         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2035         Do not expect macro.
2036         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2037         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2038         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2039         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2040         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2041         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2042         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2043         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2044         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2045         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2046         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2047         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2048         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2049         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2050         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2051         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2052         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2053         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2054         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2055         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2056         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2057         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2058         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2059         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2060         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2061         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2062         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2063         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2064         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2065         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2066         [XPG3] (acosh): Likewise.
2067         [XPG3] (asinh): Likewise.
2068         [XPG3] (atanh): Likewise.
2069         [XPG3] (cbrt): Likewise.
2070         [XPG3] (expm1): Likewise.
2071         [XPG3] (ilogb): Likewise.
2072         [XPG3] (log1p): Likewise.
2073         [XPG3] (logb): Likewise.
2074         [XPG3] (nextafter): Likewise.
2075         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
2076         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
2077         [XPG3] (remainder): Likewise.
2078         [XPG3] (rint): Likewise.
2079         [XPG3 || XPG4 || UNIX98] (round): Likewise.
2080         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
2081         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
2082         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
2083         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
2084         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
2085         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
2086         [UNIX98 || XOPEN2K] (scalb): Expect.
2087         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
2088         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
2089         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
2090         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
2091         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
2092         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
2093         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
2094         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2095         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2096         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2097         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2098         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2099         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2100         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2101         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2102         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2103         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2104         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2105         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2106         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2107         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2108         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2109         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2110         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2111         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2112         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2113         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2114         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2115         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2116         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2117         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2118         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2119         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2120         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2121         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2122         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2123         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2124         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2125         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2126         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2127         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2128         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2129         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2130         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2131         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2132         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2133         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2134         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2135         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2136         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2137         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2138         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2139         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2140         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2141         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2142         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2143         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2144         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2145         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2146         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2147         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2148         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2149         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2150         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2151         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2152         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2153         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2154         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2155         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2156         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2157         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2158         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2159         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2160         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2161         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2162         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2163         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2164         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2165         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2166         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2167         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2168         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2169         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2170         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2171         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2172         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2173         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2174         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2175         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2176         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2177         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2178         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2179         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2180         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2181         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2182         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2183         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2184         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2185         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2186         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2187         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2188         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2189         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2190         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2191         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2192         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2193         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2194         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2195         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2196         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2197         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2198         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2199         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2200         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2201         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2202         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2203         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2204         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2205         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2206         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2207         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2208         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2209         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2210         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2211         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2212         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2213         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2214         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2215         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2216         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2217         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2218         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2219         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2220         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2221         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2222         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2223         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2224
2225         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2226         _XOPEN_SOURCE_EXTENDED for XPG4.
2227
2228         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2229
2230         * Makeconfig (localtime): Remove variable.
2231         (inst_localtime-file): Likewise.
2232
2233 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2234
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2236         Update.
2237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2238         Update.
2239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2240         Update.
2241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2242         Update.
2243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2244         Update.
2245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2246         Update.
2247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2248         Update.
2249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2250         Update.
2251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2252         Update.
2253
2254 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2255
2256         [BZ #2550]
2257         [BZ #2570]
2258         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2259         comparisons to determine direction to adjust input.
2260         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2261         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2262         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2263         Likewise.
2264         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2265         Likewise.
2266         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2267         Likewise.
2268         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2269         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2270         Likewise.
2271         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2272         Likewise.
2273         * math/libm-test.inc (nexttoward_test): Add more tests.
2274
2275 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2276
2277         [BZ #14040]
2278         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2279         in version GLIBC_2.1, not GLIBC_2.0.
2280         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2281         Likewise.
2282
2283 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2284
2285         [BZ #13942]
2286         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2287         (1 - x) * (1 + x).
2288         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2289         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2290         * math/libm-test.inc (acos_test): Add more tests.
2291         (asin_test): Likewise.
2292         * sysdeps/i386/fpu/libm-test-ulps: Update.
2293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2294
2295         [BZ #14034]
2296         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2297         of square root.
2298         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2299         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2300         * math/libm-test.inc (acos_test_tonearest): New function.
2301         (acos_test_towardzero): Likewise.
2302         (acos_test_downward): Likewise.
2303         (acos_test_upward): Likewise.
2304         (asin_test_tonearest): Likewise.
2305         (asin_test_towardzero): Likewise.
2306         (asin_test_downward): Likewise.
2307         (asin_test_upward): Likewise.
2308         (main): Call the new functions.
2309         * sysdeps/i386/fpu/libm-test-ulps: Update.
2310         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2311
2312         [BZ #13884]
2313         [BZ #13924]
2314         * math/e_exp10.c: Include <float.h>.
2315         (__ieee754_exp10): Handle underflow here rather than multiplying
2316         large negative argument by M_LN10.
2317         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2318         of __ieee754_expf.
2319         * math/e_exp10l.c: Include <float.h>.
2320         (__ieee754_exp10l): Handle underflow here rather than multiplying
2321         large negative argument by M_LN10l.
2322         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2323         spurious overflow exception on underflow.
2324
2325 2012-04-29  Marek Polacek  <polacek@redhat.com>
2326
2327         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2328         (__fortify_function): New macro.
2329         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2330         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2331         __extern_always_inline.
2332         * libio/bits/stdio2.h: Likewise.
2333         * libio/bits/stdio.h: Likewise.
2334         * string/string.h: Likewise.
2335         * string/bits/string3.h: Likewise.
2336         * include/stdio.h: Likewise.
2337         * stdlib/bits/stdlib.h: Likewise.
2338         * stdlib/stdlib.h: Likewise.
2339         * rt/bits/mqueue2.h: Likewise.
2340         * rt/mqueue.h: Likewise.
2341         * posix/bits/unistd.h: Likewise.
2342         * posix/unistd.h: Likewise.
2343         * io/bits/poll2.h: Likewise.
2344         * io/bits/fcntl2.h: Likewise.
2345         * io/fcntl.h: Likewise.
2346         * io/sys/poll.h: Likewise.
2347         * misc/bits/syslog.h: Likewise.
2348         * misc/bits/syslog-ldbl.h: Likewise.
2349         * misc/sys/syslog.h: Likewise.
2350         * socket/bits/socket2.h: Likewise.
2351         * socket/sys/socket.h: Likewise.
2352         * debug/tst-chk1.c: Likewise.
2353         * wcsmbs/bits/wchar2.h: Likewise.
2354         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2355         * wcsmbs/wchar.h: Likewise.
2356
2357 2012-04-29  Andreas Jaeger  <aj@suse.de>
2358
2359         * Makerules (tests): Remove enable-check-abi protection.
2360         (check-abi-warn): Remove.
2361         (check-abi-%): Remove check-abi-warn usage.
2362
2363         * configure.in: Remove check-abi configure option.
2364         * configure: Regenerated.
2365         * config.make.in (enable-check-abi): Remove.
2366
2367 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2368
2369         [BZ #14033]
2370         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2371         double functions to double *_finite functions.
2372
2373         [BZ #13941]
2374         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2375         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2376         LDBL_MIN_EXP.
2377         * stdio-common/Makefile (tests): Add tst-sprintf3.
2378         * stdio-common/tst-sprintf3.c: New file.
2379
2380         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2381         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2382
2383 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2384
2385         * conform/conformtest.pl: Remove duplicate typed-constant
2386         handling.
2387
2388 2012-04-28  David S. Miller  <davem@davemloft.net>
2389
2390         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2391         (check-abi-%): Remove AWK script prerequisite and explicit
2392         abilist directory.
2393         (check-abi): Rewrite to just diff the symlist with the abilist.
2394         (config-tls, config-abi-config): Delete, no longer used.
2395         (update-abi-%): Remove AWK script and explicit abilist directory.
2396         (update-abi): Rewrite to simply compare and conditionally copy the
2397         symlist and the sysdep abilist file.  Remove update-abi-config
2398         checks.
2399         * abilist/ld.abilist: Remove.
2400         * abilist/libBrokenLocale.abilist: Remove.
2401         * abilist/libanl.abilist: Remove.
2402         * abilist/libcrypt.abilist: Remove.
2403         * abilist/libdl.abilist: Remove.
2404         * abilist/librt.abilist: Remove.
2405         * abilist/libthread_db.abilist: Remove.
2406         * abilist/libutil.abilist: Remove.
2407         * scripts/extract-abilist.awk: Remove.
2408         * scripts/merge-abilist.awk: Remove.
2409         * sysdeps/generic/libcidn.abilist: New file.
2410         * sysdeps/generic/libnss_compat.abilist: New file.
2411         * sysdeps/generic/libnss_db.abilist: New file.
2412         * sysdeps/generic/libnss_dns.abilist: New file.
2413         * sysdeps/generic/libnss_files.abilist: New file.
2414         * sysdeps/generic/libnss_hesiod.abilist: New file.
2415         * sysdeps/generic/libnss_nis.abilist: New file.
2416         * sysdeps/generic/libnss_nisplus.abilist: New file.
2417         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2418         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2419         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2420         file.
2421         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2422         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2423         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2424         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2425         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2426         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2427         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2428         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2429         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2430         file.
2431         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2432         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2433         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2434         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2435         file.
2436         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2437         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2438         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2439         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2440         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2441         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2442         file.
2443         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2444         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2445         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2446         file.
2447         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2448         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2449         New file.
2450         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2451         New file.
2452         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2453         New file.
2454         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2455         New file.
2456         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2457         New file.
2458         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2459         New file.
2460         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2461         New file.
2462         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
2463         New file.
2464         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
2465         New file.
2466         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
2467         New file.
2468         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
2469         New file.
2470         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
2471         New file.
2472         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
2473         New file.
2474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
2475         file.
2476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
2477         New file.
2478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
2479         New file.
2480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
2481         file.
2482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
2483         New file.
2484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
2485         New file.
2486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
2487         file.
2488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
2489         New file.
2490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2491         New file.
2492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
2493         New file.
2494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
2495         New file.
2496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
2497         New file.
2498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
2499         New file.
2500         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
2501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
2502         file.
2503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
2504         New file.
2505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
2506         file.
2507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
2508         file.
2509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
2510         file.
2511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
2512         file.
2513         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
2514         file.
2515         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2516         New file.
2517         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
2518         file.
2519         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
2520         file.
2521         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
2522         New file.
2523         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
2524         file.
2525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
2526         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
2527         file.
2528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
2529         New file.
2530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
2531         file.
2532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
2533         file.
2534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
2535         file.
2536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
2537         file.
2538         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
2539         file.
2540         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2541         New file.
2542         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
2543         file.
2544         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
2545         file.
2546         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
2547         New file.
2548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
2549         file.
2550         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2551         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
2552         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
2553         file.
2554         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
2555         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
2556         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
2557         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
2558         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
2559         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
2560         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
2561         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
2562         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
2563         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
2564         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
2565         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
2566         file.
2567         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
2568         New file.
2569         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
2570         file.
2571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
2572         file.
2573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
2574         file.
2575         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
2576         file.
2577         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
2578         file.
2579         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2580         New file.
2581         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
2582         New file.
2583         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
2584         file.
2585         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
2586         New file.
2587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
2588         file.
2589         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
2590         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
2591         file.
2592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
2593         New file.
2594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
2595         file.
2596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
2597         file.
2598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
2599         file.
2600         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
2601         file.
2602         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
2603         file.
2604         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2605         New file.
2606         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
2607         New file.
2608         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
2609         file.
2610         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
2611         New file.
2612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
2613         file.
2614
2615 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2616
2617         * conform/conformtest.pl: Fix typo in handling typed-constant from
2618         allow-header.
2619
2620 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2621
2622         * README: Cut down references to pre-2.6 Linux kernels and
2623         Linuxthreads.  Update lists of configurations in libc and ports
2624         and sort alphabetically.  Say "or newer" with Linux kernel version
2625         requirements.
2626
2627         * config.h.in [IS_IN_build]: Allow compiling without optimization.
2628
2629 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2630
2631         [BZ #887]
2632         * math/libm-test.inc (logb_test_downward): New test to expose
2633         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
2634         rounding mode.
2635
2636 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2637
2638         [BZ #14027]
2639         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
2640         to be done.
2641         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
2642         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
2643
2644 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
2645
2646         * sysdeps/unix/i386/brk.S: Remove file.
2647         * sysdeps/unix/i386/dl-brk.S: Likewise.
2648         * sysdeps/unix/i386/pipe.S: Likewise.
2649         * sysdeps/unix/i386/sigreturn.S: Likewise.
2650         * sysdeps/unix/i386/syscall.S: Likewise.
2651         * sysdeps/unix/i386/vfork.S: Likewise.
2652         * sysdeps/unix/i386/wait.S: Likewise.
2653
2654         * sysdeps/unix/common/tcsendbrk.c: Move to ...
2655         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
2656
2657         * configure.in (arm*-none*): Do not allow without
2658         --enable-hacker-mode.
2659         (netbsd*): Remove case setting base_os.
2660         (386bsd*): Likewise.
2661         (freebsd*): Likewise.
2662         (bsdi*): Likewise.
2663         (osf*): Likewise.
2664         (sunos*): Likewise.
2665         (ultrix*): Likewise.
2666         (newsos*): Likewise.
2667         (dynix*): Likewise.
2668         (*bsd*): Likewise.
2669         (sysv*): Likewise.
2670         (isc*): Likewise.
2671         (esix*): Likewise.
2672         (sco*): Likewise.
2673         (minix*): Likewise.
2674         (irix4*): Likewise.
2675         (irix6*): Likewise.
2676         (solaris[2-9]*): Likewise.
2677         (none): Likewise.
2678         * configure: Regenerated.
2679
2680 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2681
2682         [BZ #11521]
2683         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
2684         overflow or cancellation in calculating denominator.
2685         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
2686         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
2687         down expression to avoid unexpected rounding in newer GCCs.
2688         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
2689
2690 2012-04-26  David S. Miller  <davem@davemloft.net>
2691
2692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
2693         long-double compat symbols.
2694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
2696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
2697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
2698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
2699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
2700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
2701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
2702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
2703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
2704         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
2705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
2706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
2707
2708 2012-04-25  David S. Miller  <davem@davemloft.net>
2709
2710         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
2711         HWCAP_* values only after the memory barriers have been defined.
2712         (atomic_full_barrier): Define.
2713         (atomic_read_barrier): Define.
2714         (atomic_write_barrier): Define.
2715
2716 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2717
2718         * shlib-versions: Add libgcc_s version information.
2719         * sysdeps/generic/libgcc_s.h: Remove.
2720         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
2721         libgcc_s.h.
2722         * sysdeps/gnu/unwind-resume.c: Likewise.
2723         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
2724
2725 2012-04-25  David S. Miller  <davem@davemloft.net>
2726
2727         * sysdeps/unix/sparc/brk.S: Delete.
2728         * sysdeps/unix/sparc/dl-brk.S: Delete.
2729         * sysdeps/unix/sparc/pipe.S: Delete.
2730         * sysdeps/unix/sparc/sysdep.S: Delete.
2731         * sysdeps/unix/sparc/sysdep.h: Delete.
2732         * sysdeps/unix/sparc/vfork.S: Delete.
2733         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
2734         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
2735         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
2736         ret_ERRVAL, r0, r1, MOVE): Define.
2737         (JUMPTARGET): Remove.
2738         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
2739         sysdeps/unix/sparc/sysdep.h
2740         (ENTRY, END): Remove.
2741         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2742
2743 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
2744
2745         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
2746         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
2747         -DIS_IN_build.
2748
2749         * timezone/README: Update upstream location and email address for
2750         tzcode and tzdata.
2751         * timezone/zdump.c: Update from tzcode 2012b.
2752         * timezone/zic.c: Likewise.
2753
2754         * configure.in (libc_cv_as_needed): Remove test.
2755         * configure: Regenerated.
2756         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
2757         conditional definition.
2758         [$(have-as-needed) != yes] (no-as-needed): Likewise.
2759         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
2760         * config.make.in (have-as-needed): Remove variable.
2761
2762 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2763             Paul Pluzhnikov  <ppluzhnikov@google.com>
2764
2765         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
2766         strings correctly.
2767
2768 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2769
2770         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
2771         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
2772         * sysdeps/sh/strlen.S: Likewise.
2773
2774 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2775
2776         * sysdeps/unix/fork.S: Remove file.
2777         * sysdeps/unix/i386/fork.S: Likewise.
2778         * sysdeps/unix/sparc/fork.S: Likewise.
2779
2780         * sysdeps/unix/system.c: Remove file.
2781         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
2782
2783         * sysdeps/unix/getegid.S: Remove file.
2784         * sysdeps/unix/geteuid.S: Likewise.
2785
2786 2012-04-24  Roland McGrath  <roland@hack.frob.com>
2787
2788         * scripts/check-localplt.awk: New file.
2789         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
2790         of diff.
2791         * scripts/data/localplt-generic.data: Add a comment.
2792
2793         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
2794         NODE when __dir_mkfile failed.
2795         * sysdeps/mach/hurd/symlinkat.c: Likewise.
2796         Reported by Ludovic Courtès <ludo@gnu.org>.
2797
2798 2012-04-24  Andreas Jaeger  <aj@suse.de>
2799
2800         * Makerules (common-clean): Also remove gen-as-const-headers
2801         files.
2802
2803 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2804
2805         * Makerules (native-compile): Do not change working directory for
2806         build.  Use $(OUTPUT_OPTION) in command.
2807         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
2808
2809 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2810
2811         [BZ #13886]
2812         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
2813         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
2814         * math/libm-test.inc (floor_test): Add more tests.
2815         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
2816
2817 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2818
2819         * sysdeps/unix/getdents.c: Remove file.
2820         * sysdeps/unix/sysv/getdents.c: Likewise.
2821         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
2822
2823         * sysdeps/unix/syscalls.list (madvise): Add syscall from
2824         sysdeps/unix/mman/syscalls.list.
2825         (mmap): Likewise.
2826         (mprotect): Likewise.
2827         (msync): Likewise.
2828         (munmap): Likewise.
2829         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
2830         * sysdeps/unix/mman/syscalls.list: Remove.
2831         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
2832
2833         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
2834         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
2835         * configure: Regenerated.
2836         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
2837         $(libgcc_s_suffix).
2838         * config.make.in (libgcc_s_suffix): Remove variable.
2839
2840 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
2841
2842         * sysdeps/unix/sysv/gethostname.c: Move to ...
2843         * sysdeps/posix/gethostname.c: ... here.
2844
2845         * sysdeps/unix/execve.S: Remove file.
2846
2847         * sysdeps/unix/_exit.S: Remove file.
2848
2849 2012-04-23  Andreas Jaeger  <aj@suse.de>
2850
2851         [BZ #13739]
2852         * manual/Makefile: Remove make dist support, there's no
2853         need for a stand-alone documentation tar ball.
2854         (TEXI2DVI): Define always, it's not in Makeconfig.
2855         (dist): Removed.
2856         (tar-it): Removed.
2857         (edition): Removed.
2858         (glibc-doc-$(edition).tar): Removed
2859         (%.Z): Removed.
2860         (%.gz): Removed.
2861         (%.uu): Removed.
2862         (ETAGS): Remove, it's in Makeconfig.
2863         (move-if-change): Remove, it's in Makeconfig.
2864
2865 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
2866
2867         [BZ #13970]
2868         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
2869         (strtod, strtof, strtold, strtol, strtoul, strtoq)
2870         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
2871         (strtod_l, strtof_l, strtold_l): Remove __wur.
2872         It is not necessarily an error to ignore strtol's return value.
2873         One can reliably look at the stored endptr to decide whether
2874         the number had valid syntax.
2875
2876 2012-04-21  Andreas Jaeger  <aj@suse.de>
2877
2878         [BZ #13739]
2879         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
2880
2881 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
2882
2883         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
2884         * sysdeps/unix/sysv/Versions: Remove file.
2885
2886 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2887
2888         [BZ #13927]
2889         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2890
2891 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
2892
2893         [BZ #7064]
2894         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
2895         version from __vm86.
2896
2897 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
2898
2899         * sysdeps/unix/common/lxstat.c: Remove file.
2900         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
2901
2902         * sysdeps/unix/sysv/Makefile: Remove file.
2903
2904         * sysdeps/unix/sysv/direct.h: Remove file.
2905
2906         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
2907         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
2908         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
2909         * sysdeps/unix/sysv/bits/signum.h: Likewise.
2910         * sysdeps/unix/sysv/bits/stat.h: Likewise.
2911         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
2912         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
2913
2914         * sysdeps/unix/sysv/setrlimit.c: Remove file.
2915
2916         * sysdeps/unix/xmknod.c: Remove file.
2917         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
2918
2919         * sysdeps/unix/sysv/settimeofday.c: Remove file.
2920
2921         * sysdeps/unix/sysv/i386/time.S: Remove file.
2922
2923         * sysdeps/unix/fxstat.c: Remove file.
2924         * sysdeps/unix/xstat.c: Likewise.
2925         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
2926
2927         * sysdeps/unix/sysv/sigaction.c: Remove file.
2928
2929         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
2930         (sysdep_headers): Remove variable.
2931         [termio.h not in sysdep_headers] (generated): Likewise.
2932         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
2933         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
2934         * sysdeps/unix/sysv/tcdrain.c: Likewise.
2935         * sysdeps/unix/sysv/tcflow.c: Likewise.
2936         * sysdeps/unix/sysv/tcflush.c: Likewise.
2937         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
2938         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
2939         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
2940         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
2941         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
2942
2943         * sysdeps/unix/siglist.c: Remove file.
2944
2945         * sysdeps/unix/getppid.S: Remove file.
2946
2947         * sysdeps/unix/mkdir.c: Remove file.
2948         * sysdeps/unix/rmdir.c: Likewise.
2949
2950 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
2951
2952         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
2953         ERR_MAX value.
2954         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
2955         errlist-compat value.
2956
2957 2012-04-18  David S. Miller  <davem@davemloft.net>
2958
2959         * sysdeps/generic/memcopy.h (reg_char): Delete.
2960         * debug/strcat_chk.c: Use char, not reg_char.
2961         * debug/strcpy_chk.c: Likewise.
2962         * debug/strncat_chk.c: Likewise.
2963         * debug/strncpy_chk.c: Likewise.
2964         * string/memchr.c: Likewise.
2965         * string/memrchr.c: Likewise.
2966         * string/rawmemchr.c: Likewise.
2967         * string/strcat.c: Likewise.
2968         * string/strchr.c: Likewise.
2969         * string/strchrnul.c: Likewise.
2970         * string/strcmp.c: Likewise.
2971         * string/strcpy.c: Likewise.
2972         * string/strncat.c: Likewise.
2973         * string/strncmp.c: Likewise.
2974         * string/strncpy.c: Likewise.
2975
2976 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2977
2978         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
2979         __builtin_memcopy is called when src and dest ranges are known to not
2980         overlap.
2981
2982 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2983
2984         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
2985         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
2986         fwd_align_merge macro call.
2987         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
2988         bwd_align_merge macro call.
2989         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2990
2991 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2992
2993         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
2994         bwd_align_merge macros.
2995         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
2996         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
2997         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2998
2999 2012-04-18  David S. Miller  <davem@davemloft.net>
3000
3001         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3002
3003 2012-04-18  Andreas Jaeger  <aj@suse.de>
3004
3005         [BZ# 6794]
3006         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3007         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3008         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3009
3010         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3011         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3012         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3013
3014         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3015         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3016         Adjust for changed ldbl-128 files.
3017
3018         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3019         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3020         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3021
3022 2012-04-17  David S. Miller  <davem@davemloft.net>
3023
3024         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3025
3026 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3027
3028         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3029         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3030         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3031         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3032         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3033         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3034
3035 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3036
3037         [BZ #6794]
3038         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3039         * math/libm-test.inc: Add ilogb errno and exception tests.
3040         * math/w_ilogb.c: New file: ilogb wrapper.
3041         * math/w_ilogbf.c: New file: ilogbf wrapper.
3042         * math/w_ilogbl.c: New file: ilogbl wrapper.
3043         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3044         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3045         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3046         exception being thrown with 0.0 as argument.
3047         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3048         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3049         exception being thrown with 0.0 as argument.
3050         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3051         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3052         exception being thrown with 0.0 as argument.
3053         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3054         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3055         exception being thrown with 0.0 as argument.
3056         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3057         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3058         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3059         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3060         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3061         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3062         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3063         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3064         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3065
3066 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3067
3068         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3069         with altivec.
3070
3071 2012-04-16  Marek Polacek  <polacek@redhat.com>
3072
3073         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3074
3075 2012-04-16  Marek Polacek  <polacek@redhat.com>
3076
3077         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
3078         operands of fdivp instruction.
3079
3080 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3081
3082         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
3083         * elf/tst-auditmod3b.c: Likewise.
3084         * elf/tst-auditmod4b.c: Likewise.
3085         * elf/tst-auditmod5b.c: Likewise.
3086         * elf/tst-auditmod6b.c: Likewise.
3087         * elf/tst-auditmod6c.c: Likewise.
3088         * elf/tst-auditmod7b.c: Likewise.
3089         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
3090         * sysdeps/x86_64/preconfigure.in: Likewise.
3091         * sysdeps/x86_64/preconfigure: Regenerated.
3092
3093 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3094
3095         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3096         __ILP32__.
3097
3098 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3099
3100         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3101         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3102
3103 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3104
3105         [BZ #13973]
3106         * locale/iso-639.def: Fix gl language name. Spotted by
3107         Yaron Shahrabani.
3108
3109 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3110
3111         [BZ #2074]
3112         * libio/libio.h (__io_write_fn): Update comment.
3113
3114 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3115
3116         [BZ #2074]
3117         * stdio.texi (Hook Functions): The user provided writer function
3118         is not allowed to return -1.
3119
3120 2012-04-11  David S. Miller  <davem@davemloft.net>
3121
3122         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3123
3124 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3125
3126         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3127         Add a leading slash to rtkaio.
3128
3129 2012-04-11  Jim Meyering  <meyering@redhat.com>
3130
3131         [BZ #11959]
3132         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3133         It is not necessarily an error to ignore fwrite's return
3134         value.  One can reliably use ferror to test for errors after
3135         the fact.
3136
3137 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3138
3139         * bits/types.h (__snseconds_t): New type.
3140         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3141
3142         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3143         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3144         (__SNSECONDS_T_TYPE): Likewise.
3145         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3146         (__SNSECONDS_T_TYPE): Likewise.
3147         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3148         (__SNSECONDS_T_TYPE): Likewise.
3149
3150 2012-04-10  Andreas Jaeger  <aj@suse.de>
3151
3152         [BZ #2636]
3153         * manual/time.texi (Processor Time): Return type of times is
3154         elapsed real time since an arbitrary point in the past.
3155         (CPU Time): Move CLK_TCK from here...
3156         (Processor Time): ...to here.  Correct description.
3157         * manual/conf.texi (Constants for Sysconf): Correct description of
3158         _SC_CLK_TCK.
3159
3160 2012-04-10  David S. Miller  <davem@davemloft.net>
3161
3162         [BZ #13967]
3163         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3164         where the is a gap between DT_REL(A) and DT_JMPREL.
3165
3166 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3167
3168         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3169         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3170         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3171
3172 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3173
3174         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3175         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3176         (dl_main): Handle --inhibit-cache.
3177         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3178         _dl_inhibit_cache.
3179         * elf/dl-load.c (_dl_map_object): Use it.
3180         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3181
3182 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3183
3184         [BZ #13872]
3185         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3186         (__ieee754_powl): Saturate large exponents rather than testing for
3187         overflow of y*log2(x).
3188         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3189         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3190         exceptions.
3191
3192         [BZ #11521]
3193         * math/s_ctan.c: Include <float.h>.
3194         (__ctan): Avoid internal overflow or cancellation in calculating
3195         denominator.
3196         * math/s_ctanf.c: Likewise.
3197         * math/s_ctanl.c: Likewise.
3198         * math/s_ctanh.c: Likewise.
3199         * math/s_ctanhf.c: Likewise.
3200         * math/s_ctanhl.c: Likewise.
3201         * math/libm-test.inc (ctan_test): Add more tests.
3202         (ctanh_test): Likewise.
3203         * sysdeps/i386/fpu/libm-test-ulps: Update.
3204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3205
3206 2012-04-09  Andreas Jaeger  <aj@suse.de>
3207
3208         [BZ #6894]
3209         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3210         is an optional BSD extension.
3211
3212         [BZ #10254]
3213         * manual/stdio.texi (Opening Streams): Document additional fopen
3214         parameters.
3215
3216 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3217
3218         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3219         %eax without telling the compiler.
3220
3221 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3222
3223         [BZ # 13963]
3224         * manual/install.texi: Use sourceware.org.
3225
3226 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3227
3228         [BZ #13873]
3229         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3230         (__ieee754_pow): Generate overflow and underflow using huge*huge
3231         and tiny*tiny rather than just returning constant infinity or zero
3232         for large exponents.
3233         * math/libm-test.inc (pow_test): Require overflow exceptions for
3234         applicable cases of large exponents.
3235
3236         [BZ #706]
3237         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3238         (__ieee754_pow): Use iterative multiplication algorithm only for
3239         integer exponents with absolute value below 1024.  Check for odd
3240         integer exponents when using algorithm for real exponents.
3241         * math/libm-test.inc (pow_test): Add more tests.
3242         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3243
3244 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3245
3246         [BZ #13705]
3247         * math/libm-test.inc (exp_test): Do not allow overflow exception
3248         on underflow test.
3249
3250 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3251
3252         [BZ #13705]
3253         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3254         instead of __kernel_standard_f.
3255
3256 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3257
3258         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3259         * sysdeps/x86_64/memset_chk.S: Likewise.
3260
3261 2012-04-08  Andreas Jaeger  <aj@suse.de>
3262
3263         [BZ #10153]
3264         * manual/startup.texi (Environment Access): Describe return value
3265         for putenv and setenv.
3266
3267         [BZ #6895]
3268         * manual/filesys.texi (Directory Entries): Add description for
3269         DT_LNK.
3270
3271         [BZ #6890]
3272         * manual/filesys.texi (Directory Entries): Clarify that it's file
3273         system not operating system in the description of DT_UNKNOWN.
3274
3275         [BZ #6578]
3276         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3277
3278 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3279
3280         [BZ #6649]
3281         * manual/llio.texi (Opening and Closing Files): Add cross
3282         reference to explain mode argument.
3283
3284 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3285
3286         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3287         * sysdeps/x86_64/memset_chk.S: Likewise.
3288
3289 2012-04-07  David S. Miller  <davem@davemloft.net>
3290
3291         * elf/elf.h (R_SPARC_WDISP10): Define.
3292         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3293         R_SPARC_SIZE32.
3294         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3295         R_SPARC_SIZE64 and R_SPARC_H34.
3296
3297 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3298
3299         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3300         conditions and remove no longer applicable assertion.
3301
3302 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3303
3304         * bits/byteswap.h: Include <features.h>.
3305         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3306         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3307
3308 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         * bits/byteswap.h (__bswap_16): Removed.
3311         Include <bits/byteswap-16.h> to get __bswap_16.
3312         * sysdeps/i386/bits/byteswap.h: Likewise.
3313         * sysdeps/s390/bits/byteswap.h: Likewise.
3314         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3315         * bits/byteswap-16.h: New file.
3316         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3317         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3318         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3319         * string/Makefile (headers): Add bits/byteswap-16.h.
3320
3321 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3322
3323         [BZ #13895]
3324         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3325         extra indirection.
3326         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3327         * nss/tst-nss-static.c: New.
3328
3329 2012-04-06  Robert Millan  <rmh@gnu.org>
3330
3331         [BZ #6486]
3332         * manual/llio.texi (File Position Primitive): lseek
3333         refers to WHENCE when it really means OFFSET.
3334
3335 2012-04-06  Andreas Jaeger  <aj@suse.de>
3336
3337         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3338         strncmp declarations.
3339
3340         * abilist/libc.abilist: Add __poll and __ppoll.
3341
3342 2012-04-05  David S. Miller  <davem@davemloft.net>
3343
3344         * scripts/check-local-headers.sh: Accept a host triplet in the
3345         path matched by the exclude regexp.
3346
3347         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3348         definition.
3349         * sysdeps/powerpc/powerpc32/dl-machine.h
3350         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3351         * sysdeps/s390/s390-32/dl-machine.h
3352         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3353         * sysdeps/sparc/sparc32/dl-machine.h
3354         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3355         * sysdeps/sparc/sparc64/dl-machine.h
3356         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3357
3358         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3359         lazy binding.
3360         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3361         undefined symbol errors.
3362
3363         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3364         DT_NEEDED entries.
3365
3366 2012-04-05  Michael Matz  <matz@suse.de>
3367
3368         [BZ #13592]
3369         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3370
3371 2012-04-05  Andreas Jaeger  <aj@suse.de>
3372
3373         [BZ #13908]
3374         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3375         comment.
3376
3377 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3378
3379         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3380         which ROUND is no valid rounding mode.
3381
3382 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3383
3384         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3385         read again.
3386         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3387
3388 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3389
3390         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3391         an exception using FPU order intentionally.
3392
3393 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3394
3395         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3396         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3397         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3398         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3399
3400 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3401
3402         [BZ #12340]
3403         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3404         EINVAL when BUFLEN is too smal.
3405
3406 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3407
3408         [BZ #13553]
3409         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3410         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3411
3412 2012-04-03  Andreas Jaeger  <aj@suse.de>
3413
3414         [BZ #13938]
3415         * manual/setjmp.texi (System V contexts): Fix sentence.
3416
3417         [BZ #13926]
3418         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3419         New macro for this case.
3420         [!__GNUC__] (__bswap_64): New inline function for this case.
3421         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3422         * bits/byteswap.h: Likewise.
3423         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3424         ull, guard with __GLIBC_HAVE_LONG_LONG.
3425
3426         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3427         __GLIBC_HAVE_LONG_LONG.
3428
3429         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3430         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3431
3432 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3433
3434         [BZ #13691]
3435         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3436         inptr and inend, rather than using last_ch.
3437
3438 2012-04-02  David S. Miller  <davem@davemloft.net>
3439
3440         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3441         * stdio-common/printf-parse.h (read_int): Change return type to
3442         'int', return -1 on INT_MAX overflow.
3443         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3444         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3445         overflows INT_MAX.  Check for overflow of in-format-string precision
3446         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3447         SIZE_MAX not INT_MAX for integer overflow test.
3448         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3449         skip the construct in the format string but do not record anything.
3450         * stdio-common/bug22.c: Adjust to test both width/prevision
3451         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3452         explicitly for proper errno values.
3453
3454 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3455
3456         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3457         CHAR_MAX.
3458         * string/test-strcmp.c [! WIDE]: Likewise.
3459         * time/tst-mktime2.c: Likewise for INT_MAX.
3460         * string/test-string.h: #include <sys/param.h> for MIN.
3461
3462         * csu/init-first.c (__libc_init_first): Call __ctype_init.
3463         * sysdeps/i386/init-first.c (init): Likewise.
3464         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
3465         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
3466         * sysdeps/sh/init-first.c (init): Likewise.
3467
3468 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
3469
3470         * po/ru.po: Update from translation team.
3471         * po/vi.po: Likewise.
3472
3473 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3474
3475         * resolv/nss_dns/dns-host.c: Merge copyright years.
3476
3477 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3478
3479         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3480         Optimize memcpy with prefetch if
3481         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
3482         src, dst pointers have unequal 16 byte alignments.
3483
3484 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3485
3486         [BZ #13928]
3487         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
3488         from a CNAME entry and return the minimum ttl for the query.
3489         (gaih_getanswer_slice): Likewise.
3490
3491 2012-03-30  Jeff Law  <law@redhat.com>
3492
3493         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
3494         due to long keys.
3495         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
3496         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
3497
3498         * resolv/nss_dns/dns-host.c: Update copyright year.
3499
3500 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
3501
3502         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
3503         requests to save a system call.  Fix check that all bytes are sent.
3504
3505         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
3506         comments for sendmmsg.
3507
3508 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3509
3510         [BZ #13691]
3511         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
3512         with only 1 character between 0x0041 and 0x01b0.
3513         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
3514         * wcsmbs/tst-mbsnrtowcs.c: New file.
3515
3516 2012-03-29  David S. Miller  <davem@davemloft.net>
3517
3518         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
3519         small copies by hand.
3520
3521 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3522
3523         [BZ #13761]
3524         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
3525         _nss_compat_initgroups_dyn): Fall back to malloc/free
3526         for large group memberships.
3527
3528 2012-03-28  David S. Miller  <davem@davemloft.net>
3529
3530         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
3531         that branches into memcpy.
3532         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3533         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
3534         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3535         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
3536         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
3537         bits.
3538         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
3539         implementation too.
3540         * sysdeps/sparc/mempcpy.S: New file.
3541
3542         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
3543         the IFUNC routine in the libc case.
3544         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3545
3546         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
3547         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
3548         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
3549         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
3550         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
3551         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
3552         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
3553         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
3554
3555         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
3556         loop to 256 bytes instead of 64 bytes and fix test signedness.
3557
3558         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
3559         * sysdeps/sparc/sparc32/Makefile: rather than here...
3560         * sysdeps/sparc/sparc64/Makefile: and here.
3561
3562 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
3563
3564         * malloc/mallocbug.c: Avoid warnings about unused variables.
3565
3566 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3567
3568         [BZ #13760]
3569         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
3570         in the right place. Discard and retry query if response is
3571         larger than input buffer size.
3572
3573 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
3574
3575         [BZ #369]
3576         [BZ #2678]
3577         [BZ #3866]
3578         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
3579         x for large integer exponent.
3580         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3581         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
3582         sign of result as needed afterwards.
3583         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3584         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
3585         result for underflowing pow the same as for overflow.
3586         (__kernel_standard_l): Handle powl overflow and underflow here
3587         rather than calling __kernel_standard.
3588         * math/libm-test.inc (pow_test): Add more tests.
3589
3590         [BZ #3868]
3591         [BZ #13879]
3592         [BZ #13910]
3593         [BZ #13911]
3594         [BZ #13912]
3595         [BZ #13913]
3596         [BZ #13915]
3597         [BZ #13916]
3598         [BZ #13917]
3599         [BZ #13918]
3600         [BZ #13919]
3601         [BZ #13920]
3602         [BZ #13921]
3603         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
3604         * sysdeps/ieee754/k_standard.c: Include <float.h>.
3605         (__kernel_standard_l): New function.
3606         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
3607         __kernel_standard.
3608         * math/w_acosl.c (__acosl): Likewise.
3609         * math/w_asinl.c (__asinl): Likewise.
3610         * math/w_atan2l.c (__atan2l): Likewise.
3611         * math/w_atanhl.c (__atanhl): Likewise.
3612         * math/w_coshl.c (__coshl): Likewise.
3613         * math/w_exp10l.c (__exp10l): Likewise.
3614         * math/w_exp2l.c (__exp2l): Likewise.
3615         * math/w_fmodl.c (__fmodl): Likewise.
3616         * math/w_hypotl.c (__hypotl): Likewise.
3617         * math/w_j0l.c (__j0l, __y0l): Likewise.
3618         * math/w_j1l.c (__j1l, __y1l): Likewise.
3619         * math/w_jnl.c (__jnl, __ynl): Likewise.
3620         * math/w_lgammal.c (__lgammal): Likewise.
3621         * math/w_log10l.c (__log10l): Likewise.
3622         * math/w_log2l.c (__log2l): Likewise.
3623         * math/w_logl.c (__logl): Likewise.
3624         * math/w_powl.c (__powl): Likewise.
3625         * math/w_remainderl.c (__remainderl): Likewise.
3626         * math/w_scalbl.c (sysv_scalbl): Likewise.
3627         * math/w_sinhl.c (__sinhl): Likewise.
3628         * math/w_sqrtl.c (__sqrtl): Likewise.
3629         * math/w_tgammal.c (__tgammal): Likewise.
3630         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
3631         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
3632         * math/libm-test.inc (acos_test): Add more tests.
3633         (acosh_test): Likewise.
3634         (asin_test): Likewise.
3635         (atanh_test): Likewise.
3636         (exp_test): Likewise.
3637         (exp10_test): Likewise.
3638         (exp2_test): Likewise.
3639         (expm1_test): Likewise.
3640         (lgamma_test): Likewise.
3641         (log_test): Likewise.
3642         (log10_test): Likewise.
3643         (log1p_test): Likewise.
3644         (log2_test): Likewise.
3645         (pow_test): Do not allow some spurious overflow exceptions.
3646         (sqrt_test): Add more tests.
3647         (tgamma_test): Likewise.
3648         (y0_test): Likewise.
3649         (y1_test): Likewise.
3650         (yn_test): Likewise.
3651
3652 2012-03-27  Anton Blanchard  <anton@samba.org>
3653
3654         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
3655         MAP_HUGETLB.
3656         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3657         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3658         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3659
3660 2012-03-27  David S. Miller  <davem@davemloft.net>
3661
3662         * conform/Makefile: Run run-conformtest.sh using $(BASH).
3663
3664         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
3665         have-as-vis3 check.
3666
3667 2012-03-27  Andreas Jaeger  <aj@suse.de>
3668
3669         * sysdeps/x86_64/elf/configure.in: Moved to ...
3670         * sysdeps/x86_64/configure.in: ... here.
3671         * sysdeps/x86_64/elf/start.S: Moved to ...
3672         * sysdeps/x86_64/start.S: ... here.
3673         * sysdeps/x86_64/elf/configure: Delete.
3674
3675         * sysdeps/x86_64/configure.in: Merge contents from
3676         sysdeps/i386/configure.in (without i686 check).
3677
3678         * sysdeps/i386/elf/Versions: Merge into ...
3679         * sysdeps/i386/Versions: ... this.
3680         * sysdeps/i386/elf/Versions: Delete file.
3681         * sysdeps/i386/elf/start.S: Moved to ...
3682         * sysdeps/i386/start.S: ...here.
3683         * sysdeps/i386/elf/configure.in: Merge into...
3684         * sysdeps/i386/configure.in: ...here.
3685         * sysdeps/i386/elf/configure.in: Delete file.
3686         * sysdeps/i386/elf/configure: Delete file.
3687
3688         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
3689         * debug/backtracesyms.c: ... here.
3690         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
3691         * debug/backtracesymsfd.c: ... here.
3692         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
3693         * sysdeps/generic/ifunc-sel.h: ... here.
3694
3695         * sysdeps/unix/i386/start.c: Delete file.
3696         * sysdeps/unix/sparc/start.c: Delete file.
3697         * sysdeps/unix/start.c: Delete file.
3698
3699         * sysdeps/sh/elf/configure.in: Moved to ...
3700         * sysdeps/sh/configure.in: ... here.
3701         * sysdeps/sh/elf/start.S: Moved to ...
3702         * sysdeps/sh/start.S: ... here.
3703         * sysdeps/sh/elf/configure: Delete file.
3704
3705         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
3706         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
3707         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
3708         * sysdeps/powerpc/powerpc64/entry.h: ... here.
3709         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
3710         * sysdeps/powerpc/powerpc64/start.S: here.
3711         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
3712         * sysdeps/powerpc/powerpc64/Makefile: ... this.
3713         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
3714         * sysdeps/powerpc/powerpc64/configure.in: ... this.
3715         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
3716
3717         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
3718         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
3719         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
3720         * sysdeps/powerpc/powerpc32/start.S: ... here.
3721         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
3722         * sysdeps/powerpc/powerpc32/configure.in: ... this.
3723         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
3724
3725         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
3726         * sysdeps/powerpc/ifunc-sel.h: ... here.
3727         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
3728         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
3729
3730         * sysdeps/sparc/elf/configure.in: Moved to ...
3731         * sysdeps/sparc/configure.in: ... here.
3732         * sysdeps/sparc/elf/configure: Delete file.
3733         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
3734         * sysdeps/sparc/sparc32/start.S: ... here.
3735         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
3736         * sysdeps/sparc/sparc64/start.S: ... here.
3737         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
3738         * sysdeps/sparc/sparc32/Makefile: ... this.
3739         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
3740         * sysdeps/sparc/sparc64/Makefile: ... this.
3741
3742         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
3743         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
3744         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
3745         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
3746         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
3747         * sysdeps/s390/s390-32/setjmp.S: ... here.
3748         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
3749         * sysdeps/s390/s390-32/configure.in: ... here.
3750         * sysdeps/s390/s390-32/elf/configure: Delete file.
3751         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
3752         * sysdeps/s390/s390-32/start.S: ... here.
3753
3754         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
3755         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
3756         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
3757         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
3758         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
3759         * sysdeps/s390/s390-64/setjmp.S: ... here.
3760         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
3761         * sysdeps/s390/s390-64/configure.in: ... here
3762         * sysdeps/s390/s390-64/elf/configure: Delete file.
3763         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
3764         * sysdeps/s390/s390-64/start.S: ... here.
3765         * sysdeps/s390/s390-64/elf/configure: Delete.
3766
3767         * configure.in: Remove support for elf directories in sysdeps.
3768
3769         * configure: Regenerated.
3770         * sysdeps/i386/configure: Regenerated.
3771         * sysdeps/powerpc/powerpc32/configure: Regenerated.
3772         * sysdeps/powerpc/powerpc64/configure: Regenerated.
3773         * sysdeps/s390/s390-32/configure: Regenerated.
3774         * sysdeps/s390/s390-64/configure: Regenerated.
3775         * sysdeps/sh/configure: Regenerated.
3776         * sysdeps/sparc/configure: Regenerated.
3777         * sysdeps/x86_64/configure: Regenerated.
3778
3779 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
3780
3781         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3782
3783         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
3784         denormal result into account.
3785
3786 2012-03-25  Roland McGrath  <roland@hack.frob.com>
3787
3788         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
3789         Reported by Allan McRae <allan@archlinux.org>.
3790
3791 2012-03-23  Jeff Law  <law@redhat.com>
3792
3793         * nss/getnssent.c (__nss_getent): Fix typo.
3794
3795 2012-03-23  David S. Miller  <davem@davemloft.net>
3796
3797         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3798
3799 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
3800
3801         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
3802         to pad to uint64_t for each field.
3803         (dl_tls_index): Replace unsigned long with uint64_t.
3804
3805 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
3806         Paul Pluzhnikov  <ppluzhnikov@google.com>
3807
3808         [BZ #6528]
3809         * grp/Makefile (otherlibs): Don't set it.
3810         * inet/Makefile (otherlibs): Likewise.
3811         * login/Makefile (otherlibs): Likewise.
3812         * nscd/Makefile (otherlibs): Likewise.
3813         * posix/Makefile (otherlibs): Likewise.
3814         * pwd/Makefile (otherlibs): Likewise.
3815         * rt/Makefile (otherlibs): Likewise.
3816         * sunrpc/Makefile (otherlibs): Likewise.
3817         * nss/Makefile (otherlibs): Likewise.
3818         Add libnss_files to routines and static-only-routines.
3819         ($(objpfx)getent): Remove rule.
3820         * resolv/Makefile: Add libnss_dns and libresolv to routines and
3821         static-only-routines.
3822
3823 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3824
3825         [BZ #13892]
3826         * math/s_cexp.c: Include <float.h>.
3827         (__cexp): Handle exp result overflowing not necessarily
3828         overflowing both real and imaginary parts of result.
3829         * math/s_cexpf.c: Likewise.
3830         * math/s_cexpl.c: Likewise.
3831         * math/libm-test.inc (cexp_test): Add more tests.
3832         * sysdeps/i386/fpu/libm-test-ulps: Update.
3833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3834
3835 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3836
3837         * include/link.h (ELFW): New macro.
3838         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
3839         Replace ELF64_R_TYPE with ELFW(R_TYPE).
3840
3841 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3842
3843         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
3844         with uint64_t.
3845
3846 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3847
3848         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
3849         declaration.
3850         (struct La_x32_retval): Likewise.
3851
3852 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3853
3854         * sysdeps/x86_64/preconfigure.in: New file.
3855         * sysdeps/x86_64/preconfigure: New generated file.
3856
3857 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3858
3859         [BZ #13824]
3860         * math/e_exp2l.c: Include <float.h>.
3861         (__ieee754_exp2l): Handle overflow and underflow cases
3862         separately.  Only pass fractional part of argument to
3863         __ieee754_expl.
3864         * math/libm-test.inc (exp2_test): Add more tests.
3865
3866         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
3867         negating x to take absolute value.
3868         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3869         Likewise.
3870         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3871         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
3872         Likewise.
3873         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
3874         computing low part if x was negated.
3875         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3876
3877 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3878
3879         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
3880         la_x32_gnu_pltexit.
3881         (pltexit): Cast int_retval to ptrdiff_t.
3882         * elf/tst-auditmod3b.c: Likewise.
3883         * elf/tst-auditmod4b.c: Likewise.
3884         * elf/tst-auditmod5b.c: Likewise.
3885         * elf/tst-auditmod6b.c: Likewise.
3886         * elf/tst-auditmod6c.c: Likewise.
3887         * elf/tst-auditmod7b.c: Likewise.
3888
3889         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
3890         and x32_gnu_pltexit.
3891
3892         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
3893         __ELF_NATIVE_CLASS.
3894         (La_x32_regs): New macro.
3895         (La_x32_retval): Likewise.
3896         (la_x32_gnu_pltenter): New function prototype.
3897         (la_x32_gnu_pltexit): Likewise.
3898
3899 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
3900
3901         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
3902         exponent.
3903
3904         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3905
3906         * configure.in (libc_cv_cc_nofma): Check for option to disable
3907         generation of FMA instructions.
3908         * configure: Regenerate.
3909         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
3910         * sysdeps/ieee754/dbl-64/Makefile: New file.
3911         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3912         Remove brandred-fma4.
3913         (CFLAGS-brandred-fma4.c): Remove.
3914         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
3915         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
3916         define.
3917         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
3918         define.
3919
3920 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3921
3922         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3923         LLONG_MAX != LONG_MAX.
3924         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3925         (_fitoa_word): Likewise.
3926         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
3927         LLONG_MAX != LONG_MAX.
3928         * stdio-common/_itowa.h: Include <_itoa.h>.
3929         (_itowa_word): Use _ITOA_WORD_TYPE on value.
3930         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
3931         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
3932         only if not defined.
3933         (_ITOA_WORD_TYPE): Likewise.
3934         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3935         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
3936
3937 2012-03-21  David S. Miller  <davem@davemloft.net>
3938
3939         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3940
3941 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3942
3943         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
3944         of x86_64 when setting libc_cv_slibdir, libdir and
3945         libc_cv_localedir.
3946         * sysdeps/unix/sysv/linux/configure: Regenerated.
3947
3948 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3949
3950         * manual/lang.texi (Old Varargs): Remove section.
3951         (How Variadic): Update menu.
3952         (va_start): Do not mention varargs.h.
3953
3954 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3955             Joseph Myers  <joseph@codesourcery.com>
3956
3957         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
3958         link test.
3959         * configure: Regenerated.
3960
3961 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3962
3963         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
3964         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
3965         conformtest.pl
3966
3967 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3968
3969         * NOTES: Remove.
3970         * Makefile (files-for-dist): Remove NOTES.
3971         (NOTES): Remove rule.
3972         * README: Don't refer to NOTES.
3973         * manual/creature.texi: Don't include macros.texi.
3974         * manual/intro.texi (creature.texi): Remove comment referring to
3975         NOTES.
3976
3977         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
3978         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
3979         * configure: Regenerated.
3980         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
3981         LIBC_TRY_CC_OPTION.
3982         (libc_cv_as_i686): Likewise.
3983         (libc_cv_cc_avx): Likewise.
3984         (libc_cv_cc_sse2avx): Likewise.
3985         (libc_cv_cc_fma4): Likewise.
3986         (libc_cv_cc_novzeroupper): Likewise.
3987         * sysdeps/i386/configure: Regenerated.
3988
3989         [BZ #13883]
3990         * sysdeps/i386/fpu/s_cexp.S: Remove.
3991         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3992         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3993         * math/libm-test.inc (cexp_test): Add more tests.
3994         * sysdeps/i386/fpu/libm-test-ulps: Update.
3995         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3996
3997 2012-03-21  Allan McRae  <allan@archlinux.org>
3998
3999         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4000
4001 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4002
4003         [BZ #13871]
4004         * math/w_exp2.c: Do not include <float.h>.
4005         (o_threshold, u_threshold): Remove.
4006         (__exp2): Calculate result before checking finiteness and calling
4007         __kernel_standard.
4008         * math/w_exp2f.c: Likewise.
4009         * math/w_exp2l.c: Likewise.
4010         * math/libm-test.inc (exp2_test): Require overflow exception for
4011         1e6 input.
4012
4013         [BZ #3866]
4014         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4015         range of signed 64-bit integers before using fistpll.  Remove
4016         checks for whether integers fit in mantissa bits.
4017         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4018         the range of signed 32-bit integers before using fistpl.  Remove
4019         checks for whether integers fit in mantissa bits.
4020         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4021         (__ieee754_powl): Test for y outside the range of signed 64-bit
4022         integers before using fistpll.  Reduce 64-bit values to 63-bit
4023         ones as needed.
4024         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4025         divide-by-zero is raised for zero to large negative powers.
4026         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4027         (__ieee754_powl): Test for y outside the range of signed 64-bit
4028         integers before using fistpll.  Reduce 64-bit values to 63-bit
4029         ones as needed.
4030         * math/libm-test.inc (pow_test): Add more tests.
4031
4032 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4033
4034         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4035         <stdio-common/_itoa.h>.
4036         * debug/segfault.c: Likewise.
4037         * elf/dl-cache.c: Likewise.
4038         * elf/dl-minimal.c: Likewise.
4039         * elf/dl-misc.c: Likewise.
4040         * elf/dl-sysdep.c: Likewise.
4041         * elf/dl-version.c: Likewise.
4042         * elf/rtld.c: Likewise.
4043         * hurd/hurdsock.c: Likewise.
4044         * hurd/lookup-retry.c: Likewise.
4045         * malloc/malloc.c: Likewise.
4046         * malloc/mtrace.c: Likewise.
4047         * nscd/nscd_getgr_r.c: Likewise.
4048         * nscd/nscd_getpw_r.c: Likewise.
4049         * nscd/nscd_getserv_r.c: Likewise.
4050         * posix/getopt_init.c: Likewise.
4051         * posix/wordexp.c: Likewise.
4052         * stdio-common/_itoa.c: Likewise.
4053         * stdio-common/printf_fphex.c: Likewise.
4054         * stdio-common/vfprintf.c: Likewise.
4055         * string/_strerror.c: Likewise.
4056         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4057         * sysdeps/i386/i686/hp-timing.h: Likewise.
4058         * sysdeps/mach/_strerror.c: Likewise.
4059         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4060         * sysdeps/mach/hurd/sethostid.c: Likewise.
4061         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4062         * sysdeps/mach/xpg-strerror.c: Likewise.
4063         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4064         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4065         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4066         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4067         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4068         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4069         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4070         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4071         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4072         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4073         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4074         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4075         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
4076         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4077         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4078         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4079         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
4080         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
4081         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
4082         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
4083         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
4084
4085         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
4086
4087         * stdio-common/_itoa.h: Moved to ...
4088         * sysdeps/generic/_itoa.h: Here.
4089
4090         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
4091
4092         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
4093         instead of "_itoa.h" and "_itowa.h".
4094         * stdio-common/vfprintf.: Likewise.
4095
4096 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4097
4098         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4099         <bits/wordsize.h>.
4100         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4101         (__signbit): Likwise.
4102         (llrintf): Likwise.
4103         (llrint): Likwise.
4104
4105 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4106
4107         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4108         __WORDSIZE != 64.
4109
4110 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4111
4112         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4113         OVERFLOW_EXCEPTION_OK.
4114         * math/libm-test.inc ("Philosophy"): Update comment about
4115         exception testing.
4116         (OVERFLOW_EXCEPTION): Define.
4117         (OVERFLOW_EXCEPTION_OK): Likewise.
4118         (INVALID_EXCEPTION_OK): Renumber.
4119         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4120         (IGNORE_ZERO_INF_SIGN): Likewise.
4121         (test_exceptions): Handle FE_OVERFLOW.
4122         (exp10_test): Expect overflow exceptions.
4123         (exp2_test): Likewise.
4124         (expm1_test): Likewise.
4125         (nextafter_test): Likewise.
4126         (pow_test): Likewise.
4127         (scalbn_test): Likewise.
4128         (scalbln_test): Likewise.
4129
4130 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4131
4132         * sysdeps/x86_64/bits/atomic.h
4133         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4134         64bit integer.
4135         (atomic_exchange_acq): Likewise.
4136         (__arch_exchange_and_add_body): Likewise.
4137         (__arch_add_body): Likewise.
4138         (atomic_add_negative): Likewise.
4139         (atomic_add_zero): Likewise.
4140
4141 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4142
4143         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4144         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4145
4146 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4147
4148         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4149         Check __x86_64__ instead of __WORDSIZE.
4150
4151 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4152
4153         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4154
4155 2012-03-19  David S. Miller  <davem@davemloft.net>
4156
4157         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4158
4159         * sysdeps/sparc/fpu/fenv_private.h: New file.
4160         * sysdeps/sparc/fpu/math_private.h: Use it.
4161         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4162         Remove.
4163         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4164         (libc_feholdexcept_setroundl): Remove.
4165         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4166         Remove.
4167         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4168         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4169
4170 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4171
4172         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4173         int64_t instead of long int.
4174         (INSERT_WORDS64): Likwise.
4175
4176 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4177
4178         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4179         _Unwind_GetCFA return to _Unwind_Ptr first.
4180
4181 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4182
4183         [BZ #13629]
4184         * math/s_clog.c: Include <float.h>.
4185         (__clog): Scale large or subnormal inputs.
4186         * math/s_clogf.c: Likewise.
4187         * math/s_clogl.c: Likewise.
4188         * math/s_clog10.c: Include <float.h>.
4189         (M_LOG10_2): Define.
4190         (__clog10): Scale large or subnormal inputs.
4191         * math/s_clog10f.c: Likewise.
4192         * math/s_clog10l.c: Likewise.
4193         * math/libm-test.inc (clog_test): Add more tests.
4194         (clog10_test): Likewise.
4195         * sysdeps/i386/fpu/libm-test-ulps: Update.
4196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4197
4198         [BZ #11451]
4199         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4200         x and y.
4201         * math/libm-test.inc (atan2_test): Add another test.
4202
4203         * Makerules (common-objdir-compile): Remove.
4204         * sysdeps/unix/Makefile (config-generated): Do not add
4205         $(unix-generated) to variable.
4206         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4207         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4208         Remove rule.
4209         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4210         Likewise.
4211         [generic bits/local_lim.h] (before-compile): Do not append to
4212         variable.
4213         [generic bits/local_lim.h] (common-generated): Likewise.
4214         [generic sys/param.h] (before-compile): Do not append to variable.
4215         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4216         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4217         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4218         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4219         include.
4220         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4221         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4222         [generic sys/param.h] ($(addprefix
4223         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4224         [generic sys/param.h] (common-generated): Do not append to
4225         variable.
4226         [generic sys/param.h] (sysdep_headers): Likewise.
4227         [generic bits/errno.h] (before-compile): Do not append to
4228         variable.
4229         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4230         rule.
4231         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4232         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4233         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4234         [generic bits/errno.h] (common-generated): Do not append to
4235         variable.
4236         [generic bits/ioctls.h] (before-compile): Do not append to
4237         variable.
4238         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4239         rule.
4240         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4241         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4242         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4243         rule.
4244         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4245         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4246         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4247         [generic bits/ioctls.h] (common-generated): Do not append to
4248         variable.
4249         [generic sys/syscall.h] (syscall.h): Remove variable.
4250         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4251         rule.
4252         [generic sys/syscall.h] (before-compile): Do not append to
4253         variable.
4254         [generic sys/syscall.h] (common-generated): Likewise.
4255         * sysdeps/unix/errnos-tmpl.c: Remove file.
4256         * sysdeps/unix/errnos.awk: Likewise.
4257         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4258         * sysdeps/unix/ioctls.awk: Likewise.
4259         * sysdeps/unix/mk-local_lim.c: Likewise.
4260         * sysdeps/unix/snarf-ioctls: Likewise.
4261
4262 2012-03-19  Richard Henderson  <rth@twiddle.net>
4263
4264         * sysdeps/i386/fpu/fenv_private.h: New file.
4265         * sysdeps/i386/fpu/math_private.h: Use it.
4266         (math_opt_barrier, math_force_eval): Remove.
4267         (libc_feholdexcept_setround_53bit): Remove.
4268         (libc_feupdateenv_53bit): Remove.
4269         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4270         (math_opt_barrier, math_force_eval): Remove.
4271         (libc_feholdexcept): Remove.
4272         (libc_feholdexcept_setround): Remove.
4273         (libc_fetestexcept, libc_fesetenv): Remove.
4274         (libc_feupdateenv_test): Remove.
4275         (libc_feupdateenv, libc_feholdsetround): Remove.
4276         (libc_feresetround): Remove.
4277
4278         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4279         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4280
4281         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4282         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4283         (libc_feupdateenv_testl): New.
4284         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4285         (libc_feupdateenv_testf): New.
4286         (libc_feupdateenv): Use libc_feupdateenv_test.
4287         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4288         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4289
4290         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4291         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4292         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4293         (libc_feresetround_noex): New.
4294         (libc_feresetround_noexf): New.
4295         (libc_feresetround_noexl): New.
4296         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4297         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4298         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4299         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4300         SET_RESTORE_ROUND.
4301         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4302         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4303         (__cos): Likewise.
4304         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4305         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4306         SET_RESTORE_ROUND_NOEX.
4307         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4308         SET_RESTORE_ROUND_NOEXF.
4309         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4310         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4311         (libc_feholdsetroundf): New.
4312         (libc_feresetround, libc_feresetroundf): New.
4313
4314         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4315         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4316         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4317
4318         * sysdeps/generic/math_private.h: Include <fenv.h>.
4319         (default_libc_feholdexcept): New.
4320         (default_libc_feholdexcept_setround): New.
4321         (default_libc_fesetenv, default_libc_feupdateenv): New.
4322         (libc_feholdexcept): Only define if undefined.
4323         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4324         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4325         (libc_feholdexcept_setroundl): Likewise.
4326         (libc_feholdexcept_setround_53bit): Likewise.
4327         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4328         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4329         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4330         (libc_feupdateenv_53bit): Likewise.
4331         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4332         (libc_feholdexcept): Convert from macro to inline function.
4333         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4334         (libc_fesetenv, libc_feupdateenv): Likewise.
4335
4336         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4337         not previously defined.
4338         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4339         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4340         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4341         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4342         * sysdeps/ieee754/flt-32/math_private.h: New file.
4343         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4344         math_private.h below SET_FLOAT_WORD.
4345         (__isnan, __isinf_ns, __finite): Remove.
4346         (__isnanf, __isinf_nsf, __finitef): Remove.
4347
4348 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4349
4350         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4351
4352 2012-03-17  David S. Miller  <davem@davemloft.net>
4353
4354         [BZ #6471]
4355         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4356         for 2.16.
4357
4358 2012-03-16  David S. Miller  <davem@davemloft.net>
4359
4360         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4361         warnings.
4362
4363         [BZ #6471]
4364         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4365         properly.
4366         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4367         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4368         sysdep_routines when subdir is sysvipc.
4369         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4370         __getshmlba helper.
4371
4372         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4373
4374 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4375
4376         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4377         [__LP64__].
4378
4379 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4380
4381         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4382         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4383         (__lround): Renamed to ...
4384         (__llround): This.  Replace long int with long long int.
4385         Define lround functions as aliases of llround functions.
4386         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4387
4388 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4389
4390         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4391         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4392         adresses to uintptr_t.  Replace "long int" and "unsigned long
4393         int" with "greg_t" on va_arg.
4394
4395 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4396
4397         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4398         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4399
4400         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4401         Move e_machine check before EI_CLASS check.  Handle x32
4402         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4403         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4404         SKIP_EM_IA_64 and include
4405         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4406
4407         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4408         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4409         (add_system_dir): New macro.
4410
4411         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4412         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4413
4414 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4415
4416         [BZ #2551]
4417         [BZ #2552]
4418         [BZ #2553]
4419         [BZ #2554]
4420         [BZ #2562]
4421         [BZ #2563]
4422         [BZ #2565]
4423         [BZ #2566]
4424         [BZ #2576]
4425         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4426         (y0): Likewise.
4427         * math/w_j0f.c (j0f): Likewise.
4428         (y0f): Likewise.
4429         * math/w_j0l.c (__j0l): Likewise.
4430         (__y0l): Likewise.
4431         * math/w_j1.c (j1): Likewise.
4432         (y1): Likewise.
4433         * math/w_j1f.c (j1f): Likewise.
4434         (y1f): Likewise.
4435         * math/w_j1l.c (__j1l): Likewise.
4436         (__y1l): Likewise.
4437         * math/w_jn.c (jn): Likewise.
4438         (yn): Likewise.
4439         * math/w_jnf.c (jnf): Likewise.
4440         (ynf): Likewise.
4441         * math/w_jnl.c (__jnl): Likewise.
4442         (__ynl): Likewise.
4443         * math/libm-test.inc (j0_test): Add more tests.
4444         (j1_test): Likewise.
4445         (jn_test): Likewise.  Add trailing semicolon to existing test.
4446         (y0_test): Likewise.
4447         (y1_test): Likewise.
4448         * sysdeps/i386/fpu/libm-test-ulps: Update.
4449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4450
4451         [BZ #13851]
4452         [BZ #13854]
4453         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4454         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4455         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4456         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4457         (__tanl): Set errno for infinite argument.
4458         * sysdeps/i386/fpu/mptan.c: Remove.
4459         * sysdeps/i386/fpu/s_tan.S: Likewise.
4460         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4461         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4462         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4463         * math/libm-test.inc (tan_test): Add more tests and enable more
4464         tests for double and long double.
4465         * sysdeps/i386/fpu/libm-test-ulps: Update.
4466         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4467
4468 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4469
4470         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
4471         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
4472
4473 2012-03-16  Roland McGrath  <roland@hack.frob.com>
4474
4475         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
4476         * configure.in: Use it for both main tree and add-ons.
4477         * configure: Regenerated.
4478
4479 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4480
4481         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
4482
4483 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4484
4485         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
4486         in comment.
4487
4488         [BZ #13851]
4489         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
4490         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
4491         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4492         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
4493         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
4494         infinite argument.
4495         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
4496         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
4497         != 0 for prec == 2.
4498         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
4499         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
4500         * sysdeps/i386/fpu/s_cosl.S: Likewise.
4501         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4502         * sysdeps/i386/fpu/s_sinl.S: Likewise.
4503         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
4504         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
4505         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
4506         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4507         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
4508         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4509         * math/libm-test.inc (cos_test): Add more tests and enable more
4510         tests for long double.
4511         (sin_test): Likewise.
4512         (sincos_test): Likewise.
4513         * sysdeps/i386/fpu/libm-test-ulps: Update.
4514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4515
4516 2012-03-16  David S. Miller  <davem@davemloft.net>
4517
4518         * sysdeps/sparc/fpu/math_private.h: New file.
4519
4520 2012-03-15  David S. Miller  <davem@davemloft.net>
4521
4522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
4523         file.
4524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
4525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
4526         file.
4527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
4528         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
4529         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
4530         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
4531         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
4532         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
4533         sysdep routines.
4534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4535
4536         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
4537         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
4538
4539         * sysdeps/sparc/sparc-ifunc.h: New file.
4540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
4541         sparc-ifunc.h
4542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4544         Likewise.
4545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4546         Likewise.
4547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
4548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4551         Likewise.
4552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
4557         Likewise.
4558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
4559         Likewise.
4560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4564         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4565         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4566         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
4567         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
4568         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4569         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4570         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4571         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4572         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4573         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4574         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
4575         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4576         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
4577         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4578         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
4579         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4580         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
4581         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4582         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
4583         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4584
4585 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4586
4587         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
4588         scaling.
4589         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4590
4591 2012-03-15  Andreas Jaeger  <aj@suse.de>
4592
4593         [BZ #13852]
4594         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
4595         ieee754/flt-32 implementation for sin, cos and sincos.
4596         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
4597         * sysdeps/i386/fpu/s_cosf.S: Likewise.
4598         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
4599         * sysdeps/i386/fpu/s_sinf.S: Likewise.
4600         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
4601         ieee754/flt-32 implementation for tan.
4602
4603         * math/libm-test.inc (cos_test): Enable some large input tests for
4604         float as well
4605         (sin_test): Likewise.
4606         (sincos_test): Likewise.
4607         (tan_test): Add tests for large input.
4608
4609         * sysdeps/i386/fpu/libm-test-ulps: Update.
4610
4611 2012-03-15  Andreas Jaeger  <aj@suse.de>
4612
4613         [BZ #13658]
4614         * math/libm-test.inc (cos_test): Add more test cases.
4615         (sin_test): Likewise.
4616         (sincos_test): Likewise.
4617
4618 2012-03-15  Andreas Jaeger  <aj@suse.de>
4619
4620         [BZ #13837]
4621         * math/libm-test.inc (cos_test): Add a test case for large input
4622         value.
4623         (sin_test): Likewise.
4624         (sincos_test): Likewise.
4625
4626 2012-03-15  Andreas Jaeger  <aj@suse.de>,
4627         Joseph Myers  <joseph@codesourcery.com>
4628
4629         [BZ #13658]
4630         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
4631         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
4632         * sysdeps/i386/fpu/branred.c: Likewise.
4633         * sysdeps/i386/fpu/dosincos.c: Likewise.
4634         * sysdeps/i386/fpu/mpa.c: Likewise.
4635         * sysdeps/i386/fpu/s_cos.S: Likewise.
4636         * sysdeps/i386/fpu/s_sin.S: Likewise.
4637         * sysdeps/i386/fpu/s_sincos.S: Likewise.
4638         * sysdeps/i386/fpu/sincos32.c: Likewise.
4639
4640         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
4641         Define.
4642         (libc_feupdateenv_53bit): Define.
4643         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
4644         Define.
4645         (libc_feupdateenv_53bit): Define.
4646
4647         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
4648         53 bit (without extend i386 double precision).
4649
4650         * math/libm-test.inc (sincos_test): Add tests for large input.
4651         (sin): Likewise.
4652         (cos): Likewise.
4653
4654         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
4655
4656 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4657
4658         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4659
4660 2012-03-15  David S. Miller  <davem@davemloft.net>
4661
4662         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
4663         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
4664         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
4665         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
4666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
4667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
4668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
4669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
4670         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
4671         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
4672         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
4673         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
4674         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
4675         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
4676         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
4677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
4678         file.
4679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
4680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
4681         file.
4682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
4683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
4684         file.
4685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
4686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
4687         file.
4688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
4689         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
4690         fmin/fmax sysdep routines.
4691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4692
4693 2012-03-14  David S. Miller  <davem@davemloft.net>
4694
4695         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
4696         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
4697         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
4698         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
4699         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
4700         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
4701         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
4702         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
4703         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
4704         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
4705         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
4706         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
4707         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
4708         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
4709         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
4710         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
4711         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
4712         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
4713         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
4714         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
4715         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
4716         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
4717         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
4718         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
4719         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
4720         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
4721         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
4722         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
4723         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
4724         routines.
4725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
4726         file.
4727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
4728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
4729         file.
4730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
4731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
4732         file.
4733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
4734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
4735         file.
4736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
4737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
4738         file.
4739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
4740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
4741         file.
4742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
4743         file.
4744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
4745         file.
4746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
4747         file.
4748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
4749         New file.
4750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
4751         file.
4752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
4753         file.
4754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
4755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
4756         file.
4757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
4758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
4759         file.
4760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
4761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
4762         file.
4763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
4764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
4765         VIS3 routines.
4766
4767         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4768         New file.
4769
4770         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4771
4772         * sysdeps/sparc/configure.in: New file.
4773         * sysdeps/sparc/configure: Generate.
4774         * configure.in (libc_cv_sparc_as_vis3): Substitute.
4775         * configure: Regenerate.
4776         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
4777         * config.make.in (have-as-vis3): New.
4778         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
4779         available use -Av9d instead of -Av9a.
4780         * sysdeps/sparc/sparc64/Makefile: Likewise.
4781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
4782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
4783         New file.
4784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
4785         file.
4786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
4787         New file.
4788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
4789         file.
4790         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
4791         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
4792         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
4793         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
4794         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
4795
4796         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
4797         fzeros/fnegs to load 0x80000000 into a float register instead of
4798         using the stack.
4799         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
4800
4801 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
4802
4803         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4804         bits/syscall.h.
4805         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
4806         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
4807         ($(inst_includedir)/bits/syscall.h): Remove rule.
4808         ($(objpfx)bits/syscall.d): Include instead of
4809         $(objpfx)syscall-list.d.
4810         (generated): Change syscall-list.h and syscall-list.d to
4811         bits/syscall.h and bits/syscall.d.
4812
4813 2012-03-14  Roland McGrath  <roland@hack.frob.com>
4814
4815         [BZ #13846]
4816         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
4817
4818 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
4819
4820         [BZ #13841]
4821         * math/s_csqrt.c: Include <float.h>.
4822         (__csqrt): Scale large or subnormal inputs.
4823         * math/s_csqrtf.c: Likewise.
4824         * math/s_csqrtl.c: Likewise.
4825         * math/libm-test.inc (csqrt_test): Add more tests.
4826         * sysdeps/i386/fpu/libm-test-ulps: Update.
4827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4828
4829         [BZ #13840]
4830         * math/libm-test.inc (hypot_test): Add more tests.
4831
4832 2012-03-13  David S. Miller  <davem@davemloft.net>
4833
4834         [BZ #13840]
4835         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
4836         double-precision for the calculation instead of scaling.
4837
4838 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
4839
4840         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
4841         manipulate bits before adding and subtracting TWO52[sx].
4842         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
4843         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4844         Likewise.
4845         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
4846
4847 2012-03-13  David S. Miller  <davem@davemloft.net>
4848
4849         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
4850         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
4851         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
4852         rtld-global-offsets.h
4853         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4854
4855         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
4856         large parameters.
4857
4858         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
4859
4860         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
4861         'err' in the ifdef scope in which it is actually used.
4862
4863         * nss/nss_db/db-init.c: Include string.h
4864
4865 2012-03-12  David S. Miller  <davem@davemloft.net>
4866
4867         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
4868         masking out of the most significant byte of random value used.
4869         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4870         Fix coding style in previous change.
4871
4872         * sysdeps/unix/sysv/linux/kernel-features.h
4873         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
4874         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
4875         expression.
4876         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
4877         later.
4878
4879 2012-03-11  David S. Miller  <davem@davemloft.net>
4880
4881         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4882         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
4883         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
4884         for 'resultvar' otherwise things get truncated on 64-bit.
4885
4886         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4887         Fix masking out of the most significant byte of random value used.
4888
4889         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4890
4891 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
4892
4893         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4894
4895 2012-03-09  David S. Miller  <davem@davemloft.net>
4896
4897         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
4898         variables with appropriate CPP guards.
4899         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
4900         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
4901         on resulting framesize and the management of the outregs buffer for pltexit.
4902         Preserve floating point return values across _dl_call_pltexit call.
4903         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
4904         framesize and the management of the outregs buffer for pltexit.
4905         Preserve floating point return values across _dl_call_pltexit
4906         call.
4907         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
4908         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
4909         (print_exit): Fix format string for return register value.
4910
4911 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
4912
4913         * sunrpc/Makefile (others): Add rpcgen.
4914         ($(objpfx)rpcgen): Remove special build rule and dependency on
4915         libc.
4916         * sunrpc/rpcgen.c: New file.
4917
4918 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
4919
4920         [BZ #13673]
4921         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
4922         * stdio-common/bug-vfprintf-nargs.c: Likewise.
4923         * sysdeps/i386/crti.S: Likewise.
4924         * sysdeps/i386/crtn.S: Likewise.
4925         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
4926         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
4927         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
4928         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
4929         * sysdeps/sh/crti.S: Likewise.
4930         * sysdeps/sh/crtn.S: Likewise.
4931         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4932
4933         [BZ #13673]
4934         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
4935         with URL.
4936         * locale/programs/locfile-kw.gperf: Likewise.
4937         * locale/programs/charmap-kw.h: Regenerated.
4938         * locale/programs/locfile-kw.h: Likewise.
4939
4940         [BZ #13673]
4941         * intl/plural.y: Replace FSF snail mail address with URL.
4942         * intl/plural.c: Regenerated.
4943
4944 2012-03-09  Richard Henderson  <rth@twiddle.net>
4945
4946         * include/math_private.h: Remove file.
4947         * math/math_private.h: Move file ...
4948         * sysdeps/generic/math_private.h: ... here.
4949
4950         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
4951         * sysdeps/powerpc/fpu/math_private.h: Likewise.
4952         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4953
4954         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
4955         and <math_private.h>.
4956         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4957         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4958         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4959         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4960         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4961         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
4962         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4963         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4964         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4965         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4966         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4967         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4968         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4969         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4970         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4971         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4972         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4973         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4974         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4975         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
4976         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4977         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4978         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4979         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4980         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4981         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4982         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4983         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4984         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4985         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4986         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4987         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4988         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4989         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4990         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4991         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4992         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4993         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4994         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4995         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4996         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
4997         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4998         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4999         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5000         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5001         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5002         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5003         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5004         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5005         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5006         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5007         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5008         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5009         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5010         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5011         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5012         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5013         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5014         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5015         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5016         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5017         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5018         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5019         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5020         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5021         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5022         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5023         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5024         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5025         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5026         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5027         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5028         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5029         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5030         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5031         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5032         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5033         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5034         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5035         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5036         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5037         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5038         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5039         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5040         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5041         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5042         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5043         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5044         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5045         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5046         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5047         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5048         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5049         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5050         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5051         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5052         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5053         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5054         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5055         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5056         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5057         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5058         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5059         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5060         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5061         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5062         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5063         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5064         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5065         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5066         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5067         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5068         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5069         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5070         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5071         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5072         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5073         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5074         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5075         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5076         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
5077         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
5078         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5079         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
5080         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
5081         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
5082         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
5083         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
5084         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
5085         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
5086         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
5087         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5088         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
5089         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
5090         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
5091         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
5092         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
5093         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
5094         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5095         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5096         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5097         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5098         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5099         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5100         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5101         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5102         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5103         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5104         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5105         * sysdeps/ieee754/k_standard.c: Likewise.
5106         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5107         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5108         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5109         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5110         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5111         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5112         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5113         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5114         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5115         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5116         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5117         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5118         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5119         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5120         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5121         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5122         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5123         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5124         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5125         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5126         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5127         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5128         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5129         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5130         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5131         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5132         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5133         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5134         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5135         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5136         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5137         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5138         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5139         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5140         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5141         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5142         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5143         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5144         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5145         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5146         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5147         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5148         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5149         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5150         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5151         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5152         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5153         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5154         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5155         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5156         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5157         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5158         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5159         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5160         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5161         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5162         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5163         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5164         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5165         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5166         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5167         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5168         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5169         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5170         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5171         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5172         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5173         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5174         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5175         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5176         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5177         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5178         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5179         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5180         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5181         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5182         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5183         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5184         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5185         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5186         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5187         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5188         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5189         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5190         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5191         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5192         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5193         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5194         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5195         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5196         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5197         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5198         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5199         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5200         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5201         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5202         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5203         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5204         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5205         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5206         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5207         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5208         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5209         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5210         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5211         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5212         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5213         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5214         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5215         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5216         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5217         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5218         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5219         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5220         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5221         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5222         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5223         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5224         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5225         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5226         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5227         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5228         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5229         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5230         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5231         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5232         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5233         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5234         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5235         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5236         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5237         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5238         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5239         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5240         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5241         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5242         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5243         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5244         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5245         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5246         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5247         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5248         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5249         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5250         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5251         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5252         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5253         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5254         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5255         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5256         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5257         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5258         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5259         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5260         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5261         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5262         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5263         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5264         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5265         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5266         * sysdeps/ieee754/s_lib_version.c: Likewise.
5267         * sysdeps/ieee754/s_matherr.c: Likewise.
5268         * sysdeps/ieee754/s_signgam.c: Likewise.
5269         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5270         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5271         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5272         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5273         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5274         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5275         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5276         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5277         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5278         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5279         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5280         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5281         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5282         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5283         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5284         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5285         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5286         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5287         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5288         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5289         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5290
5291 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5292
5293         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5294         * sunrpc/rpc_main.c: Likewise.
5295         * sunrpc/rpc_svcout.c: Likewise.
5296
5297 2012-03-09  David S. Miller  <davem@davemloft.net>
5298
5299         * include/math_private.h: New file.
5300
5301 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5302
5303         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5304         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5305         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5306         from <bits/socket_type.h>.
5307         (enum __socket_type): Don't define here.
5308         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5309         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5310         bits/socket_type.h.
5311
5312         [BZ #13566]
5313         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5314         checking __USE_GNU.
5315
5316         * Makerules ($(inst_includedir)/%.h): New rule.
5317         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5318         (install-others): Remove variable setting.
5319         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5320
5321 2012-03-08  Richard Henderson  <rth@twiddle.net>
5322
5323         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5324         from macro to inline function; merge with the
5325         !__LIBC_INTERNAL_MATH_INLINES version.
5326         (__ieee754_sqrtf): Likewise.
5327
5328         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5329         to inline function.
5330         (__rintf, __floor, __floorf): Likewise.
5331
5332         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5333         macro to inline function.
5334         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5335
5336         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5337         not <math/math_private.h>.
5338
5339 2012-03-08  David S. Miller  <davem@davemloft.net>
5340
5341         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5342         copyright year.
5343         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5344
5345 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5346
5347         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5348         normalization.
5349         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5350         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5351
5352 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5353
5354         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5355         be defined individually, they must be defined as a block.  Define
5356         S for printing a string instead of hidint the different by using a
5357         macro for adding the 'l'.
5358         * stdio-common/tst-fphex-wide.c: Adjust.
5359
5360 2012-03-07  Marek Polacek  <polacek@redhat.com>
5361
5362         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5363
5364 2012-03-08  Marek Polacek  <polacek@redhat.com>
5365
5366         [BZ #13806]
5367         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5368         * stdio-common/tst-fphex.c: Define a few macros to make the
5369         test reusable.  Use them.
5370         * stdio-common/tst-fphex-wide.c: New file.
5371
5372 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5373
5374         [BZ #6911]
5375         * manual/macros.texi (gnusystems): New macro.
5376         (nongnusystems): Likewise.
5377         (gnulinuxhurdsystems): Likewise.
5378         (gnuhurdsystems): Likewise..
5379         (gnulinuxsystems): Likewise.
5380         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5381         variants of the GNU system, not "GNU system".
5382         * manual/conf.texi: Likewise.
5383         * manual/errno.texi: Likewise.  Update example of errno macro
5384         expansion.
5385         * manual/filesys.texi: Likewise.
5386         (getumask): Document as specific to GNU/Hurd.
5387         * manual/install.texi: Likewise.  Reword some references to
5388         GNU/Linux.
5389         * manual/intro.texi: Likewise.
5390         * manual/io.texi: Likewise.
5391         (File Name Portability): Detail which constraints are inapplicable
5392         to all GNU systems and which are only inapplicable to GNU/Hurd.
5393         * manual/job.texi: Likewise.
5394         * manual/llio.texi: Likewise.
5395         (O_NOCTTY): Document as present on GNU/Linux.
5396         * manual/maint.texi: Likewise.
5397         * manual/memory.texi: Likewise.
5398         * manual/pattern.texi: Likewise.
5399         * manual/pipe.texi: Likewise.
5400         * manual/process.texi: Likewise.
5401         * manual/resource.texi: Likewise.
5402         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5403         child on GNU/Hurd.
5404         * manual/setjmp.texi: Likewise.
5405         * manual/signal.texi: Likewise.
5406         * manual/startup.texi: Likewise.
5407         * manual/stdio.texi: Likewise.
5408         * manual/terminal.texi: Likewise.
5409         (ONLCR): Document as POSIX.
5410         (OXTABS): Document availability on GNU/Linux as XTABS.
5411         (ONOEOT): Document availability separately from other bits.
5412         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5413         * manual/time.texi: Likewise.
5414         * manual/users.texi: Likewise.
5415         * INSTALL: Regenerated.
5416         * sysdeps/gnu/errlist.c: Regenerated.
5417
5418         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5419         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5420         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5421         puts.
5422         * configure: Regenerated.
5423
5424 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5425
5426         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5427         default includes instead of AC_HEADER_CHECK.
5428         * sysdeps/i386/configure: Regenerated.
5429
5430         [BZ #10716]
5431         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5432         * math/s_cacoshf.c (__cacoshf): Likewise.
5433         * math/s_cacoshl.c (__cacoshl): Likewise.
5434         * math/s_casinh.c (__casinh): Set signs of result from argument.
5435         * math/s_casinhf.c (__casinhf): Likewise.
5436         * math/s_casinhl.c (__casinhl): Likewise.
5437         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5438         (casinh_test): Add more tests.
5439         * sysdeps/i386/fpu/libm-test-ulps: Update.
5440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5441
5442 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5443
5444         * po/zh_TW.po: Update from translation team.
5445
5446         * login/Makefile (distribute): Remove variable.
5447         * catgets/Makefile: Likewise.
5448         * mach/Makefile: Likewise.
5449         * malloc/Makefile: Likewise.
5450         * misc/Makefile: Likewise.
5451         * iconv/Makefile: Likewise.
5452         * nscd/Makefile: Likewise.
5453         * hurd/Makefile: Likewise.
5454         * manual/Makefile: Likewise.
5455         * locale/Makefile: Likewise.
5456         * intl/Makefile: Likewise.
5457         * conform/Makefile: Likewise.
5458         * nss/Makefile: Likewise.
5459         * time/Makefile: Likewise.
5460         * soft-fp/Makefile: Likewise.
5461         * dirent/Makefile: Likewise.
5462         * gmon/Makefile: Likewise.
5463         * po/Makefile: Likewise.
5464         * rt/Makefile: Likewise.
5465         * socket/Makefile: Likewise.
5466         * math/Makefile: Likewise.
5467         * signal/Makefile: Likewise.
5468         * debug/Makefile: Likewise.
5469         * elf/Makefile: Likewise.
5470         * timezone/Makefile: Likewise.
5471         * stdlib/Makefile: Likewise.
5472         * iconvdata/Makefile: Likewise.
5473         * sunrpc/Makefile: Likewise.
5474         * io/Makefile: Likewise.
5475         * argp/Makefile: Likewise.
5476         * inet/Makefile: Likewise.
5477         * hesiod/Makefile: Likewise.
5478         * grp/Makefile: Likewise.
5479         * csu/Makefile: Likewise.
5480         * wctype/Makefile: Likewise.
5481         * crypt/Makefile: Likewise.
5482         * libio/Makefile: Likewise.
5483         * string/Makefile: Likewise.
5484         * nis/Makefile: Likewise.
5485         * resolv/Makefile: Likewise.
5486         * stdio-common/Makefile: Likewise.
5487         * wcsmbs/Makefile: Likewise.
5488         * dlfcn/Makefile: Likewise.
5489         * posix/Makefile: Likewise.
5490
5491         [BZ #6959]
5492         * timezone/Makefile: Don't install timezone files, just the programs
5493         and scripts.
5494
5495 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
5496
5497         * nss/databases.def: Add missing gshadow entry.
5498
5499         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
5500
5501 2012-03-06  Marek Polacek  <polacek@redhat.com>
5502
5503         [BZ #13726]
5504         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
5505         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5506         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
5507         * stdio-common/tst-long-dbl-fphex.c: New file.
5508
5509 2012-03-06  David S. Miller  <davem@davemloft.net>
5510
5511         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5512         (set_obp_int): New function.
5513         (get_obp_int): New function.
5514         (__get_clockfreq_via_dev_openprom): Likewise.
5515         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5516         Avoid unused variable warnings on 'val' and use builtin_expect.
5517         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
5518         __builtin_expect.
5519         (INLINE_CLONE_SYSCALL): Likewise.
5520
5521 2012-03-05  David S. Miller  <davem@davemloft.net>
5522
5523         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5524
5525 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
5526
5527         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5528
5529         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
5530         only for |x| >= 40.
5531         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5532
5533 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5534
5535         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
5536         Replace gettimeofday with __vdso_gettimeofday.
5537
5538         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5539         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
5540         __vdso_clock_gettime and __vdso_getcpu.
5541
5542         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
5543         time with __vdso_time.
5544
5545 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5546
5547         * manual/lang.texi (size_t): Note types to which size_t may be
5548         equivalent with the GNU C Library, but do not describe when
5549         differences between them are significant.
5550
5551 2012-03-05  Andreas Jaeger  <aj@suse.de>
5552
5553         * sysdeps/i386/fpu/libm-test-ulps: Update.
5554
5555 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5556
5557         [BZ #3976]
5558         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
5559         (__ieee754_pow): Save and restore rounding mode and use
5560         round-to-nearest for main computations.
5561         * math/libm-test.inc (pow_test_tonearest): New function.
5562         (pow_test_towardzero): Likewise.
5563         (pow_test_downward): Likewise.
5564         (pow_test_upward): Likewise.
5565         (main): Call the new functions.
5566         * sysdeps/i386/fpu/libm-test-ulps: Update.
5567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5568
5569         [BZ #3976]
5570         * math/libm-test.inc (cosh_test_tonearest): New function.
5571         (cosh_test_towardzero): Likewise.
5572         (cosh_test_downward): Likewise.
5573         (cosh_test_upward): Likewise.
5574         (sinh_test_tonearest): Likewise.
5575         (sinh_test_towardzero): Likewise.
5576         (sinh_test_downward): Likewise.
5577         (sinh_test_upward): Likewise.
5578         (main): Call the new functions.
5579         * sysdeps/i386/fpu/libm-test-ulps: Update.
5580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5581
5582 2012-03-05  Tom de Vries  <tom@codesourcery.com>
5583
5584         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
5585         default stack guard is set in last bytes.
5586         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
5587
5588 2012-03-05  Kees Cook  <keescook@chromium.org>
5589
5590         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
5591
5592         [BZ #13656]
5593         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
5594         possibly allocate from heap instead of stack.
5595         * stdio-common/bug-vfprintf-nargs.c: New file.
5596         * stdio-common/Makefile (tests): Add nargs overflow test.
5597
5598 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
5599
5600         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5601
5602 2012-03-03  Marek Polacek  <polacek@redhat.com>
5603
5604         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
5605         * math/math_private.h: Likewise.
5606         * stdlib/tst-strtod.c: Likewise.
5607         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5608         * sysdeps/x86_64/bits/atomic.h: Likewise.
5609
5610 2012-03-02  David S. Miller  <davem@davemloft.net>
5611
5612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
5613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
5614         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
5615         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
5616         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
5617         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
5618         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
5619         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
5620
5621 2012-03-02  Roland McGrath  <roland@hack.frob.com>
5622
5623         [BZ #13792]
5624         * manual/examples/README: New file, says the example source files
5625         can be used under GPL>=2.
5626         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
5627         line containing just "*/".
5628         * manual/examples/add.c: Add copyright header (GPL>=2).
5629         * manual/examples/argp-ex1.c: Likewise.
5630         * manual/examples/argp-ex2.c: Likewise.
5631         * manual/examples/argp-ex3.c: Likewise.
5632         * manual/examples/argp-ex4.c: Likewise.
5633         * manual/examples/atexit.c: Likewise.
5634         * manual/examples/db.c: Likewise.
5635         * manual/examples/dir.c: Likewise.
5636         * manual/examples/dir2.c: Likewise.
5637         * manual/examples/execinfo.c: Likewise.
5638         * manual/examples/filecli.c: Likewise.
5639         * manual/examples/filesrv.c: Likewise.
5640         * manual/examples/fmtmsgexpl.c: Likewise.
5641         * manual/examples/genpass.c: Likewise.
5642         * manual/examples/inetcli.c: Likewise.
5643         * manual/examples/inetsrv.c: Likewise.
5644         * manual/examples/isockad.c: Likewise.
5645         * manual/examples/longopt.c: Likewise.
5646         * manual/examples/memopen.c: Likewise.
5647         * manual/examples/memstrm.c: Likewise.
5648         * manual/examples/mkfsock.c: Likewise.
5649         * manual/examples/mkisock.c: Likewise.
5650         * manual/examples/mygetpass.c: Likewise.
5651         * manual/examples/pipe.c: Likewise.
5652         * manual/examples/popen.c: Likewise.
5653         * manual/examples/rprintf.c: Likewise.
5654         * manual/examples/search.c: Likewise.
5655         * manual/examples/select.c: Likewise.
5656         * manual/examples/setjmp.c: Likewise.
5657         * manual/examples/sigh1.c: Likewise.
5658         * manual/examples/sigusr.c: Likewise.
5659         * manual/examples/stpcpy.c: Likewise.
5660         * manual/examples/strdupa.c: Likewise.
5661         * manual/examples/strftim.c: Likewise.
5662         * manual/examples/strncat.c: Likewise.
5663         * manual/examples/subopt.c: Likewise.
5664         * manual/examples/swapcontext.c: Likewise.
5665         * manual/examples/termios.c: Likewise.
5666         * manual/examples/testopt.c: Likewise.
5667         * manual/examples/testpass.c: Likewise.
5668         * manual/examples/timeval_subtract.c: Likewise.
5669
5670         [BZ #13792]
5671         * manual/time.texi (Elapsed Time): Move timeval_subtract example
5672         function to ...
5673         * manual/timeval_subtract.c.texi: ... here, new file.
5674
5675 2012-03-02  David S. Miller  <davem@davemloft.net>
5676
5677         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
5678
5679 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
5680
5681         [BZ #3976]
5682         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
5683         (__sin): Save and restore rounding mode and use round-to-nearest
5684         for all computations.
5685         (__cos): Save and restore rounding mode and use round-to-nearest
5686         for all computations.
5687         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
5688         <fenv.h>.
5689         (tan): Save and restore rounding mode and use round-to-nearest for
5690         all computations.
5691         * math/libm-test.inc (cos_test_tonearest): New function.
5692         (cos_test_towardzero): Likewise.
5693         (cos_test_downward): Likewise.
5694         (cos_test_upward): Likewise.
5695         (sin_test_tonearest): Likewise.
5696         (sin_test_towardzero): Likewise.
5697         (sin_test_downward): Likewise.
5698         (sin_test_upward): Likewise.
5699         (tan_test_tonearest): Likewise.
5700         (tan_test_towardzero): Likewise.
5701         (tan_test_downward): Likewise.
5702         (tan_test_upward): Likewise.
5703         (main): Call the new functions.
5704         * sysdeps/i386/fpu/libm-test-ulps: Update.
5705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5706
5707         [BZ #10135]
5708         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
5709         small n, then large n, before computing and testing k+n.
5710         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5711         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5712         Likewise.
5713         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5714         Likewise.
5715         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
5716         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5717         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5718         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5719         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5720         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5721         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5722         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
5723         * math/libm-test.inc (scalbn_test): Add more tests.
5724         (scalbln_test): Likewise.
5725
5726         * manual/filesys.texi (mode_t): Describe constraints on size and
5727         signedness, not exact equivalence to a particular type.
5728         (ino_t): Likewise.
5729         (ino64_t): Likewise.
5730         (dev_t): Likewise.
5731         (nlink_t): Likewise.
5732         (blkcnt_t): Likewise.
5733         (blkcnt64_t): Likewise.
5734         * manual/llio.texi (off_t): Likewise.
5735
5736         [BZ #3976]
5737         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
5738         (__ieee754_exp): Save and restore rounding mode and use
5739         round-to-nearest for all computations.
5740         * math/libm-test.inc (exp_test_tonearest): New function.
5741         (exp_test_towardzero): Likewise.
5742         (exp_test_downward): Likewise.
5743         (exp_test_upward): Likewise.
5744         (main): Call the new functions.
5745         * sysdeps/i386/fpu/libm-test-ulps: Update.
5746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5747
5748 2012-03-01  Chris Demetriou  <cgd@google.com>
5749
5750         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
5751         have predictable order.
5752
5753 2012-03-01  David S. Miller  <davem@davemloft.net>
5754
5755         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
5756
5757         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
5758         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
5759         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
5760         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
5761
5762         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
5763         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
5764         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
5765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
5766         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
5767         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
5768         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
5769         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
5770         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
5771
5772         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5773
5774         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
5775         * sysdeps/sparc/fpu/libm-test-ulps: to here.
5776         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
5777
5778         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
5779         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5780         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5781         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5782         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5783         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5784         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5785         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5786         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5787         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5788         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5789         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5790         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5791         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
5792         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
5793         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5794         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
5795         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
5796         * sysdeps/sparc/elf/configure: Regenerated.
5797
5798 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
5799
5800         * configure.in (AS, LD): Require binutils 2.20 or later.
5801         * configure: Regenerated.
5802         * manual/install.texi (Tools for Compilation): Give binutils 2.20
5803         as required minimum version.
5804         * INSTALL: Regenerated.
5805
5806         [BZ #2541]
5807         [BZ #4108]
5808         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
5809         before squaring exponent.
5810         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
5811         bottom long double and 27 bits of top long double before squaring
5812         exponent.
5813         * math/libm-test.inc (erfc_test): Add more tests.
5814         * sysdeps/i386/fpu/libm-test-ulps: Update.
5815         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5817
5818 2012-03-01  Kai Tietz  <ktietz@redhat.com>
5819
5820         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
5821         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
5822         containing bit-fields.
5823         * soft-fp/extended.h (_FP_UNION_E): Likewise.
5824         * soft-fp/single.h (_FP_UNION_S): Likewise.
5825         * soft-fp/double.h (_FP_UNION_D): Likewise.
5826
5827 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5828
5829         [BZ #13786]
5830         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
5831         not include ../strcmp.S.
5832         [USE_AS_STRNCASECMP_L]: Likewise.
5833         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
5834         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
5835         * sysdeps/i386/i686/multiarch/strncase_l-c.c
5836         (__strncasecmp_l_ia32): Define as alias to
5837         __strncasecmp_l_nonascii.
5838
5839         [BZ #5794]
5840         * math/libm-test.inc (expm1_test): Add test for bug 5794.
5841         * sysdeps/i386/fpu/libm-test-ulps: Update.
5842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5843
5844         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
5845         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5846
5847 2012-02-29  Jeff Law  <law@redhat.com>
5848
5849         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
5850         out of bounds read.
5851
5852 2012-02-29  Marek Polacek  <polacek@redhat.com>
5853
5854         [BZ #13706]
5855         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
5856         * elf/Makefile: Add rules to run tst-unused-dep.out.
5857
5858 2012-02-28  David S. Miller  <davem@davemloft.net>
5859
5860         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
5861         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
5862         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
5863         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
5864         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
5865         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
5866
5867 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5868
5869         * math/libm-test.inc (llround_test): Move one test from
5870         lround_test.  Use TEST_f_L in moved test.
5871         (lround_test): Move misplaced test to llround_test.  Add testcase
5872         from bug 2561.
5873
5874 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
5875
5876         * sysdeps/x86_64/fpu/e_expf.S: New file.
5877         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
5878
5879 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
5880
5881         [BZ #13637]
5882         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
5883         of remain_len that may cause incomplete multi-byte character and
5884         false match.
5885         * posix/bug-regex33.c: New file.
5886         * posix/Makefile (tests): Add bug-regex33.
5887
5888 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
5889
5890         * manual/macros.texi: New file.
5891         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
5892         * manual/libc.texinfo: Include macros.texi.
5893         * manual/creatute.texi: Likewise.
5894         * manual/install.texi: Likewise.
5895         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
5896         @glibcadj{} in references to the GNU C Library.
5897         * manual/charset.texi: Likewise.
5898         * manual/conf.texi: Likewise.
5899         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
5900         when not using those macros.
5901         * manual/creature.texi: Likewise.
5902         * manual/crypt.texi: Likewise.
5903         * manual/errno.texi: Likewise.
5904         * manual/filesys.texi: Likewise.
5905         * manual/header.texi: Likewise.
5906         * manual/install.texi: Likewise.
5907         * manual/intro.texi: Likewise.
5908         * manual/io.texi: Likewise.
5909         * manual/job.texi: Likewise.
5910         * manual/lang.texi: Likewise.
5911         * manual/libc.texiinfo: Likewise.
5912         * manual/llio.texi: Likewise.
5913         * manual/locale.texi: Likewise.
5914         * manual/maint.texi: Likewise.
5915         * manual/math.texi: Likewise.
5916         * manual/memory.texi: Likewise.
5917         * manual/message.texi: Likewise.
5918         * manual/nss.texi: Likewise.
5919         * manual/pattern.texi: Likewise.
5920         * manual/process.texi: Likewise.
5921         * manual/resource.texi: Likewise.
5922         * manual/search.texi: Likewise.
5923         * manual/setjmp.texi: Likewise.
5924         * manual/signal.texi: Likewise.
5925         * manual/socket.texi: Likewise.
5926         * manual/startup.texi: Likewise.
5927         * manual/stdio.texi: Likewise.
5928         * manual/string.texi: Likewise.
5929         * manual/sysinfo.texi: Likewise.
5930         * manual/syslog.texi: Likewise.
5931         * manual/terminal.texi: Likewise.
5932         * manual/time.texi: Likewise.
5933         * manual/users.texi: Likewise.
5934         * INSTALL: Regenerated.
5935         * NOTES: Regenerated.
5936         * sysdeps/gnu/errlist.c: Regenerated.
5937
5938 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
5939
5940         * include/dirent.h: Include <dirstream.h> before
5941         <dirent/dirent.h>.
5942
5943 2012-02-28  David S. Miller  <davem@davemloft.net>
5944
5945         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
5946         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
5947         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
5948         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
5949
5950 2012-02-27  David S. Miller  <davem@davemloft.net>
5951
5952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
5953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
5954         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
5955         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
5956
5957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
5958         frame pointer instead of stack pointer relative arg slot.
5959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5960         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5961         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5962
5963 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
5964
5965         [BZ #3992]
5966         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
5967
5968 2012-02-27  David S. Miller  <davem@davemloft.net>
5969
5970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
5971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5972         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5973         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
5974         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5975         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5976         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
5977         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
5978
5979 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
5980
5981         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
5982         later.  Allow versions 5-9.
5983         * configure: Regenerated.
5984         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
5985         required minimum version and 4.6 as recommended version.  Do not
5986         mention bugs in GCC 2.7 and 2.8.
5987         * INSTALL: Regenerated.
5988
5989 2012-02-27  David S. Miller  <davem@davemloft.net>
5990
5991         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
5992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
5993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
5994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
5995         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
5996         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
5997         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
5998         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
5999
6000         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6001         manipulate bits before adding and subtracting TWO112[sx].
6002         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6003
6004 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6005
6006         [BZ #13775]
6007         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6008         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6009         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6010         being in POSIX, because they are in 1003.1-2008.
6011
6012         * rt/tst-aio.c: Include <fcntl.h>.
6013         * rt/tst-aio7.c: Likewise.
6014         * rt/tst-aio64.c: Likewise.
6015
6016         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6017
6018 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6019
6020         * manual/install.texi (--with-headers): Describe headers as
6021         interface headers, not private headers.
6022         (Specific advice for GNU/Linux systems): Describe use of headers
6023         from "make headers_install", not private headers from older
6024         kernels.
6025         * INSTALL: Regenerated.
6026         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6027         Change to 2.6.19.
6028         * sysdeps/unix/sysv/linux/configure: Regenerated.
6029
6030         * manual/llio.texi (fclean): Remove documentation.
6031
6032         * manual/Makefile (libc-texi-generated): New variable.  Include
6033         version.texi.
6034         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6035         $(libc-texi-generated), not duplicated list of files.
6036         (version.texi, stamp-version): New rules.
6037         (realclean): Remove $(libc-texi-generated), not individual files
6038         from that list.  Do not remove dir-add.texinfo.
6039         * manual/libc.texinfo: Comment out uses of edition numbers and
6040         references to printed manual.  Remove last-updated dates.
6041         (EDITION): Comment out.
6042         (ISBN): Likewise.
6043         (VERSION, UPDATED): Remove.
6044         (version.texi): Include.
6045
6046 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6047
6048         * sysdeps/posix/spawni.c: Include <signal.h>.
6049         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6050         * sysdeps/pthread/aio_fsync.c: Likewise.
6051
6052 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6053
6054         * conform/Makefile (tests): Run only when not cross-compiling and
6055         when fast-check is not defined.
6056
6057         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6058         * conform/data/limits.h-data: Fixes for POSIX2008.
6059         * conform/run-conformtest.sh: Run all tests.
6060         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6061         headers.
6062         * include/bits/dlfcn.h: Likewise.
6063         * include/langinfo.h: Likewise.
6064         * include/monetary.h: Likewise.
6065         * include/sys/poll.h: Likewise.
6066
6067         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6068         for __USE_GNU.
6069         * posix/spawn.h: Define __need_sigset_t.
6070         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6071         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6072         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6073         to get sigevent_t only.
6074         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6075         only for __USE_GNU.
6076         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
6077         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
6078         process_vm_writev only for __USE_GNU.
6079         * termios/termios.h: Declare tcgetsid also for POSIX2008.
6080
6081         * conform/Makefile: For now ignore errors from run-conformtest.
6082         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
6083         POSIX to avoid namespace pollution.  Don't prepend headers.
6084         * conform/data/aio.h-data: Fixes for POSIX testing.
6085         * conform/data/fcntl.h-data: Likewise.
6086         * conform/data/glob.h-data: Likewise.
6087         * conform/data/grp.h-data: Likewise.
6088         * conform/data/pthread.h-data: Likewise.
6089         * conform/data/pwd.h-data: Likewise.
6090         * conform/data/signal.h-data: Likewise.
6091         * conform/data/spawn.h-data: Likewise.
6092         * conform/data/stdio.h-data: Likewise.
6093         * conform/data/stdlib.h-data: Likewise.
6094         * conform/data/stropts.h-data: Likewise.
6095         * conform/data/sys/mman.h-data: Likewise.
6096         * conform/data/sys/stat.h-data: Likewise.
6097         * conform/data/sys/types.h-data: Likewise.
6098         * conform/data/sys/wait.h-data: Likewise.
6099         * conform/data/time.h-data: Likewise.
6100         * conform/data/unistd.h-data: Likewise.
6101         * conform/data/utime.h-data: Likewise.
6102
6103         * io/sys/stat.h: fchmod was always in POSIX.
6104         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6105         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6106         * rt/aio.h: Define __need_timespec before including <time.h>.
6107         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6108         struct.  Add forward declaration of pthread_attr_t and use it in
6109         sigevent.
6110         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6111         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6112         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6113         always remove CLK_TCK definition.
6114
6115 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6116
6117         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6118
6119 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6120
6121         * conform/run-conformtest.sh: New file.
6122         * conform/Makefile: Run run-conformtest for tests.
6123         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6124         support.
6125
6126         * conform/data/uchar.h-data: New file.
6127         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6128         * conform/data/arpa/inet.h-data: Likewise.
6129         * conform/data/assert.h-data: Likewise.
6130         * conform/data/complex.h-data: Likewise.
6131         * conform/data/cpio.h-data: Likewise.
6132         * conform/data/ctype.h-data: Likewise.
6133         * conform/data/dirent.h-data: Likewise.
6134         * conform/data/dlfcn.h-data: Likewise.
6135         * conform/data/errno.h-data: Likewise.
6136         * conform/data/fcntl.h-data: Likewise.
6137         * conform/data/float.h-data: Likewise.
6138         * conform/data/fmtmsg.h-data: Likewise.
6139         * conform/data/fnmatch.h-data: Likewise.
6140         * conform/data/ftw.h-data: Likewise.
6141         * conform/data/glob.h-data: Likewise.
6142         * conform/data/grp.h-data: Likewise.
6143         * conform/data/iconv.h-data: Likewise.
6144         * conform/data/inttypes.h-data: Likewise.
6145         * conform/data/langinfo.h-data: Likewise.
6146         * conform/data/libgen.h-data: Likewise.
6147         * conform/data/limits.h-data: Likewise.
6148         * conform/data/locale.h-data: Likewise.
6149         * conform/data/math.h-data: Likewise.
6150         * conform/data/monetary.h-data: Likewise.
6151         * conform/data/mqueue.h-data: Likewise.
6152         * conform/data/ndbm.h-data: Likewise.
6153         * conform/data/net/if.h-data: Likewise.
6154         * conform/data/netdb.h-data: Likewise.
6155         * conform/data/netinet/in.h-data: Likewise.
6156         * conform/data/nl_types.h-data: Likewise.
6157         * conform/data/poll.h-data: Likewise.
6158         * conform/data/pthread.h-data: Likewise.
6159         * conform/data/pwd.h-data: Likewise.
6160         * conform/data/regex.h-data: Likewise.
6161         * conform/data/sched.h-data: Likewise.
6162         * conform/data/search.h-data: Likewise.
6163         * conform/data/semaphore.h-data: Likewise.
6164         * conform/data/setjmp.h-data: Likewise.
6165         * conform/data/signal.h-data: Likewise.
6166         * conform/data/spawn.h-data: Likewise.
6167         * conform/data/stdarg.h-data: Likewise.
6168         * conform/data/stdio.h-data: Likewise.
6169         * conform/data/stdlib.h-data: Likewise.
6170         * conform/data/string.h-data: Likewise.
6171         * conform/data/strings.h-data: Likewise.
6172         * conform/data/stropts.h-data: Likewise.
6173         * conform/data/sys/ipc.h-data: Likewise.
6174         * conform/data/sys/mman.h-data: Likewise.
6175         * conform/data/sys/msg.h-data: Likewise.
6176         * conform/data/sys/resource.h-data: Likewise.
6177         * conform/data/sys/select.h-data: Likewise.
6178         * conform/data/sys/sem.h-data: Likewise.
6179         * conform/data/sys/shm.h-data: Likewise.
6180         * conform/data/sys/socket.h-data: Likewise.
6181         * conform/data/sys/stat.h-data: Likewise.
6182         * conform/data/sys/statvfs.h-data: Likewise.
6183         * conform/data/sys/time.h-data: Likewise.
6184         * conform/data/sys/timeb.h-data: Likewise.
6185         * conform/data/sys/times.h-data: Likewise.
6186         * conform/data/sys/types.h-data: Likewise.
6187         * conform/data/sys/uio.h-data: Likewise.
6188         * conform/data/sys/un.h-data: Likewise.
6189         * conform/data/sys/utsname.h-data: Likewise.
6190         * conform/data/sys/wait.h-data: Likewise.
6191         * conform/data/syslog.h-data: Likewise.
6192         * conform/data/tar.h-data: Likewise.
6193         * conform/data/termios.h-data: Likewise.
6194         * conform/data/utime.h-data: Likewise.
6195         * conform/data/utmpx.h-data: Likewise.
6196         * conform/data/varargs.h-data: Likewise.
6197         * conform/data/wchar.h-data: Likewise.
6198         * conform/data/wctype.h-data: Likewise.
6199         * conform/data/wordexp.h-data: Likewise.
6200
6201         * include/stropts.h: New file.
6202         * include/uchar.h: New file.
6203         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6204         * include/assert.h: Likewise.
6205         * include/ctype.h: Likewise.
6206         * include/dirent.h: Likewise.
6207         * include/dlfcn.h: Likewise.
6208         * include/fcntl.h: Likewise.
6209         * include/fnmatch.h: Likewise.
6210         * include/glob.h: Likewise.
6211         * include/grp.h: Likewise.
6212         * include/libio.h: Likewise.
6213         * include/locale.h: Likewise.
6214         * include/math.h: Likewise.
6215         * include/net/if.h: Likewise.
6216         * include/netdb.h: Likewise.
6217         * include/netinet/in.h: Likewise.
6218         * include/pthread.h: Likewise.
6219         * include/pwd.h: Likewise.
6220         * include/regex.h: Likewise.
6221         * include/sched.h: Likewise.
6222         * include/search.h: Likewise.
6223         * include/setjmp.h: Likewise.
6224         * include/signal.h: Likewise.
6225         * include/stdio.h: Likewise.
6226         * include/stdlib.h: Likewise.
6227         * include/string.h: Likewise.
6228         * include/sys/cdefs.h: Likewise.
6229         * include/sys/mman.h: Likewise.
6230         * include/sys/msg.h: Likewise.
6231         * include/sys/resource.h: Likewise.
6232         * include/sys/select.h: Likewise.
6233         * include/sys/socket.h: Likewise.
6234         * include/sys/stat.h: Likewise.
6235         * include/sys/statvfs.h: Likewise.
6236         * include/sys/time.h: Likewise.
6237         * include/sys/times.h: Likewise.
6238         * include/sys/uio.h: Likewise.
6239         * include/sys/utsname.h: Likewise.
6240         * include/sys/wait.h: Likewise.
6241         * include/termios.h: Likewise.
6242         * include/time.h: Likewise.
6243         * include/ulimit.h: Likewise.
6244         * include/unistd.h: Likewise.
6245         * include/utime.h: Likewise.
6246         * include/wchar.h: Likewise.
6247         * include/wctype.h: Likewise.
6248         * include/wordexp.h: Likewise.
6249
6250         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6251
6252         * time/time.h: TIME_UTC must be a macro.
6253         Make timespec_get available for ISO C11 only as well.
6254
6255 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6256
6257         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6258         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6259
6260 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6261
6262         * configure.in: Use -o not -a in test for unsupported multi-arch.
6263
6264 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6265
6266         * manual/texinfo.tex: Update to version 2012-01-19.16.
6267
6268 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6269
6270         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6271
6272 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6273
6274         [BZ #13738]
6275         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6276         * manual/fdl-1.3.texi: New file.
6277         * manual/fdl-1.1.texi: File removed.
6278
6279         [BZ #13738]
6280         * manual/libc.texinfo (FDL_VERSION): New @set.
6281         Use it for mention of FDL in cover text.
6282         (Documentation License): Use it in @include file name.
6283
6284 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6285             Roland McGrath  <roland@hack.frob.com>
6286
6287         [BZ #5461]
6288         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6289         not LONG_LONG_MAX and LONG_LONG_MIN.
6290         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6291         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6292         name.
6293         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6294
6295 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6296
6297         [BZ #2547]
6298         [BZ #11365]
6299         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6300         manipulate bits before adding and subtracting TWO23[sx].
6301         * math/libm-test.inc (nearbyint_test): Add more tests.
6302
6303 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6304
6305         [BZ #2548]
6306         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6307         bits before adding and subtracting TWO23[sx].
6308         * math/libm-test.inc (rint_test): Add more tests.
6309         (rint_test_tonearest): Likewise.
6310         (rint_test_towardzero): Likewise.
6311         (rint_test_downward): Likewise.
6312         (rint_test_upward: Likewise.
6313
6314 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6315
6316         [BZ #10110]
6317         * include/stdc-predef.h: New file.  Extracted from features.h.
6318         * include/features.h: Include stdc-predef.h.
6319         * Makefile (headers): Add stdc-predef.h.
6320         * CONFORMANCE (Compiler limitations): Update.
6321
6322 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6323
6324         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6325
6326 2012-02-21  David S. Miller  <davem@davemloft.net>
6327
6328         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6329         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6330
6331 2012-02-20  David S. Miller  <davem@davemloft.net>
6332
6333         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6334         using a normal save/restore sequence, rather than allocating a
6335         dummy stack frame just to store a frame pointer and restore.
6336         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6337
6338 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6339
6340         * manual/install.texi: Fix stray word in line-wrapped comment.
6341
6342 2012-02-20  David S. Miller  <davem@davemloft.net>
6343
6344         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6345         both binutils and gcc support GOTDATA.
6346
6347         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6348         "rd %pc" in the PIC register setup sequences.
6349
6350         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6351         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6352         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6353         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6354         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6355         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6356         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6357         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6358         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6359         (SYSCALL_ERROR_HANDLER): Likewise.
6360         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6361         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6362         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6363         (SYSCALL_ERROR_HANDLER): Likewise.
6364
6365         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6366         (HAVE_GCC_GOTDATA): New.
6367         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6368         relocation support in both binutils and gcc.
6369         * sysdeps/sparc/elf/configure: Regenerate.
6370
6371         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6372         * sysdeps/sparc/sparc32/elf/configure: Delete.
6373         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6374         * sysdeps/sparc/sparc64/elf/configure: Delete.
6375         * sysdeps/sparc/elf/configure.in: New file.
6376         * sysdeps/sparc/elf/configure: Generate.
6377
6378         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6379         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6380         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6381         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6382         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6383
6384 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6385
6386         * manual/install.texi: Do not mention specific glibc version
6387         numbers.
6388         * manual/libc.texinfo (VERSION, UPDATED): Update.
6389         (@copying): Use @copyright{} and range of years.
6390
6391 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6392
6393         [BZ #13695]
6394         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6395         [crti.S not in sysdirs] (generated): Do not append.
6396         [crti.S not in sysdirs] (omit-deps): Likewise.
6397         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6398         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6399         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6400         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6401         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6402         Likewise.
6403         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6404         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6405         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6406         * csu/defs.awk: Remove file.
6407         * sysdeps/generic/initfini.c: Likewise.
6408         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6409         variable.
6410         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6411         Likewise.
6412
6413 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6414
6415         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6416         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6417         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6418         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6419         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6420         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6421         <bits/epoll.h>.
6422         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6423         (__EPOLL_PACKED): Define to empty if not defined by
6424         <bits/epoll.h>.
6425         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6426         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6427         bits/epoll.h.
6428
6429 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6430
6431         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6432         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6433         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6434         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6435         <bits/timerfd.h>.
6436         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6437         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6438         bits/timerfd.h.
6439
6440 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6441
6442         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6443         in C locale.
6444         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6445         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6446         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6448
6449 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6450
6451         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6452         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6453
6454 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6455
6456         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6457         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6458         defined.
6459         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6460         Likewise.
6461         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6462         entry for 2.16.
6463
6464 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
6465
6466         * math/w_acos.c: Use non-signaling floating-point comparisons.
6467         * math/w_acosf.c: Likewise.
6468         * math/w_acosh.c: Likewise.
6469         * math/w_acoshf.c: Likewise.
6470         * math/w_acoshl.c: Likewise.
6471         * math/w_acosl.c: Likewise.
6472         * math/w_asin.c: Likewise.
6473         * math/w_asinf.c: Likewise.
6474         * math/w_asinl.c: Likewise.
6475         * math/w_atanh.c: Likewise.
6476         * math/w_atanhf.c: Likewise.
6477         * math/w_atanhl.c: Likewise.
6478         * math/w_exp2.c: Likewise.
6479         * math/w_exp2f.c: Likewise.
6480         * math/w_exp2l.c: Likewise.
6481         * math/w_j0.c: Likewise.
6482         * math/w_j0f.c: Likewise.
6483         * math/w_j0l.c: Likewise.
6484         * math/w_j1.c: Likewise.
6485         * math/w_j1f.c: Likewise.
6486         * math/w_j1l.c: Likewise.
6487         * math/w_jn.c: Likewise.
6488         * math/w_jnf.c: Likewise.
6489         * math/w_log.c: Likewise.
6490         * math/w_log10.c: Likewise.
6491         * math/w_log10f.c: Likewise.
6492         * math/w_log10l.c: Likewise.
6493         * math/w_log2.c: Likewise.
6494         * math/w_log2f.c: Likewise.
6495         * math/w_log2l.c: Likewise.
6496         * math/w_logf.c: Likewise.
6497         * math/w_logl.c: Likewise.
6498         * math/w_sqrt.c: Likewise.
6499         * math/w_sqrtf.c: Likewise.
6500         * math/w_sqrtl.c: Likewise.
6501         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6502         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6503         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6504         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6505         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6506
6507 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6508
6509         [BZ #9739]
6510         * manual/string.texi (strnlen): Use correct parameter name in
6511         equivalent expression.
6512
6513 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6514
6515         [BZ #11174]
6516         * manual/users.texi (seteuid): Consistently use neweuid for
6517         argument name.
6518
6519 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6520
6521         [BZ #13704]
6522         * manual/nss.texi (Services in the NSS configuration): Correct
6523         list of services in example configuration file.
6524
6525 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
6526
6527         [BZ #11322]
6528         * manual/arith.texi: Remove statements about negative zero
6529         behaving identically to zero.
6530
6531 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6532
6533         [BZ #5993]
6534         * manual/install.texi: Do not document upgrading from libc5.
6535
6536 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6537
6538         [BZ #4596]
6539         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
6540
6541 2012-02-18  David S. Miller  <davem@davemloft.net>
6542
6543         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
6544         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
6545         %o7 across the call.
6546         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
6547         instead.
6548         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
6549         SETUP_PIC_REG_LEAF.
6550         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6551         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
6552         * sysdeps/sparc/crtn.S: Likewise.
6553
6554 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
6555
6556         * aout/Makefile: Remove.
6557
6558 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
6559
6560         [BZ #13058]
6561         * manual/examples/argp-ex1.c (main): Format definition in GNU
6562         style.
6563         * manual/examples/argp-ex2.c (main): Likewise.
6564         * manual/examples/argp-ex3.c (main): Likewise.
6565         * manual/examples/argp-ex4.c (main): Likewise.
6566         * manual/examples/longopt.c (main): Use new-style prototype
6567         definition.
6568         * manual/examples/strncat.c (main): Specify return type and use
6569         (void) for arguments.
6570         * manual/examples/subopt.c (main): Use char **argv argument.
6571
6572 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6573
6574         [BZ #5077]
6575         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
6576         rounding modes.
6577
6578 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
6579
6580         [BZ #6907]
6581         * manual/string.texi (strchr): Change when strchrnul is
6582         recommended.
6583
6584 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
6585
6586         [BZ #174]
6587         * manual/locale.texi (setlocale): Document LOCPATH.
6588
6589 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6590
6591         [BZ #10210]
6592         * manual/process.texi (execle): Move @dots{} before last argument.
6593
6594 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
6595
6596         [BZ #12047]
6597         * manual/charset.texi (Generic Charset Conversion): Fix typo
6598         (LC_TYPE -> LC_CTYPE).
6599
6600 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
6601
6602         [BZ #5805]
6603         * manual/arith.texi (scalbn): Use @var{} on parameter names.
6604         (scalbnf): Likewise.
6605         (scalbnl): Likewise.
6606         (scalbln): Likewise.
6607         (scalblnf): Likewise.
6608         (scalblnl): Likewise.
6609         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
6610         (vwarnx): Likewise.
6611         (verr): Likewise.
6612         (verrx): Likewise.
6613         * manual/filesys.texi (telldir): Use braces around return type.
6614         * manual/llio.texi (mmap): Add space after comma.
6615         (mmap64): Likewise.
6616         * manual/math.texi (jn): Use @var{} on parameter names.
6617         (jnf): Likewise.
6618         (jnl): Likewise.
6619         (yn): Likewise.
6620         (ynf): Likewise.
6621         (ynl): Likewise.
6622         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
6623         line.
6624         * manual/resource.texi (ulimit): Use @dots{} instead of literal
6625         "...".
6626         (sched_get_priority_min): Remove semicolon on @deftypefun line.
6627         (sched_get_priority_max): Likewise.
6628         * manual/signal.texi (sigvec): Add space after comma.
6629         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
6630         names.
6631         (if_indextoname): Likewise.
6632         (if_freenameindex): Likewise.
6633         (sendto): Use ',' instead of '.' in prototype.
6634         * manual/startup.texi (syscall): Use @dots{} instead of literal
6635         "...".
6636         * manual/stdio.texi (__fpending): Separate initial words of
6637         paragraph from @deftypefun line.
6638         * manual/syslog.texi (syslog): Use @dots{} instead of literal
6639         "...".
6640         (vsyslog): Use @var{} on parameter names.
6641         * manual/terminal.texi (stty): Use @var{} on parameter names.
6642         * manual/users.texi (getutmp): Use @var{} on parameter names.
6643         (getutmpx): Likewise.
6644
6645 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6646
6647         [BZ #6884]
6648         * manual/stdio.texi (fopen): Fix typos in description of
6649         ",ccs=STRING".
6650
6651 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
6652
6653         [BZ #4026]
6654         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
6655         get clock_id definition.
6656
6657 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
6658
6659         [BZ #4822]
6660         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
6661         (madvise): Cast every argument to void on its own.
6662
6663 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6664
6665         [BZ #9902]
6666         * manual/startup.texi (Exit Status): Fix typo.
6667
6668 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6669
6670         [BZ #10140]
6671         * manual/examples/argp-ex1.c: Include <stdlib.h>.
6672         * manual/examples/argp-ex2.c: Likewise.
6673         * manual/examples/argp-ex3.c: Likewise.
6674
6675 2012-02-16  Richard Henderson  <rth@redhat.com>
6676
6677         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
6678         * sysdeps/s390/s390-32/initfini.c: Remove.
6679         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
6680         * sysdeps/s390/s390-64/initfini.c: Remove.
6681
6682 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6683
6684         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
6685         compiler output for sysdeps/generic/initfini.c.
6686         * sysdeps/sh/elf/initfini.c: Remove file.
6687
6688 2012-02-16  David S. Miller  <davem@davemloft.net>
6689
6690         [BZ #11494]
6691         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
6692
6693         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
6694         * sysdeps/sparc/crti.S: New file.
6695         * sysdeps/sparc/crtn.S: New file.
6696         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
6697         * sysdeps/sparc/sparc64/Makefile: Likewise.
6698
6699 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
6700
6701         [BZ #3335]
6702         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
6703
6704 2012-02-15  Roland McGrath  <roland@hack.frob.com>
6705
6706         [BZ #4822]
6707         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
6708
6709         * mach/devstream.c (cookie_io_functions_t): Macro removed.
6710         (write, read, close): Likewise.
6711         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6712
6713 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
6714
6715         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
6716         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
6717         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
6718         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
6719         <bits/signalfd.h>.
6720         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
6721         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6722         bits/signalfd.h.
6723
6724 2012-02-14  Marek Polacek  <polacek@redhat.com>
6725
6726         * sysdeps/x86_64/crti.S: New file.
6727         * sysdeps/x86_64/crtn.S: New file.
6728         * sysdeps/x86_64/elf/initfini.c: Remove file.
6729
6730 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
6731
6732         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
6733         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
6734         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
6735         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
6736         <bits/inotify.h>.
6737         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
6738         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6739         bits/inotify.h.
6740
6741 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
6742
6743         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
6744         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
6745         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
6746         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
6747         <bits/eventfd.h>.
6748         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
6749         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6750         bits/eventfd.h.
6751
6752 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
6753
6754         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
6755         __feraiseexcept instead of feraiseexcept.
6756
6757         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
6758         nanosleep invocations.
6759         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
6760         strings, and add error checking for a nanosleep invocations.
6761
6762 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6763
6764         Replace FSF snail mail address with URLs, as per GNU coding standards.
6765         Most of the snail mail addresses were wrong anyway, and omitting
6766         them makes the source code easier to maintain.  Almost all of the
6767         changes are to license notices and to locale LC_IDENTIFICATION
6768         addresses, except for this one:
6769         * manual/libc.texinfo: In "Published by", give the FSF's URL,
6770         not its snail mail address.
6771
6772 2012-02-09  Richard Henderson  <rth@twiddle.net>
6773
6774         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
6775         of kernel-features.h.
6776
6777         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
6778
6779 2012-02-08  Marek Polacek  <polacek@redhat.com>
6780
6781         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
6782         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
6783         * sysdeps/gnu/_G_config.h: Likewise.
6784         * sysdeps/generic/_G_config.h: Likewise.
6785
6786 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
6787
6788         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
6789         tests.
6790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6791
6792         * sysdeps/powerpc/powerpc32/crti.S: New file.
6793         * sysdeps/powerpc/powerpc32/crtn.S: New file.
6794         * sysdeps/powerpc/powerpc64/crti.S: New file.
6795         * sysdeps/powerpc/powerpc64/crtn.S: New file.
6796
6797         * Makeconfig (have-initfini): Don't set.
6798         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
6799         * configure.in (nopic_initfini): Don't substitute.
6800         * config.h.in (HAVE_INITFINI): Don't #undef.
6801         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
6802         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
6803
6804 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
6805
6806         Support crti.S and crtn.S provided directly by architectures.
6807         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
6808         [crti.S in sysdirs] (omit-deps): Likewise.
6809         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
6810         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
6811         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
6812         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
6813         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
6814         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
6815         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
6816         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
6817         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
6818         compiler output for sysdeps/generic/initfini.c.
6819         * sysdeps/i386/elf/Makefile: Remove file.
6820         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
6821
6822 2012-02-07  Marek Polacek  <polacek@redhat.com>
6823
6824         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
6825         * sysdeps/gnu/_G_config.h: Likewise.
6826         * sysdeps/mach/hurd/_G_config.h: Likewise.
6827
6828 2012-02-07  Marek Polacek  <polacek@redhat.com>
6829
6830         * math/Makefile (tests): Add tst-CMPLX2.
6831         * math/tst-CMPLX2.c: New file.
6832
6833 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
6834
6835         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6836
6837         * math/libm-test.inc (jn_test): Add missing L suffix.
6838
6839 2012-02-06  Marek Polacek  <polacek@redhat.com>
6840
6841         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
6842         * sysdeps/i386/fpu/e_powf.S: Likewise.
6843         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6844         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6845         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6846         * sysdeps/i386/fpu/e_pow.S: Likewise.
6847         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
6848         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6849         * sysdeps/i386/fpu/s_expm1.S: Likewise.
6850         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6851         * sysdeps/i386/fpu/e_log2.S: Likewise.
6852         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6853         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6854         * sysdeps/i386/fpu/e_powl.S: Likewise.
6855         * sysdeps/i386/fpu/s_log1p.S: Likewise.
6856         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6857         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
6858         * sysdeps/i386/fpu/e_logl.S: Likewise.
6859         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
6860         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
6861         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6862         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
6863         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6864         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6865         * sysdeps/i386/fpu/e_log.S: Likewise.
6866         * sysdeps/i386/fpu/s_cexp.S: Likewise.
6867         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6868         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
6869         * sysdeps/i386/fpu/e_logf.S: Likewise.
6870         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6871         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6872         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
6873         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
6874         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6875         * sysdeps/i386/fpu/e_log10.S: Likewise.
6876         * sysdeps/i386/fpu/s_frexp.S: Likewise.
6877         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6878         * sysdeps/i386/fpu/s_asinh.S: Likewise.
6879         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
6880         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6881         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
6882         * sysdeps/i386/asm-syntax.h: Likewise.
6883         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6884         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6885         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6886         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
6887         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
6888         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6889         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
6890         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
6891         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6892         * sysdeps/powerpc/sysdep.h: Likewise.
6893         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6894         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6895
6896 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6897
6898         [BZ #411]
6899         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
6900
6901 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6902
6903         * sysdeps/i386/sysdep.h: Include <features.h>.
6904         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
6905         version.
6906
6907 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
6908
6909         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
6910         Define.
6911         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
6912         LOAD_PIC_REG_STR.
6913
6914 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6915
6916         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
6917         (SETUP_PIC_REG): Use GET_PC_THUNK.
6918         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
6919         macro.
6920
6921 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6922
6923         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
6924         for non-PIC compilation.
6925         (SETUP_PIC_REG): Add .p2align directive.
6926         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
6927         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
6928         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6929         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6930         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6931         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6932         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
6933         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6934         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6935         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6936         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6937         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6938         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6939         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6940         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6941         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6942         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6943         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6944         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6945         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6946         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6947         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6948         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6949         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
6950         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6951         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6952         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6953         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6954         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6955         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6956         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6957         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6958         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6959         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6960         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6961         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6962         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6963         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6964         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6965         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6966         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6967
6968 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6969
6970         * math/tst-CMPLX.c: Include <stdio.h>.
6971
6972 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
6973
6974         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
6975         float.
6976         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
6977         * sysdeps/sparc/bits/mathdef.h: Likewise.
6978
6979 2012-01-31  Marek Polacek  <polacek@redhat.com>
6980
6981         * libio/libio.h: Don't define _PARAMS.
6982         * locale/programs/config.h: Don't define PARAMS.
6983         * stdlib/strtol_l.c: Likewise.
6984         (__strtol_l): Remove PARAMS from the prototype.
6985
6986 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
6987
6988         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
6989         names.  Just use the correct names.  Remove unnecessary wrapper
6990         functions.
6991         * malloc/arena.c: Likewise.
6992         * malloc/hooks.c: Likewise.
6993
6994         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
6995         ARENA_TEST says not to.  Simplify test for creation of a new arena.
6996         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
6997
6998 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
6999
7000         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7001         into tail calls.
7002         (update_get_addr): New function.
7003         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7004         GET_ADDR_MODULE parameter.
7005
7006 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7007
7008         * crypt/cert.c: Remove __STDC__ conditionals.
7009         * crypt/crypt-entry.c: Likewise.
7010         * crypt/crypt_util.c: Likewise.
7011         * libio/filedoalloc.c: Likewise.
7012         * libio/fileops.c: Likewise.
7013         * libio/genops.c: Likewise.
7014         * libio/iofclose.c: Likewise.
7015         * libio/iofdopen.c: Likewise.
7016         * libio/iofopen.c: Likewise.
7017         * libio/iofopen64.c: Likewise.
7018         * libio/iogetdelim.c: Likewise.
7019         * libio/iopopen.c: Likewise.
7020         * libio/obprintf.c: Likewise.
7021         * libio/oldfileops.c: Likewise.
7022         * libio/oldiofclose.c: Likewise.
7023         * libio/oldiofdopen.c: Likewise.
7024         * libio/oldiofopen.c: Likewise.
7025         * libio/oldiopopen.c: Likewise.
7026         * libio/wfiledoalloc.c: Likewise.
7027         * libio/wgenops.c: Likewise.
7028         * locale/programs/xmalloc.c: Likewise.
7029         * misc/syslog.c: Likewise.
7030         * stdio-common/xbug.c: Likewise.
7031         * string/memchr.c: Likewise.
7032         * string/memcmp.c: Likewise.
7033         * string/memrchr.c: Likewise.
7034         * string/rawmemchr.c: Likewise.
7035         * sysdeps/posix/getcwd.c: Likewise.
7036         * time/strftime_l.c: Likewise.
7037
7038 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7039
7040         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7041         * config.make.in (config-cflags-sse2avx): Define.
7042         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7043         Fix typo.
7044
7045 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7046
7047         * scripts/config.guess: Update from upstream config git repository.
7048         * scripts/config.sub: Likewise.
7049
7050 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7051
7052         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7053         (EM_NUM): Update.
7054         (R_TILEPRO_*, R_TILEGX_*): New macros.
7055
7056         * scripts/firstversions.awk: Fix bug in version range handling.
7057
7058         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7059
7060         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7061
7062         * include/sys/epoll.h: New file.
7063         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7064         libc_hidden_def.
7065
7066 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7067
7068         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7069         Avoid unnecessary __WORDSIZE == 64 test.
7070         (fmaxf): Use VEX format if possible.
7071         (fmax): Likewise.
7072         (fminf): Likewise.
7073         (fmin): Likewise.
7074
7075         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
7076         * math/math_private.h: Remove libc_fegetround* and
7077         libc_fesetround*.
7078         * sysdeps/i386/configure.in: Check for -msse2avx.
7079         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
7080         also if SSE2AVX is defined.
7081         Remove libc_fegetround* and libc_fesetround*.
7082         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
7083         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
7084         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
7085         of HAS_YMM_USABLE.
7086         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7087         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7088         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7089         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7090         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7091
7092         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
7093
7094 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7095
7096         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7097         size is not set.
7098         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7099
7100 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7101
7102         [BZ #13618]
7103         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7104         relocation.
7105         * Makeconfig (libm): Define.
7106         * elf/Makefile: Add rules to build and run tst-relsort1.
7107         * elf/tst-relsort1.c: New file.
7108         * elf/tst-relsort1mod1.c: New file.
7109         * elf/tst-relsort1mod2.c: New file.
7110
7111 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * math/s_ldexp.c: Remove __STDC__ conditionals.
7114         * math/s_ldexpf.c: Likewise.
7115         * math/s_ldexpl.c: Likewise.
7116         * math/s_nextafter.c: Likewise.
7117         * math/s_nexttowardf.c: Likewise.
7118         * math/s_significand.c: Likewise.
7119         * math/s_significandf.c: Likewise.
7120         * math/s_significandl.c: Likewise.
7121         * math/w_jnl.c: Likewise.
7122         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7123         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7124         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7125         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7126         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7127         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7128         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7129         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7130         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7131         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7132         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7133         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7134         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7135         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7136         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7137         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7138         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7139         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7140         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7141         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7142         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7143         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7144         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7145         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7146         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7147         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7148         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7149         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7150         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7151         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7152         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7153         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7154         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7155         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7156         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7157         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7158         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7159         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7160         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7161         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7162         * sysdeps/ieee754/k_standard.c: Likewise.
7163         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7164         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7165         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7166         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7167         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7168         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7169         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7170         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7171         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7172         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7173         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7174         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7175         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7176         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7177         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7178         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7179         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7180         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7181         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7182         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7183         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7184         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7185         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7186         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7187         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7188         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7189         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7190         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7191         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7192         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7193         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7194         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7195         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7196         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7197         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7198         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7199         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7200         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7201         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7202         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7203         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7204         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7205         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7206         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7207         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7208         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7209         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7210         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7211         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7212         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7213         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7214         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7215         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7216         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7217         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7218         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7219         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7220         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7221         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7222         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7223         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7224         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7225         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7226         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7227         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7228         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7229         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7230         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7231         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7232         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7233         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7234         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7235         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7236         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7237         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7238         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7239         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7240         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7241         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7242         * sysdeps/ieee754/s_matherr.c: Likewise.
7243         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7244         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7245         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7246         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7247
7248 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7249
7250         * crypt/md5.h: Remove __STDC__ conditionals.
7251         * libio/libioP.h: Likewise.
7252         * locale/programs/config.h: Likewise.
7253         * sysdeps/generic/sysdep.h: Likewise.
7254         * sysdeps/i386/asm-syntax.h: Likewise.
7255         * sysdeps/s390/asm-syntax.h: Likewise.
7256         * sysdeps/unix/sysdep.h: Likewise.
7257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7259
7260 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7261
7262         * libio/libio.h: Remove __STDC__ conditionals.
7263         * malloc/obstack.h: Likewise.
7264         * math/complex.h: Likewise.
7265         * math/math.h: Likewise.
7266         * sysdeps/generic/_G_config.h: Likewise.
7267         * sysdeps/gnu/_G_config.h: Likewise.
7268         * sysdeps/mach/hurd/_G_config.h: Likewise.
7269         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7270         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7271         * sysdeps/sparc/bits/mathdef.h: Likewise.
7272
7273 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7274
7275         [BZ #13583]
7276         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7277         Clean up HAS_* macros.
7278         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7279         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7280         possible.
7281         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7282         HAS_AVX.
7283         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7284         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7285         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7286         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7287         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7288
7289 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7290
7291         * elf/tst-unique3.cc (gets): Remove declaration.
7292         * elf/tst-unique3lib.cc (gets): Likewise.
7293         * elf/tst-unique3lib2.cc (gets): Likewise.
7294         * elf/tst-unique4.cc (gets): Likewise.
7295
7296 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7297
7298         * include/stdio.h: Add C++ protection.  Add gets declarations and
7299         definitions.
7300         * debug/tst-chk1.c: Don't declare gets here.
7301         * stdio-common/tst-gets.c: Likewise.
7302
7303 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7304
7305         * posix/glob: Remove directory.
7306
7307 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7308
7309         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7310
7311 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7312
7313         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7314         of the non-standard EPFNOSUPPORT.
7315
7316 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7317
7318         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7319         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7320         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7321
7322 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7323
7324         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7325
7326 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7327
7328         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7329         transient errors.
7330         * nscd/grpcache.c (cache_addgr): Likewise.
7331         * nscd/hstcache.c (cache_addhst): Likewise.
7332         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7333         * nscd/pwdcache.c (cache_addpw): Likewise.
7334         * nscd/servicescache.c (cache_addserv): Likewise.
7335
7336 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7337
7338         * malloc/malloc.c: Various cleanups.
7339         * malloc/hooks.c: Likewise.
7340
7341         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7342         * stdlib/bug-fmtmsg1.c: New file.
7343
7344         * stdlib/fmtmsg.c (init): Add missing unlock.
7345         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7346
7347 2012-01-12  Marek Polacek  <polacek@redhat.com>
7348
7349         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7350         and _GNU_SOURCE.
7351
7352 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7353
7354         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7355         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7356         macro to ensure uniqueness of label name.
7357         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7358         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7359
7360 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7361
7362         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7363
7364         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7365         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7366         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7367         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7368
7369 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7370
7371         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7372
7373         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7374         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7375         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7376
7377         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7378
7379         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7380         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7381         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7382         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7383
7384         * math/bits/math-finite.h: Add ldexp support.
7385
7386 2012-01-10  Marek Polacek  <polacek@redhat.com>
7387
7388         * locale/programs/localedef.h (show_archive_content): Add noreturn
7389         attribute.
7390
7391 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7392
7393         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7394
7395 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7396
7397         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7398
7399         * io/Makefile (headers): Add bits/poll2.h.
7400
7401 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7402
7403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7404         typo #include statement.
7405
7406 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7407
7408         * include/sys/cdefs.h: Define __attribute_alloc_size.
7409         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7410         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7411         * elf/pldd.c: Likewise.
7412         * iconv/iconv_charmap.c: Likewise.
7413         * iconv/iconvconfig.c: Likewise.
7414         * iconv/strtab.c: Likewise.
7415         * locale/programs/locale.c: Likewise.
7416         * locale/programs/localedef.h: Likewise.
7417         * locale/programs/simple-hash.c: Likewise.
7418         * nscd/nscd.h: Likewise.
7419         * nss/makedb.c: Likewise.
7420         * sysdeps/generic/ldconfig.h: Likewise.
7421         * locale/programs/localedef.c: Remove xmalloc prototype.
7422         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7423
7424 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7425
7426         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7427         appropriate.
7428
7429 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7430
7431         * math/Makefile (tests): Add tst-CMPLX.
7432         * math/tst-CMPLX.c: New file.
7433
7434         * math/complex.h (CMPLXL): Fix typo.
7435
7436         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7437         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7438         GLIBC_2.16.
7439         * debug/tst-chk1.c: Add poll and ppoll tests.
7440         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7441         * include/sys/poll.h: Add hidden proto for ppoll.
7442         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7443         * sysdeps/mach/hurd/ppoll.c: Likewise.
7444         * io/ppoll.c: Likewise.
7445         * debug/poll_chk.c: New file.
7446         * debug/ppoll_chk.c: New file.
7447         * include/bits/poll2.h: New file.
7448         * io/bits/poll2.h: New file.
7449
7450         [BZ #1350]
7451         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7452
7453         * configure.in: static is always set to yes.  Remove.
7454         * config.make.in: Don't set build-static.
7455         * Makeconfig: Remove use of build-static.
7456         * dlfcn/Makefile: Likewise.
7457         * elf/Makefile: Likewise.
7458         * math/Makefile: Likewise.
7459         * misc/Makefile: Likewise.
7460         * nptl/Makefile: Likewise.
7461         * sysdeps/mach/hurd/Makefile: Likewise.
7462
7463         * configure.in: PWD_P is not used anymore.
7464         * config.make.in: Remove PWD_P entry.
7465
7466         * configure.in: Remove last remnants of RANLIB.
7467         No need to check for signed size_t anymore.
7468         Don't set libc_commonpagesize and libc_relro_required here for Alpha
7469         and IA-64.
7470         Remove __builtin_expect test because we require at least gcc 3.4.
7471         * aclocal.m4: Likewise.
7472
7473         * wcsmbs/mbrtoc16.c: Implement using towc function.
7474         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
7475         * wcsmbs/wcsmbsload.c: Likewise.
7476         * iconv/gconv_simple.c: Likewise.
7477         * iconv/gconv_int.h: Likewise.
7478         * iconv/gconv_builtin.h: Likewise.
7479         * iconv/iconv_prog.c: Remove CHAR16 handling.
7480
7481         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
7482
7483         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
7484
7485         * configure.in: Remove --with-elf and --enable-bounded options.
7486         Dont set base_machine for ia64.  More non-ELF conditions removed.
7487         Remove testing and setting of leading underscore information.
7488         * config.make.in (build-bounded): Set to no.
7489         * config.h.in: Remove NO_UNDERSCORES entry.
7490         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
7491         them.
7492         * csu/start.c: Remove !NO_UNDERSCORE code.
7493         * locale/localeinfo.h: Likewise.
7494         * sysdeps/generic/machine-gmon.h: Likewise.
7495         * sysdeps/generic/sysdep.h: Likewise.
7496         * sysdeps/i386/sysdep.h: Likewise.
7497         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7498         * sysdeps/mach/sysdep.h: Likewise.
7499         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7500         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7501         * sysdeps/sh/sysdep.h: Likewise.
7502         * sysdeps/sparc/sparc32/alloca.S: Likewise.
7503         * sysdeps/unix/i386/sysdep.S: Likewise.
7504         * sysdeps/unix/sparc/start.c: Likewise.
7505         * sysdeps/unix/sparc/sysdep.S: Likewise.
7506         * sysdeps/unix/sparc/sysdep.h: Likewise.
7507         * sysdeps/unix/start.c: Likewise.
7508         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7509         * sysdeps/x86_64/sysdep.h: Likewise.
7510
7511 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
7512
7513         [BZ #13553]
7514         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
7515         for non-gcc.
7516         * argp/argp-fmtstream.h: Use const instead __const.
7517         * argp/argp.h: Likewise.
7518         * assert/assert.h: Likewise.
7519         * bits/fenv.h: Likewise.
7520         * bits/sched.h: Likewise.
7521         * bits/sigset.h: Likewise.
7522         * bits/sigthread.h: Likewise.
7523         * catgets/nl_types.h: Likewise.
7524         * conform/data/pthread.h-data: Likewise.
7525         * crypt/crypt-private.h: Likewise.
7526         * crypt/crypt.h: Likewise.
7527         * crypt/crypt_util.c: Likewise.
7528         * ctype/ctype.h: Likewise.
7529         * debug/execinfo.h: Likewise.
7530         * debug/mbsnrtowcs_chk.c: Likewise.
7531         * debug/mbsrtowcs_chk.c: Likewise.
7532         * debug/wcsnrtombs_chk.c: Likewise.
7533         * debug/wcsrtombs_chk.c: Likewise.
7534         * debug/wcstombs_chk.c: Likewise.
7535         * dirent/dirent.h: Likewise.
7536         * dlfcn/dlfcn.h: Likewise.
7537         * elf/neededtest4.c: Likewise.
7538         * grp/grp.h: Likewise.
7539         * gshadow/gshadow.h: Likewise.
7540         * iconv/gconv.h: Likewise.
7541         * iconv/gconv_int.h: Likewise.
7542         * iconv/gconv_simple.c: Likewise.
7543         * iconv/iconv.h: Likewise.
7544         * iconv/loop.c: Likewise.
7545         * iconv/skeleton.c: Likewise.
7546         * include/aio.h: Likewise.
7547         * include/aliases.h: Likewise.
7548         * include/argz.h: Likewise.
7549         * include/arpa/inet.h: Likewise.
7550         * include/assert.h: Likewise.
7551         * include/dirent.h: Likewise.
7552         * include/dlfcn.h: Likewise.
7553         * include/execinfo.h: Likewise.
7554         * include/fcntl.h: Likewise.
7555         * include/fenv.h: Likewise.
7556         * include/glob.h: Likewise.
7557         * include/grp.h: Likewise.
7558         * include/libintl.h: Likewise.
7559         * include/mntent.h: Likewise.
7560         * include/netdb.h: Likewise.
7561         * include/pwd.h: Likewise.
7562         * include/rpc/netdb.h: Likewise.
7563         * include/sched.h: Likewise.
7564         * include/search.h: Likewise.
7565         * include/shadow.h: Likewise.
7566         * include/signal.h: Likewise.
7567         * include/stdio.h: Likewise.
7568         * include/stdlib.h: Likewise.
7569         * include/string.h: Likewise.
7570         * include/sys/socket.h: Likewise.
7571         * include/sys/stat.h: Likewise.
7572         * include/sys/statfs.h: Likewise.
7573         * include/sys/statvfs.h: Likewise.
7574         * include/sys/syslog.h: Likewise.
7575         * include/sys/time.h: Likewise.
7576         * include/sys/uio.h: Likewise.
7577         * include/time.h: Likewise.
7578         * include/unistd.h: Likewise.
7579         * include/utmp.h: Likewise.
7580         * include/wchar.h: Likewise.
7581         * include/wctype.h: Likewise.
7582         * inet/aliases.h: Likewise.
7583         * inet/arpa/inet.h: Likewise.
7584         * inet/netinet/ether.h: Likewise.
7585         * inet/netinet/in.h: Likewise.
7586         * intl/libintl.h: Likewise.
7587         * io/bits/fcntl2.h: Likewise.
7588         * io/fcntl.h: Likewise.
7589         * io/ftw.h: Likewise.
7590         * io/sys/poll.h: Likewise.
7591         * io/sys/stat.h: Likewise.
7592         * io/sys/statfs.h: Likewise.
7593         * io/sys/statvfs.h: Likewise.
7594         * io/utime.h: Likewise.
7595         * libio/bits/stdio.h: Likewise.
7596         * libio/bits/stdio2.h: Likewise.
7597         * libio/libio.h: Likewise.
7598         * libio/libioP.h: Likewise.
7599         * libio/stdio.h: Likewise.
7600         * locale/lc-ctype.c: Likewise.
7601         * locale/locale.h: Likewise.
7602         * login/utmp.h: Likewise.
7603         * malloc/arena.c: Likewise.
7604         * malloc/malloc.c: Likewise.
7605         * malloc/malloc.h: Likewise.
7606         * malloc/mcheck.c: Likewise.
7607         * malloc/mtrace.c: Likewise.
7608         * math/bits/mathcalls.h: Likewise.
7609         * math/fenv.h: Likewise.
7610         * math/math_private.h: Likewise.
7611         * misc/bits/error.h: Likewise.
7612         * misc/bits/syslog.h: Likewise.
7613         * misc/err.h: Likewise.
7614         * misc/error.h: Likewise.
7615         * misc/fstab.h: Likewise.
7616         * misc/mntent.h: Likewise.
7617         * misc/regexp.h: Likewise.
7618         * misc/search.h: Likewise.
7619         * misc/sgtty.h: Likewise.
7620         * misc/sys/mman.h: Likewise.
7621         * misc/sys/syslog.h: Likewise.
7622         * misc/sys/uio.h: Likewise.
7623         * misc/sys/xattr.h: Likewise.
7624         * misc/ttyent.h: Likewise.
7625         * nis/rpcsvc/ypclnt.h: Likewise.
7626         * nss/nss.h: Likewise.
7627         * posix/bits/unistd.h: Likewise.
7628         * posix/fnmatch.h: Likewise.
7629         * posix/glob.h: Likewise.
7630         * posix/sched.h: Likewise.
7631         * posix/spawn.h: Likewise.
7632         * posix/sys/wait.h: Likewise.
7633         * posix/unistd.h: Likewise.
7634         * posix/wordexp.h: Likewise.
7635         * pwd/pwd.h: Likewise.
7636         * resolv/netdb.h: Likewise.
7637         * resource/sys/resource.h: Likewise.
7638         * rt/aio.h: Likewise.
7639         * rt/bits/mqueue2.h: Likewise.
7640         * rt/mqueue.h: Likewise.
7641         * shadow/shadow.h: Likewise.
7642         * signal/signal.h: Likewise.
7643         * socket/send.c: Likewise.
7644         * socket/sendto.c: Likewise.
7645         * socket/sys/socket.h: Likewise.
7646         * stdio-common/printf.h: Likewise.
7647         * stdlib/bits/stdlib.h: Likewise.
7648         * stdlib/fmtmsg.h: Likewise.
7649         * stdlib/monetary.h: Likewise.
7650         * stdlib/stdlib.h: Likewise.
7651         * stdlib/ucontext.h: Likewise.
7652         * streams/stropts.h: Likewise.
7653         * string/argz.h: Likewise.
7654         * string/bits/string2.h: Likewise.
7655         * string/string.h: Likewise.
7656         * string/strings.h: Likewise.
7657         * sunrpc/rpc/auth.h: Likewise.
7658         * sunrpc/rpc/auth_des.h: Likewise.
7659         * sunrpc/rpc/clnt.h: Likewise.
7660         * sunrpc/rpc/netdb.h: Likewise.
7661         * sunrpc/rpc/pmap_clnt.h: Likewise.
7662         * sunrpc/rpc/xdr.h: Likewise.
7663         * sysdeps/generic/inttypes.h: Likewise.
7664         * sysdeps/generic/net/if.h: Likewise.
7665         * sysdeps/generic/sys/swap.h: Likewise.
7666         * sysdeps/gnu/net/if.h: Likewise.
7667         * sysdeps/gnu/utmpx.h: Likewise.
7668         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
7669         * sysdeps/i386/i486/bits/string.h: Likewise.
7670         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
7671         * sysdeps/s390/bits/string.h: Likewise.
7672         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
7673         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
7674         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7675         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
7676         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7677         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7678         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7679         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
7680         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
7681         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
7682         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
7683         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
7684         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
7685         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
7686         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7687         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
7688         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
7689         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7690         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
7691         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
7692         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
7693         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
7694         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
7695         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
7696         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
7697         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
7698         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
7699         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7700         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
7701         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
7702         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
7703         * sysvipc/sys/ipc.h: Likewise.
7704         * sysvipc/sys/msg.h: Likewise.
7705         * sysvipc/sys/sem.h: Likewise.
7706         * sysvipc/sys/shm.h: Likewise.
7707         * termios/termios.h: Likewise.
7708         * time/sys/time.h: Likewise.
7709         * time/time.h: Likewise.
7710         * wcsmbs/bits/wchar2.h: Likewise.
7711         * wcsmbs/uchar.h: Likewise.
7712         * wcsmbs/wchar.h: Likewise.
7713         * wctype/wctype.h: Likewise.
7714
7715         [BZ #13551]
7716         * Makeconfig: Remove all but ELF support including AIX support.
7717         * Makerules: Likewise.
7718         * config.h.in: Likewise.
7719         * config.make.in: Likewise.
7720         * configure: Likewise.
7721         * configure.in: Likewise.
7722         * csu/Makefile: Likewise.
7723         * csu/version.c: Likewise.
7724         * debug/Makefile: Likewise.
7725         * dlfcn/Makefile: Likewise.
7726         * elf/Makefile: Likewise.
7727         * extra-lib.mk: Likewise.
7728         * iconv/Makefile: Likewise.
7729         * include/libc-symbols.h: Likewise.
7730         * include/shlib-compat.h: Likewise.
7731         * resolv/Makefile: Likewise.
7732         * resolv/res_libc.c: Likewise.
7733         * rt/Makefile: Likewise.
7734         * sysdeps/i386/asm-syntax.h: Likewise.
7735         * sysdeps/i386/sysdep.h: Likewise.
7736         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7737         * sysdeps/mach/sysdep.h: Likewise.
7738         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
7739         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
7740         * sysdeps/s390/asm-syntax.h: Likewise.
7741         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7742         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7743         * sysdeps/sh/sysdep.h: Likewise.
7744         * sysdeps/unix/sparc/sysdep.h: Likewise.
7745         * sysdeps/wordsize-32/divdi3.c: Likewise.
7746         * sysdeps/x86_64/sysdep.h: Likewise.
7747
7748         * argp/Versions: Remove _argp_unlock_xxx.
7749
7750         [BZ #13559]
7751         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
7752         * abilist/libBrokenLocale.abilist: Likewise.
7753         * abilist/libanl.abilist: Likewise.
7754         * abilist/libc.abilist: Likewise.
7755         * abilist/libcrypt.abilist: Likewise.
7756         * abilist/libdl.abilist: Likewise.
7757         * abilist/libm.abilist: Likewise.
7758         * abilist/libnsl.abilist: Likewise.
7759         * abilist/libpthread.abilist: Likewise.
7760         * abilist/libresolv.abilist: Likewise.
7761         * abilist/librt.abilist: Likewise.
7762         * abilist/libthread_db.abilist: Likewise.
7763         * abilist/libutil.abilist: Likewise.
7764         * abilist/libnss_db.abilist: New file.
7765
7766         * scripts/abilist.awk: Add support for indirect functions.
7767
7768         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
7769
7770         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
7771
7772         * shlib-versions: Remove entries for ports architectures.
7773
7774         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
7775         files in ports.
7776         * elf/stackguard-macros.h: Remove support for IA-64.
7777         * elf/tst-auditmod1.c: Likewise.
7778         * sysdeps/generic/ldsodefs.h: Likewise.
7779
7780         * sysdeps/unix/sysv/linux/configure.in: Ports should define
7781         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
7782         configure files.
7783
7784         [BZ #13552]
7785         * configure.in: Remove --enable-omitfp support.
7786         * FAQ.in: Adjust.
7787         * config.make.in: Likewise.
7788         * Makeconfig: Likewise.
7789         * manual/install.texi: Likewise.
7790
7791         In case anyone cares, the IA-64 architecture could move to ports.
7792         * sysdeps/ia64/*: Removed.
7793         * sysdeps/unix/sysv/linux/ia64/*: Removed.
7794         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
7795
7796         [BZ #13555]
7797         * configure.in: Remove entries for unsupported architectures.
7798
7799         [BZ #13533]
7800         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
7801         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
7802         routines.
7803         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
7804         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
7805         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
7806         fall back to using wcrtomb.
7807         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
7808         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
7809         renaming.
7810         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
7811         * wcsmbs/tst-c16c32-1.c: New file.
7812
7813         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
7814         local variable.
7815
7816         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
7817
7818         * elf/tst-unique3.cc: Add explicit declaration of gets.
7819         * elf/tst-unique3lib.cc: Likewise.
7820         * elf/tst-unique3lib2.cc: Likewise.
7821         * elf/tst-unique4.cc: Likewise.
7822
7823         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
7824
7825 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
7826
7827         [BZ #13566]
7828         * assert/assert.h (static_assert): Don't define for C++.
7829         * libio/stdio.h (gets): Do declare for C++ <= C++11.
7830         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
7831
7832 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
7833
7834         * iconv/loop.c (single loop): Fix assertion in storing of
7835         remaining bytes.
7836
7837         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
7838
7839 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
7840
7841         * posix/getconf.c: Update copyright year.
7842         * nss/getent.c: Likewise.
7843         * nss/makedb.c: Likewise.
7844         * iconv/iconvconfig.c: Likewise.
7845         * iconv/iconv_prog.c: Likewise.
7846         * elf/ldconfig.c: Likewise.
7847         * elf/pldd.c: Likewise.
7848         * elf/sotruss.ksh: Likewise.
7849         * catgets/gencat.c: Likewise.
7850         * csu/version.c: Likewise.
7851         * elf/ldd.bash.in: Likewise.
7852         * elf/sprof.c (print_version): Likewise.
7853         * locale/programs/locale.c: Likewise.
7854         * locale/programs/localedef.c: Likewise.
7855         * login/programs/pt_chown.c: Likewise.
7856         * nscd/nscd.c (print_version): Likewise.
7857         * debug/xtrace.sh: Likewise.
7858         * malloc/memusage.sh: Likewise.
7859         * malloc/mtrace.pl: Likewise.
7860         * debug/catchsegv.sh: Likewise.
7861
7862 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
7863
7864         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
7865         pure attribute.
7866
7867 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
7868
7869         [BZ #13533]
7870         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
7871         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
7872         transformations.
7873         * iconv/gconv_int.h: Likewise.
7874         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
7875         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
7876         from libc for GLIBC_2.16.
7877         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
7878         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
7879         * wcsmbs/uchar.h: Really define mbstate_t.
7880         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
7881         * wcsmbs/c16rtomb.c: New file.
7882         * wcsmbs/mbrtoc16.c: New file.
7883         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
7884         for C/POSIX locale.
7885         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
7886         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
7887
7888         * wcsmbs/wchar.h: Add missing __restrict.
7889
7890 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
7891
7892         [BZ #13532]
7893         * time/Makefile (routines): Add timespec_get.
7894         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
7895         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
7896         timespec for ISO C11.
7897         * time/timespec_get.c: New file.
7898         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
7899         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
7900
7901         [BZ #13531]
7902         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
7903         * stdlib/stdlib.h: Declare aligned_alloc.
7904         * Versions.def: Add GLIBC_2.16 for libc.
7905         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
7906
7907         [BZ 13527]
7908         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
7909         ISO C11.
7910
7911         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
7912         code.
7913
7914         [BZ #13528]
7915         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
7916
7917         [BZ #13529]
7918         * assert/assert.h (static_assert): Define.
7919
7920         * version.h: Update for 2.16 development version.
7921
7922         [BZ #13526]
7923         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
7924         _ISOC11_SOURCE.
7925
7926         * version.h (RELEASE): Bump for 2.15 release.
7927         * include/features.h (__GLIBC_MINOR__): Bump to 15.
7928
7929         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
7930         Patch by Marek Polacek <mpolacek@redhat.com>.
7931
7932         * bits/byteswap.h: Protect long long constants with __extension__.
7933         * sysdeps/i386/bits/byteswap.h: Likewise.
7934         * sysdeps/ia64/bits/byteswap.h: Likewise.
7935         * sysdeps/s390/bits/byteswap.h: Likewise.
7936         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7937
7938 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7939
7940         [BZ #13540]
7941         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
7942         destination buffer.
7943         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
7944
7945 2011-12-23  Marek Polacek  <polacek@redhat.com>
7946
7947         * elf/dl-addr.c (determine_info): Add inline keyword.
7948         * elf/tst-auditmod4b.c (check_avx): Likewise.
7949         * elf/tst-auditmod6b.c (check_avx): Likewise.
7950         * elf/tst-auditmod6c.c (check_avx): Likewise.
7951         * elf/tst-auditmod7b.c (check_avx): Likewise.
7952
7953 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
7954
7955         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
7956         !__SSE_MATH__.
7957
7958 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7959
7960         [BZ #13540]
7961         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
7962         processing for last bytes.
7963
7964 2011-08-06  Bruno Haible  <bruno@clisp.org>
7965
7966         [BZ #13061]
7967         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
7968         U+0385, not to U+1FEE.
7969
7970         [BZ #13062]
7971         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
7972         entry for U+00A5 U+0301.
7973
7974 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
7975
7976         [BZ #13166]
7977         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
7978         buffer for the output is too small.
7979
7980         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
7981         optimization.
7982
7983         [BZ #13185]
7984         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
7985         SSE flags if possible.
7986
7987 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7988
7989         [BZ #13540]
7990         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
7991         processing for last bytes.
7992
7993 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
7994
7995         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
7996         (syscall-list-default-options, syscall-list-default-condition)
7997         (syscall-list-includes): Define.
7998         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
7999         list of ABIs and options and #if conditions for each ABI.  Do not
8000         handle common syscalls between ABIs specially.
8001         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8002         Remove.
8003         (syscall-list-variants, syscall-list-32bit-options)
8004         (syscall-list-32bit-condition, syscall-list-64bit-options)
8005         (syscall-list-64bit-condition): Define.
8006         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8007         (syscall-list-variants, syscall-list-32bit-options)
8008         (syscall-list-32bit-condition, syscall-list-64bit-options)
8009         (syscall-list-64bit-condition): Define.
8010         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8011         Remove.
8012         (syscall-list-variants, syscall-list-32bit-options)
8013         (syscall-list-32bit-condition, syscall-list-64bit-options)
8014         (syscall-list-64bit-condition): Define.
8015         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8016         Remove.
8017         (syscall-list-variants, syscall-list-32bit-options)
8018         (syscall-list-32bit-condition, syscall-list-64bit-options)
8019         (syscall-list-64bit-condition): Define.
8020
8021 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8022
8023         * locale/iso-639.def: Add brx entry.
8024
8025         [BZ #13328]
8026         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8027         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8028
8029         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8030         __feraiseexcept_renamed.
8031
8032 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8033
8034         [BZ #13538]
8035         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8036         EPOLLET with unsigned values.
8037         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8038         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8039
8040         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8041         to large cancellation.
8042         * math/s_cacoshf.c: Likewise.
8043         * math/s_cacoshl.c: Likewise.
8044
8045 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8046
8047         [BZ #13305]
8048         [BZ #12786]
8049         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8050         * math/s_cacoshf.c: Likewise.
8051         * math/s_cacoshl.c: Likewise.
8052
8053 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8054
8055         [BZ #13439]
8056         * iconv/gconv.h: Define __GCONV_SWAP.
8057         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8058         * iconvdata/utf-16.c: Likewise.
8059         * iconvdata/utf-32.c: Likewise.
8060
8061 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8062
8063         [BZ #13524]
8064         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8065         numerator after shifting it by one limb.
8066
8067 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8068
8069         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8070         under [__USE_EXTERN_INLINES].
8071
8072 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8073
8074         [BZ #13446]
8075         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
8076
8077 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8078
8079         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
8080         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
8081         optimized code.
8082         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
8083         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
8084         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
8085         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
8086         for strncasecmp/strncasecmp_l compilation.
8087         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
8088         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
8089
8090 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
8091
8092         [BZ #13484]
8093         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
8094         of __asm__.
8095
8096 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8097
8098         [BZ #13506]
8099         * time/tzfile.c (__tzfile_read): Check values from file header.
8100
8101 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8102
8103         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8104         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8105         * powerpc/powerpc32/dl-start.S: Likewise.
8106         * powerpc/powerpc32/elf/start.S: Likewise.
8107         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8108         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8109         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8110         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8111         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8112         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8113         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8114         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8115         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8116         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8117         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8118         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8119         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8120         * powerpc/powerpc32/memset.S: Likewise.
8121         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8122         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8123         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8124         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8125         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8126         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8127         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8128         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8129         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8130         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8131         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8132         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8133         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8134
8135 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8136
8137         * math/libm-test.inc: Added more nearbyint tests.
8138         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8139         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8140         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8141         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8142
8143 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8144
8145         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8146         FD_CLOEXEC.
8147
8148 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8149
8150         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8151         Add wcscpy-ssse3 wcscpy-c.
8152         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8153         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8154         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8155         * sysdeps/x86_64/wcschr.S: New file.
8156         * sysdeps/x86_64/wcsrchr.S: New file.
8157         * string/test-strcmp.c: Remove checking of wcscmp function for
8158         wrong alignments.
8159         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8160         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8161         wcsrchr-sse2 wcsrchr-c.
8162         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8163         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8164         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8165         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8166         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8167         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8168         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8169         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8170         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8171         * wcsmbc/wcschr.c (WCSCHR): New macro.
8172
8173 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8174
8175         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8176         * wcsmbs/test-wcsrchr.c: New file.
8177         * string/test-strrchr.c: Add wcsrchr support.
8178         (WIDE): New macro.
8179         * wcsmbs/test-wcscpy.c: New file.
8180         * string/test-strcpy.c: Add wcscpy support.
8181         (WIDE): New macro.
8182
8183 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8184
8185         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8186         the inner loop.
8187
8188 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8189
8190         [BZ #13472]
8191         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8192
8193 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8194
8195         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8196         Minor optimizations.
8197
8198         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8199         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8200         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8201
8202 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8203
8204         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8205         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8206         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8207         for gcc to avoid warnings.
8208         * inet/Makefile (tests): Add tst-checks.
8209         * inet/tst-checks.c: New file.
8210
8211         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8212         warning.
8213
8214         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8215         __wmemcmp_sse2.
8216
8217         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8218         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8219
8220         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8221
8222 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8223
8224         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8225         problem.
8226
8227         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8228
8229 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8230
8231         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8232         conditional on GCC version.
8233         (__arch_compare_and_exchange_val_8_acq)
8234         (__arch_compare_and_exchange_val_16_acq)
8235         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8236         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8237         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8238
8239 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8240
8241         * sysdeps/sh/backtrace.c: New file.
8242
8243 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8244
8245         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8246         parenthesis.
8247
8248 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8249
8250         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8251         falling back to utime.
8252
8253 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8254
8255         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8256         expectations for float.
8257
8258 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8259
8260         * locale/weight.h (findidx): Add parameter len.
8261         * locale/weightwc.h (findidx): Likewise.
8262         * posix/fnmatch_loop.c (FCT): Adjust caller.
8263         * posix/regcomp.c (build_equiv_class): Likewise.
8264         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8265         * posix/regexec.c (check_node_accept_bytes): Likewise.
8266         * string/strcoll_l.c (STRCOLL): Likewise.
8267         * string/strxfrm_l.c (STRXFRM): Likewise.
8268
8269 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8270
8271         * Makefile.in: Remove CVSOPT handling.
8272         * configure.in: Remove use of AC_REVISION.
8273         * iconvdata/Makefile (distribute): No need to filter out CVS.
8274         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8275         handling.
8276
8277 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8278
8279         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8280         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8281         [USE_AS_STRNCASECMP_L]: Likewise.
8282         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8283         NO_TLS_DIRECT_SEG_REFS.
8284         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8285         Fix argument offsets for non-PIC.
8286         [USE_AS_STRNCASECMP_L]: Likewise.
8287         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8288         NO_TLS_DIRECT_SEG_REFS.
8289
8290 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8291
8292         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8293         O_CLOEXEC.
8294         * locale/loadlocale.c (_nl_load_locale): Likewise.
8295
8296 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8297
8298         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8299         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8300         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8301         (SYSCALL_GETTIME): Set errno on error.
8302
8303         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8304         count references to noai6ai_cached.
8305
8306 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8307
8308         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8309
8310         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8311         FD_CLOEXEC for /proc/self/maps.
8312
8313         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8314         FD_CLOEXEC for /proc/meminfo.
8315
8316         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8317         gai.conf.
8318
8319         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8320         FD_CLOEXEC for given file.
8321
8322         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8323
8324         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8325         FD_CLOEXEC for /etc/hosts.
8326         (_gethtent): Likewise.
8327
8328         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8329
8330         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8331         cancellation and set FD_CLOEXEC for /etc/netgroup.
8332
8333         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8334         reading /etc/publickey.
8335
8336         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8337         allow cancellation when reading /etc/group.
8338
8339         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8340         cancellation.
8341         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8342
8343         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8344         when using data file.
8345
8346         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8347
8348         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8349         (write_nis_obj): Use "c" and "e" in fopen.
8350
8351         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8352
8353         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8354
8355         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8356
8357         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8358
8359         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8360         locale.alias.
8361
8362         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8363
8364         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8365
8366         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8367
8368         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8369         file parsing and set FD_CLOEXEC.
8370
8371 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8372
8373         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8374
8375 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8376
8377         * malloc/arena.c (arena_get2): Don't call reused_arena when
8378         _int_new_arena failed.
8379
8380 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8381
8382         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8383         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8384         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8385         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8386         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8387         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8388         to compile strcasecmp and strncasecmp.
8389         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8390         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8391
8392         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8393
8394 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8395
8396         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8397         locale-defines.sym to gen-as-const-headers.
8398         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8399         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8400         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8401         to compile strcasecmp and strncasecmp.
8402         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8403         strcasecmp_l and strncasecmp_l.
8404         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8405         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8406         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8407         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8408         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8409         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8410         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8411         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8412         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8413         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8414         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8415
8416 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8417
8418         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8419         result of SYSDEP_GETTIME_CPU to retval.
8420         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8421         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8422
8423         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8424         variable.
8425
8426         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8427         mantissa words.
8428         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8429
8430         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8431         from unused variable.
8432
8433         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8434         DWARF definitions.
8435         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8436         for assembling.
8437
8438         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8439         over namespaces.
8440
8441         * sunrpc/rpc_prot.c (rejected): Fix case value.
8442
8443         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8444         unsigned long long int to avoid warnings in shift.
8445
8446         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8447         of use of trans.
8448         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8449         variable tmp.
8450
8451         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8452         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8453         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8454
8455         * nis/nis_table.c (nis_list): Use variable of correct type for
8456         result of __follow_path call.
8457
8458 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8459
8460         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8461         of math functions ceil, trunc, floor, round, and sqrt, when
8462         avaliable on the platform.
8463         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
8464         name clash.
8465         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8466         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8467         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8468
8469 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
8470
8471         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
8472         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8473
8474 2011-11-11  Roland McGrath  <roland@hack.frob.com>
8475
8476         * include/unistd.h: Fix __readlink return type.
8477         Reported by Chris Metcalf <cmetcalf@tilera.com>.
8478
8479 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
8480
8481         * stdlib/ucontext.h: Undo last change for makecontext.
8482
8483 2011-11-11  Andreas Schwab  <schwab@redhat.com>
8484
8485         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
8486
8487         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
8488         * setjmp/setjmp.h: Mark functions as non-leaf.
8489         * setjmp/bits/setjmp2.h: Likewise.
8490         * stdlib/ucontext.h: Likewise.
8491
8492 2011-11-10  Andreas Schwab  <schwab@redhat.com>
8493
8494         * malloc/arena.c (_int_new_arena): Don't increment narenas.
8495         (reused_arena): Don't check arena limit.
8496         (arena_get2): Atomically check arena limit.
8497
8498 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
8499
8500         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
8501         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
8502
8503         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
8504         instructions.
8505
8506 2011-11-07  Andreas Schwab  <schwab@redhat.com>
8507
8508         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
8509         handler when locking.
8510
8511         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8512         Fix size of allocated buffer.
8513
8514 2011-11-04  Andreas Schwab  <schwab@redhat.com>
8515
8516         [BZ #10103]
8517         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
8518         declarations for long double functions.
8519         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
8520
8521         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
8522
8523 2011-11-03  Andreas Schwab  <schwab@redhat.com>
8524
8525         * nscd/nscd.c (main): Don't start AVC thread until credentials are
8526         installed.
8527
8528         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
8529         is disabled.
8530
8531 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8532
8533         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
8534
8535 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8536
8537         * include/alloca.h (stackinfo_alloca_round): Define.
8538         (extend_alloca): Use it.
8539         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
8540         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
8541         here.
8542
8543         * scripts/check-local-headers.sh: Ignore libaudit.h.
8544
8545         * nscd/Makefile (extra-objs): Make recursively expanded.
8546
8547 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
8548
8549         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
8550         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
8551
8552         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
8553         * posix/tst-rfc3484-2.c: Likewise.
8554         * posix/tst-rfc3484-3.c: Likewise.
8555
8556         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8557         process_vm_writev.
8558         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
8559         process_vm_writev.
8560         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
8561         process_vm_writev from libc using GLIBC_2.15 version.
8562
8563         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
8564
8565 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8566
8567         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
8568         stack usage.
8569
8570 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
8571
8572         [BZ #13367]
8573         * nss/getent.c (initgroups_keys): Show error message in case no group
8574         names are given.
8575
8576         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
8577         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
8578         __bump_nl_timestamp.
8579         * nscd/connections (nscd_init): When host database is served open
8580         netlink socket and request notification about configuration changes.
8581         (main_loop_poll): Track netlink file descriptor and bump timestamp
8582         in case data becomes available.
8583         (main_loop_epoll): Likewise.
8584         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
8585         (database_pers_head): Add extra_data fileds.
8586         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
8587         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
8588         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
8589         Adjust caller.
8590         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
8591         in6ai data, call __free_in6ai.
8592         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
8593         Add -DHAVE_NETLINK.
8594         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
8595         interface information.  Reuse previous data if netlink timestamp
8596         is not changed.
8597         (__bump_nl_timestamp): New function.
8598         (__free_in6ai): New function.
8599
8600 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
8601
8602         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
8603         close_not_cancel_no_status here.
8604         (__check_pf): Reorganize code a bit to not call close twice if OOM.
8605
8606 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8607
8608         [BZ #13276]
8609         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
8610         return value.
8611
8612         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
8613         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
8614         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
8615
8616 2011-07-03  Andreas Jaeger  <aj@suse.de>
8617
8618         [BZ #10709]
8619         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
8620         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
8621         * math/libm-test.inc (sin_test): Add test case.
8622
8623 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8624
8625         [BZ #13337]
8626         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
8627         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8628
8629         * elf/chroot_canon.c (chroot_canon): Cleanups.
8630
8631         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
8632
8633         [BZ #13335]
8634         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
8635         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8636
8637         * string/test-strchr.c: Make usable for strchrnul testing.
8638         * string/test-strchrnul.c: New file.
8639         * string/Makefile (strop-tests): Add strchrnul.
8640
8641         * po/it.po: Update from translation team.
8642         * po/es.po: Likewise.
8643
8644 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
8645
8646         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
8647         the three constants needed as parameters.  Drop the others.
8648         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
8649         __m128i_strloadu_tolower.
8650         Create and initialize variable zero and use it in all the places
8651         where _mm_setzero_si128 was used.
8652
8653         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
8654         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
8655         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
8656         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
8657         anymore.
8658         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
8659         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
8660         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
8661         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
8662         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
8663         __mpranred, __mptan.
8664         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
8665         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
8666         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
8667         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
8668         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
8669         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
8670         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
8671         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
8672         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
8673
8674 2011-10-28  Andreas Schwab  <schwab@redhat.com>
8675
8676         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
8677         redefine if SHARED.
8678         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
8679
8680         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
8681         wide char related routines to wcsmbs subdir.
8682
8683 2011-10-27  Andreas Schwab  <schwab@redhat.com>
8684
8685         [BZ #13344]
8686         * misc/sys/cdefs.h (__THROWNL): Define.
8687         * posix/unistd.h: Use __THREADNL instead of __THREAD
8688         for memory synchronization functions.
8689
8690 2011-10-26  Roland McGrath  <roland@hack.frob.com>
8691
8692         [BZ #13349]
8693         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
8694         doesn't exist.
8695         * manual/stdio.texi (Obstack Streams): Node removed.
8696
8697 2011-10-26  Andreas Schwab  <schwab@redhat.com>
8698
8699         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
8700         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8701         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8702
8703         * math/math_private.h (math_force_eval): Allow non-addressable
8704         arguments.
8705         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
8706
8707 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8708
8709         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
8710         file is not needed.
8711
8712         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
8713         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8714         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8715         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8716         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8717         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8718         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8719         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
8720         Add AVX variants.
8721         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
8722         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
8723         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
8724         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
8725         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
8726         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
8727         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
8728         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
8729         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
8730         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
8731         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
8732         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
8733         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
8734         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
8735         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
8736         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
8737         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
8738         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
8739         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
8740
8741         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
8742         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
8743
8744         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
8745         place.  Use VEX encoding when compiling for AVX.
8746
8747 2011-10-25  Andreas Schwab  <schwab@redhat.com>
8748
8749         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
8750         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
8751
8752         * string/test-strchr.c (do_test): Don't generate NUL bytes.
8753
8754 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8755
8756         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
8757         useless if() expression.
8758         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8759         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8760         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8761         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8762         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8763         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8764         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8765         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8766         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8767         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8768         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8769         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8770         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8771         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8772         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8773         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8774         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8775         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8776         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8777
8778         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
8779
8780 2011-10-25  Andreas Schwab  <schwab@redhat.com>
8781
8782         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
8783         condition.
8784         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8785
8786 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8787
8788         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
8789         .text section.  Avoid duplicate constants.
8790         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8791         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8792         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8793         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8794         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8795         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8796         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8797         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8798         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
8799         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
8800         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
8801         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
8802         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
8803         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
8804         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
8805         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
8806         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
8807         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
8808         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8809         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8810         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8811         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8812         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8813         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
8814         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
8815         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
8816         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
8817         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
8818         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
8819         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
8820         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
8821         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
8822         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8823         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
8824         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
8825         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
8826         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
8827         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
8828         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
8829         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
8830         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
8831         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
8832         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
8833         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
8834         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
8835
8836 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
8837
8838         * sysdeps/x86_64/dla.h: Move to ...
8839         * sysdeps/x86_64/fpu/dla.h: ...here.
8840         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
8841         situations.  Use __builtin_fma only for gcc 4.6 and up.
8842
8843         * config.make.in: Add have-mfma4 entry.
8844         * configure.in: Substitute libc_cv_cc_fma4.
8845         * math/Makefile (dbl-only-routines): Add sincostab.
8846         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
8847         Use __sincostab not sincos.
8848         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
8849         name is a macro.
8850         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8851         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8852         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8853         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
8854         using __copysign.
8855         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
8856         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
8857         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
8858         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
8859         and __inv.
8860         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
8861         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
8862         __copysign.
8863         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
8864         define aliases when function name is a macro.
8865         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
8866         sysdeps/ieee754/dbl-64/sincos.tbl.
8867         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
8868         fma4-enabled routines.
8869         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
8870         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
8871         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
8872         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
8873         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
8874         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
8875         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
8876         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
8877         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
8878         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
8879         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
8880         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
8881         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
8882         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
8883         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
8884         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
8885         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
8886         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
8887         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
8888         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
8889         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
8890         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
8891         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
8892         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
8893         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
8894         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
8895         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
8896         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
8897         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
8898         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
8899
8900         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
8901         rename.
8902         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8903         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8904         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8905         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8906         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8907         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8908         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8909         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8910
8911 2011-10-24  Andreas Schwab  <schwab@redhat.com>
8912
8913         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
8914
8915 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8916
8917         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
8918
8919         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
8920         prediction.
8921         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
8922
8923         * string/strnlen.c: Don't define STRNLEN, reverse logic.
8924         Remove unused variable magic_bits.
8925         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
8926
8927         * string/strnlen.c: Define and use STRNLEN macro.
8928         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
8929         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
8930         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
8931         * wcsmbs/wcslen.c: Define and use WCSLEN.
8932         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
8933         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
8934         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
8935         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
8936         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
8937         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
8938         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8939
8940 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8941
8942         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8943         strnlen-sse2-no-bsf.
8944         Rename strlen-no-bsf to strlen-sse2-no-bsf.
8945         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
8946         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
8947         Add strnlen support.
8948         (USE_AS_STRNLEN): New macro.
8949         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
8950         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
8951         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
8952         * sysdeps/x86_64/wcslen.S: New file.
8953
8954 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
8955
8956         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8957         XMM-moves are used for copying on small sizes.
8958
8959 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8960
8961         * wcsmbs/Makefile (strop-tests): Add wcschr.
8962         * wcsmbs/test-wcschr.c: New file.
8963         * string/test-strchr.c: Update.
8964         Add wcschr support.
8965         (WIDE): New macro.
8966
8967 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8968
8969         * wcsmbs/Makefile (strop-tests): Add wcslen.
8970         * wcsmbs/test-wcslen.c: New file.
8971         * string/test-strlen.c: Update.
8972         Add wcslen support.
8973         (WIDE): New macro.
8974
8975 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8976
8977         * po/it.po: Update from translation team.
8978
8979 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8980
8981         * sysdeps/x86_64/wcscmp.S: Update.
8982         Fix wrong comparison semantics.
8983         wcscmp shall use signed comparison not unsigned.
8984         Don't use substraction to avoid overflow bug.
8985         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
8986         * wcsmbc/wcscmp.c: Likewise.
8987         * string/test-strcmp.c: Likewise.
8988         Add new tests to check cases with negative values.
8989
8990 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8991
8992         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
8993         * sysdeps/x86_64/dla.h: ...here.  New file.
8994         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
8995         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8996         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8997         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8998         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8999         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9000         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9001         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9002         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9003
9004 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9005
9006         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9007         __ynl_finite aliases.
9008
9009 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9010
9011         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9012
9013         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9014         define DLA_FMA.
9015         [DLA_FMA] (EMULV): Use DLA_FMA.
9016         [DLA_FMA] (MUL12): Use EMULV.
9017         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9018         that are not needed.
9019         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9020         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9021         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9022         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9023         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9024         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9025         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9026
9027 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9028
9029         * math/s_nan.c: Undef __nan.
9030         * math/s_nanf.c: Undef __nanf.
9031         * math/s_nanl.c: Undef __nanl.
9032         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9033         "math_private.h".
9034
9035 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9036
9037         * math/s_catan.c: Add branch predictions.
9038         * math/s_catanf.c: Likewise.
9039         * math/s_catanh.c: Likewise.
9040         * math/s_catanhf.c: Likewise.
9041         * math/s_catanhl.c: Likewise.
9042         * math/s_catanl.c: Likewise.
9043         * math/s_cexp.c: Likewise.
9044         * math/s_cexpf.c: Likewise.
9045         * math/s_cexpl.c: Likewise.
9046         * math/s_clog.c: Likewise.
9047         * math/s_clog10.c: Likewise.
9048         * math/s_clog10f.c: Likewise.
9049         * math/s_clog10l.c: Likewise.
9050         * math/s_clogf.c: Likewise.
9051         * math/s_clogl.c: Likewise.
9052         * math/s_csqrt.c: Likewise.
9053         * math/s_csqrtf.c: Likewise.
9054         * math/s_csqrtl.c: Likewise.
9055         * math/s_ctanf.c: Likewise.
9056         * math/s_ctanh.c: Likewise.
9057         * math/s_ctanhf.c: Likewise.
9058         * math/s_ctanhl.c: Likewise.
9059         * math/s_ctanl.c: Likewise.
9060
9061         * math/math_private.h: Define __nan, __nanf, __nanl.
9062         * math/s_cacosh.c: Include <math_private.h>.
9063         * math/s_cacoshl.c: Likewise.
9064         * math/s_casinh.c: Likewise.
9065         * math/s_casinhf.c: Likewise.
9066         * math/s_casinhl.c: Likewise.
9067         * math/s_ccos.c: Rely entire on ccosh.
9068         * math/s_ccosf.c: Rely entire on ccoshf.
9069         * math/s_ccosl.c: Rely entirely on ccoshl.
9070         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9071         Remove tests for FE_INVALID.
9072         * math/s_ccoshf.c: Likewise.
9073         * math/s_ccoshl.c: Likewise.
9074         * math/s_csin.c: Likewise.
9075         * math/s_csinf.c: Likewise.
9076         * math/s_csinh.c Likewise.
9077         * math/s_csinhf.c: Likewise.
9078         * math/s_csinhl.c: Likewise.
9079         * math/s_csinl.c: Likewise.
9080         * math/s_ctan.c: Likewise.
9081         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
9082         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
9083         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
9084
9085 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
9086
9087         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
9088         compilation problems.
9089
9090         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
9091         __builtin_expect.
9092
9093 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
9094
9095         * sysdeps/i386/configure.in: Test for -mfma4 option.
9096         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9097         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9098         COMMON_CPUID_INDEX_80000001.
9099         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9100         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9101         use it if FMA3 is not supported.
9102         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9103
9104         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9105         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9106
9107 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9108
9109         [BZ #12892]
9110         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9111         it would create a cycle with a link time dependency.
9112
9113 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9114
9115         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9116         instruction.
9117         * string/Makefile (strop-tests): Add rawmemchr.
9118         * string/test-rawmemchr.c: New file.
9119
9120         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9121         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9122         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9123         when compiling str{,n}casecmp and when AVX is available.  Hook up
9124         new optimized code in initializers.
9125
9126 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9127
9128         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9129         __feraiseexcept instead of feraiseexcept.
9130
9131 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9132
9133         * math/math_private.h: Define defaults for libc_fetestexcept and
9134         libc_feupdateenv.
9135         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9136         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9137         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9138         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9139         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9140         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9141         libc_fetestexcept and libc_feupdateenv.
9142
9143         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9144         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9145         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9146         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9147         libc_feholdexcept_setround.
9148
9149         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9150         Add s_nearbyint-c and s_nearbyintf-c.
9151         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9152         nearbyintf inlines.
9153         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9154         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9155         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9156         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9157
9158         * math/math_private.h: Define defaults for libc_fegetround,
9159         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9160         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9161         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9162         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9163         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9164         standard functions.
9165         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9166         Remove comments and hacks for old compiler versions.
9167         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9168         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9169         libc_feholdexceptl.
9170
9171 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9172
9173         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9174         (__feraiseexcept_renamed): Add __NTH.
9175         (feraiseexcept): Add __NTH.  Rename local variables to fix
9176         namespace violations.
9177
9178 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9179
9180         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9181
9182         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9183
9184         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9185         recently added interfaces.
9186         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9187
9188         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9189         about macro parameter expansion.
9190
9191         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9192         __NO_MATH_INLINES is defined.  Cleanups.
9193
9194         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9195         and __floorf is target has SSE4.1.
9196         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9197         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9198         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9199         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9200
9201         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9202         name.
9203         (floorf): Likewise.
9204
9205         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9206
9207 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9208
9209         * misc/sys/cdefs.h: Fix last change.
9210
9211         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9212         database lookup.
9213
9214 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9215
9216         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9217
9218         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9219         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9220         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9221         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9222         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9223         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9224         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9225         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9226         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9227         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9228         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9229         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9230         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9231         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9232         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9233         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9234         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9235         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9236         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9237         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9238         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9239         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9240
9241         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9242         ceil, ceilf, floor, floorf.
9243
9244         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9245         Perform IRELATIVE relocations last.
9246
9247         * elf/do-rel.h: Add another parameter nrelative, replacing the
9248         local variable with the same name.  Change name of the function
9249         to end in Rel or Rela (uppercase).
9250         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9251         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9252         elf_dynamic_do_##reloc function.
9253
9254 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9255
9256         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9257         is sufficient, at least on modern CPUs.
9258
9259         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9260
9261         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9262         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9263
9264         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9265         __expl_finite.
9266         * math/bits/math-finite.h: Add entries for exp.
9267         * math/e_expl.c: Add __*_finite alias.
9268         * sysdeps/i386/fpu/e_exp.S: Likewise.
9269         * sysdeps/i386/fpu/e_expf.S: Likewise.
9270         * sysdeps/i386/fpu/e_expl.c: Likewise.
9271         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9272         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9273         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9274         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9275         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9276         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9277         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9278
9279         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9280         is sufficient, at least on modern CPUs.
9281
9282         * ctype/ctype-info.c (__ctype_init): Define.
9283         * include/ctype.h (__ctype_init): Declare.
9284         (__ctype_b_loc): The variable is always initialized.
9285         (__ctype_toupper_loc): Likewise.
9286         (__ctype_tolower_loc): Likewise.
9287         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9288         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9289
9290 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9291
9292         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9293
9294         * configure.in: Also look in $cxxmachine/include for C++ system
9295         headers.
9296
9297 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9298
9299         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9300         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9301         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9302         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9303         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9304         (USE_AS_WMEMCMP): New macro.
9305         Fixing indents.
9306         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9307         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9308         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9309         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9310         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9311         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9312         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9313         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9314         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9315         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9316         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9317         (USE_AS_WMEMCMP): New macro.
9318         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9319         * sysdeps/string/test-memcmp.c: Update.
9320         Fix simple_wmemcmp.
9321         Add new tests.
9322         * wcsmbs/wmemcmp.c: Update.
9323         (WMEMCMP): New macro.
9324         Fix overflow bug.
9325
9326 2011-10-12  Andreas Jaeger  <aj@suse.de>
9327
9328         [BZ #13268]
9329         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9330
9331 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9332
9333         * libio/iofwide.c (do_length): Avoid warning.
9334
9335         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9336
9337 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9338
9339         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9340
9341         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9342         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9343         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9344         * sysdeps/i386/i686/fpu/e_log.S: New file.
9345         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9346         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9347
9348         * ctype/ctype.h: Add support for inlined isXXX functions when
9349         compiling C++ code.
9350
9351 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9352
9353         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9354
9355         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9356
9357 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9358
9359         [BZ #13291]
9360         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9361
9362 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9363
9364         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9365         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9366         feraiseexcept.
9367
9368         * sysdeps/x86_64/memrchr.S: Check for zero size.
9369
9370         * string/stratcliff.c: Add memrchr tests.
9371
9372 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9373
9374         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9375         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9376         rawmemchr-sse2 rawmemchr-sse2-bsf.
9377         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9378         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9379         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9380         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9381         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9382         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9383         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9384         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9385         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9386         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9387         * string/memrchr.c (MEMRCHR): New macro.
9388
9389 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9390
9391         Add integration with gcc's -ffinite-math-only and optimize wrapper
9392         functions in libm.
9393         * Versions.def: Define GLIBC_2.15 version for libm.
9394         * math/Makefile (headers): Add bits/math-finite.h.
9395         * math/bits/math-finite.h: New file.
9396         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9397         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9398         * math/e_acoshl.c: Add __*_finite alias.
9399         * math/e_acosl.c: Likewise.
9400         * math/e_asinl.c: Likewise.
9401         * math/e_atan2l.c: Likewise.
9402         * math/e_atanhl.c: Likewise.
9403         * math/e_coshl.c: Likewise.
9404         * math/e_exp10.c: Likewise.
9405         * math/e_exp10f.c: Likewise.
9406         * math/e_exp10l.c: Likewise.
9407         * math/e_exp2l.c: Likewise.
9408         * math/e_fmodl.c: Likewise.
9409         * math/e_gammal_r.c: Likewise.
9410         * math/e_hypotl.c: Likewise.
9411         * math/e_j0l.c: Likewise.
9412         * math/e_j1l.c: Likewise.
9413         * math/e_jnl.c: Likewise.
9414         * math/e_lgammal_r.c: Likewise.
9415         * math/e_log10l.c: Likewise.
9416         * math/e_log2l.c: Likewise.
9417         * math/e_logl.c: Likewise.
9418         * math/e_powl.c: Likewise.
9419         * math/e_sinhl.c: Likewise.
9420         * math/e_sqrtl.c: Likewise.
9421         * math/e_scalb.c: Completely rewritten and optimized.
9422         * math/e_scalbf.c: Likewise.
9423         * math/e_scalbl.c: Likewise.
9424         * math/w_acos.c: Likewise.
9425         * math/w_acosf.c: Likewise.
9426         * math/w_acosl.c: Likewise.
9427         * math/w_acosh.c: Likewise.
9428         * math/w_acoshf.c: Likewise.
9429         * math/w_acoshl.c: Likewise.
9430         * math/w_asin.c: Likewise.
9431         * math/w_asinf.c: Likewise.
9432         * math/w_asinl.c: Likewise.
9433         * math/w_atan2.c: Likewise.
9434         * math/w_atan2f.c: Likewise.
9435         * math/w_atan2l.c: Likewise.
9436         * math/w_atanh.c: Likewise.
9437         * math/w_atanhf.c: Likewise.
9438         * math/w_atanhl.c: Likewise.
9439         * math/w_exp10.c: Likewise.
9440         * math/w_exp10f.c: Likewise.
9441         * math/w_exp10l.c: Likewise.
9442         * math/w_fmod.c: Likewise.
9443         * math/w_fmodf.c: Likewise.
9444         * math/w_fmodl.c: Likewise.
9445         * math/w_j0.c: Likewise.
9446         * math/w_j0f.c: Likewise.
9447         * math/w_j0l.c: Likewise.
9448         * math/w_j1.c: Likewise.
9449         * math/w_j1f.c: Likewise.
9450         * math/w_j1l.c: Likewise.
9451         * math/w_jn.c: Likewise.
9452         * math/w_jnf.c: Likewise.
9453         * math/w_log.c: Likewise.
9454         * math/w_logf.c: Likewise.
9455         * math/w_logl.c: Likewise.
9456         * math/w_log10.c: Likewise.
9457         * math/w_log10f.c: Likewise.
9458         * math/w_log10l.c: Likewise.
9459         * math/w_log2.c: Likewise.
9460         * math/w_log2f.c: Likewise.
9461         * math/w_log2l.c: Likewise.
9462         * math/w_pow.c: Likewise.
9463         * math/w_powf.c: Likewise.
9464         * math/w_powl.c: Likewise.
9465         * math/w_remainder.c: Likewise.
9466         * math/w_remainderf.c: Likewise.
9467         * math/w_remainderl.c: Likewise.
9468         * math/w_scalb.c: Likewise.
9469         * math/w_scalbf.c: Likewise.
9470         * math/w_scalbl.c: Likewise.
9471         * math/w_sqrt.c: Likewise.
9472         * math/w_sqrtf.c: Likewise.
9473         * math/w_sqrtl.c: Likewise.
9474         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
9475         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
9476         used.
9477         * math/math_private.h: Declare __kernel_standard_f.
9478         * math/w_cosh.c: Remove cruft and optimize a bit.
9479         * math/w_coshf.c: Likewise.
9480         * math/w_coshl.c: Likewise.
9481         * math/w_exp2.c: Likewise.
9482         * math/w_exp2f.c: Likewise.
9483         * math/w_exp2l.c: Likewise.
9484         * math/w_hypot.c: Likewise.
9485         * math/w_hypotf.c: Likewise.
9486         * math/w_hypotl.c: Likewise.
9487         * math/w_lgamma.c: Likewise.
9488         * math/w_lgamma_r.c: Likewise.
9489         * math/w_lgammaf.c: Likewise.
9490         * math/w_lgammaf_r.c: Likewise.
9491         * math/w_lgammal.c: Likewise.
9492         * math/w_lgammal_r.c: Likewise.
9493         * math/w_sinh.c: Likewise.
9494         * math/w_sinhf.c: Likewise.
9495         * math/w_sinhl.c: Likewise.
9496         * math/w_tgamma.c: Likewise.
9497         * math/w_tgammaf.c: Likewise.
9498         * math/w_tgammal.c: Likewise.
9499         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9500         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9501         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
9502         Minor optimizations.  Pretty printing.  Remove cruft.
9503         * sysdeps/i386/fpu/e_acosf.S: Likewise.
9504         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9505         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9506         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9507         * sysdeps/i386/fpu/e_acosl.c: Likewise.
9508         * sysdeps/i386/fpu/e_asin.S: Likewise.
9509         * sysdeps/i386/fpu/e_asinf.S: Likewise.
9510         * sysdeps/i386/fpu/e_atan2.S: Likewise.
9511         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
9512         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
9513         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9514         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9515         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9516         * sysdeps/i386/fpu/e_exp10.S: Likewise.
9517         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
9518         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
9519         * sysdeps/i386/fpu/e_exp2.S: Likewise.
9520         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
9521         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
9522         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9523         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
9524         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9525         * sysdeps/i386/fpu/e_hypot.S: Likewise.
9526         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
9527         * sysdeps/i386/fpu/e_log.S: Likewise.
9528         * sysdeps/i386/fpu/e_log10.S: Likewise.
9529         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9530         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9531         * sysdeps/i386/fpu/e_log2.S: Likewise.
9532         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9533         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9534         * sysdeps/i386/fpu/e_logf.S: Likewise.
9535         * sysdeps/i386/fpu/e_logl.S: Likewise.
9536         * sysdeps/i386/fpu/e_pow.S: Likewise.
9537         * sysdeps/i386/fpu/e_powf.S: Likewise.
9538         * sysdeps/i386/fpu/e_powl.S: Likewise.
9539         * sysdeps/i386/fpu/e_remainder.S: Likewise.
9540         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
9541         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
9542         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9543         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9544         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9545         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
9546         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
9547         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
9548         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9549         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9550         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9551         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9552         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9553         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9554         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9555         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9556         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9557         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9558         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9559         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9560         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9561         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9562         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9563         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9564         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9565         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9566         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9567         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9568         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9569         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9570         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9571         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9572         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9573         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9574         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9575         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9576         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9577         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9578         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9579         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9580         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9581         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9582         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9583         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9584         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9585         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9586         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9587         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9588         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9589         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9590         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9591         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9592         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9593         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9594         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9595         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9596         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9597         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9598         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9599         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9600         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9601         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9602         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9603         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9604         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9605         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9606         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9607         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9608         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9609         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9610         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9611         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9612         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9613         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9614         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9615         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9616         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9617         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9618         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9619         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9620         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9621         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9622         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9623         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9624         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
9625         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9626         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9627         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9628         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9629         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9630         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9631         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9632         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9633         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9634         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9635         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9636         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9637         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9638         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9639         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9640         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9641         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9642         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9643         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
9644         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
9645         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
9646         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
9647         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
9648         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
9649         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
9650         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
9651         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
9652         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9653         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9654         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9655         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9656         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
9657         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9658         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
9659         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
9660         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
9661         (__isnanf): Likewise.
9662         (__isinf_ns): Likewise.
9663         (__isinf_nsf): Likewise.
9664         (__finite): Likewise.
9665         (__finitef): Likewise.
9666         (__ieee754_sqrt): Define as macro.
9667         (__ieee754_sqrtf): Define as macro.
9668         (__ieee754_sqrtl): Define as macro.
9669         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
9670         inlined copy.
9671         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
9672         __FINITE_MATH_ONLY__ consistent.
9673         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
9674
9675 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
9676
9677         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
9678         of rawmemchr.
9679
9680         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
9681
9682 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
9683
9684         * po/ja.po: Update from translation team.
9685
9686 2011-10-08  Roland McGrath  <roland@hack.frob.com>
9687
9688         * locale/programs/locarchive.c (prepare_address_space): New function.
9689         (create_archive, enlarge_archive, open_archive): Use it.
9690
9691         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
9692         inside [SHARED], where it is used.
9693
9694         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
9695
9696         * nss/getent.c (netgroup_keys): Remove unused variable.
9697         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9698
9699 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
9700
9701         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
9702         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
9703         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
9704         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
9705         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
9706         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
9707         * math/Makefile (libm-calls): Add s_isinf_ns.
9708         * math/divtc3.c: Use __isinf_nsl instead of isinf.
9709         * math/multc3.c: Likewise.
9710         * math/s_casin.c: Likewise.
9711         * math/s_casinf.c: Likewise.
9712         * math/s_casinl.c: Likewise.
9713         * math/s_ccos.c: Likewise.
9714         * math/s_ccosf.c: Likewise.
9715         * math/s_ccosl.c: Likewise.
9716         * math/s_ctan.c: Likewise.
9717         * math/s_ctanf.c: Likewise.
9718         * math/s_ctanh.c: Likewise.
9719         * math/s_ctanhf.c: Likewise.
9720         * math/s_ctanhl.c: Likewise.
9721         * math/s_ctanl.c: Likewise.
9722         * math/w_fmod.c: Likewise.
9723         * math/w_fmodf.c: Likewise.
9724         * math/w_fmodl.c: Likewise.
9725         * math/w_remainder.c: Likewise.
9726         * math/w_remainderf.c: Likewise.
9727         * math/w_remainderl.c: Likewise.
9728         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
9729         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
9730         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
9731         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
9732         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
9733         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
9734         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
9735         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
9736
9737         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
9738         of the number.
9739         * stdio-common/printf_fphex.c: Likewise.
9740         * stdio-common/printf_size.c: Likewise.
9741
9742         * math/e_exp10.c: Include math_private.h using <...> not "...".
9743         * math/e_exp10f.c: Likewise.
9744         * math/e_exp10l.c: Likewise.
9745         * math/e_exp2l.c: Likewise.
9746         * math/e_j0l.c: Likewise.
9747         * math/e_j1l.c: Likewise.
9748         * math/e_jnl.c: Likewise.
9749         * math/e_lgammal_r.c: Likewise.
9750         * math/e_rem_pio2l.c: Likewise.
9751         * math/e_scalb.c: Likewise.
9752         * math/e_scalbf.c: Likewise.
9753         * math/e_scalbl.c: Likewise.
9754         * math/k_cosl.c: Likewise.
9755         * math/k_sinl.c: Likewise.
9756         * math/k_tanl.c: Likewise.
9757         * math/s_cacoshf.c: Likewise.
9758         * math/s_catan.c: Likewise.
9759         * math/s_catanf.c: Likewise.
9760         * math/s_catanh.c: Likewise.
9761         * math/s_catanhf.c: Likewise.
9762         * math/s_catanhl.c: Likewise.
9763         * math/s_catanl.c: Likewise.
9764         * math/s_ccosh.c: Likewise.
9765         * math/s_ccoshf.c: Likewise.
9766         * math/s_ccoshl.c: Likewise.
9767         * math/s_cexp.c: Likewise.
9768         * math/s_cexpf.c: Likewise.
9769         * math/s_cexpl.c: Likewise.
9770         * math/s_clog.c: Likewise.
9771         * math/s_clog10.c: Likewise.
9772         * math/s_clog10f.c: Likewise.
9773         * math/s_clog10l.c: Likewise.
9774         * math/s_clogf.c: Likewise.
9775         * math/s_clogl.c: Likewise.
9776         * math/s_csin.c: Likewise.
9777         * math/s_csinf.c: Likewise.
9778         * math/s_csinh.c: Likewise.
9779         * math/s_csinhf.c: Likewise.
9780         * math/s_csinhl.c: Likewise.
9781         * math/s_csinl.c: Likewise.
9782         * math/s_csqrt.c: Likewise.
9783         * math/s_csqrtf.c: Likewise.
9784         * math/s_csqrtl.c: Likewise.
9785         * math/s_ctan.c: Likewise.
9786         * math/s_ctanf.c: Likewise.
9787         * math/s_ctanh.c: Likewise.
9788         * math/s_ctanhf.c: Likewise.
9789         * math/s_ctanhl.c: Likewise.
9790         * math/s_ctanl.c: Likewise.
9791         * math/s_ldexp.c: Likewise.
9792         * math/s_ldexpf.c: Likewise.
9793         * math/s_ldexpl.c: Likewise.
9794         * math/s_significand.c: Likewise.
9795         * math/s_significandf.c: Likewise.
9796         * math/s_significandl.c: Likewise.
9797         * math/w_acos.c: Likewise.
9798         * math/w_acosf.c: Likewise.
9799         * math/w_acosh.c: Likewise.
9800         * math/w_acoshf.c: Likewise.
9801         * math/w_acoshl.c: Likewise.
9802         * math/w_acosl.c: Likewise.
9803         * math/w_asin.c: Likewise.
9804         * math/w_asinf.c: Likewise.
9805         * math/w_asinl.c: Likewise.
9806         * math/w_atan2.c: Likewise.
9807         * math/w_atan2f.c: Likewise.
9808         * math/w_atan2l.c: Likewise.
9809         * math/w_atanh.c: Likewise.
9810         * math/w_atanhf.c: Likewise.
9811         * math/w_atanhl.c: Likewise.
9812         * math/w_cosh.c: Likewise.
9813         * math/w_coshf.c: Likewise.
9814         * math/w_coshl.c: Likewise.
9815         * math/w_dremf.c: Likewise.
9816         * math/w_exp10.c: Likewise.
9817         * math/w_exp10f.c: Likewise.
9818         * math/w_exp10l.c: Likewise.
9819         * math/w_exp2.c: Likewise.
9820         * math/w_exp2f.c: Likewise.
9821         * math/w_fmod.c: Likewise.
9822         * math/w_fmodf.c: Likewise.
9823         * math/w_fmodl.c: Likewise.
9824         * math/w_hypot.c: Likewise.
9825         * math/w_hypotf.c: Likewise.
9826         * math/w_hypotl.c: Likewise.
9827         * math/w_j0.c: Likewise.
9828         * math/w_j0f.c: Likewise.
9829         * math/w_j0l.c: Likewise.
9830         * math/w_j1.c: Likewise.
9831         * math/w_j1f.c: Likewise.
9832         * math/w_j1l.c: Likewise.
9833         * math/w_jn.c: Likewise.
9834         * math/w_jnf.c: Likewise.
9835         * math/w_jnl.c: Likewise.
9836         * math/w_lgamma.c: Likewise.
9837         * math/w_lgamma_r.c: Likewise.
9838         * math/w_lgammaf.c: Likewise.
9839         * math/w_lgammaf_r.c: Likewise.
9840         * math/w_lgammal.c: Likewise.
9841         * math/w_lgammal_r.c: Likewise.
9842         * math/w_log.c: Likewise.
9843         * math/w_log10.c: Likewise.
9844         * math/w_log10f.c: Likewise.
9845         * math/w_log10l.c: Likewise.
9846         * math/w_log2.c: Likewise.
9847         * math/w_log2f.c: Likewise.
9848         * math/w_log2l.c: Likewise.
9849         * math/w_logf.c: Likewise.
9850         * math/w_logl.c: Likewise.
9851         * math/w_pow.c: Likewise.
9852         * math/w_powf.c: Likewise.
9853         * math/w_powl.c: Likewise.
9854         * math/w_remainder.c: Likewise.
9855         * math/w_remainderf.c: Likewise.
9856         * math/w_remainderl.c: Likewise.
9857         * math/w_scalb.c: Likewise.
9858         * math/w_scalbf.c: Likewise.
9859         * math/w_scalbl.c: Likewise.
9860         * math/w_sinh.c: Likewise.
9861         * math/w_sinhf.c: Likewise.
9862         * math/w_sinhl.c: Likewise.
9863         * math/w_sqrt.c: Likewise.
9864         * math/w_sqrtf.c: Likewise.
9865         * math/w_sqrtl.c: Likewise.
9866         * math/w_tgamma.c: Likewise.
9867         * math/w_tgammaf.c: Likewise.
9868         * math/w_tgammal.c: Likewise.
9869
9870         * po/ja.po: Update from translation team.
9871
9872 2011-09-29  Andreas Jaeger  <aj@suse.de>
9873
9874         [BZ #13179]
9875         * sunrpc/netname.c (netname2host): Fix logic.
9876
9877         [BZ #6779]
9878         [BZ #6783]
9879         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
9880         correctly.
9881         * math/w_remainder.c (__remainder): Likewise.
9882         * math/w_remainderf.c (__remainderf): Likewise.
9883         * math/libm-test.inc (remainder_test): Add test cases.
9884
9885 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9886
9887         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
9888         sdiv_qrnnd.
9889
9890 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9891
9892         * string/test-memcmp.c: Avoid unncessary #defines.
9893         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9894
9895 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9896
9897         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
9898         Use new sse2 version for core i3 - i7 as it's faster
9899         than sse42 version.
9900         (bit_Prefer_PMINUB_for_stringop): New.
9901         * sysdeps/x86_64/rawmemchr.S: Update.
9902         Replace with faster SSE2 version.
9903         * sysdeps/x86_64/memrchr.S: New file.
9904         * sysdeps/x86_64/memchr.S: Update.
9905         Replace with faster SSE2 version.
9906
9907 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
9908
9909         * elf/dl-load.c (lose): Add cast to avoid warning.
9910
9911 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9912
9913         * po/ca.po: Update from translation team.
9914
9915         * inet/getnetgrent_r.c: Hook up nscd.
9916         * nscd/Makefile (routines): Add nscd_netgroup.
9917         (nscd-modules): Add netgroupcache.
9918         (CFLAGS-netgroupcache.c): Define.
9919         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
9920         (cache_search): Add const to second parameter.
9921         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
9922         INNETGR.
9923         (dbs): Add netgrdb entry.
9924         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
9925         (verify_persistent_db): Handle netgrdb.
9926         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
9927         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
9928         GETFDNETGR.
9929         (netgroup_response_header): Define.
9930         (innetgroup_response_header): Define.
9931         (datahead): Add netgroup_response_header and innetgroup_response_header
9932         elements.
9933         * nscd/nscd.conf: Add entries for netgroup cache.
9934         * nscd/nscd.h (dbtype): Add netgrdb.
9935         (_PATH_NSCD_NETGROUP_DB): Define.
9936         (netgroup_iov_disabled): Declare.
9937         (xmalloc, xcalloc, xrealloc): Move declarations here.
9938         (cache_search): Adjust prototype.
9939         Add netgroup-related prototypes.
9940         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
9941         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
9942         (__nscd_innetgr): Declare.
9943         * nscd/selinux.c (perms): Use access_vector_t as element type and
9944         add netgroup-related initializers.
9945         * nscd/netgroupcache.c: New file.
9946         * nscd/nscd_netgroup.c: New file.
9947         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
9948         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
9949         For four parameters use innetgr.
9950         * nss/nss_files/files-init.c: Add definition and callback for netgr.
9951         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
9952         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
9953         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
9954
9955         * nscd/connections.c (register_traced_file): Don't register file
9956         for disabled databases.
9957
9958 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
9959
9960         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
9961
9962         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
9963         from tree and freeing node.
9964
9965 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
9966
9967         * nss/nsswitch.c (__nss_database_lookup): Handle
9968         nss_parse_service_list out of memory case.
9969
9970 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
9971
9972         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
9973         out of memory case.
9974
9975 2011-10-04  Andreas Schwab  <schwab@redhat.com>
9976
9977         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
9978         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
9979         pass it down.
9980         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
9981         elf_machine_rela, elf_machine_lazy_rel.
9982         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
9983         (ELF_DYNAMIC_DO_REL): Likewise.
9984         (ELF_DYNAMIC_DO_RELA): Likewise.
9985         (ELF_DYNAMIC_RELOCATE): Likewise.
9986         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
9987         to ELF_DYNAMIC_DO_REL.
9988         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
9989         (dl_main): In trace mode always set __RTLD_NOIFUNC.
9990         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
9991         elf_machine_rela.
9992         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
9993         skip_ifunc, don't call ifunc function if non-zero.
9994         (elf_machine_rela): Likewise.
9995         (elf_machine_lazy_rel): Likewise.
9996         (elf_machine_lazy_rela): Likewise.
9997         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
9998         (elf_machine_lazy_rel): Likewise.
9999         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10000         Likewise.
10001         (elf_machine_lazy_rel): Likewise.
10002         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10003         Likewise.
10004         (elf_machine_lazy_rel): Likewise.
10005         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10006         (elf_machine_lazy_rel): Likewise.
10007         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10008         (elf_machine_lazy_rel): Likewise.
10009         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10010         (elf_machine_lazy_rel): Likewise.
10011         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10012         (elf_machine_lazy_rel): Likewise.
10013         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10014         (elf_machine_lazy_rel): Likewise.
10015         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10016         (elf_machine_lazy_rel): Likewise.
10017
10018 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10019
10020         * nss/nss_files/files-init.c (_nss_files_init): Use static
10021         initialization for all the *_traced_file variables.
10022
10023 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10024
10025         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10026
10027 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10028
10029         [BZ #13226]
10030         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10031
10032 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10033
10034         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10035         Reread the line before reparsing it.
10036
10037 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10038
10039         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10040
10041 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10042             Maxim Kuvyrkov  <maxim@codesourcery.com>
10043             Joseph Myers  <joseph@codesourcery.com>
10044
10045         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10046         if needed for __stack_chk_guard.
10047
10048 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10049
10050         * sysdeps/posix/spawni.c (script_execute): Always define it.
10051         It will be optimized away if unused.
10052         (maybe_script_execute): New function.
10053         (__spawni): Call it.
10054
10055         * Makerules: Don't include tls.make.
10056         (config-tls): Always set to thread.
10057         * tls.make.c: File removed.
10058
10059 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10060
10061         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10062         * config.make.in (CPPFLAGS-config): New substituted variable.
10063
10064 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10065
10066         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10067
10068         [BZ #13192]
10069         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10070         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10071
10072 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10073
10074         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10075         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
10076         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10077         (CALL_FAIL): Likewise.
10078         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
10079         (CALL_FAIL): Macro removed.
10080         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
10081
10082 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10083
10084         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
10085         for __FINITE_MATH_ONLY__ == 1.
10086
10087 2011-09-15  Andreas Schwab  <schwab@redhat.com>
10088
10089         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
10090         __ieee754_sqrt instead of sqrt.
10091         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
10092         __ieee754_sqrtf instead of sqrtf.
10093         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
10094         __floorf instead of floorf.
10095         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10096         __floorf, __truncf instead of floorf, truncf.
10097
10098 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10099
10100         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10101
10102         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10103         __extern_always_inline.
10104         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10105         32-bit.
10106
10107 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10108
10109         * elf/rtld.c (dl_main): Also relocate in dependency order when
10110         doing symbol dependency testing.
10111
10112 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10113
10114         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10115         Always define `refsym'.
10116
10117 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10118
10119         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10120         (__FD_ELT): Renamed from __FDELT.
10121         * misc/bits/select2.h (__FD_ELT): Likewise.
10122         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10123         __FD_MASK instead of __FDELT, __FDMASK.
10124         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10125         Likewise.
10126         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10127         Likewise.
10128
10129         * elf/Makefile (gen-ldd): Fix pattern.
10130
10131         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10132         (init_tls): Likewise.
10133
10134 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10135
10136         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10137
10138 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10139
10140         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10141         `struct cmsghdr *' instead of `void *'.
10142         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10143         Likewise.
10144
10145 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10146
10147         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10148         if non-absolute.
10149         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10150         ldd_rewrite_script.
10151
10152 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10153
10154         * configure.in: Remove --with-tls option.
10155         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10156         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10157         out in case it is missing.
10158         * sysdeps/ia64/elf/configure.in: Likewise.
10159         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10160         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10161         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10162         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10163         * sysdeps/sh/elf/configure.in: Likewise.
10164         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10165         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10166         * sysdeps/x86_64/elf/configure.in: Likewise.
10167         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10168         * sysdeps/mach/hurd/tls.h: Likewise.
10169
10170         [BZ #13067]
10171         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10172
10173         [BZ #13090]
10174         * configure.in: Fix use of AC_INIT.
10175
10176         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10177
10178 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10179
10180         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10181         __set_errno.
10182         * malloc/hooks.c: Likewise.
10183
10184         [BZ #11929]
10185         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10186         variables statically.
10187         (narenas): Initialize.
10188         (list_lock): Initialize.
10189         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10190         initializtion of main_arena and list_lock.  Small cleanups.
10191         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10192         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10193         Add initializers to main_arena and mp_.
10194         (malloc_state): Remove pagesize member.  Change all users to use
10195         GLRO(dl_pagesize).
10196
10197         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10198         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10199         is always initialized.
10200
10201         * malloc/malloc.c: Removed unused configurations and dead code.
10202         * malloc/arena.c: Likewise.
10203         * malloc/hooks.c: Likewise.
10204         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10205
10206         * include/tls.h: Removed.  USE___THREAD must always be defined.
10207         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10208         * elf/dl-libc.c: Likewise.
10209         * elf/dl-tsd.c: Likewise.
10210         * include/errno.h: Likewise.
10211         * include/netdb.h: Likewise.
10212         * include/resolv.h: Likewise.
10213         * inet/herrno-loc.c: Likewise.
10214         * inet/herrno.c: Likewise.
10215         * malloc/arena.c: Likewise.
10216         * malloc/hooks.c: Likewise.
10217         * malloc/malloc.c: Likewise.
10218         * resolv/res-state.c: Likewise.
10219         * resolv/res_libc.c: Likewise.
10220         * sysdeps/i386/dl-machine.h: Likewise.
10221         * sysdeps/ia64/dl-machine.h: Likewise.
10222         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10223         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10224         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10225         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10226         * sysdeps/sh/dl-machine.h: Likewise.
10227         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10228         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10229         * sysdeps/unix/i386/sysdep.S: Likewise.
10230         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10231         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10232         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10233         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10234         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10235         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10236         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10237         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10238         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10239         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10240         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10241         * sysdeps/x86_64/dl-machine.h: Likewise.
10242         * tls.make.c: Likewise.
10243
10244         * configure.in: Remove --with-__thread option.  Make tests for
10245         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10246         tls_model attribute fail if no support is available.  Remove
10247         USE_IN_LIBIO.
10248         * Makeconfig: Adjust for dropped configure option.  All features are
10249         now mandatory.
10250         * Makerules: Likewise.
10251         * Versions.def: Likewise.
10252         * argp/argp-fmtstream.c: Likewise.
10253         * argp/argp-fmtstream.h: Likewise.
10254         * argp/argp-help.c: Likewise.
10255         * assert/assert.c: Likewise.
10256         * config.h.in: Likewise.
10257         * config.make.in: Likewise.
10258         * configure: Likewise.
10259         * configure.in: Likewise.
10260         * csu/Versions: Likewise.
10261         * csu/init.c: Likewise.
10262         * elf/tst-audit2.c: Likewise.
10263         * elf/tst-tls10.c: Likewise.
10264         * elf/tst-tls10.h: Likewise.
10265         * elf/tst-tls11.c: Likewise.
10266         * elf/tst-tls12.c: Likewise.
10267         * elf/tst-tls14.c: Likewise.
10268         * elf/tst-tlsmod11.c: Likewise.
10269         * elf/tst-tlsmod12.c: Likewise.
10270         * elf/tst-tlsmod13.c: Likewise.
10271         * elf/tst-tlsmod13a.c: Likewise.
10272         * elf/tst-tlsmod14a.c: Likewise.
10273         * elf/tst-tlsmod15b.c: Likewise.
10274         * elf/tst-tlsmod16a.c: Likewise.
10275         * elf/tst-tlsmod16b.c: Likewise.
10276         * elf/tst-tlsmod7.c: Likewise.
10277         * elf/tst-tlsmod8.c: Likewise.
10278         * elf/tst-tlsmod9.c: Likewise.
10279         * gmon/gmon.c: Likewise.
10280         * grp/fgetgrent_r.c: Likewise.
10281         * grp/putgrent.c: Likewise.
10282         * hurd/fopenport.c: Likewise.
10283         * include/libc-symbols.h: Likewise.
10284         * include/tls.h: Likewise.
10285         * intl/gettextP.h: Likewise.
10286         * intl/loadinfo.h: Likewise.
10287         * locale/global-locale.c: Likewise.
10288         * locale/localeinfo.h: Likewise.
10289         * mach/devstream.c: Likewise.
10290         * malloc/arena.c: Likewise.
10291         * malloc/set-freeres.c: Likewise.
10292         * misc/err.c: Likewise.
10293         * misc/getttyent.c: Likewise.
10294         * misc/mntent_r.c: Likewise.
10295         * posix/getopt.c: Likewise.
10296         * posix/wordexp.c: Likewise.
10297         * pwd/fgetpwent_r.c: Likewise.
10298         * resolv/Versions: Likewise.
10299         * resolv/res_hconf.c: Likewise.
10300         * shadow/fgetspent_r.c: Likewise.
10301         * shadow/putspent.c: Likewise.
10302         * stdio-common/printf_fphex.c: Likewise.
10303         * stdio-common/tmpfile.c: Likewise.
10304         * stdlib/abort.c: Likewise.
10305         * stdlib/fmtmsg.c: Likewise.
10306         * sunrpc/auth_unix.c: Likewise.
10307         * sunrpc/clnt_perr.c: Likewise.
10308         * sunrpc/clnt_tcp.c: Likewise.
10309         * sunrpc/clnt_udp.c: Likewise.
10310         * sunrpc/clnt_unix.c: Likewise.
10311         * sunrpc/openchild.c: Likewise.
10312         * sunrpc/svc_simple.c: Likewise.
10313         * sunrpc/svc_tcp.c: Likewise.
10314         * sunrpc/svc_udp.c: Likewise.
10315         * sunrpc/svc_unix.c: Likewise.
10316         * sunrpc/xdr.c: Likewise.
10317         * sunrpc/xdr_array.c: Likewise.
10318         * sunrpc/xdr_rec.c: Likewise.
10319         * sunrpc/xdr_ref.c: Likewise.
10320         * sunrpc/xdr_stdio.c: Likewise.
10321
10322 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10323
10324         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10325
10326 2011-07-03  Andreas Jaeger  <aj@suse.de>
10327
10328         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10329         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10330         regenerate with gen-libm-tests.pl.
10331
10332 2010-05-12  Petr Baudis  <pasky@suse.cz>
10333
10334         [BZ #11589]
10335         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10336         around j0() zero points by switching to j1().
10337         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10338         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10339         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10340         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10341
10342 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10343
10344         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10345         instead of 0.
10346         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10347         instead of 0.                              .
10348         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10349         Patch in part by Pavel Roskin <proski@gnu.org>.
10350
10351         [BZ #13138]
10352         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10353         realloc.
10354         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10355         Free memory block if necessary.
10356
10357         [BZ #12847]
10358         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10359         be NULL.  Don't lock in this case.
10360
10361 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10362
10363         * elf/elf.h (ELFOSABI_GNU): New macro.
10364         (ELFOSABI_LINUX): Define to that.
10365
10366 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10367
10368         * string/strncat.c (strncat): Undef the symbol in case it has been
10369         defined in bits/string.h.
10370
10371 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10372
10373         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10374
10375         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10376         link map.
10377
10378 2011-08-17  Andreas Jaeger  <aj@suse.de>
10379
10380         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10381
10382 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10383             Ian Lance Taylor  <iant@google.com>
10384
10385         * math/libm-test.inc (lround_test): New testcase.
10386         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10387
10388 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10389
10390         * Makefile: Remove support for automatic cvs check-ins.
10391         * Makerules: Likewise.
10392         * config.make.in: Likewise.
10393         * configure.in: Likewise.
10394         * intl/Makefile: Likewise.
10395         * locale/Makefile: Likewise.
10396         * po/Makefile: Likewise.
10397         * posix/Makefile: Likewise.
10398         * sysdeps/gnu/Makefile: Likewise.
10399         * sysdeps/mach/hurd/Makefile: Likewise.
10400         * sysdeps/sparc/sparc32/Makefile: Likewise.
10401
10402         [BZ #13118]
10403         * posix/Makefile (bug-regex32-ENV): Define.
10404         Patch by John Stanley <jpsinthemix@verizon.net>.
10405
10406         * misc/Makefile (headers): Add bits/select2.h.
10407         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10408         * misc/bits/select2.h: New file.
10409         * include/bits/select2.h: New file.
10410         * debug/Makefile (routines): Add fdelt_chk.
10411         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10412         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10413         FD_ISSET.
10414         * debug/fdelt_chk.c: New file.
10415
10416         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10417         * wcsmbs/test-wmemcmp.c: Likewise.
10418         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10419         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10420
10421 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10422
10423         * string/Makefile (strop-tests): Add memcmp.
10424         * string/test-wmemcmp.c: New file.
10425         * string/test-memcmp.c: Add wmemcmp support.
10426
10427 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10428
10429         [BZ #13153]
10430         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10431         2011-07-19 change.
10432
10433         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10434         garbage value in a __mach_port_mod_refs call in the cases of the
10435         task-self and thread-self ports.
10436
10437 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10438
10439         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10440
10441 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10442
10443         * elf/dl-load.c (lose): Check for non-null L.
10444
10445 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10446
10447         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10448
10449         * elf/dl-libc.c (dlerror_run): Pass back error code from
10450         dl_catch_error.
10451
10452         [BZ #13123]
10453         * elf/dl-load.c (lose): Free l_origin if it is valid.
10454
10455         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10456         names.
10457         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10458         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10459         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10460         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10461         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10462         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
10463
10464 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10465
10466         * sysdeps/powerpc/fpu/e_hypot.c: New file.
10467         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
10468         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
10469         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
10470         * sysdeps/powerpc/fpu/k_cosf.c: New file.
10471         * sysdeps/powerpc/fpu/k_sinf.c: New file.
10472         * sysdeps/powerpc/fpu/s_cosf.c: New file.
10473         * sysdeps/powerpc/fpu/s_sinf.c: New file.
10474         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
10475         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
10476
10477 2011-08-15  Alan Modra  <amodra@gmail.com>
10478
10479         [BZ #13092]
10480         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
10481         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
10482         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
10483         ppc_mcount to static-only-routines.
10484         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
10485         __mcount_internal.
10486         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
10487         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
10488
10489 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
10490
10491         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
10492         for finite and infinity parameters.
10493
10494 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10495
10496         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
10497         and add nop instructions for throughput optimization.
10498         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10499
10500 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
10501
10502         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
10503         aligned copy for power7 with vector-scalar instructions.
10504         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10505
10506 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10507
10508         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
10509         AVX check.
10510
10511 2011-09-07  Andreas Schwab  <schwab@redhat.com>
10512
10513         [BZ #13144]
10514         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
10515         last change.
10516
10517 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10518
10519         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10520         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
10521         syscall wrapper around clock_gettime in __vdso_clock_gettime.
10522         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
10523         clock_gettime.
10524
10525 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10526
10527         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
10528         Forgot to demangle the pointer.
10529
10530         * sysdeps/i386/sysdep.h: Define atom_text_section.
10531         * sysdeps/x86_64/sysdep.h: Likewise.
10532         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
10533         section with atom_text_section.
10534         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10535         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10536         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
10537         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10538         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
10539
10540         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
10541         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
10542         already be defined.  Change to take two parameters and don't assign
10543         result to variable.  Adjust all users.
10544         Define INTERNAL_GETTIME if not already defined.
10545         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
10546         call.
10547         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
10548         HAVE_CLOCK_GETTIME_VSYSCALL.
10549         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
10550
10551         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
10552         gettimeofday vsyscall, just use time.
10553
10554 2011-09-06  Andreas Schwab  <schwab@redhat.com>
10555
10556         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
10557         <errno.h>.
10558
10559 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10560
10561         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
10562         syscall on x86-64.
10563         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
10564         syscall.
10565         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
10566         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
10567         syscall if possible.
10568
10569 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10570
10571         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
10572         e_ident.  Don't pass to find_mapsXX.
10573         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
10574
10575 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10576
10577         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10578         strchr-sse2-no-bsf strrchr-sse2-no-bsf
10579         * sysdeps/x86_64/multiarch/strchr.S: Update.
10580         Check bit_slow_BSF bit.
10581         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10582         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
10583         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
10584
10585 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10586
10587         [BZ #13134]
10588         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
10589         before glibc 2.15.
10590         (tryshell): Define.
10591         (__spawni): Change last parameter to be flag.  Test
10592         SPAWN_XFLAGS_USE_PATH flag to use path or not.
10593         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
10594         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
10595         * posix/spawni.c: Likewise.
10596         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
10597         * posix/spawnp.c: Likewise.  Change normal version to use
10598         SPAWN_XFLAGS_USE_PATH.
10599         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
10600         SPAWN_XFLAGS_TRY_SHELL.
10601
10602         [BZ #13150]
10603         * posix/glob.h: Remove gcc 1.x support.
10604
10605         [BZ #13068]
10606         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
10607
10608 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10609
10610         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10611         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
10612         strrchr-sse2-bsf
10613         * sysdeps/i386/i686/multiarch/strchr.S: New file.
10614         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
10615         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
10616         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
10617         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
10618         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
10619
10620 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10621
10622         * sysdeps/x86_64/wcscmp.S: New file.
10623
10624         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
10625         wcscmp-c wcscmp-sse2
10626         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
10627         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
10628         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
10629         * wcsmbs/wcscmp.c: Allow renaming.
10630
10631 2011-09-05  David S. Miller  <davem@davemloft.net>
10632
10633         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
10634         stack slot, rather than the struct return pointer slot.
10635         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
10636         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
10637         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
10638         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
10639
10640 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10641
10642         * po/ja.po: Update from translation team.
10643
10644         [BZ #13144]
10645         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
10646         kernel in 64-bit binaries.
10647
10648 2011-09-01  David S. Miller  <davem@davemloft.net>
10649
10650         * elf/elf.h (HWCAP_SPARC_*): Move to..
10651         * sysdeps/sparc/sysdep.h: this new file and add new values.
10652         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
10653         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
10654         _DL_HWCAP_COUNT to 24.
10655         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10656         entries.
10657         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
10658         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
10659         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
10660         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
10661         instead of magic constants.
10662         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10663
10664 2011-08-31  David S. Miller  <davem@davemloft.net>
10665
10666         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
10667         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
10668         Reimplement to do errno handling inline.
10669         (SYSCALL_ERROR_HANDLER): New macro.
10670         (__SYSCALL_STRING): Do not do errno handling in asm.
10671         (__CLONE_SYSCALL_STRING): Delete.
10672         (__INTERNAL_SYSCALL_STRING): Delete.
10673         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10674         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
10675         (PSEUDO): Reimplement to do errno handling inline.
10676         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
10677         (SYSCALL_ERROR_HANDLER): New macro.
10678         (__SYSCALL_STRING): Do not do errno handling in asm.
10679         (__CLONE_SYSCALL_STRING): Delete.
10680         (__INTERNAL_SYSCALL_STRING): Delete.
10681         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
10682         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
10683         i386.
10684         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
10685         (inline_syscall*): Add 'err' argument.
10686         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
10687         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
10688         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
10689         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
10690
10691         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
10692         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
10693
10694 2011-08-30  Andreas Schwab  <schwab@redhat.com>
10695
10696         * elf/rtld.c (dl_main): Relocate objects in dependency order.
10697
10698 2011-08-29  Jiri Olsa <jolsa@redhat.com>
10699
10700         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
10701         directive.
10702
10703 2011-08-24  David S. Miller  <davem@davemloft.net>
10704
10705         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
10706
10707 2011-08-24  Andreas Schwab  <schwab@redhat.com>
10708
10709         * elf/Makefile: Add rules to build and run unload8 test.
10710         * elf/unload8.c: New file.
10711         * elf/unload8mod1.c: New file.
10712         * elf/unload8mod1x.c: New file.
10713         * elf/unload8mod2.c: New file.
10714         * elf/unload8mod3.c: New file.
10715
10716         * elf/dl-close.c (_dl_close_worker): Reset private search list if
10717         it wasn't used.
10718
10719 2011-08-23  David S. Miller  <davem@davemloft.net>
10720
10721         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
10722         subtract stack bias.
10723         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
10724         %sp not %fp in calculations.
10725         (_JMPBUF_UNWINDS_ADJ): Likewise.
10726
10727         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
10728         (aio_suspend): Call it to force an exception region around the
10729         AIO_MISC_WAIT() invocation.
10730
10731 2011-08-23  Andreas Schwab  <schwab@redhat.com>
10732
10733         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
10734         backslash.
10735
10736 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
10737
10738         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
10739         protection macro.
10740         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
10741         and <dl-machine.h>.
10742         (Elf64_FuncDesc): Remove.
10743
10744 2011-08-22  David S. Miller  <davem@davemloft.net>
10745
10746         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
10747         sigaltstack check, add missing cfi directives.
10748         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
10749         missing cfi directives, and sigaltstack handling.
10750
10751 2011-08-16  Andreas Schwab  <schwab@redhat.com>
10752
10753         [BZ #11724]
10754         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
10755         object is seen twice.
10756         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10757
10758         * elf/Makefile (distribute): Add tst-initorder2.c.
10759         (tests): Add tst-initorder2.
10760         (modules-names): Add tst-initorder2a tst-initorder2b
10761         tst-initorder2c tst-initorder2d.  Add rules to build them.
10762         ($(objpfx)tst-initorder2.out): New rule.
10763         * elf/tst-initorder2.c: New file.
10764         * elf/tst-initorder2.exp: New file.
10765
10766 2011-08-22  Andreas Schwab  <schwab@redhat.com>
10767
10768         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
10769
10770         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
10771         dependencies back to end of function.
10772
10773         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
10774         $(elfobjdir)/ld.so.
10775
10776 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
10777
10778         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
10779         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
10780         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10781         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
10782         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
10783         of __vdso_gettimeofday.
10784         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
10785         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
10786         attribute_hidden.
10787         (_libc_vdso_platform_setup): Remove initialization of
10788         __vdso_gettimeofday and __vdso_time.
10789
10790 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
10791
10792         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
10793         and fgetc_unlocked.
10794         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
10795         getc_unlocked.
10796
10797         * elf/dl-open.c (add_to_global): Report additions to the global scope
10798         for LD_DEBUG=scopes.
10799         (dl_open_worker): Also print scope of newly loaded dependencies.
10800         (_dl_show_scope): Indicate if there is no scope.
10801
10802         [BZ #13114]
10803         * stdio-common/Makefile (tests): Add bug24.
10804         * stdio-common/bug24.c: New file.
10805
10806 2011-08-19  Andreas Jaeger  <aj@suse.de>
10807
10808         [BZ #13114]
10809         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
10810         non-existant file when using close-on-exec mode.
10811
10812 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
10813
10814         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
10815         the very first instruction.
10816
10817         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
10818         the CFI state in the end.
10819         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
10820         inclusion of dl-trampoline.h.
10821         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
10822
10823 2011-08-19  Andreas Schwab  <schwab@redhat.com>
10824
10825         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
10826         expectations for long double.
10827
10828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
10829         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
10830
10831 2011-08-14  David S. Miller  <davem@davemloft.net>
10832
10833         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
10834         artificual limit depends upon the system page size.
10835
10836 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10837
10838         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
10839         * resolv/Makefile: Define CFLAGS-libresolv.
10840
10841 2011-08-17  Andreas Schwab  <schwab@redhat.com>
10842
10843         * nss/makedb.c (compute_tables): Make variables used in nested
10844         function static.
10845
10846 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10847
10848         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
10849         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
10850         if buffer was too small.
10851
10852         * elf/pldd.c (main): Attach to all threads in the process.
10853         Rewrite /proc handling to use *at functions.
10854
10855 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
10856
10857         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
10858         specifies first scope to show.
10859         (dl_open_worker): Update callers.  Move printing scope of new
10860         object to before the relocation.
10861         * elf/rtld.c (dl_main): Update _dl_show_scope call.
10862         * sysdeps/generic/ldsodefs.h: Update declaration.
10863
10864         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
10865         string for the scope number.
10866
10867 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
10868
10869         * nscd/servicescache.c (cache_addserv): Make sure written is always
10870         initialized.
10871
10872 2011-08-14  Roland McGrath  <roland@hack.frob.com>
10873
10874         * sysdeps/i386/i486/bits/atomic.h
10875         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
10876         statement expression, so as to suppress "set but not used" warning.
10877         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
10878
10879         * string/strncat.c (STRNCAT): Use prototype definition.
10880
10881         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
10882         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
10883         -Iprograms here.
10884         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
10885         (localedef-modules): Add localedef.
10886         (locale-modules): Add locale.
10887
10888         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
10889         * elf/rtld.c (dl_main): Invert order of assignment in last change,
10890         to avoid a warning.
10891
10892 2011-08-14  David S. Miller  <davem@davemloft.net>
10893
10894         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
10895         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
10896
10897 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
10898
10899         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
10900         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
10901         * elf/rtld.c (dl_main): Set l_name of vDSO.
10902         Call _dl_show_scope when DL_DEBUG_SCOPES.
10903         (process_dl_debug): Recognize scopes flag and also set it for all.
10904         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
10905         Declare _dl_show_scope.
10906
10907         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
10908         (do_dlopen): Pass caller_dlopen to dl_open.
10909         (__libc_dlopen_mode): Initialize caller_dlopen.
10910
10911         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
10912         of libc.  Make tolower call locale-independent.  Optimize a bit by
10913         using isdigit instead of isalnum.
10914         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
10915
10916 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
10917
10918         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
10919         was a dependency or dynamically loaded.
10920
10921 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
10922
10923         * intl/l10nflist.c: Allow architecture-specific pop function.
10924         * sysdeps/x86_64/l10nflist.c: New file.
10925
10926         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
10927         classification.
10928
10929 2011-08-10  Andreas Schwab  <schwab@redhat.com>
10930
10931         * include/dirent.h: Add libc_hidden_proto for scandirat and
10932         scandirat64.  Don't declare __scandirat64.
10933         * dirent/scandirat.c: Add libc_hidden_def.
10934         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
10935         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
10936
10937 2011-08-10  David S. Miller  <davem@davemloft.net>
10938
10939         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
10940         enum.
10941         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10942         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10943         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10944
10945 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
10946
10947         * Versions.def [libc]: Add GLIBC_2.15.
10948         * dirent/Makefile (routines): Add scandirat and scandirat64.
10949         * dirent/Versions [libc]: Export scandirat and scandirat64 for
10950         GLIBC_2.15.
10951         * dirent/dirent.h: Declare scandirat and scandirat64.
10952         * dirent/scandirat.c: New file.
10953         * dirent/scandirat64.c: New file.
10954         * sysdeps/wordsize-64/scandirat.c: New file.
10955         * sysdeps/wordsize-64/scandirat64.c: New file.
10956         * dirent/opendir.c: Define opendirat.
10957         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
10958         using scandirat.
10959         * dirent/scandir64.c: Adjust for scandir.c change.
10960         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
10961         __scandirat64, and __scandir_cancel_handler.
10962         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
10963         additional parameter and use openat instead of open (outside of ld.so).
10964         Add new __opendir as wrapper around __opendirat.
10965         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
10966         here without requiring old scandirat implementation.
10967
10968 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
10969
10970         * dirent/scandir.c (cancel_handler): Renamed to
10971         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
10972         defined.  Adjust users.
10973         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
10974         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
10975
10976 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
10977
10978         * string/test-string.h (IMPL): Use __STRING to expand name and then
10979         stringify it.
10980
10981         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
10982         of cleanups.
10983
10984 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10985
10986         * string/Makefile: Update.
10987         (strop-tests): Append strncat.
10988         * string/test-wcscmp.c: New file.
10989         New comprehensive test for wcscmp.
10990         * string/test-strcmp.c: Update.
10991         (WIDE): New define.
10992
10993 2011-07-22  Andreas Schwab  <schwab@redhat.com>
10994
10995         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
10996         line.
10997
10998 2011-07-26  Andreas Schwab  <schwab@redhat.com>
10999
11000         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11001         encoding to ACE if AI_IDN.
11002
11003 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11004
11005         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11006         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11007
11008 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11009
11010         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11011         Fix overflow bug in strncat.
11012         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11013
11014         * string/test-strncat.c: Update.
11015         Add new tests for checking overflow bugs.
11016
11017 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11018
11019         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11020         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11021         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11022         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11023         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11024         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11025         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11026         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11027         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11028
11029         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11030         (USE_AS_STRCAT): Define.
11031         Add strcat and strncat support.
11032         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11033
11034 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11035
11036         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11037         __n bigger than INT_MAX+1.
11038         (__strncmp_g): Likewise.
11039
11040 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11041
11042         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11043         * libio/stido.h: Likewise.
11044
11045         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11046         (AF_NFC): Define.
11047         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11048         (AF_NFC): Define.
11049
11050         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11051         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11052         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11053         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11054         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11055
11056         [BZ #13021]
11057         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11058         installed.
11059
11060         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11061         typo.
11062         (_dl_x86_64_save_sse): Likewise.
11063
11064 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11065
11066         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11067         OSXSAVE.
11068         (_dl_x86_64_save_sse): Likewise.
11069
11070         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11071
11072         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11073
11074 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11075
11076         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
11077         change.
11078         (_dl_x86_64_save_sse): Use correct AVX check.
11079
11080 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11081
11082         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
11083         bug in strncpy/strncat.
11084         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
11085
11086 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
11087
11088         * string/tester.c (test_strcat): Add tests for different alignments
11089         of source and destination.
11090         (test_strncat): Likewise.
11091
11092 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11093
11094         [BZ #12852]
11095         * posix/glob.c (glob): Check passed in values before using them in
11096         expressions to avoid some overflows.
11097         (glob_in_dir): Likewise.
11098
11099         [BZ #13007]
11100         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11101         check for AVX enablement so that we don't crash with old kernels and
11102         new hardware.
11103         * elf/tst-audit4.c: Add same checks here.
11104         * elf/tst-audit6.c: Likewise.
11105
11106         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11107
11108 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11109
11110         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11111
11112 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11113
11114         * po/cs.po: Update from translation team.
11115         * po/bg.po: Likewise.
11116
11117 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11118
11119         * misc/sys/cdefs.h: Add support for const attribute.
11120         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11121         to gnu_dev_{major,minor,makedev} functions.
11122
11123 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11124
11125         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11126
11127 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11128
11129         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11130         strlen results.
11131
11132 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11133
11134         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11135         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11136         register in order to avoid conflicts with the soft frame pointer
11137         being held in r11 when necessary.
11138         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11139         (INTERNAL_VSYSCALL_NCS): Likewise.
11140
11141 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11142
11143         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11144         * elf/dl-fini.c (_dl_fini): Adjust caller.
11145         * elf/dl-close.c (_dl_close_worker): Likewise.
11146         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11147
11148 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11149
11150         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11151         "aux_cache->nlibs < 0".
11152
11153         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11154         in the reload-count case.
11155
11156 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11157
11158         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11159         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11160         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11161         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11162         * sysdeps/x86_64/multiarch/strcat.S: New file.
11163         * sysdeps/x86_64/multiarch/strncat.S: New file.
11164         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11165         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11166         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11167         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11168         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11169         (USE_AS_STRCAT): Define.
11170         Add strcat and strncat support.
11171         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11172         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11173         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11174         * string/strncat.c: Update.
11175         (USE_AS_STRNCAT): Define.
11176         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11177         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11178         and i7.
11179         * sysdeps/x86_64/multiarch/init-arch.h
11180         (bit_Prefer_PMINUB_for_stringop): New.
11181         (index_Prefer_PMINUB_for_stringop): Likewise.
11182         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11183         bit_Prefer_PMINUB_for_stringop.
11184
11185 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11186
11187         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11188         buffer64.
11189         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11190         of casting of buffer.
11191         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11192         buffer32 and buffer64.
11193         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11194         writes instead of casting of buffer.
11195         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11196         buffer32.
11197         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11198         casting of buffer.
11199
11200 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11201
11202         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11203
11204 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11205
11206         * nscd/nscd.c (termination_handler): Don't do anything for a database
11207         if it has not yet been initialized.
11208
11209 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11210
11211         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11212
11213 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11214
11215         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11216
11217 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11218
11219         * po/nl.po: Update from translation team.
11220         * po/sv.po: Likewise.
11221
11222 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11223
11224         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11225         now disallowed by GCC.
11226
11227         * configure.in (use-default-link): Default to yes if a test -shared
11228         link meets our qualifications.
11229         * configure: Regenerated.
11230
11231         * config.make.in (output-format): New variable.
11232         * configure.in: Check for ld --print-output-format support.
11233         * configure: Regenerated.
11234         * Makerules ($(common-objpfx)format.lds)
11235         [$(output-format) != unknown]: Just use $(output-format),
11236         instead of the linker-script munging.
11237
11238 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11239
11240         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11241         of $(common-objpfx)shlib.lds.
11242         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11243
11244         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11245         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11246
11247         * configure.in (-z relro check): Adjust test code to add a large
11248         writable data section after it.
11249         * configure: Regenerated.
11250
11251 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11252
11253         * configure.in (-z relro check): Fix test code to make the variable
11254         truly const.
11255         * configure: Regenerated.
11256
11257 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11258
11259         * nscd/nscd.h (struct traced_file): Define.
11260         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11261         elements.  Add traced_files.
11262         (inotify_fd): Declare.
11263         (register_traced_file): Declare.
11264         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11265         (inotify_fd): Export.
11266         (resolv_conf_descr): Remove.
11267         (nscd_init): Move inotify descriptor creation to main.
11268         Don't register files for notification here.
11269         (register_traced_file): New function.
11270         (invalidate_cache): Don't use reset_res to determine whether to call
11271         res_init, go through the list of registered files.
11272         (main_loop_poll): The inotify descriptors are now stored in the
11273         structures for the traced files.
11274         (main_loop_epoll): Likewise
11275         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11276         to __nss_disable_nscd.
11277         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11278         for a database anymore.  Check the records for all the registered
11279         files instead.
11280         * nss/Makefile (libnss_files-routines): Add files-init.
11281         (libnss_db-routines): Add db-init.
11282         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11283         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11284         * nss/nss_db/db-init.c: New file.
11285         * nss/nss_files/files-init.c: New file.
11286         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11287         __nss_lookup_function.
11288         (__nss_lookup_function): Call nss_load_library.
11289         (nss_load_all_libraries): New function.
11290         (__nss_disable_nscd): Take parameter with callback function for files
11291         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11292         used for the cached services.
11293         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11294         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11295         options for features to all the files in nscd.
11296
11297         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11298
11299 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11300
11301         * csu/elf-init.c (__libc_csu_init): Comment typo.
11302
11303 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11304
11305         * po/pl.po: Update from translation team.
11306         * po/ja.po: Likewise.
11307         * po/ru.po: Likewise.
11308         * po/ko.po: Likewise.
11309         * po/fr.po: Likewise.
11310
11311 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11312
11313         * configure.in (.ctors/.dtors header and trailer check):
11314         Use an empirical test on a built program.
11315         * configure: Regenerated.
11316
11317         * configure.in (-z relro check): Use an empirical test on a built DSO.
11318         Detect, but do not require, on ia64.
11319         * configure: Regenerated.
11320
11321         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11322         Update tests that use readelf to use $READELF instead.
11323         * configure: Regenerated.
11324
11325 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11326
11327         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11328         if the result is not used.
11329
11330 2011-07-05  Andreas Jaeger  <aj@suse.de>
11331
11332         [BZ#9696]
11333         * stdlib/tst-strtod.c: Add testcase.
11334
11335 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11336
11337         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11338         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11339         The latter has a higher limit.  Take additional parameter to pass to
11340         the new function.
11341         (__pathconf): Pass file to __statfs_link_max.
11342         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11343         __statfs_link_max.
11344         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11345         __statfs_link_max.
11346
11347         [BZ #12868]
11348         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11349         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11350         Handle Lustre.
11351         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11352         (__statfs_filesize_max): Likewise.
11353         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11354
11355 2011-07-05  Andreas Jaeger  <aj@suse.de>
11356
11357         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11358
11359 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11360
11361         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11362         `status' variable.
11363         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11364         Likewise.
11365
11366 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11367
11368         * Makefile (strop-tests): Add strncat.
11369         * string/test-strncat.c: New file.
11370
11371 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11372
11373         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11374
11375 2011-06-21  Andreas Jaeger  <aj@suse.de>
11376
11377         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11378         Copy rule from iconvdata/Makefile.
11379
11380 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11381
11382         [BZ #12922]
11383         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11384         but no long options are defined, just return 'W'.
11385
11386 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11387
11388         [BZ #9696]
11389         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11390
11391 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11392
11393         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11394         netgroups to read.
11395         (innetgr): Likewise.
11396
11397 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11398
11399         * config.make.in (install_root): Default to $(DESTDIR).
11400
11401 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11402
11403         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11404
11405 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11406
11407         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11408
11409         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11410         containing directory rather than embedding absolute directory names.
11411
11412         * scripts/check-local-headers.sh: Rewritten using awk.
11413         Match by word, not by line.  Print error messages for matches.
11414         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11415
11416         * Makerules [shlib-lds-flags empty]:
11417         ($(common-objpfx)libc_pic.opts): New target.
11418         ($(common-objpfx)libc_pic.os.clean): New target.
11419         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11420
11421         * config.make.in (OBJCOPY): New variable.
11422         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11423         * configure: Regenerated.
11424
11425         * config.make.in (use-default-link): New variable.
11426         * configure.in (use_default_link): Grok --with-default-link to set it.
11427         * configure: Regenerated.
11428         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11429         (shlib-lds, shlib-lds-flags): Define to empty.
11430
11431         * Makerules (shlib-lds): New variable.
11432         (shlib-lds-flags): New variable.
11433         (build-shlib, build-moduile, build-module-asneeded): Use it.
11434         ($(common-objpfx)libc.so): Use $(shlib-lds).
11435         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11436         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11437
11438         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11439         DT_FLAGS/DT_FLAGS_1 with zero flags.
11440
11441         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11442         linker script munging.
11443
11444 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11445
11446         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11447         as 128-bit value.
11448         * crypt/sha512.c (sha512_process_block): Perform total addition using
11449         128-bit if possible.
11450         (__sha512_finish_ctx): Likewise.
11451         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11452         as 64-bit value.
11453         * crypt/sha256.c (SWAP64): Define.
11454         (sha256_process_block): Perform total addition using 64-bit if
11455         possible.
11456         (__sha256_finish_ctx): Likewise.
11457
11458 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11459
11460         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11461         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11462         * nscd/hstcache.c (cache_addhst): Likewise.
11463         * nscd/grpcache.c (cache_addgr): Likewise.
11464         * nscd/aicache.c (addhstaiX): Likewise
11465         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
11466
11467 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
11468
11469         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
11470         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11471         * nscd/hstcache.c (cache_addhst): Likewise.
11472         * nscd/grpcache.c (cache_addgr): Likewise.
11473         * nscd/aicache.c (addhstaiX): Likewise
11474
11475 2011-07-01  Andreas Schwab  <schwab@redhat.com>
11476
11477         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
11478         domain only when needed.
11479
11480 2011-06-30  Andreas Schwab  <schwab@redhat.com>
11481
11482         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
11483         is always restored.
11484
11485 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
11486
11487         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
11488         are re-adding the entry.
11489         * nscd/servicescache.c (cache_addserv): Likewise.
11490
11491 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
11492
11493         * sysdeps/generic/dl-irel.h: fix protection against multiple
11494         inclusions.
11495         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
11496
11497 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
11498
11499         [BZ #12935]
11500         * malloc/memusage.sh: Fix quoting in message.
11501         * debug/xtrace.sh: Likewise.
11502
11503         * configure.in: Remove support for --experimental-malloc option, make
11504         it the default.
11505         * config.make.in: Likewise.
11506         * malloc/Makefile: Likewise.
11507
11508 2011-06-27  Andreas Schwab  <schwab@redhat.com>
11509
11510         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
11511         two-byte characters.
11512
11513 2011-06-27  Roland McGrath  <roland@hack.frob.com>
11514
11515         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
11516         AC_CACHE_CHECK invocation.
11517         * configure: Regenerated.
11518
11519         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
11520
11521 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
11522
11523         [BZ #12350]
11524         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
11525         bit from old_res_options.
11526
11527         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
11528
11529         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
11530         value type for setfct.
11531
11532 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11533
11534         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11535         __gettimeofday instead of gettimeofday.
11536
11537 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
11538
11539         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
11540
11541 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11542
11543         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
11544
11545         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
11546         info.
11547
11548 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11549
11550         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11551         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11552         strcpy-sse2-unaligned strncpy-sse2-unaligned
11553         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
11554         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
11555         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
11556         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
11557         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
11558         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
11559         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
11560         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
11561         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
11562         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
11563         (STRCPY): Support SSE2 and SSSE3 versions.
11564
11565 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
11566
11567         [BZ #12874]
11568         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
11569         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
11570         kernels which artificially limit size of requests.
11571
11572 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11573
11574         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11575         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11576         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
11577         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
11578         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
11579         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
11580         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
11581         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
11582         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
11583         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
11584         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
11585         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
11586         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
11587         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
11588         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
11589         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11590         Enable unaligned load optimization for Intel Core i3, i5 and i7
11591         processors.
11592         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
11593         Define.
11594         (index_Fast_Unaligned_Load): Define.
11595         (HAS_FAST_UNALIGNED_LOAD): Define.
11596
11597 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
11598
11599         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
11600
11601 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11602
11603         [BZ #12907]
11604         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
11605         until it is clear that the information is realy needed.
11606         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
11607
11608 2011-06-22  Andreas Schwab  <schwab@redhat.com>
11609
11610         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
11611
11612 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11613
11614         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11615         /sys/devices/system/cpu/online if it is usable.
11616
11617         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
11618         reading the information from the /proc filesystem to once a second.
11619
11620 2011-06-21  Andreas Jaeger  <aj@suse.de>
11621
11622         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
11623         NULL after inclusion of kernel headers.
11624
11625 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
11626
11627         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
11628         calls to internal_setent.
11629
11630         [BZ #12885]
11631         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
11632         addresses using gethostbyname4_r ignore IPv4 addresses.
11633
11634         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
11635         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
11636
11637         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
11638
11639 2011-06-20  David S. Miller  <davem@davemloft.net>
11640
11641         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
11642         inclusions.
11643         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
11644
11645         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
11646         (elf_irel): Use it.
11647         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
11648         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
11649         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
11650         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
11651         * sysdeps/x86_64/dl-irel.h: Likewise.
11652
11653         * elf/dl-runtime.c: Use elf_ifunc_invoke.
11654         * elf/dl-sym.c: Likewise.
11655
11656 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
11657
11658         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
11659         need to dereference resplen2.
11660
11661 2011-06-14  Andreas Schwab  <schwab@redhat.com>
11662
11663         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
11664
11665 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
11666
11667         * Makeconfig: Define vardbdir and inst_vardbdir.
11668         * nss/Makefile: Add rules to install db-Makefile.
11669
11670         * nss/nss_db/db-XXX.c: Cleanup.
11671
11672         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
11673         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
11674         GLIBC_PRIVATE.
11675         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
11676         * nss/makedb.c: Implement -g option to specify that value strings
11677         are generated and should not be added to table iterated over for
11678         get*ent calls.
11679         * nss/nss_db/db-initgroups.c: New file.
11680
11681         * nss/getent.c: Add support for initgroups lookups through getgrouplist
11682         interface.
11683
11684         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
11685         (internal_getgrouplist): Adjust to name change.
11686         Update use_initgroups_entry if this is not the first call.
11687         * nss/databases.def: Add initgroups entry.
11688
11689         * nss/makedb.c (compute_tables): Check result of multiple hash table
11690         sizes to minimize maximum chain length.
11691
11692 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
11693
11694         * Versions.def: Add entry for libnss_db.
11695         * shlib-versions: Likewise.
11696         * nss/Makefile: Add rules to build libnss_db.
11697         * nss/Versions: Add libnss_db information.  Organize libnss_files
11698         entries better.
11699         * nss/db-Makefile: Add gshadow support.  Change rules for the new
11700         makedb progra.  Some minor improvements to generate smaller files.
11701         * nss/nss_db/nss_db.h: Move NSS database header data structures to
11702         here from...
11703         * nss/makedb.c: ...here.
11704         Improve database format to be smaller and require less memory at
11705         runtime.
11706         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
11707         db anymore.
11708         * nss/nss_db/db-netgrp.c: Likewise.
11709         * nss/nss_db/db-open.c: Likewise.
11710         * nss/nss_files/flies-XXX.x: Adjust comments.
11711         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
11712         * nss/nss_files/files-grp.c: Likewise.
11713         * nss/nss_files/files-hosts.c: Likewise.
11714         * nss/nss_files/files-network.c: Likewise.
11715         * nss/nss_files/files-proto.c: Likewise.
11716         * nss/nss_files/files-pwd.c: Likewise.
11717         * nss/nss_files/files-rpc.c: Likewise.
11718         * nss/nss_files/files-service.c: Likewise.
11719         * nss/nss_files/files-sgrp.c: Likewise.
11720         * nss/nss_files/files-spwd.c: Likewise.
11721         * nss/nss_db/db-alias.c: Removed.
11722         * nss/nss_db/dummy-db.h: Removed.
11723
11724 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
11725
11726         * nss/makedb.c: Rewritten to not use database library.
11727         * nss/Makefile: Update to build new makedb program.
11728
11729 2011-06-14  Andreas Jaeger  <aj@suse.de>
11730
11731         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
11732         memset declaration.
11733
11734 2011-06-10  Andreas Schwab  <schwab@redhat.com>
11735
11736         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
11737         tmpbuf.
11738
11739 2011-06-10  Roland McGrath  <roland@hack.frob.com>
11740
11741         * Makerules (shlib.lds): Fail if the linker script comes out empty.
11742         * elf/Makefile ($(objpfx)ld.so): Likewise.
11743
11744         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
11745         Don't list ld.so twice in dependencies.
11746
11747         * posix/bug-regex31.c: Include <stdlib.h>.
11748
11749         * nscd/hstcache.c (cache_addhst): Remove unused variable.
11750
11751         * nis/nss_compat/compat-spwd.c
11752         (getspent_next_nss_netgr): Remove unused variable.
11753         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
11754
11755         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
11756         nonmembers" output to use the right array.
11757
11758         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
11759
11760         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
11761
11762         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
11763         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
11764         * catgets/gencat.c (read_input_file): Likewise.
11765         * locale/programs/locarchive.c (enlarge_archive): Likewise.
11766
11767         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
11768         variable definition inside #if's controlling its use.
11769
11770         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
11771
11772         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
11773
11774         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
11775
11776         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
11777         unreachable code.
11778
11779         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
11780
11781         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
11782         * configure: Regenerated.
11783
11784         * Makerules: Revert last change.
11785         * elf/Makefile: Likewise.
11786
11787 2011-06-09  Roland McGrath  <roland@hack.frob.com>
11788
11789         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
11790         * elf/Makefile ($(objpfx)librtld.os): Likewise.
11791         (reloc-link): Likewise.
11792
11793 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
11794
11795         * elf/Makefile: Add rules to build pldd.
11796         * elf/pldd.c: New file.
11797         * elf/pldd-xx.c: New file.
11798
11799 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
11800
11801         * version.h: Update for 2.15 development version.
11802
11803 2011-06-07  David S. Miller  <davem@davemloft.net>
11804
11805         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
11806         ifuncs.
11807         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
11808         elf_machine_lazy_rel): Likewise.
11809         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
11810         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
11811         elf_machine_lazy_rel): Likewise.
11812         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
11813         dl_hwcap via passed in argument.
11814         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
11815         Likewise.
11816
11817 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11818
11819         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
11820
11821 2011-06-06  Roland McGrath  <roland@hack.frob.com>
11822
11823         [BZ #12849]
11824         * manual/fdl-1.1.texi: New file, verbatim from:
11825         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
11826         * manual/lgpl-2.1.texi: New file, verbatim from:
11827         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
11828         * manual/Makefile (licenses): New variable, list those new file names.
11829         (texis): Use it.
11830         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
11831
11832         * manual/fdl.texi: File removed.
11833         * manual/lesser.texi: File removed.
11834         * manual/libc.texinfo (Copying, Documentation License):
11835         Use new @include file names, put @appendix directive before @include.
11836
11837 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11838
11839         [BZ #12841]
11840         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
11841         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
11842         (mq_open): Add __NTH.
11843
11844 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11845
11846         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11847         Assume Intel Core i3/i5/i7 processor if AVX is available.
11848
11849 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11850
11851         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11852         typo.
11853
11854 2011-05-31  Andreas Schwab  <schwab@redhat.com>
11855
11856         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
11857         memory.  Use alloca_account.  Fix memory leak when retrying.
11858
11859 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11860
11861         * version.h (RELEASE): Bump for 2.14 release.
11862         * include/features.h (__GLIBC_MINOR__): Bump to 14.
11863
11864         * config.make.in (RANLIB): Remove entry.
11865
11866 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
11867
11868         * po/Makefile (po-sed-cmd): Add ksh to extensions.
11869         (libc.pot): Work around missing support for .ksh extension in xgettext.
11870
11871         [BZ #12684]
11872         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
11873         if both request failed.
11874         (send_dg): In case of server errors clear resplen or *resplen2.
11875
11876         [BZ #12454]
11877         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
11878         when there are multiple maps.
11879         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
11880         (_dl_fini): Remove test here.
11881
11882         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
11883
11884 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
11885
11886         [BZ #12350]
11887         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
11888         bit from old_res_options.
11889         (gaih_inet): Likewise.
11890
11891         [BZ #11099]
11892         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
11893         as signed.
11894
11895         * resolv/res_init.c (res_setoptions): Make the code more compact.
11896
11897         [BZ #11558]
11898         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
11899         set RES_USEVC.
11900
11901         [BZ #11634]
11902         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
11903
11904         * malloc/malloc.h: Mark malloc hook variables as deprecated.
11905
11906         [BZ #11781]
11907         * malloc/malloc.h: Declare malloc hook variables as volatile.
11908
11909         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
11910         in last patch.
11911
11912         [BZ #11799]
11913         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
11914         raise in the comment.
11915         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11916         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11917         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11918
11919 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
11920
11921         [BZ #12811]
11922         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
11923         grow the buffers more if it already has to be sufficient.
11924         (build_wcs_upper_buffer): Likewise.
11925         * posix/regexec.c (check_matching): Likewise.
11926         (clean_state_log_if_needed): Likewise.
11927         (extend_buffers): Don't enlarge buffers beyond size of the input
11928         buffer.
11929         Patches mostly by Emil Wojak <emil@wojak.eu>.
11930         * posix/bug-regex32.c: New file.
11931         * posix/Makefile (tests): Add bug-regex32.
11932
11933         * locale/findlocale.c (_nl_find_locale): Return right away if
11934         _nl_explode_name failed.
11935         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11936
11937         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
11938
11939         * debug/xtrace.sh: Unify messages.
11940         * malloc/memusage.sh: Likewise.
11941
11942         [BZ #12813]
11943         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
11944         time symbol from vDSO.  Substitute with vsyscall if not available.
11945         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
11946         __vdso_time.
11947
11948         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
11949         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
11950         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
11951         Add sendmmsg and internal_sendmmsg.
11952         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
11953         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
11954         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
11955
11956         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
11957         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
11958         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
11959
11960 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
11961
11962         [BZ #12813]
11963         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
11964         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
11965         available.
11966         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
11967         __vdso_getcpu.
11968
11969         [BZ #12814]
11970         * iconvdata/Makefile (tests): Add bug-iconv9.
11971         * iconvdata/bug-iconv9.c: New file.
11972
11973 2011-05-27  Andreas Schwab  <schwab@redhat.com>
11974
11975         [BZ #12814]
11976         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
11977
11978 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
11979
11980         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
11981         (struct user_regs_struct): Change intcs field back to cs.
11982
11983 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
11984
11985         * po/ja.po: Update from translation team.
11986
11987 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
11988
11989         [BZ #12795]
11990         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
11991         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
11992
11993 2011-05-20  Andreas Schwab  <schwab@redhat.com>
11994
11995         * stdlib/longlong.h: Update from GCC.
11996
11997 2011-05-23  Andreas Schwab  <schwab@redhat.com>
11998
11999         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12000         parameter name.
12001         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12002         Add parameter name.
12003         (__sysconf): Pass it down.
12004
12005 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12006
12007         [BZ #12671]
12008         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12009         some situations.
12010         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12011         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12012         add in in __libc_use_alloca calls.  Adjust callers.
12013         (glob): Use malloc in some situations.
12014
12015         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12016         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12017         pltexit.
12018
12019 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12020
12021         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12022         and CLOCK_BOOTTIME_ALARM.
12023
12024         [BZ #12782]
12025         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12026         is returned.
12027
12028         * string/_strerror.c (__strerror_r): Print negative errors as signed
12029         numbers.
12030
12031         [BZ #12777]
12032         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12033         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12034         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12035
12036         * configure.in: Fix typo in redirection and correct removal of test
12037         files in two cases.
12038
12039         [BZ #12788]
12040         * locale/setlocale.c (new_composite_name): Fix test to check for
12041         identical name of all categories.
12042
12043         [BZ #12792]
12044         * libio/filedoalloc.c (local_isatty): New function.
12045         (_IO_file_doallocate): Use local_isatty.
12046         * stdio-common/perror.c (perror): In case a new stream is used
12047         forward the stream error.
12048         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12049         error flag.
12050
12051 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12052
12053         [BZ #11869]
12054         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12055         alloca.
12056         * include/alloca.h (extend_alloca_account): Define.
12057
12058         [BZ #11857]
12059         * posix/regex.h: Fix comments with documentation of user-accessible
12060         fields after compilation and describe correct free'ing of pattern
12061         after re_compile_pattern.
12062         Patch by Reuben Thomas <rrt@sc3d.org>.
12063
12064 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12065
12066         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12067         and -mno-altivec to prevent the compiler from using Altivec and/or
12068         VSX instructions when the corresponding registers are not available.
12069
12070 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12071
12072         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12073
12074 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12075
12076         * libio/freopen.c (freopen): Use __dup2, not dup2.
12077         * libio/freopen64.c (freopen64): Likewise.
12078
12079 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12080
12081         [BZ #12775]
12082         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
12083         * math/Makefile (tests): Add test-powl.
12084         (CFLAGS-test-powl.c): Define.
12085         * math/test-powl.c: New file.
12086
12087 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12088
12089         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
12090
12091 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
12092
12093         [BZ #11837]
12094         * iconvdata/gb18030.c: Update to GB18020-2005.
12095
12096 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12097
12098         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12099         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12100         Patch by Aharon Robbins <arnold@skeeve.com>.
12101
12102         [BZ #11892]
12103         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12104         on the stack.
12105
12106         [BZ #11895]
12107         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12108         through underflows.
12109
12110         [BZ #12766]
12111         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12112         point to strings before performing equality test for error_one_per_line
12113         mode.
12114
12115         [BZ #11697]
12116         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12117
12118         [BZ #11820]
12119         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12120         (struct user_fpregs_struct): Avoid __uint*_t types.
12121
12122         [BZ #6420]
12123         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12124         symbol info.  Use it instead of calling _dl_addr locally.
12125         (lock_and_info): New function.
12126         (tr_freehook): Call lock_and_info and pass symbol info as additional
12127         parameter to tr_where.
12128         (tr_mallochook): Likewise.
12129         (tr_reallochook): Likewise.
12130         (tr_memalignhook): Likewise.
12131
12132         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12133         used and couldn't be at all thread-safe.
12134
12135 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12136
12137         * libio/freopen.c (freopen): Don't close old file descriptor
12138         before the new one is opened.  Instead dup the new file descriptor
12139         to the old one after the new stream is created.
12140         * libio/freopen64.c (freopen64): Likewise.
12141         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12142         * libio/fileops.c (_IO_new_file_close_it): Handle new
12143         _IO_FLAGS2_NOCLOSE flag.
12144         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12145         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12146         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12147         _IO_FLAGS2_NOCLOSE flag.
12148         * include/unistd.h: Add hidden_proto for dup3.
12149         Define __have_dup3.
12150         * io/dup3.c: Define hidden symbol.
12151         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12152
12153         [BZ #7101]
12154         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12155         when an incomplete long option is used.
12156         * posix/tst-getopt_long1.c: New file.
12157         * posix/Makefile (tests): Add tst-getopt_long1.
12158
12159         [BZ #10138]
12160         * scripts/config.guess: Update from autoconf-2.68.
12161         * scripts/config.sub: Likewise.
12162
12163         [BZ #10157]
12164         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12165         tests into ...
12166         (has_cpuclock): ...this.  New function.
12167         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12168         macro here based on has_cpuclock code.
12169
12170         [BZ #10149]
12171         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12172         First byte (not low byte) is now always NUL.
12173         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12174
12175         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12176         Use non-cancelable interfaces.
12177
12178         [BZ #9809]
12179         * locale/iso-639.def: Add entry for Sorani.
12180
12181         [BZ #11901]
12182         * include/stdlib.h: Move include protection to the right place.
12183         Define abort_msg_s.  Declare __abort_msg with it.
12184         * stdlib/abort.c (__abort_msg): Adjust type.
12185         * assert/assert.c (__assert_fail_base): New function.  Majority
12186         of code from __assert_fail.  Allocate memory for __abort_msg with
12187         mmap.
12188         (__assert_fail): Now call __assert_fail_base.
12189         * assert/assert-perr.c: Remove bulk of implementation.  Use
12190         __assert_fail_base.
12191         * include/assert.hL Declare __assert_fail_base.
12192         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12193         mmap.
12194         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12195
12196 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12197
12198         [BZ #11952]
12199         [BZ #12453]
12200         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12201         until all modules are registered in the DTV.
12202         * elf/Makefile: Add rules to build and run tst-tls19.
12203         * elf/tst-tls19.c: New file.
12204         * elf/tst-tls19mod1.c: New file.
12205         * elf/tst-tls19mod2.c: New file.
12206         * elf/tst-tls19mod3.c: New file.
12207         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12208
12209         [BZ #12083]
12210         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12211         correctly.
12212
12213         [BZ #12601]
12214         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12215         two-byte sequence errors.
12216         * iconvdata/Makefile (tests): Add bug-iconv8.
12217         * iconvdata/bug-iconv8.c: New file.
12218
12219         [BZ #12626]
12220         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12221         buf2 definition.
12222
12223         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12224
12225         [BZ #12432]
12226         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12227         (dummy_getcfa): New function.
12228         (init): Get _Unwind_GetCFA address, use dummy if not found.
12229         (backtrace_helper): In recursion check, also check whether CFA changes.
12230         (__backtrace): Completely initialize arg.
12231
12232         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12233         storing incomplete byte sequence in state object.  Avoid testing for
12234         guaranteed too small input if we know there is enough data available.
12235
12236 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12237
12238         * Makeconfig (+link-pie): Indent.
12239         * Rules (binaries-pie): Define if $(have-fpie) and
12240         $(build-shared).
12241         (binaries-shared): Also filter out $(binaries-pie).
12242         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12243         * nscd/Makefile (others-pie): Add nscd.
12244         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12245         ($(objpfx)nscd): Remove command override.
12246         * login/Makefile (others-pie): Add pt_chown.
12247         ($(objpfx)pt_chown): Remove command override.
12248         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12249         remove command overrides.
12250
12251 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12252
12253         * libio/tst_putwc.c: Fix error messages.
12254
12255         [BZ #12724]
12256         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12257         currently writing and seek to current position when not.
12258         * libio/Makefile (tests): Add bug-fclose1.
12259         * libio/bug-fclose1.c: New file.
12260
12261 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12262
12263         [BZ #12511]
12264         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12265         don't set DF_1_NODELETE here.
12266         (do_lookup_x): When entering new entry test for copy relocation
12267         and if necessary set DF_1_NODELETE flag.
12268         * elf/tst-unique4.cc: New file.
12269         * elf/tst-unique4.h: New file.
12270         * elf/tst-unique4lib.cc: New file.
12271         * elf/Makefile: Add rules to build and run tst-unique4.
12272         Patch by Piotr Bury <pbury@goahead.com>.
12273
12274 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12275
12276         [BZ #12052]
12277         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12278
12279         [BZ #12625]
12280         * misc/mntent_r.c (addmntent): Flush the stream after the output
12281
12282         [BZ #12393]
12283         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12284         (is_trusted_path_normalize): Skip initial colon.  Append slash
12285         to empty buffer.  Duplicate is_trusted_path code but allow
12286         constructed patch to be prefix.
12287         (is_dst): Allow $ORIGIN followed by /.
12288         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12289         Correct testing of result of is_trusted_path_normalize
12290         (decompose_rpath): Fix warning.
12291
12292 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12293
12294         [BZ #11257]
12295         * grp/initgroups.c (internal_getgrouplist): When we found the service
12296         list through the initgroups entry in nsswitch.conf do not always
12297         continue on a successful lookup.  Don't always use the
12298         __nss_group_database value if it is set.
12299         * nss/nsswitch.conf (initgroups): Change action for successful db
12300         lookup to continue for compatibility.
12301
12302 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12303
12304         [BZ #11532]
12305         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12306         and CP774 modules.
12307         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12308         and CP774 modules.
12309         * iconvdata/tst-tables.sh: Likewise.
12310         * iconvdata/cp770.c: New file.
12311         * iconvdata/cp771.c: New file.
12312         * iconvdata/cp772.c: New file.
12313         * iconvdata/cp773.c: New file.
12314         * iconvdata/cp774.c: New file.
12315         * iconvdata/testdata/CP770: New file.
12316         * iconvdata/testdata/CP770..UTF8: New file.
12317         * iconvdata/testdata/CP771: New file.
12318         * iconvdata/testdata/CP771..UTF8: New file.
12319         * iconvdata/testdata/CP772: New file.
12320         * iconvdata/testdata/CP772..UTF8: New file.
12321         * iconvdata/testdata/CP773: New file.
12322         * iconvdata/testdata/CP773..UTF8: New file.
12323         * iconvdata/testdata/CP774: New file.
12324         * iconvdata/testdata/CP774..UTF8: New file.
12325
12326         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12327         END CHARMAP line.
12328         * iconvdata/gen-8bit-gap.sh: Likewise.
12329         * iconvdata/gen-8bit.sh: Likewise.
12330
12331         * locale/iso-639.def: Add ary entry.
12332
12333         [BZ #11258]
12334         * locale/C-translit.h.in: Add U20A1 transliteration.
12335
12336         [BZ #12178]
12337         * locale/iso-639.def: Add wae entry.
12338         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12339
12340         [BZ #12545]
12341         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12342         for n.
12343
12344         [BZ #12711]
12345         * locale/C-translit.h.in: Add entry for U20B9.
12346         Patch by pravin.d.s@gmail.com.
12347
12348 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12349
12350         [BZ #12713]
12351         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12352         ENAMETOOLONG use generic getcwd.
12353         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12354         in rtld.  Use *stat64.
12355         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12356         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12357         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12358         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12359         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12360         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12361         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12362         __fstatat64 macros.
12363         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12364         * dirent/rewinddir.c: Add libc_hidden_def.
12365         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12366         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12367
12368         * include/dirent.h (__alloc_dir): Add flags parameter.
12369         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12370         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12371         __alloc_dir.
12372         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12373         from fdopendir if O_CLOEXEC is already set.
12374
12375 2011-03-15  Alan Modra  <amodra@gmail.com>
12376
12377         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12378         l_tls_firstbyte_offset non-zero.  Save padding offset in
12379         l_tls_firstbyte_offset for later use.
12380         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12381         freeing static tls block.
12382
12383 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12384
12385         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12386         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12387         being defined by the kernel headers.
12388
12389 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12390
12391         [BZ #12734]
12392         * resolv/resolv.h: Define RES_NOTLDQUERY.
12393         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12394         no-tld-query and set RES_NOTLDQUERY.
12395         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12396         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12397         modern BIND to search name as TLD unless forbidden.
12398
12399 2011-05-07  Petr Baudis  <pasky@suse.cz>
12400             Ulrich Drepper  <drepper@gmail.com>
12401
12402         [BZ #12393]
12403         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12404         (is_trusted_path): ...to here.
12405         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12406         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12407         using is_trusted_path_normalize() in setuid scripts.
12408
12409 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12410
12411         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12412         __BEGIN/__END_DECLS.
12413
12414 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12415
12416         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12417         NSS_STATUS_NOTFOUND if no record was found.
12418
12419 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12420
12421         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12422         (headers-not-in-tirpc): Remove rpc/netdb.h
12423         * resolv/netdb.h: Revert last change.
12424
12425 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12426
12427         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12428         circular dependency between libgcc.a and libc.a.
12429
12430 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12431
12432         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12433         * nis/Makefile: Don't install rpcsvc/*.
12434         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12435         instead of <rpc/types.h>.
12436         (MAXHOSTNAMELEN): Define.
12437
12438 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12439
12440         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12441
12442 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12443
12444         [BZ #12714]
12445         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12446         gethostbyname4_r when IPv6 results are possible.
12447
12448 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12449
12450         [BZ #12723]
12451         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12452         _PC_PIPE_BUF handling.
12453
12454 2011-04-30  Bruno Haible  <bruno@clisp.org>
12455
12456         [BZ #12717]
12457         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12458         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12459         to 'int'.
12460         * inet/getnameinfo.c (getnameinfo): Likewise.
12461
12462 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
12463
12464         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
12465         to groups setting in database lookup.
12466         * nss/nsswitch.conf: Add initgroups entry.
12467
12468 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
12469
12470         [BZ #12685]
12471         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
12472         mode string.
12473         Patch by Eric Blake <eblake@redhat.com>.
12474
12475 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12476
12477         * sunrpc/Makefile (need-export-routines): Add svc_run.
12478         (routines): Remove svc_run.
12479         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
12480         * sunrpc/clnt_perr.c (clnt_perrno): Export.
12481         * sunrpc/svc_run.c (svc_run): Likewise.
12482         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12483
12484 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
12485
12486         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
12487         problem in reallocation in last patch.
12488
12489 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
12490
12491         * sunrpc/Makefile: Move inclusion of Rules.
12492
12493 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12494
12495         * nss/nss_files/files-initgroups.c: New file.
12496         * nss/Makefile (libnss_files-routines): Add files-initgroups.
12497         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
12498         _nss_files_initgroups_dyn.
12499
12500 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
12501
12502         * elf/elf.h (R_ARM_IRELATIVE): Define.
12503
12504 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12505
12506         * po/ru.po: Update from translation team.
12507
12508 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12509
12510         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
12511         dependencies.
12512
12513 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
12514
12515         [BZ #12653]
12516         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
12517         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
12518         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12519         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12520         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12521
12522 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
12523
12524         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
12525         differing bytes.
12526         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12527         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12528         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12529
12530 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12531
12532         [BZ #12420]
12533         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
12534         storing it.
12535         * stdlib/bug-getcontext.c: New file.
12536         * stdlib/Makefile: Add rules to build and run bug-getcontext.
12537
12538 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12539
12540         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
12541         instructions into .machine "z9-109".
12542         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
12543         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
12544
12545 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12546
12547         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
12548         between environment variables and auxiliary vector.
12549
12550 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
12551
12552         * Makefile: Add rules to build linkobj/libc.so.
12553         * include/libc-symbols.h: Define libc_hidden_nolink.
12554         * include/rpc/auth.h: Mark functions which are to be hidden.
12555         * include/rpc/auth_des.h: Likewise.
12556         * include/rpc/auth_unix.h: Likewise.
12557         * include/rpc/clnt.h: Likewise.
12558         * include/rpc/des_crypt.h: Likewise.
12559         * include/rpc/key_prot.h: Likewise.
12560         * include/rpc/pmap_clnt.h: Likewise.
12561         * include/rpc/pmap_prot.h: Likewise.
12562         * include/rpc/pmap_rmt.h: Likewise.
12563         * include/rpc/rpc_msg.h: Likewise.
12564         * include/rpc/svc.h: Likewise.
12565         * include/rpc/svc_auth.h: Likewise.
12566         * include/rpc/xdr.h: Likewise.
12567         * nis/Makefile: Link all DSOs against linkobj/libc.so.
12568         * nss/Makefile: Likewise.
12569         * sunrpc/Makefile: Don't install headers.  Build library with normal
12570         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
12571         * sunrpc/auth_des.c: Hide exported symbols by default, export some
12572         for the compat linking library.  Remove use of INTDEF/INTUSE.
12573         * sunrpc/auth_none.c: Likewise.
12574         * sunrpc/auth_unix.c: Likewise.
12575         * sunrpc/authdes_prot.c: Likewise.
12576         * sunrpc/authuxprot.c: Likewise.
12577         * sunrpc/clnt_gen.c: Likewise.
12578         * sunrpc/clnt_perr.c: Likewise.
12579         * sunrpc/clnt_raw.c: Likewise.
12580         * sunrpc/clnt_simp.c: Likewise.
12581         * sunrpc/clnt_tcp.c: Likewise.
12582         * sunrpc/clnt_udp.c: Likewise.
12583         * sunrpc/clnt_unix.c: Likewise.
12584         * sunrpc/des_crypt.c: Likewise.
12585         * sunrpc/des_soft.c: Likewise.
12586         * sunrpc/get_myaddr.c: Likewise.
12587         * sunrpc/key_call.c: Likewise.
12588         * sunrpc/key_prot.c: Likewise.
12589         * sunrpc/netname.c: Likewise.
12590         * sunrpc/pm_getmaps.c: Likewise.
12591         * sunrpc/pm_getport.c: Likewise.
12592         * sunrpc/pmap_clnt.c: Likewise.
12593         * sunrpc/pmap_prot.c: Likewise.
12594         * sunrpc/pmap_prot2.c: Likewise.
12595         * sunrpc/pmap_rmt.c: Likewise.
12596         * sunrpc/publickey.c: Likewise.
12597         * sunrpc/rpc_cmsg.c: Likewise.
12598         * sunrpc/rpc_common.c: Likewise.
12599         * sunrpc/rpc_dtable.c: Likewise.
12600         * sunrpc/rpc_prot.c: Likewise.
12601         * sunrpc/rpc_thread.c: Likewise.
12602         * sunrpc/rtime.c: Likewise.
12603         * sunrpc/svc.c: Likewise.
12604         * sunrpc/svc_auth.c: Likewise.
12605         * sunrpc/svc_authux.c: Likewise.
12606         * sunrpc/svc_raw.c: Likewise.
12607         * sunrpc/svc_run.c: Likewise.
12608         * sunrpc/svc_simple.c: Likewise.
12609         * sunrpc/svc_tcp.c: Likewise.
12610         * sunrpc/svc_udp.c: Likewise.
12611         * sunrpc/svc_unix.c: Likewise.
12612         * sunrpc/svcauth_des.c: Likewise.
12613         * sunrpc/xcrypt.c: Likewise.
12614         * sunrpc/xdr.c: Likewise.
12615         * sunrpc/xdr_array.c: Likewise.
12616         * sunrpc/xdr_float.c: Likewise.
12617         * sunrpc/xdr_intXX_t.c: Likewise.
12618         * sunrpc/xdr_mem.c: Likewise.
12619         * sunrpc/xdr_rec.c: Likewise.
12620         * sunrpc/xdr_ref.c: Likewise.
12621         * sunrpc/xdr_sizeof.c: Likewise.
12622         * sunrpc/xdr_stdio.c: Likewise.
12623
12624 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
12625
12626         [BZ #12650]
12627         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
12628         * sysdeps/ia64/dl-tls.h: Likewise.
12629         * sysdeps/powerpc/dl-tls.h: Likewise.
12630         * sysdeps/s390/dl-tls.h: Likewise.
12631         * sysdeps/sh/dl-tls.h: Likewise.
12632         * sysdeps/sparc/dl-tls.h: Likewise.
12633         * sysdeps/x86_64/dl-tls.h: Likewise.
12634         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
12635
12636 2011-03-14  Andreas Schwab  <schwab@redhat.com>
12637
12638         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
12639         rpath element also skip the following colon.
12640         (expand_dynamic_string_token): Add is_path parameter and pass
12641         down to DL_DST_REQUIRED and _dl_dst_substitute.
12642         (decompose_rpath): Call expand_dynamic_string_token with
12643         non-zero is_path.  Ignore empty rpaths.
12644         (_dl_map_object_from_fd): Call expand_dynamic_string_token
12645         with zero is_path.
12646
12647 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
12648
12649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
12650         Make cancelable.
12651
12652 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
12653
12654         [BZ #12655]
12655         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
12656         Patch by Filipe David Manana <fdmanana@apache.org>.
12657
12658 2011-04-07  Andreas Schwab  <schwab@redhat.com>
12659
12660         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
12661         Maintain aligned stack.
12662         (CHECK_RSP): Remove unused macro.
12663
12664 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
12665
12666         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
12667         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
12668
12669 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
12670
12671         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
12672
12673         * include/features.h: Mention __USE_XOPEN2K8 in comment.
12674
12675 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
12676
12677         [BZ #12518]
12678         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
12679         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
12680         * sysdeps/x86_64/memmove.c: New file.
12681         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
12682         (memcpy): Renamed to ...
12683         (__new_memcpy): This.
12684         (memcpy): Provide GLIBC_2_14 memcpy.
12685         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
12686         (memcpy): Provide GLIBC_2_2_5 memcpy.
12687
12688 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12689
12690         [BZ #12631]
12691         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
12692
12693 2011-03-30  Andreas Schwab  <schwab@redhat.com>
12694
12695         * misc/syncfs.c: New file.
12696         * misc/Makefile (routines): Add syncfs.
12697         * posix/unistd.h: Declare syncfs.
12698         * sysdeps/unix/syscalls.list: Add syncfs.
12699
12700 2011-04-01  Andreas Schwab  <schwab@redhat.com>
12701
12702         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
12703         open_by_handle_at.
12704         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12705         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12706         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12707         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12708         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12709         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
12710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12711
12712 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12713
12714         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
12715         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12716         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12717         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12718         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12719         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12720         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12721
12722         * io/Makefile: Compile fallocate.c, fallocate64.c, and
12723         sync_file_range.c with -fexceptions.
12724         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
12725         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
12726         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
12727         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
12728         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
12729         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
12730         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
12731         sync_file_range as cancellation point
12732         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
12733         now a wrapper around __call_sync_file_range with cancellation handling.
12734         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
12735         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
12736         function name to __call_sync_file_range.
12737         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
12738         Add call_sync_file_range.
12739
12740 2011-04-01  Andreas Schwab  <schwab@redhat.com>
12741
12742         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12743         bits/timex.h.
12744
12745 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12746
12747         * iconv/iconv.h: Fix typo in comment.
12748         * io/fcntl.h: Likewise.
12749         * libio/stdio.h: Likewise.
12750         * posix/spawn.h: Likewise.
12751         * posix/unistd.h: Likewise.
12752         * stdlib/stdlib.h: Likewise.
12753         * time/time.h: Likewise.
12754         * wcsmbs/wchar.h: Likewise.
12755
12756         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
12757         open_by_handle): Add.
12758         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
12759         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
12760         Augment a few comments.
12761         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12762         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12763         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12764         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12765         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12766         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
12767         open_by_handle.
12768
12769         * io/fcntl.h (AT_EMPTY_PATH): Define.
12770
12771 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
12772
12773         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
12774         * sysdeps/unix/sysv/linux/bits/time.h: New file.
12775         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
12776         to...
12777         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
12778         * Versions.def: Add GLIBC_2.14.
12779         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
12780         Export.
12781
12782 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
12783
12784         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
12785         round counter.
12786         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
12787
12788 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12789
12790         [BZ #12597]
12791         * string/test-strncmp.c (do_page_test): New function.
12792         (check2): Likewise.
12793         (test_main): Call check2.
12794         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
12795
12796 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
12797
12798         [BZ #12587]
12799         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12800         Handle cache information in CPU leaf 4.
12801         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
12802
12803 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
12804
12805         [BZ #12583]
12806         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
12807         character representation.
12808         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
12809
12810 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
12811
12812         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
12813         END(__isnan) to END(__isnanf) to match function entry point/label
12814         EALIGN(__isnanf,...).
12815
12816 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
12817
12818         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
12819
12820 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
12821
12822         [BZ #12510]
12823         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
12824         copy from the symbol referenced in the relocation to initialize the
12825         used variable.
12826         Patch by Piotr Bury <pbury@goahead.com>.
12827         * elf/Makefile: Add rules to build and tst-unique3.
12828         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
12829         * elf/tst-unique3.cc: New file.
12830         * elf/tst-unique3.h: New file.
12831         * elf/tst-unique3lib.cc: New file.
12832         * elf/tst-unique3lib2.cc: New file.
12833
12834         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
12835
12836 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
12837
12838         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
12839         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
12840         to _start.
12841
12842 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
12843
12844         * elf/dl-load.c (_dl_map_object): If we are looking for the first
12845         to-be-loaded object along a path to loader is ld.so.
12846
12847 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12848             Ulrich Drepper  <drepper@gmail.com>
12849
12850         * sysdeps/x86_64/memset.S: After aligning destination, code
12851         branches to different locations depending on the value of
12852         misalignment, when multiarch is enabled. Fix this.
12853
12854 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12855
12856         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
12857         Set _x86_64_preferred_memory_instruction for AMD processsors.
12858         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12859         Set bit_Prefer_SSE_for_memop for AMD processors.
12860
12861 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
12862
12863         * libio/fmemopen.c (fmemopen): Optimize a bit.
12864
12865 2011-03-03  Andreas Schwab  <schwab@redhat.com>
12866
12867         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
12868
12869 2011-03-03  Roland McGrath  <roland@redhat.com>
12870
12871         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
12872
12873 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
12874
12875         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
12876         __bzero_ultra1 instead of __memset_ultra1.
12877
12878 2011-02-23  Andreas Schwab  <schwab@redhat.com>
12879             Ulrich Drepper  <drepper@gmail.com>
12880
12881         [BZ #12509]
12882         * include/link.h (struct link_map): Add l_orig_initfini.
12883         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
12884         returning unsuccessfully.
12885         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
12886         close of a file loaded at startup, restore the original l_initfini
12887         list.
12888         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
12889         list, store the pointer.
12890         * elf/Makefile ($(objpfx)noload-mem): New rule.
12891         (noload-ENV): Define.
12892         (tests): Add $(objpfx)noload-mem.
12893         * elf/noload.c: Include <memcheck.h>.
12894         (main): Call mtrace.  Close all opened handles.
12895
12896 2011-02-17  Andreas Schwab  <schwab@redhat.com>
12897
12898         [BZ #12454]
12899         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
12900         dependencies are missing.
12901
12902 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12903
12904         Fix __if_freereq crash: Unlike the generic version which uses free,
12905         Hurd needs munmap.
12906         * sysdeps/mach/hurd/ifreq.h: New file.
12907
12908 2011-01-27  Petr Baudis  <pasky@suse.cz>
12909             Ulrich Drepper  <drepper@gmail.com>
12910
12911         [BZ 12445]#
12912         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
12913         to extend_alloca().
12914         * stdio-common/bug23.c: New file.
12915         * stdio-common/Makefile (tests): Add bug23.
12916
12917 2010-09-28  Andreas Schwab  <schwab@redhat.com>
12918             Ulrich Drepper  <drepper@gmail.com>
12919
12920         [BZ #12489]
12921         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
12922         before performing relro protection.  At old place add assertion
12923         to make sure nothing changed.
12924
12925 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
12926             Glauber de Oliveira Costa  <glommer@gmail.com>
12927
12928         * elf/elf.h: Add new ARM TLS relocs.
12929
12930 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
12931
12932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12933         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
12934         cast from r3.
12935         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
12936         'tests' variable.
12937         * sysdeps/wordsize-64/tst-writev.c: New file.
12938
12939 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
12940
12941         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
12942         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
12943         insns in _dl_start to prevent a TOC reference before relocs are
12944         resolved.
12945
12946 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
12947
12948         [BZ #12469]
12949         * Makeconfig: Remove RANLIB definition.
12950         * Makerules: Don't use RANLIB.
12951         * aclocal.m4: Remove ranlib test.
12952         * configure.in: No need to check for ranlib.
12953         * elf/rtld-Rules: Don't use RANLIB.
12954
12955 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12956
12957         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
12958         protection macro.
12959         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
12960         inclusion protection macro.
12961
12962         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
12963         SIGRTMIN and SIGRTMAX and print information in that case only when
12964         SIGRTMIN is defined.
12965
12966 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12967
12968         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
12969         arginfo fn returning -1.
12970
12971         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
12972         and thousands string is zero terminated.
12973
12974 2011-02-03  Andreas Schwab  <schwab@redhat.com>
12975
12976         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
12977         sysdeps/unix/sysv/linux/bits/socket.h.
12978
12979 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12980
12981         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
12982         (__CPU_COUNT): Remove old macros.
12983         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
12984         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
12985         (__CPU_ALLOC, __CPU_FREE): Add macros.
12986         (__sched_cpualloc, __sched_cpufree): Add declarations.
12987
12988 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
12989
12990         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
12991         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
12992         * nscd/aicache.c (addhstaiX): Return timeout of added value.
12993         (readdhstai): Return value of addhstaiX call.
12994         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
12995         (addgrbyX): Return value returned by cache_addgr.
12996         (readdgrbyname): Return value returned by addgrbyX.
12997         (readdgrbygid): Likewise.
12998         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
12999         (addpwbyX): Return value returned by cache_addpw.
13000         (readdpwbyname): Return value returned by addhstbyX.
13001         (readdpwbyuid): Likewise.
13002         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13003         (addservbyX): Return value returned by cache_addserv.
13004         (readdservbyname): Return value returned by addservbyX:
13005         (readdservbyport): Likewise.
13006         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13007         (addhstbyX): Return value returned by cache_addhst.
13008         (readdhstbyname): Return value returned by addhstbyX.
13009         (readdhstbyaddr): Likewise.
13010         (readdhstbynamev6): Likewise.
13011         (readdhstbyaddrv6): Likewise.
13012         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13013         (readdinitgroups): Return value returned by addinitgroupsX.
13014         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13015         (prune_cache): Keep track of timeout value of re-added entries.
13016         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13017         * nscd/nscd.h: Adjust prototypes of readd* functions.
13018
13019 2011-02-04  Roland McGrath  <roland@redhat.com>
13020
13021         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13022         (nis_stats): Likewise.
13023         * nis/nis_modify.c (nis_modify): Likewise.
13024         * nis/nis_remove.c (nis_remove): Likewise.
13025         * nis/nis_add.c (nis_add): Likewise.
13026
13027         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13028
13029         * posix/fnmatch_loop.c: Add some consts.
13030
13031         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13032
13033 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13034
13035         [BZ #12460]
13036         * config.make.in (config-cflags-novzeroupper): Define.
13037         * configure.in: Substitute libc_cv_cc_novzeroupper.
13038         * elf/Makefile (AVX-CFLAGS): Define.
13039         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13040         (CFLAGS-tst-auditmod4a.c): Likewise.
13041         (CFLAGS-tst-auditmod4b.c): Likewise.
13042         (CFLAGS-tst-auditmod6b.c): Likewise.
13043         (CFLAGS-tst-auditmod6c.c): Likewise.
13044         (CFLAGS-tst-auditmod7b.c): Likewise.
13045         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13046
13047 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13048
13049         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13050         function to the callback.
13051         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13052
13053 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13054
13055         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13056         of errno.
13057
13058 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13059
13060         [BZ #11724]
13061         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13062         of constructors.
13063         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13064         of destructors.
13065         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13066
13067         [BZ #11724]
13068         * elf/Makefile: Add rules to build and run new test.
13069         * elf/tst-initorder.c: New file.
13070         * elf/tst-initorder.exp: New file.
13071         * elf/tst-initordera1.c: New file.
13072         * elf/tst-initordera2.c: New file.
13073         * elf/tst-initordera3.c: New file.
13074         * elf/tst-initordera4.c: New file.
13075         * elf/tst-initorderb1.c: New file.
13076         * elf/tst-initorderb2.c: New file.
13077         * elf/tst-order-a1.c: New file.
13078         * elf/tst-order-a2.c: New file.
13079         * elf/tst-order-a3.c: New file.
13080         * elf/tst-order-a4.c: New file.
13081         * elf/tst-order-b1.c: New file.
13082         * elf/tst-order-b2.c: New file.
13083         * elf/tst-order-main.c: New file.
13084         New test case by George Gensure <werkt0@gmail.com>.
13085
13086 2010-10-01  Andreas Schwab  <schwab@redhat.com>
13087
13088         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
13089         decoding ACE if AI_CANONIDN.
13090
13091 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
13092
13093         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
13094
13095 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13096
13097         * version.h (RELEASE): Bump for 2.13 release.
13098         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13099
13100         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13101
13102         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13103         MADV_NOHUGEPAGE.
13104         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13105         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13106         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13107         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13108         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13109         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13110
13111         * posix/getconf.c: Update copyright year.
13112         * catgets/gencat.c: Likewise.
13113         * csu/version.c: Likewise.
13114         * debug/catchsegv.sh: Likewise.
13115         * debug/xtrace.sh: Likewise.
13116         * elf/ldconfig.c: Likewise.
13117         * elf/ldd.bash.in: Likewise.
13118         * elf/sprof.c (print_version): Likewise.
13119         * iconv/iconv_prog.c: Likewise.
13120         * iconv/iconvconfig.c: Likewise.
13121         * locale/programs/locale.c: Likewise.
13122         * locale/programs/localedef.c: Likewise.
13123         * malloc/memusage.sh: Likewise.
13124         * malloc/mtrace.pl: Likewise.
13125         * nscd/nscd.c (print_version): Likewise.
13126         * nss/getent.c: Likewise.
13127
13128         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13129         PF_CAIF, and PF_ALG.
13130         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13131
13132 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13133
13134         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13135         (modules-names): Use them.
13136         (ifunc-test-modules, ifunc-pie-tests): Define.
13137         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13138         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13139         (test-extras): Likewise.
13140         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13141         $(compile-command.c).
13142         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13143         (all-built-dso): Define.
13144         (check-textrel.out, check-execstack.out): Depend on it.
13145
13146         * configure.in: Don't override --enable-multi-arch.
13147
13148 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13149
13150         [BZ #6812]
13151         * nscd/hstcache.c (tryagain): Define.
13152         (cache_addhst): Return tryagain not notfound for temporary errors.
13153         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13154         failed.
13155
13156 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13157
13158         [BZ #10563]
13159         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13160         to make the syscall.
13161         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13162
13163         [BZ #12378]
13164         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13165         and fall back to matching as normal character if the string ends before
13166         the matching ']' is found.  This is what POSIX requires.
13167         * posix/testfnm.c: Adjust test result.
13168         * posix/globtest.sh: Adjust test result.  Add new test.
13169         * posix/tst-fnmatch.input: Likewise.
13170         * posix/tst-fnmatch2.c: Add new test.
13171
13172 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13173
13174         * elf/Makefile (check-execstack): Revert last change.  Depend on
13175         check-execstack.h.
13176         (check-execstack.h): New target.
13177         (generated): Add check-execstack.h.
13178         * elf/check-execstack.c: Include "check-execstack.h".
13179         (main): Revert last change.
13180         (handle_file): Return zero if GNU_STACK is absent and
13181         DEFAULT_STACK_PERMS doesn't include PF_X.
13182
13183 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13184
13185         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13186         in child fails because the descriptor is already closed.
13187         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13188         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13189         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13190
13191         [BZ #12397]
13192         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13193         syscall.
13194
13195         [BZ #10484]
13196         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13197         temporary buffer used to handle multi lookups locally.
13198         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13199
13200 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13201
13202         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13203         loader is ld.so.
13204
13205 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13206
13207         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13208         alignment for SSE2.
13209
13210 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13211
13212         [BZ #12394]
13213         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13214         characters.  When rounding increased number of integer digits recompute
13215         number of groups.
13216         * stdio-common/tst-grouping.c: New file.
13217         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13218
13219 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13220
13221         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13222         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13223
13224         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13225         void.
13226         * bits/select.h: Likewise.
13227
13228 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13229
13230         * po/ja.po: Update from translation team.
13231
13232 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13233
13234         [BZ #11155]
13235         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13236         implementation just like for lxstat, fxstatat, et al.
13237
13238 2010-12-27  Jim Meyering  <meyering@redhat.com>
13239
13240         [BZ #12348]
13241         * posix/regexec.c (build_trtable): Return failure indication upon
13242         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13243
13244 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13245
13246         [BZ #12201]
13247         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13248         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13249         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13250         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13251
13252         [BZ #12207]
13253         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13254
13255         [BZ #12204]
13256         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13257         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13258
13259 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13260
13261         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13262         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13263         script has SORT_BY_INIT_PRIORITY.
13264         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13265         NO_CTORS_DTORS_SECTIONS is defined.
13266         * elf/soinit.c: Likewise.
13267         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13268         NO_CTORS_DTORS_SECTIONS is defined.
13269         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13270         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13271         * sysdeps/sh/init-first.c: Likewise.
13272         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13273
13274 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13275
13276         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13277         always use the slow path.
13278
13279 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13280
13281         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13282         similar rule which adds the sysdep directories to the header search in
13283         order to pick up the correct platform stackinfo.h.
13284         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13285         perform test if it is, otherwise return successfully without testing.
13286         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13287         DEFAULT_STACK_PERMS define in stackinfo.h.
13288         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13289         defined in stackinfo.h.
13290         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13291         DEFAULT_STACK_PERMS defined in stackinfo.h.
13292         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13293         * sysdeps/ia64/stackinfo.h: Likewise.
13294         * sysdeps/s390/stackinfo.h: Likewise.
13295         * sysdeps/sh/stackinfo.h: Likewise.
13296         * sysdeps/sparc/stackinfo.h: Likewise.
13297         * sysdeps/x86_64/stackinfo.h: Likewise.
13298         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13299         PF_X for powerpc64.  Retain PF_X for powerpc32.
13300
13301 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13302
13303         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13304         accurately.
13305         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13306         GETDENTS_64BIT_ALIGNED.
13307
13308 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13309
13310         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13311
13312 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13313
13314         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13315         _GNU_SOURCE.
13316
13317         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13318         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13319         Remove __restrict.
13320         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13321         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13322
13323 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13324
13325         [BZ #11655]
13326         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13327         are initialized.
13328
13329 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13330
13331         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13332
13333 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13334
13335         * po/it.po: Update from translation team.
13336
13337 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13338
13339         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13340         unused codes.
13341
13342 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13343
13344         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13345
13346 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13347
13348         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13349         specially.
13350         (gaih_getanswer_slice): Likewise.
13351
13352 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13353
13354         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13355
13356 2010-05-31  Petr Baudis  <pasky@suse.cz>
13357
13358         [BZ #11149]
13359         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13360         silently even in the chroot mode.
13361
13362 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13363
13364         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13365         last patch a bit.  Pretty printing
13366
13367 2010-05-31  Petr Baudis <pasky@suse.cz>
13368
13369         [BZ #10085]
13370         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13371         initialization of skip_initgroups_dyn.
13372
13373 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13374
13375         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13376         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13377
13378 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13379
13380         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13381
13382 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13383
13384         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13385         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13386         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13387         ($(objpfx)tst-fnmatch-mem): New rule.
13388         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13389         * posix/tst-fnmatch.c (main): Call mtrace.
13390
13391 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13392
13393         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13394         Support Intel processor model 6 and model 0x2c.
13395
13396 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13397
13398         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13399           signed comparison.
13400
13401 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13402
13403         [BZ #12205]
13404         * string/test-strncasecmp.c (check_result): New function.
13405         (do_one_test): Use it.
13406         (check1): New function.
13407         (test_main): Use it.
13408         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13409         Support strcasecmp and strncasecmp.
13410
13411 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13412
13413         [BZ #12194]
13414         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13415         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13416
13417 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13418
13419         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13420         IFUNC support.
13421         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13422         memset-x86-64.
13423         * sysdeps/x86_64/multiarch/bzero.S: New file.
13424         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13425         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13426         * sysdeps/x86_64/multiarch/memset.S: New file.
13427         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13428         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13429         Set bit_Prefer_SSE_for_memop for Intel processors.
13430         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13431         Define.
13432         (index_Prefer_SSE_for_memop): Define.
13433         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13434
13435 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13436
13437         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13438         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13439
13440 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13441
13442         [BZ #12191]
13443         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13444         (__x86_64_raw_data_cache_size_half): Likewise.
13445         (__x86_64_raw_shared_cache_size): Likewise.
13446         (__x86_64_raw_shared_cache_size_half): Likewise.
13447
13448         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13449         (__x86_64_raw_data_cache_size_half): Likewise.
13450         (__x86_64_raw_shared_cache_size): Likewise.
13451         (__x86_64_raw_shared_cache_size_half): Likewise.
13452         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13453         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13454         and __x86_64_raw_shared_cache_size_half.  Round
13455         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13456         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13457         to multiple of 256 bytes.
13458
13459 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13460
13461         [BZ #12167]
13462         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
13463         of inacessible symlinks.  Verify result of symlink before returning it.
13464         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
13465         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
13466
13467 2010-10-28  Erich Ritz  <erichritz@gmail.com>
13468
13469         * math/math.h (isinf): Fix typo in comment.
13470
13471 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
13472
13473         * po/da.po: Update from translation team.
13474
13475 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
13476
13477         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
13478         is added to the list.
13479
13480 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13481             Ulrich Drepper  <drepper@gmail.com>
13482
13483         * elf/dl-object.c (_dl_new_object): Don't append the new object to
13484         the global list here.  Move code to...
13485         (_dl_add_to_namespace_list): ...here.  New function.
13486         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
13487         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
13488         * elf/dl-load.c (lose): Don't remove the element from the list.
13489         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
13490         (_dl_map_object): Likewise.
13491
13492 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
13493
13494         [BZ #12159]
13495         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
13496         into all bytes of SSE register.
13497         Patch by Richard Li <richardpku@gmail.com>.
13498
13499 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
13500
13501         [BZ #12140]
13502         * malloc/malloc.c (_int_free): Fill correct number of bytes when
13503         perturbing.
13504
13505 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
13506
13507         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
13508         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
13509         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
13510         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
13512         submachine.
13513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13514
13515 2010-10-22  Andreas Schwab  <schwab@redhat.com>
13516
13517         * include/dlfcn.h (__RTLD_SECURE): Define.
13518         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
13519         mode & __RTLD_SECURE instead.
13520         (open_path): Rename preloaded parameter to secure.
13521         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
13522         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
13523         * elf/dl-deps.c (openaux): Likewise.
13524         * elf/rtld.c (struct map_args): Remove is_preloaded.
13525         (map_doit): Don't use it.
13526         (dl_main): Likewise.
13527         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
13528         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
13529
13530 2010-09-09  Andreas Schwab  <schwab@redhat.com>
13531
13532         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
13533         (sysd-rules-targets): Remove duplicates.
13534         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
13535         rtld-%.$o dependency.
13536
13537 2010-10-18  Andreas Schwab  <schwab@redhat.com>
13538
13539         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
13540         _dl_map_object do it.
13541
13542 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
13543
13544         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
13545         fast fma builtins, define the macros in the C99 standard.
13546         (FP_FAST_FMAF): Likewise.
13547         (FP_FAST_FMAL): Likewise.
13548         * sysdeps/x86_64/bits/mathdef.h: Likewise.
13549
13550         * bits/mathdef.h: Update copyright year.
13551         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13552
13553 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13554
13555         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
13556         builtins, define the macros in the C99 standard.
13557         (FP_FAST_FMAF): Likewise.
13558         (FP_FAST_FMAL): Likewise.
13559         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
13560         multiply/add.
13561         (FP_FAST_FMAF): Likewise.
13562
13563 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
13564
13565         [BZ #3268]
13566         * math/libm-test.inc (fma_test): Some new testcases.
13567         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
13568         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
13569         y and infinite z.  Do multiplication by C already in long double.
13570         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
13571         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
13572         y and infinite z.  Do bitwise or of inexact bit into u.d.
13573         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
13574         * sysdeps/i386/fpu/s_fmaf.S: Removed.
13575         * sysdeps/i386/fpu/s_fma.S: Removed.
13576         * sysdeps/i386/fpu/s_fmal.S: Removed.
13577
13578 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
13579
13580         [BZ #3268]
13581         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
13582         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
13583         computation is not scheduled after fetestexcept.  Fix value
13584         of minimum denormal long double.
13585
13586 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
13587
13588         [BZ #3268]
13589         * math/libm-test.inc (fma_test): Add some more tests.
13590         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
13591         correctly.
13592
13593 2010-10-15  Andreas Schwab  <schwab@redhat.com>
13594
13595         * scripts/data/localplt-s390-linux-gnu.data: New file.
13596         * scripts/data/localplt-s390x-linux-gnu.data: New file.
13597
13598 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
13599
13600         [BZ #3268]
13601         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
13602         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
13603         instead of dbl-64.
13604         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
13605         inlines.
13606         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
13607         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
13608         if one of x and y is very large and the other is subnormal.
13609         * sysdeps/s390/fpu/s_fmaf.c: New file.
13610         * sysdeps/s390/fpu/s_fma.c: New file.
13611         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
13612         * sysdeps/powerpc/fpu/s_fma.S: New file.
13613         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
13614         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
13615         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
13616
13617 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
13618
13619         [BZ #3268]
13620         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
13621         fma tests.
13622         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
13623         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
13624         * sysdeps/i386/i686/multiarch/s_fma.c: Include
13625         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
13626         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
13627         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
13628         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
13629
13630 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
13631
13632         [BZ #12078]
13633         * posix/regcomp.c (parse_branch): One more memory leak plugged.
13634         * posix/bug-regex31.input: Add test case.
13635
13636 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
13637
13638         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
13639         * posix/bug-regex31.input: New file.
13640
13641         [BZ #12078]
13642         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
13643         (parse_sub_exp): Fix last change, use postorder.
13644
13645         * posix/bug-regex31.c: New file.
13646         * posix/Makefile: Add rules to build and run bug-regex31.
13647
13648         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
13649
13650         [BZ #12078]
13651         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
13652
13653         [BZ #12108]
13654         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
13655         to have entries in sys_siglist.
13656
13657         [BZ #12093]
13658         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
13659         be NULL.
13660
13661 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
13662
13663         [BZ #3268]
13664         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
13665         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
13666         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
13667         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
13668         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13669         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
13670         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
13671         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
13672         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
13673         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
13674         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
13675         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
13676         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
13677         * math/ftestexcept.c (fetestexcept): Likewise.
13678         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
13679         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
13680         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13681         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
13682         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
13683         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
13684         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13685
13686 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
13687
13688         [BZ #12107]
13689         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
13690         newline.
13691
13692 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
13693
13694         * string/bug-strstr1.c: New file.
13695         * string/Makefile: Add rules to build and run bug-strstr1.
13696
13697 2010-10-05  Eric Blake  <eblake@redhat.com>
13698
13699         [BZ #12092]
13700         * string/str-two-way.h (two_way_long_needle): Always clear memory
13701         when skipping input due to the shift table.
13702
13703 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
13704
13705         [BZ #12005]
13706         * malloc/mcheck.c: Handle large requests.
13707
13708         [BZ #12077]
13709         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
13710         for strncmp and strncasecmp.
13711         * string/stratcliff.c: Add tests for strcmp and strncmp.
13712         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
13713
13714 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13715
13716         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
13717         __set_fpscr.
13718
13719 2010-09-30  Andreas Jaeger  <aj@suse.de>
13720
13721         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
13722         (CGROUP_SUPER_MAGIC): Define.
13723         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13724         Handle btrfs and cgroup file systems.
13725         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
13726         Likewise.
13727
13728 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
13729
13730         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
13731         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
13732
13733 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13734
13735         [BZ #12067]
13736         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
13737         trying to locate the ELF header.
13738
13739 2010-09-27  Andreas Schwab  <schwab@redhat.com>
13740
13741         [BZ #11611]
13742         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
13743         Mask out sign-bit copies when constructing f_fsid.
13744
13745 2010-09-24  Petr Baudis <pasky@suse.cz>
13746
13747         * debug/stack_chk_fail_local.c: Add missing licence exception.
13748         * debug/warning-nop.c: Likewise.
13749
13750 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
13751
13752         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
13753         implementing getdents64 using getdents syscall, set d_type if
13754         __ASSUME_GETDENTS32_D_TYPE.
13755
13756 2010-09-16  Andreas Schwab  <schwab@redhat.com>
13757
13758         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
13759         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
13760
13761 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
13762
13763         [BZ #12037]
13764         * posix/unistd.h: Undo change of feature selection for ftruncate from
13765         2010-01-11.
13766
13767 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
13768
13769         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
13770         detection.
13771
13772 2010-09-20  Andreas Schwab  <schwab@redhat.com>
13773
13774         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
13775         fanotify_mark.
13776         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
13777
13778 2010-09-14  Andreas Schwab  <schwab@redhat.com>
13779
13780         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
13781         variables after CHECK_SP call.
13782         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
13783
13784 2010-09-13  Andreas Schwab  <schwab@redhat.com>
13785             Ulrich Drepper  <drepper@redhat.com>
13786
13787         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
13788         re-relocationg ld.so.
13789         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
13790         _dl_init_paths call.
13791         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
13792         here anymore.
13793
13794 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
13795
13796         * resolv/res_init.c (__res_vinit): Count the default server we added.
13797
13798 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
13799             Ulrich Drepper  <drepper@redhat.com>
13800
13801         [BZ #11968]
13802         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13803         (____longjmp_chk): Use %ebx for saving value across system call.
13804         Add unwind info.
13805
13806 2010-09-06  Andreas Schwab  <schwab@redhat.com>
13807
13808         * manual/Makefile: Don't mix pattern rules with normal rules.
13809
13810 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
13811
13812         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
13813         operation.
13814         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
13815         * libio/iofopncook.c (_IO_cookie_init): Likewise.
13816         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
13817         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
13818         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13819         Likewise.
13820
13821 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
13822
13823         [BZ #11979]
13824         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
13825         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
13826
13827 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
13828
13829         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
13830         * sysdeps/x86_64/addmul_1.S: Likewise.
13831         * sysdeps/x86_64/lshift.S: Likewise.
13832         * sysdeps/x86_64/mul_1.S: Likewise.
13833         * sysdeps/x86_64/rshift.S: Likewise.
13834         * sysdeps/x86_64/sub_n.S: Likewise.
13835         * sysdeps/x86_64/submul_1.S: Likewise.
13836
13837 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13838
13839         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
13840         Define __sched_param instead of SCHED_* and sched_param when
13841         <bits/sched.h> is included with __need_schedparam defined.
13842         * bits/sched.h [__need_schedparam]
13843         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
13844         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
13845         (__defined_schedparam): Define to 1.
13846         (__sched_param): New structure, identical to sched_param.
13847         (__need_schedparam): Undefine.
13848
13849 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
13850
13851         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
13852         (epoll_create1): Declare.
13853
13854         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
13855
13856 2010-08-31  Andreas Schwab  <schwab@redhat.com>
13857
13858         [BZ #7066]
13859         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
13860         shifting retval into place.
13861
13862 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
13863
13864         * nis/rpcsvc/nis.h: Update copyright notice.
13865         * nis/rpcsvc/nis.x: Likewise.
13866         * nis/rpcsvc/nis_callback.h: Likewise.
13867         * nis/rpcsvc/nis_callback.x: Likewise.
13868         * nis/rpcsvc/nis_object.x: Likewise.
13869         * nis/rpcsvc/nis_tags.h: Likewise.
13870         * nis/rpcsvc/yp.h: Likewise.
13871         * nis/rpcsvc/yp.x: Likewise.
13872         * nis/rpcsvc/ypupd.h: Likewise.
13873         * nis/yp_xdr.c: Likewise.
13874         * nis/ypupdate_xdr.c: Likewise.
13875
13876         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
13877         mainly the body of pmap_getport.  Add parameters to specify timeouts.
13878         (pmap_getport): Use __libc_rpc_getport.
13879         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
13880         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
13881         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
13882
13883 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
13884
13885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
13886         fanotify_mark.
13887
13888 2010-08-27  Roland McGrath  <roland@redhat.com>
13889
13890         * sysdeps/i386/i686/multiarch/Makefile
13891         (CFLAGS-varshift.c): New variable.
13892
13893 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
13894
13895         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
13896         * sysdeps/i386/i686/multiarch/varshift.c: New file.
13897
13898         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
13899
13900         * sysdeps/x86_64/strlen.S: Minimal code improvement.
13901
13902 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13903
13904         * sysdeps/x86_64/strlen.S: Unroll the loop.
13905         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13906         strlen-sse2 strlen-sse2-bsf.
13907         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
13908         __strlen_no_bsf if bit_Slow_BSF is set.
13909         (__strlen_sse42): Removed.
13910         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
13911         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
13912
13913 2010-08-25  Roland McGrath  <roland@redhat.com>
13914
13915         * sysdeps/x86_64/multiarch/varshift.S: File removed.
13916         * sysdeps/x86_64/multiarch/varshift.c: New file.
13917         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
13918         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
13919         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
13920         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13921
13922 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13923
13924         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13925         strlen-sse2 strlen-sse2-bsf.
13926         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
13927         __strlen_sse2_bsf if bit_Slow_BSF is unset.
13928         (__strlen_sse2): Removed.
13929         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
13930         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
13931         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
13932         bit_Slow_BSF for Atom.
13933         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
13934         (index_Slow_BSF): Define.
13935         (HAS_SLOW_BSF): Define.
13936
13937 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
13938
13939         [BZ #10851]
13940         * resolv/res_init.c (__res_vinit): When no server address at all
13941         is given default to loopback.
13942
13943 2010-08-24  Roland McGrath  <roland@redhat.com>
13944
13945         * configure.in: Remove config-name.h generation.
13946         * configure: Regenerated.
13947         * config-name.in: File removed.
13948         * scripts/config-uname.sh: New file.
13949         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
13950         ($(objdir)config-name.h): New target.
13951
13952         * sunrpc/rpc_parse.h: Avoid nested comment.
13953
13954 2010-08-24  Richard Henderson  <rth@redhat.com>
13955             Ulrich Drepper  <drepper@redhat.com>
13956             H.J. Lu  <hongjiu.lu@intel.com>
13957
13958         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
13959         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
13960         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
13961         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
13962         _mm_alignr_epi8 with _mm_loadu_si128.
13963         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
13964         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
13965         (__m128i_shift_right): Removed.
13966         * sysdeps/i386/i686/multiarch/varshift.h: New file.
13967         * sysdeps/i386/i686/multiarch/varshift.S: New file.
13968         * sysdeps/x86_64/multiarch/varshift.h: New file.
13969         * sysdeps/x86_64/multiarch/varshift.S: New file.
13970
13971 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
13972
13973         * configure.in: Move assembler checks to before sysdep dir checking.
13974
13975 2010-08-20  Petr Baudis  <pasky@suse.cz>
13976
13977         * LICENSES: Sync the sunrpc license.
13978
13979 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
13980
13981         * sunrpc/auth_des.c: Update copyright notice once again.
13982         * sunrpc/auth_none.c: Likewise.
13983         * sunrpc/auth_unix.c: Likewise.
13984         * sunrpc/authdes_prot.c: Likewise.
13985         * sunrpc/authuxprot.c: Likewise.
13986         * sunrpc/bindrsvprt.c: Likewise.
13987         * sunrpc/clnt_gen.c: Likewise.
13988         * sunrpc/clnt_perr.c: Likewise.
13989         * sunrpc/clnt_raw.c: Likewise.
13990         * sunrpc/clnt_simp.c: Likewise.
13991         * sunrpc/clnt_tcp.c: Likewise.
13992         * sunrpc/clnt_udp.c: Likewise.
13993         * sunrpc/clnt_unix.c: Likewise.
13994         * sunrpc/des_crypt.c: Likewise.
13995         * sunrpc/des_soft.c: Likewise.
13996         * sunrpc/get_myaddr.c: Likewise.
13997         * sunrpc/getrpcport.c: Likewise.
13998         * sunrpc/key_call.c: Likewise.
13999         * sunrpc/key_prot.c: Likewise.
14000         * sunrpc/openchild.c: Likewise.
14001         * sunrpc/pm_getmaps.c: Likewise.
14002         * sunrpc/pm_getport.c: Likewise.
14003         * sunrpc/pmap_clnt.c: Likewise.
14004         * sunrpc/pmap_prot.c: Likewise.
14005         * sunrpc/pmap_prot2.c: Likewise.
14006         * sunrpc/pmap_rmt.c: Likewise.
14007         * sunrpc/rpc/auth.h: Likewise.
14008         * sunrpc/rpc/auth_unix.h: Likewise.
14009         * sunrpc/rpc/clnt.h: Likewise.
14010         * sunrpc/rpc/des_crypt.h: Likewise.
14011         * sunrpc/rpc/key_prot.h: Likewise.
14012         * sunrpc/rpc/netdb.h: Likewise.
14013         * sunrpc/rpc/pmap_clnt.h: Likewise.
14014         * sunrpc/rpc/pmap_prot.h: Likewise.
14015         * sunrpc/rpc/pmap_rmt.h: Likewise.
14016         * sunrpc/rpc/rpc.h: Likewise.
14017         * sunrpc/rpc/rpc_des.h: Likewise.
14018         * sunrpc/rpc/rpc_msg.h: Likewise.
14019         * sunrpc/rpc/svc.h: Likewise.
14020         * sunrpc/rpc/svc_auth.h: Likewise.
14021         * sunrpc/rpc/types.h: Likewise.
14022         * sunrpc/rpc/xdr.h: Likewise.
14023         * sunrpc/rpc_clntout.c: Likewise.
14024         * sunrpc/rpc_cmsg.c: Likewise.
14025         * sunrpc/rpc_common.c: Likewise.
14026         * sunrpc/rpc_cout.c: Likewise.
14027         * sunrpc/rpc_dtable.c: Likewise.
14028         * sunrpc/rpc_hout.c: Likewise.
14029         * sunrpc/rpc_main.c: Likewise.
14030         * sunrpc/rpc_parse.c: Likewise.
14031         * sunrpc/rpc_parse.h: Likewise.
14032         * sunrpc/rpc_prot.c: Likewise.
14033         * sunrpc/rpc_sample.c: Likewise.
14034         * sunrpc/rpc_scan.c: Likewise.
14035         * sunrpc/rpc_scan.h: Likewise.
14036         * sunrpc/rpc_svcout.c: Likewise.
14037         * sunrpc/rpc_tblout.c: Likewise.
14038         * sunrpc/rpc_util.c: Likewise.
14039         * sunrpc/rpc_util.h: Likewise.
14040         * sunrpc/rpcinfo.c: Likewise.
14041         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14042         * sunrpc/rpcsvc/key_prot.x: Likewise.
14043         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14044         * sunrpc/rpcsvc/mount.x: Likewise.
14045         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14046         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14047         * sunrpc/rpcsvc/rex.x: Likewise.
14048         * sunrpc/rpcsvc/rstat.x: Likewise.
14049         * sunrpc/rpcsvc/rusers.x: Likewise.
14050         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14051         * sunrpc/rpcsvc/spray.x: Likewise.
14052         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14053         * sunrpc/rtime.c: Likewise.
14054         * sunrpc/svc.c: Likewise.
14055         * sunrpc/svc_auth.c: Likewise.
14056         * sunrpc/svc_authux.c: Likewise.
14057         * sunrpc/svc_raw.c: Likewise.
14058         * sunrpc/svc_run.c: Likewise.
14059         * sunrpc/svc_simple.c: Likewise.
14060         * sunrpc/svc_tcp.c: Likewise.
14061         * sunrpc/svc_udp.c: Likewise.
14062         * sunrpc/svc_unix.c: Likewise.
14063         * sunrpc/svcauth_des.c: Likewise.
14064         * sunrpc/xcrypt.c: Likewise.
14065         * sunrpc/xdr.c: Likewise.
14066         * sunrpc/xdr_array.c: Likewise.
14067         * sunrpc/xdr_float.c: Likewise.
14068         * sunrpc/xdr_mem.c: Likewise.
14069         * sunrpc/xdr_rec.c: Likewise.
14070         * sunrpc/xdr_ref.c: Likewise.
14071         * sunrpc/xdr_sizeof.c: Likewise.
14072         * sunrpc/xdr_stdio.c: Likewise.
14073
14074         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14075         handling.
14076
14077 2010-08-19  Andreas Schwab  <schwab@redhat.com>
14078
14079         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
14080
14081 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
14082
14083         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
14084         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
14085         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
14086         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
14087         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
14088         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
14089         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
14090         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
14091         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
14092         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
14093         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
14094         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14095         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14096         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14097
14098 2010-07-26  Anton Blanchard  <anton@samba.org>
14099
14100         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14101         * malloc/arena.c (heap_trim): Likewise.
14102
14103 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14104
14105         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14106         here.  Not...
14107         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14108         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14109
14110 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14111
14112         * sysdeps/i386/elf/Makefile: New file.
14113
14114 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14115
14116         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14117         from fanotify_init.
14118         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14119         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14120
14121 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14122
14123         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14124         of strncasecmp_l.
14125         * sysdeps/multiarch/strcmp.S: Likewise.
14126
14127 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14128
14129         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14130         strncase_l-nonascii.
14131         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14132         Add strncase_l-ssse3.
14133         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14134         * sysdeps/x86_64/strcmp.S: Likewise.
14135         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14136         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14137         * sysdeps/x86_64/strncase.S: New file.
14138         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14139         * sysdeps/x86_64/strncase_l.S: New file.
14140         * string/Makefile (strop-tests): Add strncasecmp.
14141         * string/test-strncasecmp.c: New file.
14142
14143         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14144         warning.
14145
14146         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14147         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14148
14149 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14150
14151         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14152
14153 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14154
14155         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14156         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14157         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14158
14159 2010-05-01  Alan Modra  <amodra@gmail.com>
14160
14161         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14162         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14163         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14164         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14165         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14166         tidying.  Don't tail-call __sigjmp_save for static lib.
14167         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14168         save location.
14169         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14170         (CALL_MCOUNT): Add eh info, and nop after bl.
14171         (TAIL_CALL_SYSCALL_ERROR): New macro.
14172         (PSEUDO_RET): Use it.
14173         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14174         Correct save location of integer regs and cr.
14175         (_dl_profile_resolve): Correct cr save location.  Delete nops
14176         after bl when SHARED.  Reduce cfi size a little by better
14177         placement of cfi directives.
14178         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14179         make a stack frame.  Instead use parm save area as a temp.
14180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14181         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14183         Don't make a stack frame for parent, use parm save area.
14184         Increase child stack frame to 112 bytes.  Don't save unused reg,
14185         and adjust reg usage.  Set up cfi on error recovery and
14186         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14188         (__makecontext): Add dummy nop after jump to exit.
14189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14190         Use correct parm save area and cr save, reduce stack frame.
14191         Correct cfi for possible PSEUDO_RET frame setup.
14192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14193         Branch to local label emitted by PSEUDO_RET rather than
14194         __syscall_error.
14195
14196 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14197
14198         [BZ #11904]
14199         * locale/programs/locale.c (print_assignment): New function.
14200         (show_locale_vars): Use it.
14201
14202 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14203
14204         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14205         field.
14206         (struct statfs64): Likewise.
14207         (_STATFS_F_FLAGS): Define.
14208         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14209         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14210         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14211         (ST_VALID): Define locally.
14212         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14213         __statvfs_getflags, use the provided value.
14214         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14215         __ASSUME_STATFS_F_FLAGS.
14216
14217         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14218
14219         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14220         Add sys/fanotify.h.
14221         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14222         fanotify_mask for GLIBC_2.13.
14223         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14224         fanotify_init and fanotify_mark.
14225         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14226         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14227
14228         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14229         Add prlimit.
14230         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14231         prlimit64 for GLIBC_2.13.
14232         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14233         prlimit64.
14234         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14235         syscall.
14236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14237         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14238         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14239         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14240         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14241         add prlimit alias.
14242         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14243
14244         [BZ #11903]
14245         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14246         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14247
14248         * nss/Makefile: Add rules to build and run tst-nss-test1.
14249         * shlib-versions: Add entry for libnss_test1.
14250         * nss/nss_test1.c: New file.
14251         * nss/tst-nss-test1.c: New file.
14252
14253         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14254         (__nss_configure_lookup): Set appropriate entry in
14255         __nss_configure_lookup to true.
14256         * nss/nsswitch.h: Define enum with indeces of databases in
14257         databases and __nss_database_custom arrays.  Declare
14258         __nss_database_custom.
14259         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14260         to avoid using nscd when custom rules are installed.
14261         * nss/getXXbyYY_r.c: Likewise.
14262         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14263
14264         * nss/nss_files/files-parse.c: Whitespace fixes.
14265
14266 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14267
14268         [BZ #11883]
14269         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14270         * posix/fnmatch_loop.c: Likewise.
14271
14272 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14273
14274         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14275         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14276         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14277         * Versions.def [GLIBC_2.13]: Add.
14278
14279 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14280
14281         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14282         Also fail if tpwd after pwuid call is NULL.
14283
14284 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14285
14286         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14287         when converting to ms.
14288
14289 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14290
14291         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14292         EOPNOTSUPP errors with ENOTTY.
14293         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14294         EOPNOTSUPP errors with ENOTTY.
14295
14296 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14297
14298         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14299         Add strcasecmp_l-ssse3.
14300         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14301         strcasecmp.
14302         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14303         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14304         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14305
14306 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14307
14308         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14309
14310         * string/Makefile (strop-tests): Add strcasecmp.
14311         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14312         strcasecmp_l-nonascii.
14313         (gen-as-const-headers): Add locale-defines.sym.
14314         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14315         * sysdeps/x86_64/strcasecmp.S: New file.
14316         * sysdeps/x86_64/strcasecmp_l.S: New file.
14317         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14318         * sysdeps/x86_64/locale-defines.sym: New file.
14319         * string/test-strcasecmp.c: New file.
14320
14321         * string/test-strcasestr.c: Test both ends of the range of characters.
14322         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14323
14324 2010-07-29  Roland McGrath  <roland@redhat.com>
14325
14326         [BZ #11856]
14327         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14328
14329 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14330
14331         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14332         for ld.so.
14333
14334 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14335
14336         * manual/memory.texi (Malloc Tunable Parameters): Document
14337         M_PERTURB.
14338
14339 2010-07-26  Roland McGrath  <roland@redhat.com>
14340
14341         [BZ #11840]
14342         * configure.in (-fgnu89-inline check): Set and substitute
14343         gnu89_inline, not libc_cv_gnu89_inline.
14344         * configure: Regenerated.
14345         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14346
14347 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14348
14349         * string/test-strnlen.c: New file.
14350         * string/Makefile (strop-tests): Add strnlen.
14351         * string/tester.c (test_strnlen): Add a few more test cases.
14352         * string/tst-strlen.c: Better error reporting.
14353
14354         * sysdeps/x86_64/strnlen.S: New file.
14355
14356 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14357
14358         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14359         lower-latency instructions.
14360
14361 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14362
14363         * string/test-strcasestr.c: New file.
14364         * string/test-strstr.c: New file.
14365         * string/Makefile (strop-tests): Add strstr and strcasestr.
14366         * string/str-two-way.h: Don't undefine MAX.
14367         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14368
14369 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14370
14371         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14372         strcasestr-nonascii.
14373         (CFLAGS-strcasestr-nonascii.c): Define.
14374         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14375         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14376         Remove unused attribute.
14377
14378 2010-07-20  Roland McGrath  <roland@redhat.com>
14379
14380         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14381         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14382         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14383         like LD_HWCAP_MASK can disable hwcaps.
14384
14385 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14386
14387         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14388
14389 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14390
14391         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14392         call in strcasestr.
14393         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14394         __strcasestr_sse42_nonascii.
14395         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14396         strcasestr-nonascii.c.
14397         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14398
14399 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14400
14401         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14402         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14403         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14404         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14405
14406 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14407
14408         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14409         fcntl.
14410
14411 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14412
14413         [BZ #11577]
14414         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14415         dl_signal_cerror.
14416
14417 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14418
14419         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14420         _PC_PIPE_BUF using F_GETPIPE_SZ.
14421
14422 2010-07-05  Roland McGrath  <roland@redhat.com>
14423
14424         * manual/arith.texi (Rounding Functions): Fix rint description
14425         implicit in round description.
14426
14427 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14428
14429         * elf/Makefile: Fix linking for a few tests to make recent linker
14430         happy.
14431
14432 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14433
14434         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14435         $(common-objpfx)libc_nonshared.a.
14436
14437 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14438
14439         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14440         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14441         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14442         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14443         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14444         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14445         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14446         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14461         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14462         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
14463         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
14464         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
14465         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
14466         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
14467         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
14468         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
14469         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
14470         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
14471         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
14472         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
14473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
14474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
14475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
14476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
14477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
14478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
14479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
14480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
14481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
14482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
14483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
14484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
14485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
14486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
14487
14488 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14489
14490         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
14491         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
14492         * string/memmove.c (memmove): Renamed to ...
14493         (MEMMOVE): ...this.  Default to memmove.
14494         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
14495         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
14496         (END_CHK): Define.
14497         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14498         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
14499         mempcpy-ssse3-back memmove-ssse3-back.
14500         * sysdeps/x86_64/multiarch/bcopy.S: New file .
14501         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
14502         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
14503         * sysdeps/x86_64/multiarch/memcpy.S: New file.
14504         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
14505         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
14506         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
14507         * sysdeps/x86_64/multiarch/memmove.c: New file.
14508         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
14509         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
14510         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
14511         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
14512         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
14513         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
14514         Define.
14515         (index_Fast_Copy_Backward): Define.
14516         (HAS_ARCH_FEATURE): Define.
14517         (HAS_FAST_REP_STRING): Define.
14518         (HAS_FAST_COPY_BACKWARD): Define.
14519
14520 2010-06-21  Andreas Schwab  <schwab@redhat.com>
14521
14522         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14523         Restore proper fallback handling.
14524
14525 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
14526
14527         [BZ #11701]
14528         * posix/group_member.c (__group_member): Correct checking loop.
14529
14530         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
14531         OOM in getpwuid_r correctly.  Return error number when the caller
14532         should return, otherwise -1.
14533         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
14534         call returning > 0 value.
14535         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
14536
14537 2010-06-07  Andreas Schwab  <schwab@redhat.com>
14538
14539         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
14540         libc_nonshared.a from targets in modules-names.
14541
14542 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
14543
14544         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
14545         requires it.
14546
14547 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
14548
14549         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
14550         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
14551         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
14552         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
14553
14554 2010-06-02  Andreas Schwab  <schwab@redhat.com>
14555
14556         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
14557
14558 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
14559
14560         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
14561         and F_GETPIPE_SZ.
14562         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14563         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14564         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14565         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14566         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14567         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
14568
14569 2010-06-14  Roland McGrath  <roland@redhat.com>
14570
14571         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
14572
14573 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
14574
14575         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
14576         __REDIRECT followed by __THROW.
14577         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
14578         * posix/getopt.h (getopt): Likewise.
14579
14580 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14581
14582         * hurd/lookup-at.c (__file_name_lookup_at): Accept
14583         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
14584         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
14585         in AT_FLAGS.
14586         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
14587         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
14588
14589 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
14590
14591         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
14592
14593 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14594
14595         [BZ #11640]
14596         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14597         Properly check family and model.
14598
14599 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
14600
14601         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
14602
14603 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
14604
14605         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
14606
14607 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
14608
14609         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
14610         symbol reference.
14611
14612 2010-05-19  Andreas Schwab  <schwab@redhat.com>
14613
14614         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
14615         symbol reference.
14616
14617 2010-05-21  Andreas Schwab  <schwab@redhat.com>
14618
14619         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
14620         and internal_recvmmsg.
14621         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
14622         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
14623         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
14624         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
14625
14626         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
14627         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
14628         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
14629
14630 2010-05-20  Andreas Schwab  <schwab@redhat.com>
14631
14632         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
14633
14634 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
14635
14636         POWER7 optimizations.
14637         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
14638         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
14639
14640 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
14641
14642         * version.h: Update for 2.13 development version.
14643
14644 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
14645
14646         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
14647         exceptions.  Return 0.
14648
14649 2010-05-07  Roland McGrath  <roland@redhat.com>
14650
14651         * elf/ldconfig.c (main): Add a const.
14652
14653 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
14654
14655         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
14656         (args_options): Add no-idn option.
14657         (ahosts_keys_int): Add idn_flags to ai_flags.
14658         (parse_option): Handle 'i' option to clear idn_flags.
14659
14660         * malloc/malloc.c (_int_free): Possible race in the most recently
14661         added check.  Only act on the data if no current modification
14662         happened.
14663
14664 See ChangeLog.17 for earlier changes.