BZ#10375: Configure magic to use -U_FORTIFY_SOURCE if needed.
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-16  Roland McGrath  <roland@hack.frob.com>
2
3         [BZ #10375]
4         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6         * configure: Regenerated.
7         * config.make.in (CPPUNDEFS): New substituted variable.
8         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
9         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
10         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
11
12 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13
14         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
15         (mq_attr): Use __syscall_slong_t.
16
17 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18
19         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
20         Check __x86_64__ instead of __WORDSIZE.
21         (_STAT_VER_LINUX): Likewise.
22         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
23         __syscall_ulong_t and __syscall_slong_t.
24         (stat64): Likewise.
25
26 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
27
28         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
29
30 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31
32         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
33
34 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
35
36         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
37         __syscall_ulong_t.
38
39         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
40         include <bits/wordsize.h>.  Check __x86_64__ instead of
41         __WORDSIZE.
42         (greg_t): Use "__extension__ long long int" if __x86_64__ is
43         defined.
44         (mcontext_t): Replace "unsigned long" with "unsigned long long".
45
46         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
47         include <bits/wordsize.h>.  Check __x86_64__ instead of
48         __WORDSIZE.
49         (user_regs_struct): Use "__extension__ unsigned long long"
50         instead of "unsigned long" if __x86_64__ is defined.
51         (user): Likewise.  Pad after pointer field if __ILP32__ is
52         defined.
53
54 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
55
56         * configure.in (makeinfo): Require version 4.5 or later.  Allow
57         versions 5 to 9.
58         * configure: Regenerated.
59         * manual/install.texi (texinfo): Increase version requirement to
60         4.5 or later.
61         * INSTALL: Regenerated.
62
63         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
64
65 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
66
67         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
68
69         * sysdeps/x86_64/x32/ffs.c: New file.
70
71         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
72         __syscall_ulong_t.
73         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
74         defined.  Use __syscall_ulong_t.
75         (shminfo): Use __syscall_ulong_t.
76         (shm_info): Likewise.
77
78         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
79         __syscall_ulong_t.
80
81         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
82         <bits/wordsize.h>.
83         (msgqnum_t): Use __syscall_ulong_t.
84         (msglen_t): Likewise.
85         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
86         __syscall_ulong_t.
87
88         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
89         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
90
91         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
92
93         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
94         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
95
96         * sysvipc/sys/msg.h (msgbuf): Replace long int with
97         __syscall_slong_t.
98
99         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
100         include <bits/wordsize.h>.  Check __x86_64__ instead of
101         __WORDSIZE.
102
103         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
104         "unsigned long long int" if __x86_64__ is defined.
105         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
106
107         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
108         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
109         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
110
111         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
112         <stdint.h>.
113         (GET_PC): Cast to uintptr_t first.
114         (GET_FRAME): Likewise.
115         (GET_STACK): Likewise.
116
117         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
118         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
119         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
120         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
121         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
122         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
123         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
124         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
125         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
126         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
127         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
128         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
129         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
130         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
131         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
132         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
133         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
134         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
135         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
136         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
137         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
138         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
139         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
140         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
141         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
142         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
143         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
144         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
145         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
146
147 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
148
149         * Makerules (+depfiles): Also collect depfiles from .oS in
150         $(extra-objs).
151         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
152         .oS, $(libnldbl-routines)).
153
154         * Makerules (native-compile-mkdep-flags): Define.
155         * sunrpc/Makefile (extra-objs): Add $(addprefix
156         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
157         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
158         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
159         calling $(make-target-directory).
160
161 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
162
163         * bits/types.h (__snseconds_t): Removed.
164         * time/time.h (struct timespec): Replace __snseconds_t with
165         __syscall_slong_t.
166         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
167         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
168         Likewise.
169         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
170         (__SNSECONDS_T_TYPE): Likewise.
171         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
172         (__SNSECONDS_T_TYPE): Likewise.
173         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
174         (__SNSECONDS_T_TYPE): Likewise.
175
176 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
177
178         * sysdeps/mach/hurd/bits/typesizes.h
179         (__SYSCALL_SLONG_TYPE): New macro.
180         (__SYSCALL_ULONG_TYPE): Likewise.
181
182 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
183
184         * bits/types.h (__syscall_slong_t): New type.
185         (__syscall_ulong_t): Likewise.
186
187         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
188         (__SYSCALL_ULONG_TYPE): Likewise.
189         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
190         (__SYSCALL_SLONG_TYPE): Likewise.
191         (__SYSCALL_ULONG_TYPE): Likewise.
192         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
193         (__SYSCALL_SLONG_TYPE): Likewise.
194         (__SYSCALL_ULONG_TYPE): Likewise.
195         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
196         (__SYSCALL_SLONG_TYPE): Likewise.
197         (__SYSCALL_ULONG_TYPE): Likewise.
198
199 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
200
201         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
202         Add sigaltstack-offsets.sym.
203         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
204         <sigaltstack-offsets.h>.
205         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
206         longjmp_msg pointer.
207         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
208         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
209         signal stack.
210         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
211
212 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
213
214         * elf/stackguard-macros.h: Remove file.
215         * sysdeps/generic/stackguard-macros.h: New file.
216         * sysdeps/i386/stackguard-macros.h: Likewise.
217         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
218         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
219         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
220         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
221         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
222         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
223         * sysdeps/x86_64/stackguard-macros.h: Likewise.
224         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
225         <elf/stackguard-macros.h>.
226
227         [BZ #14109]
228         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
229         __aligned__ in attribute.
230         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
231         (gregset_t): Likewise.
232
233 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
234
235         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
236         * sysdeps/x86_64/64/Implies-after: Here.  New file.
237         * sysdeps/x86_64/x32/Implies-after: New file.
238
239 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
240
241         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
242         and access return value for _dl_profile_fixup.  Use R10_LP to
243         load frame size.
244
245 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
246
247         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
248
249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
250
251         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
252         * sysdeps/x86_64/x32/sysdep.h: New file.
253
254 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
255
256         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
257         * sysdeps/x86_64/setjmp.S: Likewise.
258
259 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
260
261         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
262         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
263         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
264         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
265         remove unused global constant.
266
267 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
268
269         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
270         include of <not-cancel.h>.
271
272 2012-05-15  Roland McGrath  <roland@hack.frob.com>
273
274         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
275
276 2012-05-15  Jeff Law  <law@redhat.com>
277             Andreas Jaeger  <aj@suse.de>
278
279         [BZ #13594]
280         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
281         out from...
282         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
283         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
284         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
285         code changing __hst_map_handle.map.
286
287 2012-05-15  Roland McGrath  <roland@hack.frob.com>
288
289         * configure.in (sysnames): Look for Implies-before and Implies-after
290         files.
291         * configure: Regenerated.
292
293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
294
295         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
296         8-byte data alignment with LP_SIZE alignment.
297
298 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
299
300         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
301         into R10_LP.
302
303 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
304
305         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
306
307 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
308
309         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
310         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
311         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
312         Likewise.
313         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
314
315 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
316
317         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
318         (stackinfo_sub_sp): Likewise.
319
320 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
321
322         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
323         RAX_LP.
324
325 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
326
327         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
328         into R*_LP.
329
330 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
331
332         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
333         sizes into R*_LP.
334
335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
336
337         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
338
339 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
340
341         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
342         into R11_LP and load __x86_64_shared_cache_size_half into
343         R8_LP.
344
345 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
346
347         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
348         R8_LP.
349
350 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
351
352         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
353         logb for POWER7.
354         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
355         logbf for POWER7.
356         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
357         logbl for POWER7.
358         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
359         powerpc32/power7/fpu/s_logb.c via #include.
360         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
361         powerpc32/power7/fpu/s_logbf.c via #include.
362         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
363         powerpc32/power7/fpu/s_logbl.c via #include.
364
365 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
366
367         * README.libm: Remove file.
368
369 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
370
371         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
372         count for x32.  Use R*_LP and omit operand-size suffix.
373
374 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
375
376         * shlib-versions: Move x86_64-.*-linux.* entries to ...
377         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
378         * sysdeps/x86_64/x32/shlib-versions: New file.
379
380 2012-05-14  Roland McGrath  <roland@hack.frob.com>
381
382         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
383         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
384         Use _dl_fatal_printf instead.
385
386 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
387
388         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
389         set if not set by the user.  Do not allow for being unset.
390         * sysdeps/unix/sysv/linux/configure: Regenerated.
391
392 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
393
394         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
395         the `q' suffix from lea and replace .quad with ASM_ADDR.
396
397 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
398
399         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
400         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
401         instead of $17.
402         (PTR_DEMANGLE): Likewise.
403
404 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
405
406         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
407         (LP_OP): Likewise.
408         (ASM_ADDR): Likewise.
409         (RAX_LP): Likewise.
410         (RBP_LP): Likewise.
411         (RBX_LP): Likewise.
412         (RCX_LP): Likewise.
413         (RDI_LP): Likewise.
414         (RSI_LP): Likewise.
415         (RSP_LP): Likewise.
416         (R8_LP): Likewise.
417         (R9_LP): Likewise.
418         (R10_LP): Likewise.
419         (R10_LP): Likewise.
420         (R11_LP): Likewise.
421         (R12_LP): Likewise.
422         (R13_LP): Likewise.
423         (R14_LP): Likewise.
424         (R15_LP): Likewise.
425
426 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
427
428         * sysdeps/x86_64/x32/dl-machine.h: New file.
429
430 2012-05-14  Andreas Jaeger  <aj@suse.de>
431
432         * manual/Makefile (subdir): Remove export of subdir.
433         (all): Remove target.
434         (.PHONY): Remove all from list.
435         (mkinstalldirs): Remove.
436         (.PHONY): Remove installdirs from list.
437         ($(inst_infodir)/libc.info): Use make-target-directory.
438         (installdirs): Remove.
439         (subdir_%): Remove.
440         (glibc-targets): Remove.
441         (lib): Remove.
442         (stubs): Remove.
443         ($(objpfx)stubs ../po/manual.pot): Remove.
444         ($(objpfx)stamp%): Remove.
445         (make-target-directory): Remove.
446         (subdir_install): Remove.
447         (routines): Remove.
448         (aux): Remove.
449         (sources): Remove.
450         (objects): Remove.
451         (headers): Remove.
452
453         [BZ #13750]
454         * manual/.gitignore: Remove, it's not needed anymore.
455         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
456         all files in it.
457         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
458         directory.
459         (texis): Renamed to $(objpfx)texis.
460         (texis-path): New, contains path to generated files.
461         (chapters.%): Use texis-path for complete path, add extra argument
462         libc-texinfo.sh.
463         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
464         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
465         (summary,texi, stamp-summary): Use complete path of
466         files. Generate files in build dir.
467         (dir-add.texi): Build in build dir.
468         (libm-err.texi,stamp-libm-err): Likewise.
469         (version.texi, stamp-version): Likewise.
470         (.%c.texi): Likewise.
471         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
472         (mostlyclean): Remove target.
473         (realclean): Remove target.
474         (generated): Add new variable with contents from mostlyclean and
475         realclean, remove entries duplicated in common-mostlyclean, add
476         stamp-libm-err and stamp-version.
477         (generated-dirs): Add libc directory.
478         ($(inst_infodir)/libc.info): Install files from build dir.
479
480         * manual/install.texi (Configuring and compiling): Adjust since
481         the info files are not part of the tar ball anymore.
482
483 2012-05-14  Andreas Jaeger  <aj@suse.de>
484
485         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
486         variable.
487
488 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
489
490         [BZ #13717]
491         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
492         to 2.2.0 where earlier.
493         * sysdeps/unix/sysv/linux/configure: Regenerated.
494         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
495         Remove conditional code.
496         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
497         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
498         Remove conditional code.
499         [!__NR_lchown]: Likewise.
500         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
501         [__NR_lchown]: Likewise.
502         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
503         comment referencing __ASSUME_LCHOWN_SYSCALL.
504         * sysdeps/unix/sysv/linux/i386/sigaction.c
505         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
506         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
507         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
508         Remove conditional code.
509         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
510         (__protocol_available): Remove #if 0 code.
511         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
512         conditional code.
513         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
514         * sysdeps/unix/sysv/linux/kernel-features.h
515         (__ASSUME_GETCWD_SYSCALL): Don't define.
516         (__ASSUME_REALTIME_SIGNALS): Likewise.
517         (__ASSUME_PREAD_SYSCALL): Likewise.
518         (__ASSUME_PWRITE_SYSCALL): Likewise.
519         (__ASSUME_POLL_SYSCALL): Likewise.
520         (__ASSUME_LCHOWN_SYSCALL): Likewise.
521         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
522         non-SPARC.
523         (__ASSUME_SIOCGIFNAME): Don't define.
524         (__ASSUME_MSG_NOSIGNAL): Likewise.
525         (__ASSUME_SENDFILE): Define unconditionally.
526         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
527         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
528         conditional code.
529         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
530         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
531         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
532         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
533         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
534         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
535         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
537         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
538         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
540         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
541         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
543         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
544         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
546         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
547         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
549         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
550         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
552         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
553         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
555         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
556         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
558         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
559         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
560         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
561         Remove conditional code.
562         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
563         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
564         Remove conditional code.
565         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
566         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
567         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
568         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
569         Remove conditional code.
570         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
571         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
572         Remove conditional code.
573         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
574         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
575         Remove conditional code.
576         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
577         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
578         Remove conditional code.
579         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
580         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
581         Remove conditional code.
582         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
583         * sysdeps/unix/sysv/linux/sh/pwrite64.c
584         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
585         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
586         * sysdeps/unix/sysv/linux/sigaction.c
587         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
588         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
589         * sysdeps/unix/sysv/linux/sigpending.c
590         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
591         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
592         * sysdeps/unix/sysv/linux/sigprocmask.c
593         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
594         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
595         * sysdeps/unix/sysv/linux/sigsuspend.c
596         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
597         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
598         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
599         (__libc_missing_rt_sigs): Remove.
600         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
601         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
602         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
603         Remove conditional code.
604         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
605         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
606         return 1.
607         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
608         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
609         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
610         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
611
612 2012-05-14  Andreas Jaeger  <aj@suse.de>
613
614         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
615         it's not used in glibc.
616         (__coshm1): Likewise.
617         (__acosh1p): Likewise.
618         (__sgn): Likewise.
619
620         * manual/string.texi (Copying and Concatenation): Add missing
621         variable in concat example.
622         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
623
624 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
625
626         [BZ #14103]
627         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
628         __builtin_clzl with __builtin_clzll.
629
630 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
631
632         [BZ #14104]
633         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
634         libc_freeres_ptr.
635
636 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
637
638         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
639         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
640         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
641         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
642
643 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
644
645         * NEWS: Update ia64 info.
646
647 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
648
649         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
650         used as bcopy.
651
652 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
653
654         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
655         * sysdeps/unix/syscalls.list (dup3): Likewise.
656         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
657         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
658
659 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
660
661         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
662         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
663
664 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
665
666         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
667         thread pointer.
668         (TLS_IE): Use mov/add instead of movq/addq to load thread
669         pointer.
670         (TLS_GD_PREFIX): New.
671         (TLS_GD): Use it.
672
673 2012-05-11  David S. Miller  <davem@davemloft.net>
674
675         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
676         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
677         (_FPU_SETCW): Likewise.
678
679 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
680
681         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
682         is 32-byte aligned.
683
684 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
685
686         [BZ #11837]
687         * iconvdata/gb18030.c: Update tables.
688         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
689         characters specially.
690         (BODY for TO_LOOP): Add encoding of missing ranges.
691
692 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
693
694         [BZ #13673]
695         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
696         * sysdeps/mach/hurd/dup3.c: Likewise.
697         * sysdeps/mach/hurd/readlinkat.c: Likewise.
698         * sysdeps/powerpc/memmove.c:: Likewise.
699
700 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
701
702         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
703         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
704
705 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
706
707         * elf/elf.h (R_X86_64_RELATIVE64): New.
708         (R_X86_64_NUM): Updated.
709         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
710         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
711         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
712         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
713         tst-quad1pie tst-quad2pie
714         (modules-names): Add tst-quadmod1 tst-quadmod2.
715         ($(objpfx)tst-quad1): New dependency.
716         ($(objpfx)tst-quad2): Likewise.
717         ($(objpfx)tst-quad1pie): Likewise.
718         ($(objpfx)tst-quad2pie): Likewise.
719         * sysdeps/x86_64/tst-quad1.c: New file.
720         * sysdeps/x86_64/tst-quad1pie.c: New file.
721         * sysdeps/x86_64/tst-quad2.c: Likewise.
722         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
723         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
724         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
725         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
726         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
727
728 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
729
730         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
731         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
732         * streams/stropts.h (t_scalar_t): Define type.
733
734         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
735         (_PATH_PRESERVE): Set to "/var/lib".
736         (_PATH_RWHODIR): Set to "/var/spool/rwho".
737
738         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
739         instead of int.
740
741         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
742         if __dir_mkfile succeeded.
743
744         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
745         checking for _hurd_dtablesize.  Unlock it right after having
746         finished _hurd_dtable allocation.
747
748 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
749
750         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
751         * sysdeps/mach/hurd/configure: Regenerated.
752         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
753         special-casing to...
754         * sysdeps/gnu/configure.in: ... this new file.
755         * sysdeps/unix/sysv/linux/configure: Regenerated.
756         * sysdeps/gnu/configure: New generated file.
757
758         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
759         for Linux: use nsec instead of usec, as well as:
760         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
761         members of type struct timespec.
762         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
763         New macros.
764         (struct stat64): Likewise.
765         (_STATBUF_ST_NSEC): New macro.
766         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
767
768         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
769         __strtoul_internal rather than strtoul.
770
771 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
772
773         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
774         and reject them.
775
776 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
777
778         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
779         which preserves existing values.
780         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
781
782 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
783
784         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
785         TIMEOUT values.  Return EINVAL for NFDS values either negative or
786         greater than FD_SETSIZE.
787
788 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
789
790         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
791         allocated, call __vm_protect to finish enabling the existing space, and
792         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
793         allocate the remainder.
794
795 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
796
797         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
798         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
799
800 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
801
802         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
803         sysdeps/mach/hurd/readlink.c.
804
805         * posix/tst-sysconf.c (posix_options): Only use
806         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
807         _POSIX_SYNCHRONIZED_IO when they are defined
808         * sysdeps/mach/hurd/bits/posix_opt.h:
809         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
810         (_XOPEN_REALTIME): Undefine macro.
811         (_XOPEN_REALTIME_THREADS): Undefine macro.
812         (_XOPEN_SHM): Undefine macro.
813         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
814         macro to -1.
815         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
816         macro to -1.
817         (_POSIX_ASYNC_IO): Undefine macro.
818         (_POSIX_PRIORITIZED_IO): Undefine macro.
819         (_POSIX_SPIN_LOCKS): Define macro to -1.
820
821         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
822         SA_NODEFER, SA_RESETHAND.
823         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
824         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
825         F_DUPFD_CLOEXEC.
826
827 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
828
829         * elf/Makefile (pldd-modules): Define unconditionally.
830
831 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
832
833         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
834
835 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
836
837         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
838         Return ENOENT when name is empty.
839         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
840
841 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
842
843         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
844
845         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
846
847 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
848
849         Fix mlock in all cases except non-readable pages.
850         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
851         instead of VM_PROT_ALL as parameter to __vm_wire function.
852
853         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
854         (__mkdir): When path is `/', just fail with EEXIST.
855         * sysdeps/mach/hurd/mkdirat.c: Likewise.
856
857 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
858
859         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
860         <sys/uio.h> (for writev).
861         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
862         and <sys/param.h> (for MIN).
863
864 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
865
866         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
867         REQUESTED_TIME.  Properly set the remaining time and return EINTR
868         if interrupted.
869
870 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
871
872         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
873         Depend on against $(link-rpcuserlibs).
874
875 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
876
877         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
878         (__libc_stack_end): Do not use attribute_relro.
879         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
880         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
881         to libthread-provided value.
882         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
883         attribute_relro.
884
885 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
886
887         [BZ #3748]
888         * bits/libc-lock.h (__libc_once_get): New macro.
889         * sysdeps/mach/bits/libc-lock.h: Likewise.
890         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
891         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
892         instead of using implementation details.
893
894         * libio/fileops.c: Unconditionally include <kernel-features.h>.
895         * libio/freopen.c: Likewise.
896         * libio/freopen64.c: Likewise.
897         * misc/syslog.c: Likewise.
898         * nscd/connections.c: Likewise.
899         * nscd/netgroupcache.c: Likewise.
900         * sysdeps/posix/getcwd.c: Likewise.
901
902 2012-05-10  Roland McGrath  <roland@hack.frob.com>
903
904         * math/w_ilogbf.c: Add #include <limits.h>.
905
906 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
907
908         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
909         path instead of returning without unlocking.
910
911         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
912         immediate-write ioctls.
913         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
914
915 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
916
917         * sysdeps/mach/hurd/i386/init-first.c (init): Use
918         __builtin_frame_address instead of making assumptions about the
919         location of the return address relative to DATA.  Force early load of
920         the return address.
921         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
922         __builtin_frame_address.
923
924         dup3 for GNU Hurd.
925         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
926         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
927         implement dup3 and do some further code clean-ups.
928         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
929         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
930
931 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
932
933         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
934
935         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
936         HURD_CRITICAL_END around holding _hurd_dtable_lock.
937         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
938         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
939         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
940         d->port.lock.
941
942         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
943         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
944         when handler == SIG_ERR, not when handler != SIG_ERR.
945
946 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
947
948         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
949         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
950         definitions.
951
952         accept4 for GNU Hurd.
953         * include/sys/socket.h (__libc_accept4): New prototype.
954         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
955         to implement __libc_accept4.
956         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
957         __libc_accept4.
958         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
959
960         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
961         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
962         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
963         signal-defines.sym.
964
965 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
966
967         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
968
969 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
970
971         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
972         assertion on O_CLOEXEC flag.
973         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
974         * hurd/intern-fd.c: Likewise.
975         * hurd/port2fd.c: Likewise.
976
977 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
978
979         [BZ #3906]
980         * bits/in.h (IPV6_PKTINFO): Define new macro.
981         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
982
983 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
984
985         [BZ #13954]
986         [BZ #13955]
987         [BZ #13956]
988         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
989         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
990         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
991         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
992         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
993         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
994         * math/libm-test.inc (logb_test) : Additional logb tests.
995
996 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
997             Andreas Jaeger  <aj@suse.de>
998
999         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
1000         * configure: Regenerated.
1001         * config.h.in (LINK_OBSOLETE_RPC): New macro.
1002         * config.make.in (link-obsolete-rpc): New substituted variable.
1003         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
1004         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
1005         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1006         (shared-only-routines): Don't set it under [link-obsolete-rpc],
1007         so that libc.a contains the symbols.
1008         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
1009         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
1010         * sunrpc/auth_none.c: Likewise.
1011         * sunrpc/auth_unix.c: Likewise.
1012         * sunrpc/authdes_prot.c: Likewise.
1013         * sunrpc/authuxprot.c: Likewise.
1014         * sunrpc/clnt_gen.c: Likewise.
1015         * sunrpc/clnt_perr.c: Likewise.
1016         * sunrpc/clnt_raw.c: Likewise.
1017         * sunrpc/clnt_simp.c: Likewise.
1018         * sunrpc/clnt_tcp.c: Likewise.
1019         * sunrpc/clnt_udp.c: Likewise.
1020         * sunrpc/clnt_unix.c: Likewise.
1021         * sunrpc/des_crypt.c: Likewise.
1022         * sunrpc/des_soft.c: Likewise.
1023         * sunrpc/get_myaddr.c: Likewise.
1024         * sunrpc/key_call.c: Likewise.
1025         * sunrpc/key_prot.c: Likewise.
1026         * sunrpc/netname.c: Likewise.
1027         * sunrpc/pm_getmaps.c: Likewise.
1028         * sunrpc/pm_getport.c: Likewise.
1029         * sunrpc/pmap_clnt.c: Likewise.
1030         * sunrpc/pmap_prot.c: Likewise.
1031         * sunrpc/pmap_prot2.c: Likewise.
1032         * sunrpc/pmap_rmt.c: Likewise.
1033         * sunrpc/publickey.c: Likewise.
1034         * sunrpc/rpc_cmsg.c: Likewise.
1035         * sunrpc/rpc_common.c: Likewise.
1036         * sunrpc/rpc_dtable.c: Likewise.
1037         * sunrpc/rpc_prot.c: Likewise.
1038         * sunrpc/rpc_thread.c: Likewise.
1039         * sunrpc/rtime.c: Likewise.
1040         * sunrpc/svc.c: Likewise.
1041         * sunrpc/svc_auth.c: Likewise.
1042         * sunrpc/svc_raw.c: Likewise.
1043         * sunrpc/svc_run.c: Likewise.
1044         * sunrpc/svc_tcp.c: Likewise.
1045         * sunrpc/svc_udp.c: Likewise.
1046         * sunrpc/svc_unix.c: Likewise.
1047         * sunrpc/svcauth_des.c: Likewise.
1048         * sunrpc/xcrypt.c: Likewise.
1049         * sunrpc/xdr.c: Likewise.
1050         * sunrpc/xdr_array.c: Likewise.
1051         * sunrpc/xdr_float.c: Likewise.
1052         * sunrpc/xdr_intXX_t.c: Likewise.
1053         * sunrpc/xdr_mem.c: Likewise.
1054         * sunrpc/xdr_rec.c: Likewise.
1055         * sunrpc/xdr_ref.c: Likewise.
1056         * sunrpc/xdr_sizeof.c: Likewise.
1057         * sunrpc/xdr_stdio.c: Likewise.
1058
1059 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1060
1061         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
1062         change.  Update copyright years.
1063
1064 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1065
1066         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
1067
1068 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
1069             Joseph Myers  <joseph@codesourcery.com>
1070             Paul Pluzhnikov  <ppluzhnikov@google.com>
1071
1072         [BZ #14012]
1073         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
1074         requiring rpcgen.
1075         [cross-compiling] (extra-libs): Likewise.
1076         [cross-compiling] (extra-libs-others): Likewise.
1077         [cross-compiling] (librpcsvc-routines): Likewise.
1078         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
1079         [cross-compiling] (omit-deps): Likewise.
1080         (sunrpc-CPPFLAGS): New variable.
1081         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
1082         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
1083         (cross-rpcgen-objs): New variable.
1084         (extra-objs): Append $(cross-rpcgen-objs).
1085         ($(cross-rpcgen-objs)): New rule.
1086         ($(objpfx)cross-rpcgen): Likewise.
1087         (rpcgen-cmd): Define to use $(built-program-file).  Expand
1088         comment.
1089         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
1090         ($(objpfx)x%.stmp): Likewise.
1091         * sunrpc/proto.h [IS_IN_build] (_): Define.
1092         [IS_IN_build] (_libc_intl_domainname): Likewise.
1093
1094 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1095
1096         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
1097         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
1098         and R_X86_64_TPOFF64.
1099
1100 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
1101
1102         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
1103         sysdeps/unix/sysv/syscalls.list.
1104         (stime): Likewise.
1105         (utime): Likewise.
1106         * sysdeps/unix/sysv/syscalls.list: Remove file.
1107
1108 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1109
1110         [BZ #3440]
1111         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
1112         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
1113         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
1114         (__LC_IDENTIFICATION): Make these macros useful in #if
1115         expressions, as required by C99.
1116
1117 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
1118
1119         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
1120         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
1121         after this.
1122
1123 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1124
1125         * stdlib/longlong.h: Updated from GCC.
1126
1127 2012-05-09  Andreas Jaeger  <aj@suse.de>
1128
1129         * nscd/nscd.c (run_modes): Make named enum, reorder so that
1130         default is first entry.
1131         (run_mode): Set type.
1132         (main): Remove informal message about syslog.
1133         (options): Fix typo.
1134
1135         [BZ #14053]
1136         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
1137         to asm.
1138         (lrint): Likewise.
1139         (llrintf): Likewise.
1140         (llrint): Likewise.
1141         (rint): Likewise.
1142         (rintf): Likewise.
1143         (nearbyint): Likewise.
1144         (nearbyintf): Likewise.
1145
1146 2012-05-09  Andreas Jaeger  <aj@suse.de>
1147             Pedro Alves  <palves@redhat.com>
1148
1149         * nscd/nscd.c (run_mode): Use enum.
1150         (main): Cleanup coding style issue.
1151
1152 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
1153             Andreas Jaeger  <aj@suse.de>
1154
1155         * nscd/nscd.c (go_background): Replaced with...
1156         (run_mode): ... this.
1157         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
1158         (options): Add -F --foreground.
1159         (main): Implement it.
1160         (parse_opt): Parse it.
1161
1162 2012-05-09  Andreas Jaeger  <aj@suse.de>
1163
1164         [BZ #14083]
1165         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
1166         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
1167         -Wconversion warning.
1168         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
1169         Likewise.
1170
1171 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
1172
1173         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
1174         == 0.
1175         (LC_ALL): Use macro-int-constant.
1176         (LC_COLLATE): Likewise.
1177         (LC_CTYPE): Likewise.
1178         (LC_MESSAGES): Likewise.
1179         (LC_MONETARY): Likewise.
1180         (LC_NUMERIC): Likewise.
1181         (LC_TIME): Likewise.
1182         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
1183         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1184         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1185         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
1186         Specify type.
1187         [C99-based standards] (float_t): Expect type.
1188         [C99-based standards] (double_t): Expect type.
1189         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
1190         type.
1191         [C99-based standards] (HUGE_VALL): Likewise.
1192         [C99-based standards] (INFINITY): Likewise.
1193         [C99-based standards] (NAN): Likewise.
1194         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
1195         [C99-based standards] (FP_NAN): Likewise.
1196         [C99-based standards] (FP_NORMAL): Likewise.
1197         [C99-based standards] (FP_SUBNORMAL): Likewise.
1198         [C99-based standards] (FP_ZERO): Likewise.
1199         [C99-based standards] (FP_FAST_FMA): Use
1200         optional-macro-int-constant.  Specify type.  Require == 1.
1201         [C99-based standards] (FP_FAST_FMAF): Likewise.
1202         [C99-based standards] (FP_FAST_FMAL): Likewise.
1203         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
1204         [C99-based standards] (FP_ILOGBNAN): Likewise.
1205         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
1206         Specify type.
1207         [C99-based standards] (MATH_ERREXCEPT): Likewise.
1208         [C99-based standards] (math_errhandling): Specify type.
1209         [ISO99 || ISO11] (signgam): Do not allow.
1210         [non-C99-based standards] (copysignf): Do not allow.
1211         [non-C99-based standards] (exp2f): Likewise.
1212         [non-C99-based standards] (log2f): Likewise.
1213         [non-C99-based standards] (modff): Allow.
1214         [non-C99-based standards] (erff): Do not allow.
1215         [non-C99-based standards] (erfcf): Likewise.
1216         [non-C99-based standards] (gammaf): Likewise.
1217         [non-C99-based standards] (hypotf): Likewise.
1218         [non-C99-based standards] (j0f): Likewise.
1219         [non-C99-based standards] (j1f): Likewise.
1220         [non-C99-based standards] (jnf): Likewise.
1221         [non-C99-based standards] (lgammaf): Likewise.
1222         [non-C99-based standards] (tgammaf): Likewise.
1223         [non-C99-based standards] (y0f): Likewise.
1224         [non-C99-based standards] (y1f): Likewise.
1225         [non-C99-based standards] (ynf): Likewise.
1226         [non-C99-based standards] (isnanf): Likewise.
1227         [non-C99-based standards] (acoshf): Likewise.
1228         [non-C99-based standards] (asinhf): Likewise.
1229         [non-C99-based standards] (atanhf): Likewise.
1230         [non-C99-based standards] (cbrtf): Likewise.
1231         [non-C99-based standards] (expm1f): Likewise.
1232         [non-C99-based standards] (ilogbf): Likewise.
1233         [non-C99-based standards] (log1pf): Likewise.
1234         [non-C99-based standards] (logbf): Likewise.
1235         [non-C99-based standards] (nextafterf): Likewise.
1236         [non-C99-based standards] (remainderf): Likewise.
1237         [non-C99-based standards] (rintf): Likewise.
1238         [non-C99-based standards] (scalbf): Likewise.
1239         [non-C99-based standards] (copysignl): Likewise.
1240         [non-C99-based standards] (exp2l): Likewise.
1241         [non-C99-based standards] (log2l): Likewise.
1242         [non-C99-based standards] (modfl): Allow.
1243         [non-C99-based standards] (erfl): Do not allow.
1244         [non-C99-based standards] (erfcl): Likewise.
1245         [non-C99-based standards] (gammal): Likewise.
1246         [non-C99-based standards] (hypotl): Likewise.
1247         [non-C99-based standards] (j0l): Likewise.
1248         [non-C99-based standards] (j1l): Likewise.
1249         [non-C99-based standards] (jnl): Likewise.
1250         [non-C99-based standards] (lgammal): Likewise.
1251         [non-C99-based standards] (tgammal): Likewise.
1252         [non-C99-based standards] (y0l): Likewise.
1253         [non-C99-based standards] (y1l): Likewise.
1254         [non-C99-based standards] (ynl): Likewise.
1255         [non-C99-based standards] (isnanl): Likewise.
1256         [non-C99-based standards] (acoshl): Likewise.
1257         [non-C99-based standards] (asinhl): Likewise.
1258         [non-C99-based standards] (atanhl): Likewise.
1259         [non-C99-based standards] (cbrtl): Likewise.
1260         [non-C99-based standards] (expm1l): Likewise.
1261         [non-C99-based standards] (ilogbl): Likewise.
1262         [non-C99-based standards] (log1pl): Likewise.
1263         [non-C99-based standards] (logbl): Likewise.
1264         [non-C99-based standards] (nextafterl): Likewise.
1265         [non-C99-based standards] (remainderl): Likewise.
1266         [non-C99-based standards] (rintl): Likewise.
1267         [non-C99-based standards] (scalbl): Likewise.
1268         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1269         [non-C99-based standards] (FP_*): Do not allow.
1270         [C99-based standards] (FP_*): Change to
1271         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
1272         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1273         allow.
1274         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
1275         (SIG_ERR): Likewise.
1276         [X/Open-based standards] (SIG_HOLD): Likewise.
1277         (SIG_IGN): Likewise.
1278         (SIGABRT): Use macro-int-constant.  Specify type.  Require
1279         positive value.
1280         (SIGFPE): Likewise.
1281         (SIGILL): Likewise.
1282         (SIGINT): Likewise.
1283         (SIGSEGV): Likewise.
1284         (SIGTER): Likewise.
1285         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
1286         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
1287         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
1288         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
1289         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
1290         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
1291         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
1292         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
1293         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
1294         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
1295         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
1296         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
1297         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
1298         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
1299         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
1300         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
1301         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
1302         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
1303         [X/Open-based standards] (SIGTRAP): Likewise.
1304         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
1305         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
1306         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
1307         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
1308         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1309         allow.
1310
1311 2012-05-08  Ian Wienand  <ianw@vmware.com>
1312
1313         [BZ #14080]
1314         * time/tzset.c (__tzset_parse_tz): Update default rules for
1315         daylight time changes in the Energy Policy Act of 2005.
1316
1317 2012-05-09  Andreas Jaeger  <aj@suse.de>
1318
1319         [BZ #13983]
1320         * elf/ldconfig.c (parse_conf): Change string to make clear that
1321         ldconfig only issued a warning if ld.so.conf does not exist.
1322
1323 2012-05-08  David S. Miller  <davem@davemloft.net>
1324
1325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
1326         movxtod instead of popping the value on the stack.
1327
1328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1329
1330 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
1331
1332         * config.h.in: Add HAVE_ARM_PCS_VFP.
1333
1334 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
1335
1336         [BZ #13979]
1337         * include/features.h: Warn if user requests __FORTIFY_SOURCE
1338         checking but the checks are disabled for any reason.
1339
1340 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1341
1342         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
1343         and ELF64_R_TYPE with ELFW(R_TYPE).
1344
1345 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
1346
1347         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
1348         (ulimit): Likewise.
1349
1350         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
1351         (settimeofday): Likewise.
1352
1353 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
1354
1355         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
1356         a struct th_u2 inside the union, and move tu_block/tu_code into
1357         a new th_u3 union of tu_block/tu_code inside of that.  Move
1358         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
1359         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
1360         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
1361         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
1362         (th_stuff): Change to th_u1.tu_stuff.
1363         (th_data): Define.
1364         (th_msg): Change to th_u1.th_u2.tu_data.
1365
1366 2012-05-07  David S. Miller  <davem@davemloft.net>
1367
1368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1369
1370         [BZ #14074]
1371         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
1372         (SETUP_PIC_REG): Use it.
1373         (SETUP_PIC_REG_LEAF): Use it.
1374
1375 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
1376
1377         [BZ #13885]
1378         [BZ #13923]
1379         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1380         USE_AS_EXPM1L.
1381         (EXPL_FINITE): Likewise.
1382         (FLDLOG): Likewise.
1383         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1384         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1385         e_expl.S.
1386         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1387         USE_AS_EXPM1L.
1388         (EXPL_FINITE): Likewise.
1389         (FLDLOG): Likewise.
1390         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
1391         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
1392         e_expl.S.
1393         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
1394         test of -max_value argument for long double.
1395         * sysdeps/i386/fpu/libm-test-ulps: Update.
1396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1397
1398 2012-05-06  David S. Miller  <davem@davemloft.net>
1399
1400         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
1401         quad soft-float symbols whose references which are compiler
1402         generated.
1403         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1404
1405 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
1406
1407         [BZ #13884]
1408         [BZ #13914]
1409         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1410         USE_AS_EXP10L.
1411         (EXPL_FINITE): Likewise.
1412         (FLDLOG): Likewise.
1413         (c0): Likewise.
1414         (c1): Likewise.
1415         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1416         Adjust comments for base varying.
1417         (__expl_finite): Change alias to EXPL_FINITE.
1418         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
1419         e_expl.S.
1420         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
1421         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
1422         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1423         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
1424         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
1425         USE_AS_EXP10L.
1426         (EXPL_FINITE): Likewise.
1427         (FLDLOG): Likewise.
1428         (c0): Likewise.
1429         (c1): Likewise.
1430         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
1431         Adjust comments for base varying.
1432         (__expl_finite): Change alias to EXPL_FINITE.
1433         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
1434         tests for bugs.
1435         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1436
1437         [BZ #14064]
1438         * math/libm-test.inc (check_float_internal): Correct ulp
1439         calculation for subnormal expected results.
1440
1441 2012-05-06  Andreas Jaeger  <aj@suse.de>
1442
1443         * Makeconfig (+math-flags): New, set to -frounding-math.
1444         (+cflags): Add +math-flags so that all of glibc gets compiled with
1445         it.
1446
1447         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
1448
1449 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
1450
1451         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
1452         Disable one test.
1453
1454         [BZ #13787]
1455         [BZ #13922]
1456         [BZ #14036]
1457         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
1458         (__ieee754_expl): Allow for and saturate large arguments.
1459         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
1460         (u_threshold): Likewise.
1461         (__exp): Call __ieee754_exp before checking for overflow and
1462         underflow.
1463         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
1464         (u_threshold): Likewise.
1465         (__expf): Call __ieee754_expf before checking for overflow and
1466         underflow.
1467         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
1468         (u_threshold): Likewise.
1469         (__expl): Call __ieee754_expl before checking for overflow and
1470         underflow.
1471         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
1472         (__ieee754_expl): Allow for and saturate large arguments.
1473         * math/libm-test.inc (exp_test): Add another test.  Do not allow
1474         missing overflow exception on overflow.
1475         (expm1_test): Do not allow missing overflow exception on overflow.
1476
1477         * sysdeps/i386/fpu/e_expl.c: Move to ...
1478         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
1479         rather than using inline asm.
1480         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
1481         * sysdeps/x86_64/fpu/e_expl.S: Copy from
1482         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
1483
1484         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
1485         (nice): Likewise.
1486         (poll): Likewise.
1487         (signal): Likewise.
1488         (time): Likewise.
1489         (times): Likewise.
1490
1491 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1492
1493         * sysdeps/unix/syscalls.list (adjtime): Add entry from
1494         sysdeps/unix/common/syscalls.list.
1495         (fchmod): Likewise.
1496         (fchown): Likewise.
1497         (ftruncate): Likewise.
1498         (getrusage): Likewise.
1499         (gettimeofday): Likewise.
1500         (setpgid): Likewise.
1501         (setregid): Likewise.
1502         (setreuid): Likewise.
1503         (sigaction): Likewise.
1504         (truncate): Likewise.
1505         (vhangup): Likewise.
1506         * sysdeps/unix/common/syscalls.list: Remove file.
1507         * sysdeps/unix/bsd/Implies: Don't include unix/common.
1508         * sysdeps/unix/sysv/linux/Implies: Likewise.
1509
1510 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1511
1512         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
1513         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
1514         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
1515         Moved to ...
1516         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1517         Here.
1518         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
1519         to ...
1520         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
1521         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
1522         to ...
1523         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
1524         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
1525         to ...
1526         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
1527         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
1528         to ...
1529         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
1530         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
1531         to ...
1532         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
1533         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
1534         to ...
1535         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
1536         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
1537         to ...
1538         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
1539         Here.
1540         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
1541         to ...
1542         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
1543         Here.
1544         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
1545         to ...
1546         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
1547         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
1548         Moved to ...
1549         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
1550         Here.
1551         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
1552         to ...
1553         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
1554
1555 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1556
1557         * sysdeps/unix/common/bits/dirent.h: Remove file.
1558         * sysdeps/unix/common/bits/fcntl.h: Likewise.
1559
1560         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
1561         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
1562         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
1563         * sysdeps/unix/bsd/isatty.c: Likewise.
1564         * sysdeps/unix/bsd/tcdrain.c: Likewise.
1565         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
1566         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
1567
1568 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1569
1570         [BZ #13563]
1571         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
1572         long double comparison inaccuracies.
1573         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
1574         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1575
1576 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
1577
1578         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
1579         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
1580
1581 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
1582
1583         [BZ #14049]
1584         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
1585         nonzero digits before rounding a hex value.
1586         * stdlib/tst-strtod.c (tests): Add another test.
1587
1588 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1589
1590         * sysdeps/s390/fpu/libm-test-ulps: Update.
1591
1592 2012-05-03  Andreas Jaeger  <aj@suse.de>
1593
1594         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
1595         does not get optimized out.
1596         (malloc_opt_barrier): New.
1597
1598 2012-05-03  Andreas Jaeger  <aj@suse.de>
1599             Roland McGrath  <roland@hack.frob.com>
1600
1601         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
1602         intermediate file deletion.
1603         (generated): Add .symlist files.
1604
1605 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
1606
1607         [BZ #13775]
1608         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
1609         Redirect under this condition.
1610         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
1611         [__USE_GNU] (__dprintf_chk): Not under this condition.
1612         [__USE_GNU] (__vdprintf_chk): Likewise.
1613         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
1614         under this condition.
1615         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
1616         [__USE_XOPEN2K8] (dprintf): Define under this condition.
1617         [__USE_XOPEN2K8] (vdprintf): Likewise.
1618         [__USE_GNU] (__dprintf_chk): Not under this condition.
1619         [__USE_GNU] (__vdprintf_chk): Likewise.
1620         [__USE_GNU] (dprintf): Likewise.
1621         [__USE_GNU] (vdprintf): Likewise.
1622
1623 2012-05-03  Roland McGrath  <roland@hack.frob.com>
1624
1625         * elf/Makefile (common-generated): Set this instead of generated for
1626         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
1627         $(all-built-dso)-derived lists.
1628
1629 2012-05-03  Andreas Jaeger  <aj@suse.de>
1630
1631         * sysdeps/i386/fpu/libm-test-ulps: Update.
1632
1633         * FAQ: Removed.
1634         * FAQ.in: Likewise.
1635         * scripts/gen-FAQ.pl: Likewise.
1636         * manual/install.texi (Installation): Point to online location of
1637         FAQ.
1638         * Makefile (files-for-dist): Remove FAQ.
1639         (FAQ): Remove.
1640
1641 2012-05-02  Allan McRae  <allan@archlinux.org>
1642
1643         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
1644         (LDFLAGS-reldepmod5.so): Likewise.
1645         (LDFLAGS-reldep6mod1.so): Likewise.
1646         (LDFLAGS-reldep6mod4.so): Likewise.
1647         (LDFLAGS-reldep8mod3.so): Likewise.
1648         (LDFLAGS-unload4mod1.so): Likewise.
1649         (LDFLAGS-unload4mod2.so): Likewise.
1650         (LDFLAGS-tst-initorder): Likewise.
1651         (LDFLAGS-tst-initordera2.so): Likewise.
1652         (LDFLAGS-tst-initordera3.so): Likewise.
1653         (LDFLAGS-tst-initordera4.so): Likewise.
1654         (LDFLAGS-tst-initorderb2.so): Likewise.
1655         (LDFLAGS-noload): Likewise.
1656         (LDFLAGS-next): Likewise.
1657         (LDFLAGS-order2mod1.so): Likewise.
1658         (LDFLAGS-order2mod2.so): Likewise.
1659         (LDFLAGS-tst-initorder2): Likewise.
1660         (LDFLAGS-tst-initorder2a.so): Likewise.
1661         (LDFLAGS-tst-initorder2b.so): Likewise.
1662         (LDFLAGS-tst-initorder2c.so): Likewise.
1663         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
1664
1665 2012-05-02  David S. Miller  <davem@davemloft.net>
1666
1667         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1668
1669 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
1670
1671         [BZ #14055]
1672         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
1673
1674 2012-05-02  Andreas Jaeger  <aj@suse.de>
1675
1676         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
1677         since we manipulate rounding mode.
1678         (CPPFLAGS-test-idouble.c): Likewise.
1679         (CPPFLAGS-test-ifloat.c): Likewise.
1680         (CFLAGS-test-ldouble.c): Likewise.
1681         (CFLAGS-test-double.c): Likewise.
1682         (CFLAGS-test-float.c): Likewise.
1683         (CFLAGS-test-misc.c): Likewise.
1684         (CFLAGS-test-test-fenv.c): Likewise.
1685
1686 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1687
1688         [BZ #2550]
1689         [BZ #2570]
1690         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
1691         comparisons to determine direction to adjust input.
1692
1693 2012-05-01  Roland McGrath  <roland@hack.frob.com>
1694
1695         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
1696         output to the target.
1697
1698         * scripts/localplt.awk: New file.
1699         * elf/Makefile ($(objpfx)check-localplt): Target removed.
1700         (check-localplt-CFLAGS): Variable removed.
1701         ($(all-built-dso:=.jmprel)): New static pattern rule.
1702         (generated): Add those targets.
1703         (localplt-built-dso): New variable.
1704         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
1705
1706         * elf/check-localplt.c: File removed.
1707
1708         * scripts/check-execstack.awk: New file.
1709         * elf/Makefile ($(objpfx)check-execstack): Target removed.
1710         (check-execstack-CFLAGS): Variable removed.
1711         ($(objpfx)check-execstack.h): Target removed.
1712         ($(objpfx)execstack-default): New target.
1713         (generated): Add that instead of check-execstack.h.
1714         ($(all-built-dso:=.phdr)): New static pattern rule.
1715         (generated): Add those targets.
1716         * elf/check-execstack.c: File removed.
1717
1718         * scripts/check-textrel.awk: New file.
1719         * elf/Makefile ($(objpfx)check-textrel): Target removed.
1720         (check-textrel-CFLAGS): Variable removed.
1721         (all-built-dso): Use := to define.o
1722         ($(all-built-dso:=.dyn)): New static pattern rule.
1723         (generated): Add those targets.
1724         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
1725         * config.make.in (READELF): New substituted variable.
1726         * elf/check-textrel.c: File removed.
1727
1728 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
1729
1730         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
1731         allow.
1732         * conform/data/ctype.h-data [C99-based standards] (isblank):
1733         Expect function.
1734         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
1735         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
1736         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1737         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
1738         Specify type.  Require positive value.
1739         (EILSEQ): Likewise.
1740         (ERANGE): Likewise.
1741         [ISO || POSIX] (EILSEQ): Do not expect.
1742         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
1743         Specify type.  Require positive value.
1744         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
1745         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
1746         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
1747         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
1748         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
1749         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
1750         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
1751         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
1752         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
1753         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
1754         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
1755         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
1756         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
1757         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
1758         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
1759         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
1760         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
1761         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
1762         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
1763         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
1764         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
1765         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
1766         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
1767         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
1768         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
1769         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
1770         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
1771         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
1772         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
1773         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
1774         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
1775         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
1776         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
1777         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
1778         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
1779         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
1780         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
1781         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
1782         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
1783         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
1784         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
1785         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
1786         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
1787         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
1788         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
1789         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
1790         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
1791         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
1792         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
1793         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
1794         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
1795         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
1796         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
1797         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
1798         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
1799         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
1800         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
1801         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
1802         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
1803         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
1804         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
1805         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
1806         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
1807         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
1808         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
1809         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
1810         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
1811         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
1812         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
1813         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
1814         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
1815         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
1816         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
1817         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
1818         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
1819         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
1820         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
1821         Require >= 2.
1822         (FLT_ROUNDS): Expect as macro, not constant.
1823         (FLT_MANT_DIG): Use macro-int-constant.
1824         (DBL_MANT_DIG): Likewise.
1825         (LDBL_MANT_DIG): Likewise.
1826         (FLT_DIG): Likewise.
1827         (DBL_DIG): Likewise.
1828         (LDBL_DIG): Likewise.
1829         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
1830         (DBL_MIN_EXP): Likewise.
1831         (LDBL_MIN_EXP): Likewise.
1832         (FLT_MAX_EXP): Use macro-int-constant.
1833         (DBL_MAX_EXP): Likewise.
1834         (LDBL_MAX_EXP): Likewise.
1835         (FLT_MAX_10_EXP): Likewise.
1836         (DBL_MAX_10_EXP): Likewise.
1837         (LDBL_MAX_10_EXP): Likewise.
1838         (FLT_MAX): Use macro-constant.
1839         (DBL_MAX): Likewise.
1840         (LDBL_MAX): Likewise.
1841         (FLT_EPSILON): Use macro-constant.  Give upper bound.
1842         (DBL_EPSILON): Likewise.
1843         (LDBL_EPSILON): Likewise.
1844         (FLT_MIN): Likewise.
1845         (DBL_MIN): Likewise.
1846         (LDBL_MIN): Likewise.
1847         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
1848         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
1849         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
1850         [ISO11] (FLT_HAS_SUBNORM): Likewise.
1851         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
1852         [ISO11] (DBL_DECIMAL_DIG): Likewise.
1853         [ISO11] (FLT_DECIMAL_DIG): Likewise.
1854         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
1855         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
1856         [ISO11] (FLT_TRUE_MIN): Likewise.
1857         [ISO11] (LDBL_TRUE_MIN): Likewise.
1858         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1859         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
1860         (SCHAR_MIN): Use macro-int-constant.  Specify type.
1861         (SCHAR_MAX): Likewise.
1862         (UCHAR_MAX): Likewise.
1863         (CHAR_MIN): Likewise.
1864         (CHAR_MAX): Likewise.
1865         (MB_LEN_MAX): Use macro-int-constant.
1866         (SHRT_MIN): Use macro-int-constant.  Specify type.
1867         (SHRT_MAX): Likewise.
1868         (USHRT_MAX): Likewise.
1869         (INT_MAX): Likewise.
1870         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
1871         bound negative.
1872         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1873         bound with "U".
1874         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1875         bound with "L".
1876         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
1877         bound negative.  Suffix upper bound with "L".
1878         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
1879         bound with "UL".
1880         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
1881         Specify type.
1882         [C99-based standards] (LLONG_MAX): Likewise.
1883         [C99-based standards] (ULLONG_MAX): Likewise.
1884         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
1885         == 0.
1886         [ISO11] (max_align_t): Require type.
1887         [ISO || ISO99 || ISO11] (*_t): Do not allow.
1888
1889         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
1890         from $CFLAGS, without defining away __attribute__ calls.
1891         (checknamespace): Use $CFLAGS_namespace.
1892
1893         * conform/conformtest.pl (@keywords): Only include C99 keywords
1894         for standards based on C99 or C11.
1895
1896         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
1897         Disable tests.
1898         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
1899         UNIX98]: Likewise.
1900
1901         * conform/conformtest.pl: Handle "macro-int-constant" and test for
1902         usability of symbols in #if.
1903
1904         * conform/conformtest.pl: If macro or constant types start
1905         "promoted:", expect the symbol to be of the following type
1906         promoted by the integer promotions.
1907
1908         * conform/conformtest.pl: Parse all "constant" and "macro" lines
1909         in one place.  Also handle "macro-constant".
1910
1911         * conform/conformtest.pl: Only accept expected macro values with
1912         "==".  Parse all "macro" lines in one place.
1913         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
1914
1915         * conform/conformtest.pl: Handle braced types on "constant" lines
1916         instead of handling "typed-constant".
1917         * conform/data/signal.h-data: Use "constant" instead of
1918         "typed-constant".
1919
1920         * conform/conformtest.pl: Handle "optional-" at start of lines in
1921         one place rather than duplicating several cases.  Handle each
1922         format of "macro" line with initial "optional-".
1923
1924         * conform/conformtest.pl: Only accept expected constant or
1925         optional-constant values with "==".  Parse all "constant" lines in
1926         one place.  Parse all "optional-constant" lines in one place.
1927         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
1928         * conform/data/fmtmsg.h-data: Likewise.
1929         * conform/data/netinet/in.h-data: Likewise.
1930         * conform/data/tar.h-data: Likewise.
1931         * conform/data/limits.h-data: Use "==" form on "constant" and
1932         "optional-constant" lines.
1933
1934         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
1935         Use -std=c99 for XOPEN2K.
1936         (@knownproblems): Remove.
1937         (newtoken): Don't check %isknown.
1938
1939         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
1940         Do not expect macro.
1941         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
1942         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
1943         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
1944         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
1945         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
1946         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
1947         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
1948         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
1949         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
1950         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
1951         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
1952         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
1953         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
1954         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
1955         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
1956         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
1957         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
1958         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
1959         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
1960         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
1961         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
1962         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
1963         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
1964         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
1965         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
1966         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
1967         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
1968         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
1969         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
1970         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
1971         [XPG3] (acosh): Likewise.
1972         [XPG3] (asinh): Likewise.
1973         [XPG3] (atanh): Likewise.
1974         [XPG3] (cbrt): Likewise.
1975         [XPG3] (expm1): Likewise.
1976         [XPG3] (ilogb): Likewise.
1977         [XPG3] (log1p): Likewise.
1978         [XPG3] (logb): Likewise.
1979         [XPG3] (nextafter): Likewise.
1980         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
1981         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
1982         [XPG3] (remainder): Likewise.
1983         [XPG3] (rint): Likewise.
1984         [XPG3 || XPG4 || UNIX98] (round): Likewise.
1985         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
1986         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
1987         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
1988         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
1989         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
1990         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
1991         [UNIX98 || XOPEN2K] (scalb): Expect.
1992         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
1993         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
1994         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
1995         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
1996         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
1997         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
1998         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
1999         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
2000         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
2001         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
2002         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
2003         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
2004         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
2005         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
2006         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
2007         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
2008         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
2009         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
2010         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
2011         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
2012         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
2013         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
2014         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
2015         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
2016         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
2017         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
2018         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
2019         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
2020         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
2021         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
2022         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
2023         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
2024         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
2025         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
2026         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
2027         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
2028         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
2029         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
2030         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
2031         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
2032         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
2033         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
2034         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
2035         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
2036         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
2037         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
2038         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
2039         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
2040         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
2041         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
2042         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
2043         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
2044         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
2045         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
2046         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
2047         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
2048         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
2049         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
2050         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
2051         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
2052         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
2053         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
2054         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
2055         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
2056         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
2057         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
2058         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
2059         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
2060         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
2061         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
2062         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
2063         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
2064         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
2065         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
2066         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
2067         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
2068         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
2069         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
2070         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
2071         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
2072         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
2073         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
2074         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
2075         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
2076         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
2077         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
2078         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
2079         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
2080         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
2081         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
2082         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
2083         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
2084         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
2085         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
2086         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
2087         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
2088         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
2089         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
2090         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
2091         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
2092         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
2093         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
2094         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
2095         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
2096         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
2097         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
2098         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
2099         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
2100         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
2101         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
2102         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
2103         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
2104         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
2105         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
2106         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
2107         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
2108         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
2109         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
2110         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
2111         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
2112         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
2113         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
2114         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
2115         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
2116         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
2117         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
2118         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
2119         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
2120         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
2121         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
2122         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
2123         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
2124         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
2125         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
2126         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
2127         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
2128         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
2129
2130         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
2131         _XOPEN_SOURCE_EXTENDED for XPG4.
2132
2133         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
2134
2135         * Makeconfig (localtime): Remove variable.
2136         (inst_localtime-file): Likewise.
2137
2138 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2139
2140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
2141         Update.
2142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2143         Update.
2144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
2145         Update.
2146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2147         Update.
2148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
2149         Update.
2150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
2151         Update.
2152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2153         Update.
2154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
2155         Update.
2156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2157         Update.
2158
2159 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2160
2161         [BZ #2550]
2162         [BZ #2570]
2163         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
2164         comparisons to determine direction to adjust input.
2165         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2166         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
2167         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
2168         Likewise.
2169         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
2170         Likewise.
2171         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2172         Likewise.
2173         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2174         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
2175         Likewise.
2176         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
2177         Likewise.
2178         * math/libm-test.inc (nexttoward_test): Add more tests.
2179
2180 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2181
2182         [BZ #14040]
2183         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
2184         in version GLIBC_2.1, not GLIBC_2.0.
2185         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
2186         Likewise.
2187
2188 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
2189
2190         [BZ #13942]
2191         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
2192         (1 - x) * (1 + x).
2193         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2194         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
2195         * math/libm-test.inc (acos_test): Add more tests.
2196         (asin_test): Likewise.
2197         * sysdeps/i386/fpu/libm-test-ulps: Update.
2198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2199
2200         [BZ #14034]
2201         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
2202         of square root.
2203         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
2204         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
2205         * math/libm-test.inc (acos_test_tonearest): New function.
2206         (acos_test_towardzero): Likewise.
2207         (acos_test_downward): Likewise.
2208         (acos_test_upward): Likewise.
2209         (asin_test_tonearest): Likewise.
2210         (asin_test_towardzero): Likewise.
2211         (asin_test_downward): Likewise.
2212         (asin_test_upward): Likewise.
2213         (main): Call the new functions.
2214         * sysdeps/i386/fpu/libm-test-ulps: Update.
2215         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2216
2217         [BZ #13884]
2218         [BZ #13924]
2219         * math/e_exp10.c: Include <float.h>.
2220         (__ieee754_exp10): Handle underflow here rather than multiplying
2221         large negative argument by M_LN10.
2222         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
2223         of __ieee754_expf.
2224         * math/e_exp10l.c: Include <float.h>.
2225         (__ieee754_exp10l): Handle underflow here rather than multiplying
2226         large negative argument by M_LN10l.
2227         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
2228         spurious overflow exception on underflow.
2229
2230 2012-04-29  Marek Polacek  <polacek@redhat.com>
2231
2232         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
2233         (__fortify_function): New macro.
2234         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
2235         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
2236         __extern_always_inline.
2237         * libio/bits/stdio2.h: Likewise.
2238         * libio/bits/stdio.h: Likewise.
2239         * string/string.h: Likewise.
2240         * string/bits/string3.h: Likewise.
2241         * include/stdio.h: Likewise.
2242         * stdlib/bits/stdlib.h: Likewise.
2243         * stdlib/stdlib.h: Likewise.
2244         * rt/bits/mqueue2.h: Likewise.
2245         * rt/mqueue.h: Likewise.
2246         * posix/bits/unistd.h: Likewise.
2247         * posix/unistd.h: Likewise.
2248         * io/bits/poll2.h: Likewise.
2249         * io/bits/fcntl2.h: Likewise.
2250         * io/fcntl.h: Likewise.
2251         * io/sys/poll.h: Likewise.
2252         * misc/bits/syslog.h: Likewise.
2253         * misc/bits/syslog-ldbl.h: Likewise.
2254         * misc/sys/syslog.h: Likewise.
2255         * socket/bits/socket2.h: Likewise.
2256         * socket/sys/socket.h: Likewise.
2257         * debug/tst-chk1.c: Likewise.
2258         * wcsmbs/bits/wchar2.h: Likewise.
2259         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2260         * wcsmbs/wchar.h: Likewise.
2261
2262 2012-04-29  Andreas Jaeger  <aj@suse.de>
2263
2264         * Makerules (tests): Remove enable-check-abi protection.
2265         (check-abi-warn): Remove.
2266         (check-abi-%): Remove check-abi-warn usage.
2267
2268         * configure.in: Remove check-abi configure option.
2269         * configure: Regenerated.
2270         * config.make.in (enable-check-abi): Remove.
2271
2272 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
2273
2274         [BZ #14033]
2275         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
2276         double functions to double *_finite functions.
2277
2278         [BZ #13941]
2279         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
2280         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
2281         LDBL_MIN_EXP.
2282         * stdio-common/Makefile (tests): Add tst-sprintf3.
2283         * stdio-common/tst-sprintf3.c: New file.
2284
2285         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
2286         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
2287
2288 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2289
2290         * conform/conformtest.pl: Remove duplicate typed-constant
2291         handling.
2292
2293 2012-04-28  David S. Miller  <davem@davemloft.net>
2294
2295         * Makerules (%.abilist): Add vpath on sysdep_dirs.
2296         (check-abi-%): Remove AWK script prerequisite and explicit
2297         abilist directory.
2298         (check-abi): Rewrite to just diff the symlist with the abilist.
2299         (config-tls, config-abi-config): Delete, no longer used.
2300         (update-abi-%): Remove AWK script and explicit abilist directory.
2301         (update-abi): Rewrite to simply compare and conditionally copy the
2302         symlist and the sysdep abilist file.  Remove update-abi-config
2303         checks.
2304         * abilist/ld.abilist: Remove.
2305         * abilist/libBrokenLocale.abilist: Remove.
2306         * abilist/libanl.abilist: Remove.
2307         * abilist/libcrypt.abilist: Remove.
2308         * abilist/libdl.abilist: Remove.
2309         * abilist/librt.abilist: Remove.
2310         * abilist/libthread_db.abilist: Remove.
2311         * abilist/libutil.abilist: Remove.
2312         * scripts/extract-abilist.awk: Remove.
2313         * scripts/merge-abilist.awk: Remove.
2314         * sysdeps/generic/libcidn.abilist: New file.
2315         * sysdeps/generic/libnss_compat.abilist: New file.
2316         * sysdeps/generic/libnss_db.abilist: New file.
2317         * sysdeps/generic/libnss_dns.abilist: New file.
2318         * sysdeps/generic/libnss_files.abilist: New file.
2319         * sysdeps/generic/libnss_hesiod.abilist: New file.
2320         * sysdeps/generic/libnss_nis.abilist: New file.
2321         * sysdeps/generic/libnss_nisplus.abilist: New file.
2322         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
2323         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
2324         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
2325         file.
2326         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
2327         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
2328         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
2329         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
2330         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
2331         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
2332         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
2333         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
2334         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
2335         file.
2336         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
2337         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
2338         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
2339         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
2340         file.
2341         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
2342         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
2343         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
2344         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
2345         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
2346         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
2347         file.
2348         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
2349         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
2350         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
2351         file.
2352         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
2353         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
2354         New file.
2355         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
2356         New file.
2357         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
2358         New file.
2359         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
2360         New file.
2361         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
2362         New file.
2363         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
2364         New file.
2365         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
2366         New file.
2367         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
2368         New file.
2369         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
2370         New file.
2371         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
2372         New file.
2373         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
2374         New file.
2375         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
2376         New file.
2377         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
2378         New file.
2379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
2380         file.
2381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
2382         New file.
2383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
2384         New file.
2385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
2386         file.
2387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
2388         New file.
2389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
2390         New file.
2391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
2392         file.
2393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
2394         New file.
2395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2396         New file.
2397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
2398         New file.
2399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
2400         New file.
2401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
2402         New file.
2403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
2404         New file.
2405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
2406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
2407         file.
2408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
2409         New file.
2410         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
2411         file.
2412         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
2413         file.
2414         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
2415         file.
2416         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
2417         file.
2418         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
2419         file.
2420         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2421         New file.
2422         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
2423         file.
2424         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
2425         file.
2426         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
2427         New file.
2428         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
2429         file.
2430         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
2431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
2432         file.
2433         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
2434         New file.
2435         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
2436         file.
2437         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
2438         file.
2439         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
2440         file.
2441         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
2442         file.
2443         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
2444         file.
2445         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2446         New file.
2447         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
2448         file.
2449         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
2450         file.
2451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
2452         New file.
2453         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
2454         file.
2455         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2456         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
2457         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
2458         file.
2459         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
2460         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
2461         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
2462         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
2463         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
2464         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
2465         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
2466         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
2467         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
2468         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
2469         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
2470         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
2471         file.
2472         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
2473         New file.
2474         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
2475         file.
2476         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
2477         file.
2478         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
2479         file.
2480         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
2481         file.
2482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
2483         file.
2484         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2485         New file.
2486         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
2487         New file.
2488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
2489         file.
2490         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
2491         New file.
2492         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
2493         file.
2494         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
2495         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
2496         file.
2497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
2498         New file.
2499         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
2500         file.
2501         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
2502         file.
2503         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
2504         file.
2505         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
2506         file.
2507         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
2508         file.
2509         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2510         New file.
2511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
2512         New file.
2513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
2514         file.
2515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
2516         New file.
2517         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
2518         file.
2519
2520 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
2521
2522         * conform/conformtest.pl: Fix typo in handling typed-constant from
2523         allow-header.
2524
2525 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2526
2527         * README: Cut down references to pre-2.6 Linux kernels and
2528         Linuxthreads.  Update lists of configurations in libc and ports
2529         and sort alphabetically.  Say "or newer" with Linux kernel version
2530         requirements.
2531
2532         * config.h.in [IS_IN_build]: Allow compiling without optimization.
2533
2534 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2535
2536         [BZ #887]
2537         * math/libm-test.inc (logb_test_downward): New test to expose
2538         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
2539         rounding mode.
2540
2541 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
2542
2543         [BZ #14027]
2544         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
2545         to be done.
2546         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
2547         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
2548
2549 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
2550
2551         * sysdeps/unix/i386/brk.S: Remove file.
2552         * sysdeps/unix/i386/dl-brk.S: Likewise.
2553         * sysdeps/unix/i386/pipe.S: Likewise.
2554         * sysdeps/unix/i386/sigreturn.S: Likewise.
2555         * sysdeps/unix/i386/syscall.S: Likewise.
2556         * sysdeps/unix/i386/vfork.S: Likewise.
2557         * sysdeps/unix/i386/wait.S: Likewise.
2558
2559         * sysdeps/unix/common/tcsendbrk.c: Move to ...
2560         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
2561
2562         * configure.in (arm*-none*): Do not allow without
2563         --enable-hacker-mode.
2564         (netbsd*): Remove case setting base_os.
2565         (386bsd*): Likewise.
2566         (freebsd*): Likewise.
2567         (bsdi*): Likewise.
2568         (osf*): Likewise.
2569         (sunos*): Likewise.
2570         (ultrix*): Likewise.
2571         (newsos*): Likewise.
2572         (dynix*): Likewise.
2573         (*bsd*): Likewise.
2574         (sysv*): Likewise.
2575         (isc*): Likewise.
2576         (esix*): Likewise.
2577         (sco*): Likewise.
2578         (minix*): Likewise.
2579         (irix4*): Likewise.
2580         (irix6*): Likewise.
2581         (solaris[2-9]*): Likewise.
2582         (none): Likewise.
2583         * configure: Regenerated.
2584
2585 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2586
2587         [BZ #11521]
2588         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
2589         overflow or cancellation in calculating denominator.
2590         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
2591         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
2592         down expression to avoid unexpected rounding in newer GCCs.
2593         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
2594
2595 2012-04-26  David S. Miller  <davem@davemloft.net>
2596
2597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
2598         long-double compat symbols.
2599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
2601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
2602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
2603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
2604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
2605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
2606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
2607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
2608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
2609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
2610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
2611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
2612
2613 2012-04-25  David S. Miller  <davem@davemloft.net>
2614
2615         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
2616         HWCAP_* values only after the memory barriers have been defined.
2617         (atomic_full_barrier): Define.
2618         (atomic_read_barrier): Define.
2619         (atomic_write_barrier): Define.
2620
2621 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2622
2623         * shlib-versions: Add libgcc_s version information.
2624         * sysdeps/generic/libgcc_s.h: Remove.
2625         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
2626         libgcc_s.h.
2627         * sysdeps/gnu/unwind-resume.c: Likewise.
2628         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
2629
2630 2012-04-25  David S. Miller  <davem@davemloft.net>
2631
2632         * sysdeps/unix/sparc/brk.S: Delete.
2633         * sysdeps/unix/sparc/dl-brk.S: Delete.
2634         * sysdeps/unix/sparc/pipe.S: Delete.
2635         * sysdeps/unix/sparc/sysdep.S: Delete.
2636         * sysdeps/unix/sparc/sysdep.h: Delete.
2637         * sysdeps/unix/sparc/vfork.S: Delete.
2638         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
2639         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
2640         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
2641         ret_ERRVAL, r0, r1, MOVE): Define.
2642         (JUMPTARGET): Remove.
2643         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
2644         sysdeps/unix/sparc/sysdep.h
2645         (ENTRY, END): Remove.
2646         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2647
2648 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
2649
2650         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
2651         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
2652         -DIS_IN_build.
2653
2654         * timezone/README: Update upstream location and email address for
2655         tzcode and tzdata.
2656         * timezone/zdump.c: Update from tzcode 2012b.
2657         * timezone/zic.c: Likewise.
2658
2659         * configure.in (libc_cv_as_needed): Remove test.
2660         * configure: Regenerated.
2661         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
2662         conditional definition.
2663         [$(have-as-needed) != yes] (no-as-needed): Likewise.
2664         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
2665         * config.make.in (have-as-needed): Remove variable.
2666
2667 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2668             Paul Pluzhnikov  <ppluzhnikov@google.com>
2669
2670         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
2671         strings correctly.
2672
2673 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2674
2675         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
2676         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
2677         * sysdeps/sh/strlen.S: Likewise.
2678
2679 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2680
2681         * sysdeps/unix/fork.S: Remove file.
2682         * sysdeps/unix/i386/fork.S: Likewise.
2683         * sysdeps/unix/sparc/fork.S: Likewise.
2684
2685         * sysdeps/unix/system.c: Remove file.
2686         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
2687
2688         * sysdeps/unix/getegid.S: Remove file.
2689         * sysdeps/unix/geteuid.S: Likewise.
2690
2691 2012-04-24  Roland McGrath  <roland@hack.frob.com>
2692
2693         * scripts/check-localplt.awk: New file.
2694         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
2695         of diff.
2696         * scripts/data/localplt-generic.data: Add a comment.
2697
2698         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
2699         NODE when __dir_mkfile failed.
2700         * sysdeps/mach/hurd/symlinkat.c: Likewise.
2701         Reported by Ludovic Courtès <ludo@gnu.org>.
2702
2703 2012-04-24  Andreas Jaeger  <aj@suse.de>
2704
2705         * Makerules (common-clean): Also remove gen-as-const-headers
2706         files.
2707
2708 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2709
2710         * Makerules (native-compile): Do not change working directory for
2711         build.  Use $(OUTPUT_OPTION) in command.
2712         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
2713
2714 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2715
2716         [BZ #13886]
2717         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
2718         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
2719         * math/libm-test.inc (floor_test): Add more tests.
2720         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
2721
2722 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
2723
2724         * sysdeps/unix/getdents.c: Remove file.
2725         * sysdeps/unix/sysv/getdents.c: Likewise.
2726         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
2727
2728         * sysdeps/unix/syscalls.list (madvise): Add syscall from
2729         sysdeps/unix/mman/syscalls.list.
2730         (mmap): Likewise.
2731         (mprotect): Likewise.
2732         (msync): Likewise.
2733         (munmap): Likewise.
2734         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
2735         * sysdeps/unix/mman/syscalls.list: Remove.
2736         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
2737
2738         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
2739         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
2740         * configure: Regenerated.
2741         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
2742         $(libgcc_s_suffix).
2743         * config.make.in (libgcc_s_suffix): Remove variable.
2744
2745 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
2746
2747         * sysdeps/unix/sysv/gethostname.c: Move to ...
2748         * sysdeps/posix/gethostname.c: ... here.
2749
2750         * sysdeps/unix/execve.S: Remove file.
2751
2752         * sysdeps/unix/_exit.S: Remove file.
2753
2754 2012-04-23  Andreas Jaeger  <aj@suse.de>
2755
2756         [BZ #13739]
2757         * manual/Makefile: Remove make dist support, there's no
2758         need for a stand-alone documentation tar ball.
2759         (TEXI2DVI): Define always, it's not in Makeconfig.
2760         (dist): Removed.
2761         (tar-it): Removed.
2762         (edition): Removed.
2763         (glibc-doc-$(edition).tar): Removed
2764         (%.Z): Removed.
2765         (%.gz): Removed.
2766         (%.uu): Removed.
2767         (ETAGS): Remove, it's in Makeconfig.
2768         (move-if-change): Remove, it's in Makeconfig.
2769
2770 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
2771
2772         [BZ #13970]
2773         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
2774         (strtod, strtof, strtold, strtol, strtoul, strtoq)
2775         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
2776         (strtod_l, strtof_l, strtold_l): Remove __wur.
2777         It is not necessarily an error to ignore strtol's return value.
2778         One can reliably look at the stored endptr to decide whether
2779         the number had valid syntax.
2780
2781 2012-04-21  Andreas Jaeger  <aj@suse.de>
2782
2783         [BZ #13739]
2784         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
2785
2786 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
2787
2788         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
2789         * sysdeps/unix/sysv/Versions: Remove file.
2790
2791 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2792
2793         [BZ #13927]
2794         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2795
2796 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
2797
2798         [BZ #7064]
2799         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
2800         version from __vm86.
2801
2802 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
2803
2804         * sysdeps/unix/common/lxstat.c: Remove file.
2805         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
2806
2807         * sysdeps/unix/sysv/Makefile: Remove file.
2808
2809         * sysdeps/unix/sysv/direct.h: Remove file.
2810
2811         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
2812         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
2813         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
2814         * sysdeps/unix/sysv/bits/signum.h: Likewise.
2815         * sysdeps/unix/sysv/bits/stat.h: Likewise.
2816         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
2817         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
2818
2819         * sysdeps/unix/sysv/setrlimit.c: Remove file.
2820
2821         * sysdeps/unix/xmknod.c: Remove file.
2822         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
2823
2824         * sysdeps/unix/sysv/settimeofday.c: Remove file.
2825
2826         * sysdeps/unix/sysv/i386/time.S: Remove file.
2827
2828         * sysdeps/unix/fxstat.c: Remove file.
2829         * sysdeps/unix/xstat.c: Likewise.
2830         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
2831
2832         * sysdeps/unix/sysv/sigaction.c: Remove file.
2833
2834         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
2835         (sysdep_headers): Remove variable.
2836         [termio.h not in sysdep_headers] (generated): Likewise.
2837         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
2838         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
2839         * sysdeps/unix/sysv/tcdrain.c: Likewise.
2840         * sysdeps/unix/sysv/tcflow.c: Likewise.
2841         * sysdeps/unix/sysv/tcflush.c: Likewise.
2842         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
2843         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
2844         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
2845         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
2846         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
2847
2848         * sysdeps/unix/siglist.c: Remove file.
2849
2850         * sysdeps/unix/getppid.S: Remove file.
2851
2852         * sysdeps/unix/mkdir.c: Remove file.
2853         * sysdeps/unix/rmdir.c: Likewise.
2854
2855 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
2856
2857         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
2858         ERR_MAX value.
2859         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
2860         errlist-compat value.
2861
2862 2012-04-18  David S. Miller  <davem@davemloft.net>
2863
2864         * sysdeps/generic/memcopy.h (reg_char): Delete.
2865         * debug/strcat_chk.c: Use char, not reg_char.
2866         * debug/strcpy_chk.c: Likewise.
2867         * debug/strncat_chk.c: Likewise.
2868         * debug/strncpy_chk.c: Likewise.
2869         * string/memchr.c: Likewise.
2870         * string/memrchr.c: Likewise.
2871         * string/rawmemchr.c: Likewise.
2872         * string/strcat.c: Likewise.
2873         * string/strchr.c: Likewise.
2874         * string/strchrnul.c: Likewise.
2875         * string/strcmp.c: Likewise.
2876         * string/strcpy.c: Likewise.
2877         * string/strncat.c: Likewise.
2878         * string/strncmp.c: Likewise.
2879         * string/strncpy.c: Likewise.
2880
2881 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2882
2883         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
2884         __builtin_memcopy is called when src and dest ranges are known to not
2885         overlap.
2886
2887 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2888
2889         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
2890         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
2891         fwd_align_merge macro call.
2892         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
2893         bwd_align_merge macro call.
2894         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2895
2896 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
2897
2898         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
2899         bwd_align_merge macros.
2900         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
2901         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
2902         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2903
2904 2012-04-18  David S. Miller  <davem@davemloft.net>
2905
2906         * sysdeps/sparc/sparc64/memcopy.h: Delete.
2907
2908 2012-04-18  Andreas Jaeger  <aj@suse.de>
2909
2910         [BZ# 6794]
2911         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
2912         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
2913         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
2914
2915         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
2916         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
2917         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
2918
2919         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
2920         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
2921         Adjust for changed ldbl-128 files.
2922
2923         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
2924         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
2925         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
2926
2927 2012-04-17  David S. Miller  <davem@davemloft.net>
2928
2929         * sysdeps/sparc/sparc32/memcopy.h: Delete.
2930
2931 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
2932
2933         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
2934         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
2935         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
2936         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
2937         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
2938         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
2939
2940 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2941
2942         [BZ #6794]
2943         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
2944         * math/libm-test.inc: Add ilogb errno and exception tests.
2945         * math/w_ilogb.c: New file: ilogb wrapper.
2946         * math/w_ilogbf.c: New file: ilogbf wrapper.
2947         * math/w_ilogbl.c: New file: ilogbl wrapper.
2948         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
2949         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
2950         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
2951         exception being thrown with 0.0 as argument.
2952         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
2953         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
2954         exception being thrown with 0.0 as argument.
2955         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
2956         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
2957         exception being thrown with 0.0 as argument.
2958         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
2959         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
2960         exception being thrown with 0.0 as argument.
2961         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
2962         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
2963         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
2964         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
2965         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
2966         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
2967         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
2968         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
2969         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
2970
2971 2012-04-17  Petr Baudis  <pasky@ucw.cz>
2972
2973         * include/sys/uio.h: Change __vector to __iovec to avoid clash
2974         with altivec.
2975
2976 2012-04-16  Marek Polacek  <polacek@redhat.com>
2977
2978         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
2979
2980 2012-04-16  Marek Polacek  <polacek@redhat.com>
2981
2982         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
2983         operands of fdivp instruction.
2984
2985 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2986
2987         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
2988         * elf/tst-auditmod3b.c: Likewise.
2989         * elf/tst-auditmod4b.c: Likewise.
2990         * elf/tst-auditmod5b.c: Likewise.
2991         * elf/tst-auditmod6b.c: Likewise.
2992         * elf/tst-auditmod6c.c: Likewise.
2993         * elf/tst-auditmod7b.c: Likewise.
2994         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
2995         * sysdeps/x86_64/preconfigure.in: Likewise.
2996         * sysdeps/x86_64/preconfigure: Regenerated.
2997
2998 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
2999
3000         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
3001         __ILP32__.
3002
3003 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
3004
3005         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3006         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
3007
3008 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
3009
3010         [BZ #13973]
3011         * locale/iso-639.def: Fix gl language name. Spotted by
3012         Yaron Shahrabani.
3013
3014 2012-04-12  Roland McGrath  <roland@hack.frob.com>
3015
3016         [BZ #2074]
3017         * libio/libio.h (__io_write_fn): Update comment.
3018
3019 2012-04-12  Petr Baudis  <pasky@ucw.cz>
3020
3021         [BZ #2074]
3022         * stdio.texi (Hook Functions): The user provided writer function
3023         is not allowed to return -1.
3024
3025 2012-04-11  David S. Miller  <davem@davemloft.net>
3026
3027         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3028
3029 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
3030
3031         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
3032         Add a leading slash to rtkaio.
3033
3034 2012-04-11  Jim Meyering  <meyering@redhat.com>
3035
3036         [BZ #11959]
3037         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
3038         It is not necessarily an error to ignore fwrite's return
3039         value.  One can reliably use ferror to test for errors after
3040         the fact.
3041
3042 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3043
3044         * bits/types.h (__snseconds_t): New type.
3045         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
3046
3047         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
3048         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3049         (__SNSECONDS_T_TYPE): Likewise.
3050         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
3051         (__SNSECONDS_T_TYPE): Likewise.
3052         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3053         (__SNSECONDS_T_TYPE): Likewise.
3054
3055 2012-04-10  Andreas Jaeger  <aj@suse.de>
3056
3057         [BZ #2636]
3058         * manual/time.texi (Processor Time): Return type of times is
3059         elapsed real time since an arbitrary point in the past.
3060         (CPU Time): Move CLK_TCK from here...
3061         (Processor Time): ...to here.  Correct description.
3062         * manual/conf.texi (Constants for Sysconf): Correct description of
3063         _SC_CLK_TCK.
3064
3065 2012-04-10  David S. Miller  <davem@davemloft.net>
3066
3067         [BZ #13967]
3068         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
3069         where the is a gap between DT_REL(A) and DT_JMPREL.
3070
3071 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3072
3073         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
3074         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3075         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3076
3077 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3078
3079         * elf/dl-support.c (_dl_inhibit_cache): New variable.
3080         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
3081         (dl_main): Handle --inhibit-cache.
3082         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
3083         _dl_inhibit_cache.
3084         * elf/dl-load.c (_dl_map_object): Use it.
3085         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
3086
3087 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3088
3089         [BZ #13872]
3090         * sysdeps/i386/fpu/e_powl.S (p78): New object.
3091         (__ieee754_powl): Saturate large exponents rather than testing for
3092         overflow of y*log2(x).
3093         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3094         * math/libm-test.inc (pow_test): Do not permit spurious overflow
3095         exceptions.
3096
3097         [BZ #11521]
3098         * math/s_ctan.c: Include <float.h>.
3099         (__ctan): Avoid internal overflow or cancellation in calculating
3100         denominator.
3101         * math/s_ctanf.c: Likewise.
3102         * math/s_ctanl.c: Likewise.
3103         * math/s_ctanh.c: Likewise.
3104         * math/s_ctanhf.c: Likewise.
3105         * math/s_ctanhl.c: Likewise.
3106         * math/libm-test.inc (ctan_test): Add more tests.
3107         (ctanh_test): Likewise.
3108         * sysdeps/i386/fpu/libm-test-ulps: Update.
3109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3110
3111 2012-04-09  Andreas Jaeger  <aj@suse.de>
3112
3113         [BZ #6894]
3114         * manual/filesys.texi (Directory Entries): Mention that d_namlen
3115         is an optional BSD extension.
3116
3117         [BZ #10254]
3118         * manual/stdio.texi (Opening Streams): Document additional fopen
3119         parameters.
3120
3121 2012-04-09  Roland McGrath  <roland@hack.frob.com>
3122
3123         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
3124         %eax without telling the compiler.
3125
3126 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
3127
3128         [BZ # 13963]
3129         * manual/install.texi: Use sourceware.org.
3130
3131 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
3132
3133         [BZ #13873]
3134         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
3135         (__ieee754_pow): Generate overflow and underflow using huge*huge
3136         and tiny*tiny rather than just returning constant infinity or zero
3137         for large exponents.
3138         * math/libm-test.inc (pow_test): Require overflow exceptions for
3139         applicable cases of large exponents.
3140
3141         [BZ #706]
3142         * sysdeps/i386/fpu/e_pow.S (p10): New object.
3143         (__ieee754_pow): Use iterative multiplication algorithm only for
3144         integer exponents with absolute value below 1024.  Check for odd
3145         integer exponents when using algorithm for real exponents.
3146         * math/libm-test.inc (pow_test): Add more tests.
3147         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3148
3149 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
3150
3151         [BZ #13705]
3152         * math/libm-test.inc (exp_test): Do not allow overflow exception
3153         on underflow test.
3154
3155 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
3156
3157         [BZ #13705]
3158         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
3159         instead of __kernel_standard_f.
3160
3161 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
3162
3163         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
3164         * sysdeps/x86_64/memset_chk.S: Likewise.
3165
3166 2012-04-08  Andreas Jaeger  <aj@suse.de>
3167
3168         [BZ #10153]
3169         * manual/startup.texi (Environment Access): Describe return value
3170         for putenv and setenv.
3171
3172         [BZ #6895]
3173         * manual/filesys.texi (Directory Entries): Add description for
3174         DT_LNK.
3175
3176         [BZ #6890]
3177         * manual/filesys.texi (Directory Entries): Clarify that it's file
3178         system not operating system in the description of DT_UNKNOWN.
3179
3180         [BZ #6578]
3181         * manual/syslog.texi (closelog): Fix reference, it's openlog.
3182
3183 2012-04-08  Stephen Compall  <s11@member.fsf.org>
3184
3185         [BZ #6649]
3186         * manual/llio.texi (Opening and Closing Files): Add cross
3187         reference to explain mode argument.
3188
3189 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
3190
3191         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
3192         * sysdeps/x86_64/memset_chk.S: Likewise.
3193
3194 2012-04-07  David S. Miller  <davem@davemloft.net>
3195
3196         * elf/elf.h (R_SPARC_WDISP10): Define.
3197         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
3198         R_SPARC_SIZE32.
3199         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
3200         R_SPARC_SIZE64 and R_SPARC_H34.
3201
3202 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
3203
3204         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
3205         conditions and remove no longer applicable assertion.
3206
3207 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3208
3209         * bits/byteswap.h: Include <features.h>.
3210         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
3211         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
3212
3213 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3214
3215         * bits/byteswap.h (__bswap_16): Removed.
3216         Include <bits/byteswap-16.h> to get __bswap_16.
3217         * sysdeps/i386/bits/byteswap.h: Likewise.
3218         * sysdeps/s390/bits/byteswap.h: Likewise.
3219         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3220         * bits/byteswap-16.h: New file.
3221         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3222         * sysdeps/s390/bits/byteswap-16.h: Likewise.
3223         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
3224         * string/Makefile (headers): Add bits/byteswap-16.h.
3225
3226 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3227
3228         [BZ #13895]
3229         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
3230         extra indirection.
3231         * nss/Makefile (tests-static, tests): Add tst-nss-static.
3232         * nss/tst-nss-static.c: New.
3233
3234 2012-04-06  Robert Millan  <rmh@gnu.org>
3235
3236         [BZ #6486]
3237         * manual/llio.texi (File Position Primitive): lseek
3238         refers to WHENCE when it really means OFFSET.
3239
3240 2012-04-06  Andreas Jaeger  <aj@suse.de>
3241
3242         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
3243         strncmp declarations.
3244
3245         * abilist/libc.abilist: Add __poll and __ppoll.
3246
3247 2012-04-05  David S. Miller  <davem@davemloft.net>
3248
3249         * scripts/check-local-headers.sh: Accept a host triplet in the
3250         path matched by the exclude regexp.
3251
3252         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
3253         definition.
3254         * sysdeps/powerpc/powerpc32/dl-machine.h
3255         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
3256         * sysdeps/s390/s390-32/dl-machine.h
3257         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3258         * sysdeps/sparc/sparc32/dl-machine.h
3259         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3260         * sysdeps/sparc/sparc64/dl-machine.h
3261         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
3262
3263         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
3264         lazy binding.
3265         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
3266         undefined symbol errors.
3267
3268         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
3269         DT_NEEDED entries.
3270
3271 2012-04-05  Michael Matz  <matz@suse.de>
3272
3273         [BZ #13592]
3274         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
3275
3276 2012-04-05  Andreas Jaeger  <aj@suse.de>
3277
3278         [BZ #13908]
3279         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
3280         comment.
3281
3282 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3283
3284         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
3285         which ROUND is no valid rounding mode.
3286
3287 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3288
3289         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
3290         read again.
3291         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
3292
3293 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3294
3295         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
3296         an exception using FPU order intentionally.
3297
3298 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3299
3300         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
3301         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
3302         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
3303         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
3304
3305 2012-04-05  Simon Josefsson  <simon@josefsson.org>
3306
3307         [BZ #12340]
3308         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
3309         EINVAL when BUFLEN is too smal.
3310
3311 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
3312
3313         [BZ #13553]
3314         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
3315         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3316
3317 2012-04-03  Andreas Jaeger  <aj@suse.de>
3318
3319         [BZ #13938]
3320         * manual/setjmp.texi (System V contexts): Fix sentence.
3321
3322         [BZ #13926]
3323         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
3324         New macro for this case.
3325         [!__GNUC__] (__bswap_64): New inline function for this case.
3326         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3327         * bits/byteswap.h: Likewise.
3328         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
3329         ull, guard with __GLIBC_HAVE_LONG_LONG.
3330
3331         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
3332         __GLIBC_HAVE_LONG_LONG.
3333
3334         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
3335         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
3336
3337 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3338
3339         [BZ #13691]
3340         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
3341         inptr and inend, rather than using last_ch.
3342
3343 2012-04-02  David S. Miller  <davem@davemloft.net>
3344
3345         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
3346         * stdio-common/printf-parse.h (read_int): Change return type to
3347         'int', return -1 on INT_MAX overflow.
3348         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
3349         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
3350         overflows INT_MAX.  Check for overflow of in-format-string precision
3351         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
3352         SIZE_MAX not INT_MAX for integer overflow test.
3353         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
3354         skip the construct in the format string but do not record anything.
3355         * stdio-common/bug22.c: Adjust to test both width/prevision
3356         INT_MAX overflow as well as total length INT_MAX overflow.  Check
3357         explicitly for proper errno values.
3358
3359 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
3360
3361         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
3362         CHAR_MAX.
3363         * string/test-strcmp.c [! WIDE]: Likewise.
3364         * time/tst-mktime2.c: Likewise for INT_MAX.
3365         * string/test-string.h: #include <sys/param.h> for MIN.
3366
3367         * csu/init-first.c (__libc_init_first): Call __ctype_init.
3368         * sysdeps/i386/init-first.c (init): Likewise.
3369         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
3370         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
3371         * sysdeps/sh/init-first.c (init): Likewise.
3372
3373 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
3374
3375         * po/ru.po: Update from translation team.
3376         * po/vi.po: Likewise.
3377
3378 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3379
3380         * resolv/nss_dns/dns-host.c: Merge copyright years.
3381
3382 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3383
3384         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
3385         Optimize memcpy with prefetch if
3386         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
3387         src, dst pointers have unequal 16 byte alignments.
3388
3389 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3390
3391         [BZ #13928]
3392         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
3393         from a CNAME entry and return the minimum ttl for the query.
3394         (gaih_getanswer_slice): Likewise.
3395
3396 2012-03-30  Jeff Law  <law@redhat.com>
3397
3398         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
3399         due to long keys.
3400         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
3401         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
3402
3403         * resolv/nss_dns/dns-host.c: Update copyright year.
3404
3405 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
3406
3407         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
3408         requests to save a system call.  Fix check that all bytes are sent.
3409
3410         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
3411         comments for sendmmsg.
3412
3413 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3414
3415         [BZ #13691]
3416         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
3417         with only 1 character between 0x0041 and 0x01b0.
3418         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
3419         * wcsmbs/tst-mbsnrtowcs.c: New file.
3420
3421 2012-03-29  David S. Miller  <davem@davemloft.net>
3422
3423         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
3424         small copies by hand.
3425
3426 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3427
3428         [BZ #13761]
3429         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
3430         _nss_compat_initgroups_dyn): Fall back to malloc/free
3431         for large group memberships.
3432
3433 2012-03-28  David S. Miller  <davem@davemloft.net>
3434
3435         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
3436         that branches into memcpy.
3437         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3438         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
3439         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3440         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
3441         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
3442         bits.
3443         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
3444         implementation too.
3445         * sysdeps/sparc/mempcpy.S: New file.
3446
3447         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
3448         the IFUNC routine in the libc case.
3449         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3450
3451         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
3452         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
3453         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
3454         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
3455         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
3456         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
3457         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
3458         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
3459
3460         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
3461         loop to 256 bytes instead of 64 bytes and fix test signedness.
3462
3463         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
3464         * sysdeps/sparc/sparc32/Makefile: rather than here...
3465         * sysdeps/sparc/sparc64/Makefile: and here.
3466
3467 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
3468
3469         * malloc/mallocbug.c: Avoid warnings about unused variables.
3470
3471 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3472
3473         [BZ #13760]
3474         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
3475         in the right place. Discard and retry query if response is
3476         larger than input buffer size.
3477
3478 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
3479
3480         [BZ #369]
3481         [BZ #2678]
3482         [BZ #3866]
3483         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
3484         x for large integer exponent.
3485         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3486         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
3487         sign of result as needed afterwards.
3488         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3489         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
3490         result for underflowing pow the same as for overflow.
3491         (__kernel_standard_l): Handle powl overflow and underflow here
3492         rather than calling __kernel_standard.
3493         * math/libm-test.inc (pow_test): Add more tests.
3494
3495         [BZ #3868]
3496         [BZ #13879]
3497         [BZ #13910]
3498         [BZ #13911]
3499         [BZ #13912]
3500         [BZ #13913]
3501         [BZ #13915]
3502         [BZ #13916]
3503         [BZ #13917]
3504         [BZ #13918]
3505         [BZ #13919]
3506         [BZ #13920]
3507         [BZ #13921]
3508         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
3509         * sysdeps/ieee754/k_standard.c: Include <float.h>.
3510         (__kernel_standard_l): New function.
3511         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
3512         __kernel_standard.
3513         * math/w_acosl.c (__acosl): Likewise.
3514         * math/w_asinl.c (__asinl): Likewise.
3515         * math/w_atan2l.c (__atan2l): Likewise.
3516         * math/w_atanhl.c (__atanhl): Likewise.
3517         * math/w_coshl.c (__coshl): Likewise.
3518         * math/w_exp10l.c (__exp10l): Likewise.
3519         * math/w_exp2l.c (__exp2l): Likewise.
3520         * math/w_fmodl.c (__fmodl): Likewise.
3521         * math/w_hypotl.c (__hypotl): Likewise.
3522         * math/w_j0l.c (__j0l, __y0l): Likewise.
3523         * math/w_j1l.c (__j1l, __y1l): Likewise.
3524         * math/w_jnl.c (__jnl, __ynl): Likewise.
3525         * math/w_lgammal.c (__lgammal): Likewise.
3526         * math/w_log10l.c (__log10l): Likewise.
3527         * math/w_log2l.c (__log2l): Likewise.
3528         * math/w_logl.c (__logl): Likewise.
3529         * math/w_powl.c (__powl): Likewise.
3530         * math/w_remainderl.c (__remainderl): Likewise.
3531         * math/w_scalbl.c (sysv_scalbl): Likewise.
3532         * math/w_sinhl.c (__sinhl): Likewise.
3533         * math/w_sqrtl.c (__sqrtl): Likewise.
3534         * math/w_tgammal.c (__tgammal): Likewise.
3535         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
3536         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
3537         * math/libm-test.inc (acos_test): Add more tests.
3538         (acosh_test): Likewise.
3539         (asin_test): Likewise.
3540         (atanh_test): Likewise.
3541         (exp_test): Likewise.
3542         (exp10_test): Likewise.
3543         (exp2_test): Likewise.
3544         (expm1_test): Likewise.
3545         (lgamma_test): Likewise.
3546         (log_test): Likewise.
3547         (log10_test): Likewise.
3548         (log1p_test): Likewise.
3549         (log2_test): Likewise.
3550         (pow_test): Do not allow some spurious overflow exceptions.
3551         (sqrt_test): Add more tests.
3552         (tgamma_test): Likewise.
3553         (y0_test): Likewise.
3554         (y1_test): Likewise.
3555         (yn_test): Likewise.
3556
3557 2012-03-27  Anton Blanchard  <anton@samba.org>
3558
3559         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
3560         MAP_HUGETLB.
3561         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3562         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3563         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3564
3565 2012-03-27  David S. Miller  <davem@davemloft.net>
3566
3567         * conform/Makefile: Run run-conformtest.sh using $(BASH).
3568
3569         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
3570         have-as-vis3 check.
3571
3572 2012-03-27  Andreas Jaeger  <aj@suse.de>
3573
3574         * sysdeps/x86_64/elf/configure.in: Moved to ...
3575         * sysdeps/x86_64/configure.in: ... here.
3576         * sysdeps/x86_64/elf/start.S: Moved to ...
3577         * sysdeps/x86_64/start.S: ... here.
3578         * sysdeps/x86_64/elf/configure: Delete.
3579
3580         * sysdeps/x86_64/configure.in: Merge contents from
3581         sysdeps/i386/configure.in (without i686 check).
3582
3583         * sysdeps/i386/elf/Versions: Merge into ...
3584         * sysdeps/i386/Versions: ... this.
3585         * sysdeps/i386/elf/Versions: Delete file.
3586         * sysdeps/i386/elf/start.S: Moved to ...
3587         * sysdeps/i386/start.S: ...here.
3588         * sysdeps/i386/elf/configure.in: Merge into...
3589         * sysdeps/i386/configure.in: ...here.
3590         * sysdeps/i386/elf/configure.in: Delete file.
3591         * sysdeps/i386/elf/configure: Delete file.
3592
3593         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
3594         * debug/backtracesyms.c: ... here.
3595         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
3596         * debug/backtracesymsfd.c: ... here.
3597         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
3598         * sysdeps/generic/ifunc-sel.h: ... here.
3599
3600         * sysdeps/unix/i386/start.c: Delete file.
3601         * sysdeps/unix/sparc/start.c: Delete file.
3602         * sysdeps/unix/start.c: Delete file.
3603
3604         * sysdeps/sh/elf/configure.in: Moved to ...
3605         * sysdeps/sh/configure.in: ... here.
3606         * sysdeps/sh/elf/start.S: Moved to ...
3607         * sysdeps/sh/start.S: ... here.
3608         * sysdeps/sh/elf/configure: Delete file.
3609
3610         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
3611         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
3612         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
3613         * sysdeps/powerpc/powerpc64/entry.h: ... here.
3614         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
3615         * sysdeps/powerpc/powerpc64/start.S: here.
3616         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
3617         * sysdeps/powerpc/powerpc64/Makefile: ... this.
3618         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
3619         * sysdeps/powerpc/powerpc64/configure.in: ... this.
3620         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
3621
3622         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
3623         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
3624         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
3625         * sysdeps/powerpc/powerpc32/start.S: ... here.
3626         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
3627         * sysdeps/powerpc/powerpc32/configure.in: ... this.
3628         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
3629
3630         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
3631         * sysdeps/powerpc/ifunc-sel.h: ... here.
3632         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
3633         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
3634
3635         * sysdeps/sparc/elf/configure.in: Moved to ...
3636         * sysdeps/sparc/configure.in: ... here.
3637         * sysdeps/sparc/elf/configure: Delete file.
3638         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
3639         * sysdeps/sparc/sparc32/start.S: ... here.
3640         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
3641         * sysdeps/sparc/sparc64/start.S: ... here.
3642         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
3643         * sysdeps/sparc/sparc32/Makefile: ... this.
3644         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
3645         * sysdeps/sparc/sparc64/Makefile: ... this.
3646
3647         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
3648         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
3649         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
3650         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
3651         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
3652         * sysdeps/s390/s390-32/setjmp.S: ... here.
3653         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
3654         * sysdeps/s390/s390-32/configure.in: ... here.
3655         * sysdeps/s390/s390-32/elf/configure: Delete file.
3656         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
3657         * sysdeps/s390/s390-32/start.S: ... here.
3658
3659         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
3660         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
3661         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
3662         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
3663         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
3664         * sysdeps/s390/s390-64/setjmp.S: ... here.
3665         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
3666         * sysdeps/s390/s390-64/configure.in: ... here
3667         * sysdeps/s390/s390-64/elf/configure: Delete file.
3668         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
3669         * sysdeps/s390/s390-64/start.S: ... here.
3670         * sysdeps/s390/s390-64/elf/configure: Delete.
3671
3672         * configure.in: Remove support for elf directories in sysdeps.
3673
3674         * configure: Regenerated.
3675         * sysdeps/i386/configure: Regenerated.
3676         * sysdeps/powerpc/powerpc32/configure: Regenerated.
3677         * sysdeps/powerpc/powerpc64/configure: Regenerated.
3678         * sysdeps/s390/s390-32/configure: Regenerated.
3679         * sysdeps/s390/s390-64/configure: Regenerated.
3680         * sysdeps/sh/configure: Regenerated.
3681         * sysdeps/sparc/configure: Regenerated.
3682         * sysdeps/x86_64/configure: Regenerated.
3683
3684 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
3685
3686         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3687
3688         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
3689         denormal result into account.
3690
3691 2012-03-25  Roland McGrath  <roland@hack.frob.com>
3692
3693         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
3694         Reported by Allan McRae <allan@archlinux.org>.
3695
3696 2012-03-23  Jeff Law  <law@redhat.com>
3697
3698         * nss/getnssent.c (__nss_getent): Fix typo.
3699
3700 2012-03-23  David S. Miller  <davem@davemloft.net>
3701
3702         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3703
3704 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
3705
3706         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
3707         to pad to uint64_t for each field.
3708         (dl_tls_index): Replace unsigned long with uint64_t.
3709
3710 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
3711         Paul Pluzhnikov  <ppluzhnikov@google.com>
3712
3713         [BZ #6528]
3714         * grp/Makefile (otherlibs): Don't set it.
3715         * inet/Makefile (otherlibs): Likewise.
3716         * login/Makefile (otherlibs): Likewise.
3717         * nscd/Makefile (otherlibs): Likewise.
3718         * posix/Makefile (otherlibs): Likewise.
3719         * pwd/Makefile (otherlibs): Likewise.
3720         * rt/Makefile (otherlibs): Likewise.
3721         * sunrpc/Makefile (otherlibs): Likewise.
3722         * nss/Makefile (otherlibs): Likewise.
3723         Add libnss_files to routines and static-only-routines.
3724         ($(objpfx)getent): Remove rule.
3725         * resolv/Makefile: Add libnss_dns and libresolv to routines and
3726         static-only-routines.
3727
3728 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3729
3730         [BZ #13892]
3731         * math/s_cexp.c: Include <float.h>.
3732         (__cexp): Handle exp result overflowing not necessarily
3733         overflowing both real and imaginary parts of result.
3734         * math/s_cexpf.c: Likewise.
3735         * math/s_cexpl.c: Likewise.
3736         * math/libm-test.inc (cexp_test): Add more tests.
3737         * sysdeps/i386/fpu/libm-test-ulps: Update.
3738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3739
3740 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3741
3742         * include/link.h (ELFW): New macro.
3743         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
3744         Replace ELF64_R_TYPE with ELFW(R_TYPE).
3745
3746 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3747
3748         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
3749         with uint64_t.
3750
3751 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3752
3753         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
3754         declaration.
3755         (struct La_x32_retval): Likewise.
3756
3757 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3758
3759         * sysdeps/x86_64/preconfigure.in: New file.
3760         * sysdeps/x86_64/preconfigure: New generated file.
3761
3762 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
3763
3764         [BZ #13824]
3765         * math/e_exp2l.c: Include <float.h>.
3766         (__ieee754_exp2l): Handle overflow and underflow cases
3767         separately.  Only pass fractional part of argument to
3768         __ieee754_expl.
3769         * math/libm-test.inc (exp2_test): Add more tests.
3770
3771         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
3772         negating x to take absolute value.
3773         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3774         Likewise.
3775         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3776         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
3777         Likewise.
3778         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
3779         computing low part if x was negated.
3780         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3781
3782 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3783
3784         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
3785         la_x32_gnu_pltexit.
3786         (pltexit): Cast int_retval to ptrdiff_t.
3787         * elf/tst-auditmod3b.c: Likewise.
3788         * elf/tst-auditmod4b.c: Likewise.
3789         * elf/tst-auditmod5b.c: Likewise.
3790         * elf/tst-auditmod6b.c: Likewise.
3791         * elf/tst-auditmod6c.c: Likewise.
3792         * elf/tst-auditmod7b.c: Likewise.
3793
3794         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
3795         and x32_gnu_pltexit.
3796
3797         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
3798         __ELF_NATIVE_CLASS.
3799         (La_x32_regs): New macro.
3800         (La_x32_retval): Likewise.
3801         (la_x32_gnu_pltenter): New function prototype.
3802         (la_x32_gnu_pltexit): Likewise.
3803
3804 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
3805
3806         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
3807         exponent.
3808
3809         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3810
3811         * configure.in (libc_cv_cc_nofma): Check for option to disable
3812         generation of FMA instructions.
3813         * configure: Regenerate.
3814         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
3815         * sysdeps/ieee754/dbl-64/Makefile: New file.
3816         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3817         Remove brandred-fma4.
3818         (CFLAGS-brandred-fma4.c): Remove.
3819         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
3820         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
3821         define.
3822         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
3823         define.
3824
3825 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3826
3827         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
3828         LLONG_MAX != LONG_MAX.
3829         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3830         (_fitoa_word): Likewise.
3831         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
3832         LLONG_MAX != LONG_MAX.
3833         * stdio-common/_itowa.h: Include <_itoa.h>.
3834         (_itowa_word): Use _ITOA_WORD_TYPE on value.
3835         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
3836         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
3837         only if not defined.
3838         (_ITOA_WORD_TYPE): Likewise.
3839         (_itoa_word): Use _ITOA_WORD_TYPE on value.
3840         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
3841
3842 2012-03-21  David S. Miller  <davem@davemloft.net>
3843
3844         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3845
3846 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3847
3848         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
3849         of x86_64 when setting libc_cv_slibdir, libdir and
3850         libc_cv_localedir.
3851         * sysdeps/unix/sysv/linux/configure: Regenerated.
3852
3853 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3854
3855         * manual/lang.texi (Old Varargs): Remove section.
3856         (How Variadic): Update menu.
3857         (va_start): Do not mention varargs.h.
3858
3859 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3860             Joseph Myers  <joseph@codesourcery.com>
3861
3862         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
3863         link test.
3864         * configure: Regenerated.
3865
3866 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3867
3868         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
3869         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
3870         conformtest.pl
3871
3872 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3873
3874         * NOTES: Remove.
3875         * Makefile (files-for-dist): Remove NOTES.
3876         (NOTES): Remove rule.
3877         * README: Don't refer to NOTES.
3878         * manual/creature.texi: Don't include macros.texi.
3879         * manual/intro.texi (creature.texi): Remove comment referring to
3880         NOTES.
3881
3882         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
3883         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
3884         * configure: Regenerated.
3885         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
3886         LIBC_TRY_CC_OPTION.
3887         (libc_cv_as_i686): Likewise.
3888         (libc_cv_cc_avx): Likewise.
3889         (libc_cv_cc_sse2avx): Likewise.
3890         (libc_cv_cc_fma4): Likewise.
3891         (libc_cv_cc_novzeroupper): Likewise.
3892         * sysdeps/i386/configure: Regenerated.
3893
3894         [BZ #13883]
3895         * sysdeps/i386/fpu/s_cexp.S: Remove.
3896         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3897         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3898         * math/libm-test.inc (cexp_test): Add more tests.
3899         * sysdeps/i386/fpu/libm-test-ulps: Update.
3900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3901
3902 2012-03-21  Allan McRae  <allan@archlinux.org>
3903
3904         * timezone/Makefile: Do not install iso3166.tab and zone.tab
3905
3906 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
3907
3908         [BZ #13871]
3909         * math/w_exp2.c: Do not include <float.h>.
3910         (o_threshold, u_threshold): Remove.
3911         (__exp2): Calculate result before checking finiteness and calling
3912         __kernel_standard.
3913         * math/w_exp2f.c: Likewise.
3914         * math/w_exp2l.c: Likewise.
3915         * math/libm-test.inc (exp2_test): Require overflow exception for
3916         1e6 input.
3917
3918         [BZ #3866]
3919         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
3920         range of signed 64-bit integers before using fistpll.  Remove
3921         checks for whether integers fit in mantissa bits.
3922         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
3923         the range of signed 32-bit integers before using fistpl.  Remove
3924         checks for whether integers fit in mantissa bits.
3925         * sysdeps/i386/fpu/e_powl.S (p64): New object.
3926         (__ieee754_powl): Test for y outside the range of signed 64-bit
3927         integers before using fistpll.  Reduce 64-bit values to 63-bit
3928         ones as needed.
3929         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
3930         divide-by-zero is raised for zero to large negative powers.
3931         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
3932         (__ieee754_powl): Test for y outside the range of signed 64-bit
3933         integers before using fistpll.  Reduce 64-bit values to 63-bit
3934         ones as needed.
3935         * math/libm-test.inc (pow_test): Add more tests.
3936
3937 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3938
3939         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
3940         <stdio-common/_itoa.h>.
3941         * debug/segfault.c: Likewise.
3942         * elf/dl-cache.c: Likewise.
3943         * elf/dl-minimal.c: Likewise.
3944         * elf/dl-misc.c: Likewise.
3945         * elf/dl-sysdep.c: Likewise.
3946         * elf/dl-version.c: Likewise.
3947         * elf/rtld.c: Likewise.
3948         * hurd/hurdsock.c: Likewise.
3949         * hurd/lookup-retry.c: Likewise.
3950         * malloc/malloc.c: Likewise.
3951         * malloc/mtrace.c: Likewise.
3952         * nscd/nscd_getgr_r.c: Likewise.
3953         * nscd/nscd_getpw_r.c: Likewise.
3954         * nscd/nscd_getserv_r.c: Likewise.
3955         * posix/getopt_init.c: Likewise.
3956         * posix/wordexp.c: Likewise.
3957         * stdio-common/_itoa.c: Likewise.
3958         * stdio-common/printf_fphex.c: Likewise.
3959         * stdio-common/vfprintf.c: Likewise.
3960         * string/_strerror.c: Likewise.
3961         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3962         * sysdeps/i386/i686/hp-timing.h: Likewise.
3963         * sysdeps/mach/_strerror.c: Likewise.
3964         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
3965         * sysdeps/mach/hurd/sethostid.c: Likewise.
3966         * sysdeps/mach/hurd/xmknodat.c: Likewise.
3967         * sysdeps/mach/xpg-strerror.c: Likewise.
3968         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3969         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
3970         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
3971         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
3972         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
3973         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
3974         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
3975         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3976         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
3977         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
3978         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
3979         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
3980         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
3981         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3982         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3983         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3984         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
3985         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
3986         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3987         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
3988         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
3989
3990         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
3991
3992         * stdio-common/_itoa.h: Moved to ...
3993         * sysdeps/generic/_itoa.h: Here.
3994
3995         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
3996
3997         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
3998         instead of "_itoa.h" and "_itowa.h".
3999         * stdio-common/vfprintf.: Likewise.
4000
4001 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4002
4003         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
4004         <bits/wordsize.h>.
4005         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
4006         (__signbit): Likwise.
4007         (llrintf): Likwise.
4008         (llrint): Likwise.
4009
4010 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4011
4012         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
4013         __WORDSIZE != 64.
4014
4015 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
4016
4017         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
4018         OVERFLOW_EXCEPTION_OK.
4019         * math/libm-test.inc ("Philosophy"): Update comment about
4020         exception testing.
4021         (OVERFLOW_EXCEPTION): Define.
4022         (OVERFLOW_EXCEPTION_OK): Likewise.
4023         (INVALID_EXCEPTION_OK): Renumber.
4024         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4025         (IGNORE_ZERO_INF_SIGN): Likewise.
4026         (test_exceptions): Handle FE_OVERFLOW.
4027         (exp10_test): Expect overflow exceptions.
4028         (exp2_test): Likewise.
4029         (expm1_test): Likewise.
4030         (nextafter_test): Likewise.
4031         (pow_test): Likewise.
4032         (scalbn_test): Likewise.
4033         (scalbln_test): Likewise.
4034
4035 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4036
4037         * sysdeps/x86_64/bits/atomic.h
4038         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
4039         64bit integer.
4040         (atomic_exchange_acq): Likewise.
4041         (__arch_exchange_and_add_body): Likewise.
4042         (__arch_add_body): Likewise.
4043         (atomic_add_negative): Likewise.
4044         (atomic_add_zero): Likewise.
4045
4046 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4047
4048         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
4049         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
4050
4051 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4052
4053         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
4054         Check __x86_64__ instead of __WORDSIZE.
4055
4056 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4057
4058         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
4059
4060 2012-03-19  David S. Miller  <davem@davemloft.net>
4061
4062         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4063
4064         * sysdeps/sparc/fpu/fenv_private.h: New file.
4065         * sysdeps/sparc/fpu/math_private.h: Use it.
4066         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
4067         Remove.
4068         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
4069         (libc_feholdexcept_setroundl): Remove.
4070         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
4071         Remove.
4072         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
4073         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
4074
4075 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4076
4077         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
4078         int64_t instead of long int.
4079         (INSERT_WORDS64): Likwise.
4080
4081 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
4082
4083         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
4084         _Unwind_GetCFA return to _Unwind_Ptr first.
4085
4086 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
4087
4088         [BZ #13629]
4089         * math/s_clog.c: Include <float.h>.
4090         (__clog): Scale large or subnormal inputs.
4091         * math/s_clogf.c: Likewise.
4092         * math/s_clogl.c: Likewise.
4093         * math/s_clog10.c: Include <float.h>.
4094         (M_LOG10_2): Define.
4095         (__clog10): Scale large or subnormal inputs.
4096         * math/s_clog10f.c: Likewise.
4097         * math/s_clog10l.c: Likewise.
4098         * math/libm-test.inc (clog_test): Add more tests.
4099         (clog10_test): Likewise.
4100         * sysdeps/i386/fpu/libm-test-ulps: Update.
4101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4102
4103         [BZ #11451]
4104         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
4105         x and y.
4106         * math/libm-test.inc (atan2_test): Add another test.
4107
4108         * Makerules (common-objdir-compile): Remove.
4109         * sysdeps/unix/Makefile (config-generated): Do not add
4110         $(unix-generated) to variable.
4111         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
4112         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
4113         Remove rule.
4114         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
4115         Likewise.
4116         [generic bits/local_lim.h] (before-compile): Do not append to
4117         variable.
4118         [generic bits/local_lim.h] (common-generated): Likewise.
4119         [generic sys/param.h] (before-compile): Do not append to variable.
4120         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
4121         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
4122         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
4123         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
4124         include.
4125         [generic sys/param.h] (sys/param.h-includes): Remove variable.
4126         [generic sys/param.h] (sys/param.h-includes): Remove rule.
4127         [generic sys/param.h] ($(addprefix
4128         $(common-objpfx),$(sys/param.h-includes))): Likewise.
4129         [generic sys/param.h] (common-generated): Do not append to
4130         variable.
4131         [generic sys/param.h] (sysdep_headers): Likewise.
4132         [generic bits/errno.h] (before-compile): Do not append to
4133         variable.
4134         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
4135         rule.
4136         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
4137         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
4138         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
4139         [generic bits/errno.h] (common-generated): Do not append to
4140         variable.
4141         [generic bits/ioctls.h] (before-compile): Do not append to
4142         variable.
4143         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
4144         rule.
4145         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
4146         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
4147         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
4148         rule.
4149         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
4150         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
4151         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
4152         [generic bits/ioctls.h] (common-generated): Do not append to
4153         variable.
4154         [generic sys/syscall.h] (syscall.h): Remove variable.
4155         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
4156         rule.
4157         [generic sys/syscall.h] (before-compile): Do not append to
4158         variable.
4159         [generic sys/syscall.h] (common-generated): Likewise.
4160         * sysdeps/unix/errnos-tmpl.c: Remove file.
4161         * sysdeps/unix/errnos.awk: Likewise.
4162         * sysdeps/unix/ioctls-tmpl.c: Likewise.
4163         * sysdeps/unix/ioctls.awk: Likewise.
4164         * sysdeps/unix/mk-local_lim.c: Likewise.
4165         * sysdeps/unix/snarf-ioctls: Likewise.
4166
4167 2012-03-19  Richard Henderson  <rth@twiddle.net>
4168
4169         * sysdeps/i386/fpu/fenv_private.h: New file.
4170         * sysdeps/i386/fpu/math_private.h: Use it.
4171         (math_opt_barrier, math_force_eval): Remove.
4172         (libc_feholdexcept_setround_53bit): Remove.
4173         (libc_feupdateenv_53bit): Remove.
4174         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4175         (math_opt_barrier, math_force_eval): Remove.
4176         (libc_feholdexcept): Remove.
4177         (libc_feholdexcept_setround): Remove.
4178         (libc_fetestexcept, libc_fesetenv): Remove.
4179         (libc_feupdateenv_test): Remove.
4180         (libc_feupdateenv, libc_feholdsetround): Remove.
4181         (libc_feresetround): Remove.
4182
4183         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
4184         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
4185
4186         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
4187         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
4188         (libc_feupdateenv_testl): New.
4189         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
4190         (libc_feupdateenv_testf): New.
4191         (libc_feupdateenv): Use libc_feupdateenv_test.
4192         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
4193         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
4194
4195         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
4196         (libc_feholdsetroundf, libc_feholdsetroundl): New.
4197         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
4198         (libc_feresetround_noex): New.
4199         (libc_feresetround_noexf): New.
4200         (libc_feresetround_noexl): New.
4201         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
4202         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
4203         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
4204         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
4205         SET_RESTORE_ROUND.
4206         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4207         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
4208         (__cos): Likewise.
4209         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
4210         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
4211         SET_RESTORE_ROUND_NOEX.
4212         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
4213         SET_RESTORE_ROUND_NOEXF.
4214         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
4215         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
4216         (libc_feholdsetroundf): New.
4217         (libc_feresetround, libc_feresetroundf): New.
4218
4219         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
4220         (libc_feholdexcept_setround_53bit): Convert from macro to function.
4221         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
4222
4223         * sysdeps/generic/math_private.h: Include <fenv.h>.
4224         (default_libc_feholdexcept): New.
4225         (default_libc_feholdexcept_setround): New.
4226         (default_libc_fesetenv, default_libc_feupdateenv): New.
4227         (libc_feholdexcept): Only define if undefined.
4228         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
4229         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
4230         (libc_feholdexcept_setroundl): Likewise.
4231         (libc_feholdexcept_setround_53bit): Likewise.
4232         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
4233         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
4234         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
4235         (libc_feupdateenv_53bit): Likewise.
4236         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
4237         (libc_feholdexcept): Convert from macro to inline function.
4238         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
4239         (libc_fesetenv, libc_feupdateenv): Likewise.
4240
4241         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
4242         not previously defined.
4243         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
4244         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
4245         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
4246         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
4247         * sysdeps/ieee754/flt-32/math_private.h: New file.
4248         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
4249         math_private.h below SET_FLOAT_WORD.
4250         (__isnan, __isinf_ns, __finite): Remove.
4251         (__isnanf, __isinf_nsf, __finitef): Remove.
4252
4253 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
4254
4255         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4256
4257 2012-03-17  David S. Miller  <davem@davemloft.net>
4258
4259         [BZ #6471]
4260         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
4261         for 2.16.
4262
4263 2012-03-16  David S. Miller  <davem@davemloft.net>
4264
4265         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
4266         warnings.
4267
4268         [BZ #6471]
4269         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
4270         properly.
4271         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
4272         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
4273         sysdep_routines when subdir is sysvipc.
4274         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
4275         __getshmlba helper.
4276
4277         * sysdeps/sparc/fpu/libm-test/ulps: Update.
4278
4279 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4280
4281         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
4282         [__LP64__].
4283
4284 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4285
4286         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
4287         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
4288         (__lround): Renamed to ...
4289         (__llround): This.  Replace long int with long long int.
4290         Define lround functions as aliases of llround functions.
4291         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
4292
4293 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4294
4295         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4296         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
4297         adresses to uintptr_t.  Replace "long int" and "unsigned long
4298         int" with "greg_t" on va_arg.
4299
4300 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4301
4302         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
4303         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
4304
4305         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
4306         Move e_machine check before EI_CLASS check.  Handle x32
4307         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
4308         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
4309         SKIP_EM_IA_64 and include
4310         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
4311
4312         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
4313         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
4314         (add_system_dir): New macro.
4315
4316         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
4317         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
4318
4319 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4320
4321         [BZ #2551]
4322         [BZ #2552]
4323         [BZ #2553]
4324         [BZ #2554]
4325         [BZ #2562]
4326         [BZ #2563]
4327         [BZ #2565]
4328         [BZ #2566]
4329         [BZ #2576]
4330         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
4331         (y0): Likewise.
4332         * math/w_j0f.c (j0f): Likewise.
4333         (y0f): Likewise.
4334         * math/w_j0l.c (__j0l): Likewise.
4335         (__y0l): Likewise.
4336         * math/w_j1.c (j1): Likewise.
4337         (y1): Likewise.
4338         * math/w_j1f.c (j1f): Likewise.
4339         (y1f): Likewise.
4340         * math/w_j1l.c (__j1l): Likewise.
4341         (__y1l): Likewise.
4342         * math/w_jn.c (jn): Likewise.
4343         (yn): Likewise.
4344         * math/w_jnf.c (jnf): Likewise.
4345         (ynf): Likewise.
4346         * math/w_jnl.c (__jnl): Likewise.
4347         (__ynl): Likewise.
4348         * math/libm-test.inc (j0_test): Add more tests.
4349         (j1_test): Likewise.
4350         (jn_test): Likewise.  Add trailing semicolon to existing test.
4351         (y0_test): Likewise.
4352         (y1_test): Likewise.
4353         * sysdeps/i386/fpu/libm-test-ulps: Update.
4354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4355
4356         [BZ #13851]
4357         [BZ #13854]
4358         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
4359         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
4360         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
4361         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
4362         (__tanl): Set errno for infinite argument.
4363         * sysdeps/i386/fpu/mptan.c: Remove.
4364         * sysdeps/i386/fpu/s_tan.S: Likewise.
4365         * sysdeps/i386/fpu/s_tanl.S: Likewise.
4366         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
4367         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
4368         * math/libm-test.inc (tan_test): Add more tests and enable more
4369         tests for double and long double.
4370         * sysdeps/i386/fpu/libm-test-ulps: Update.
4371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4372
4373 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4374
4375         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
4376         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
4377
4378 2012-03-16  Roland McGrath  <roland@hack.frob.com>
4379
4380         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
4381         * configure.in: Use it for both main tree and add-ons.
4382         * configure: Regenerated.
4383
4384 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4385
4386         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
4387
4388 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
4389
4390         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
4391         in comment.
4392
4393         [BZ #13851]
4394         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
4395         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
4396         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4397         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
4398         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
4399         infinite argument.
4400         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
4401         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
4402         != 0 for prec == 2.
4403         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
4404         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
4405         * sysdeps/i386/fpu/s_cosl.S: Likewise.
4406         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
4407         * sysdeps/i386/fpu/s_sinl.S: Likewise.
4408         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
4409         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
4410         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
4411         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
4412         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
4413         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
4414         * math/libm-test.inc (cos_test): Add more tests and enable more
4415         tests for long double.
4416         (sin_test): Likewise.
4417         (sincos_test): Likewise.
4418         * sysdeps/i386/fpu/libm-test-ulps: Update.
4419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4420
4421 2012-03-16  David S. Miller  <davem@davemloft.net>
4422
4423         * sysdeps/sparc/fpu/math_private.h: New file.
4424
4425 2012-03-15  David S. Miller  <davem@davemloft.net>
4426
4427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
4428         file.
4429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
4430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
4431         file.
4432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
4433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
4434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
4435         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
4436         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
4437         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
4438         sysdep routines.
4439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4440
4441         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
4442         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
4443
4444         * sysdeps/sparc/sparc-ifunc.h: New file.
4445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
4446         sparc-ifunc.h
4447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4449         Likewise.
4450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4451         Likewise.
4452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
4453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4456         Likewise.
4457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
4462         Likewise.
4463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
4464         Likewise.
4465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
4468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
4469         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4470         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4471         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
4472         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
4473         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4474         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4475         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4476         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4477         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4478         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4479         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
4480         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4481         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
4482         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4483         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
4484         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4485         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
4486         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4487         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
4488         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4489
4490 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4491
4492         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
4493         scaling.
4494         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4495
4496 2012-03-15  Andreas Jaeger  <aj@suse.de>
4497
4498         [BZ #13852]
4499         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
4500         ieee754/flt-32 implementation for sin, cos and sincos.
4501         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
4502         * sysdeps/i386/fpu/s_cosf.S: Likewise.
4503         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
4504         * sysdeps/i386/fpu/s_sinf.S: Likewise.
4505         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
4506         ieee754/flt-32 implementation for tan.
4507
4508         * math/libm-test.inc (cos_test): Enable some large input tests for
4509         float as well
4510         (sin_test): Likewise.
4511         (sincos_test): Likewise.
4512         (tan_test): Add tests for large input.
4513
4514         * sysdeps/i386/fpu/libm-test-ulps: Update.
4515
4516 2012-03-15  Andreas Jaeger  <aj@suse.de>
4517
4518         [BZ #13658]
4519         * math/libm-test.inc (cos_test): Add more test cases.
4520         (sin_test): Likewise.
4521         (sincos_test): Likewise.
4522
4523 2012-03-15  Andreas Jaeger  <aj@suse.de>
4524
4525         [BZ #13837]
4526         * math/libm-test.inc (cos_test): Add a test case for large input
4527         value.
4528         (sin_test): Likewise.
4529         (sincos_test): Likewise.
4530
4531 2012-03-15  Andreas Jaeger  <aj@suse.de>,
4532         Joseph Myers  <joseph@codesourcery.com>
4533
4534         [BZ #13658]
4535         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
4536         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
4537         * sysdeps/i386/fpu/branred.c: Likewise.
4538         * sysdeps/i386/fpu/dosincos.c: Likewise.
4539         * sysdeps/i386/fpu/mpa.c: Likewise.
4540         * sysdeps/i386/fpu/s_cos.S: Likewise.
4541         * sysdeps/i386/fpu/s_sin.S: Likewise.
4542         * sysdeps/i386/fpu/s_sincos.S: Likewise.
4543         * sysdeps/i386/fpu/sincos32.c: Likewise.
4544
4545         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
4546         Define.
4547         (libc_feupdateenv_53bit): Define.
4548         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
4549         Define.
4550         (libc_feupdateenv_53bit): Define.
4551
4552         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
4553         53 bit (without extend i386 double precision).
4554
4555         * math/libm-test.inc (sincos_test): Add tests for large input.
4556         (sin): Likewise.
4557         (cos): Likewise.
4558
4559         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
4560
4561 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
4562
4563         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4564
4565 2012-03-15  David S. Miller  <davem@davemloft.net>
4566
4567         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
4568         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
4569         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
4570         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
4571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
4572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
4573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
4574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
4575         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
4576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
4577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
4578         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
4579         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
4580         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
4581         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
4582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
4583         file.
4584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
4585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
4586         file.
4587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
4588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
4589         file.
4590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
4591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
4592         file.
4593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
4594         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
4595         fmin/fmax sysdep routines.
4596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4597
4598 2012-03-14  David S. Miller  <davem@davemloft.net>
4599
4600         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
4601         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
4602         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
4603         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
4604         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
4605         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
4606         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
4607         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
4608         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
4609         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
4610         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
4611         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
4612         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
4613         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
4614         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
4615         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
4616         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
4617         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
4618         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
4619         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
4620         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
4621         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
4622         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
4623         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
4624         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
4625         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
4626         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
4627         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
4628         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
4629         routines.
4630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
4631         file.
4632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
4633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
4634         file.
4635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
4636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
4637         file.
4638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
4639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
4640         file.
4641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
4642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
4643         file.
4644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
4645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
4646         file.
4647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
4648         file.
4649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
4650         file.
4651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
4652         file.
4653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
4654         New file.
4655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
4656         file.
4657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
4658         file.
4659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
4660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
4661         file.
4662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
4663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
4664         file.
4665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
4666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
4667         file.
4668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
4669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
4670         VIS3 routines.
4671
4672         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4673         New file.
4674
4675         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4676
4677         * sysdeps/sparc/configure.in: New file.
4678         * sysdeps/sparc/configure: Generate.
4679         * configure.in (libc_cv_sparc_as_vis3): Substitute.
4680         * configure: Regenerate.
4681         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
4682         * config.make.in (have-as-vis3): New.
4683         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
4684         available use -Av9d instead of -Av9a.
4685         * sysdeps/sparc/sparc64/Makefile: Likewise.
4686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
4687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
4688         New file.
4689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
4690         file.
4691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
4692         New file.
4693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
4694         file.
4695         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
4696         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
4697         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
4698         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
4699         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
4700
4701         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
4702         fzeros/fnegs to load 0x80000000 into a float register instead of
4703         using the stack.
4704         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
4705
4706 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
4707
4708         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4709         bits/syscall.h.
4710         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
4711         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
4712         ($(inst_includedir)/bits/syscall.h): Remove rule.
4713         ($(objpfx)bits/syscall.d): Include instead of
4714         $(objpfx)syscall-list.d.
4715         (generated): Change syscall-list.h and syscall-list.d to
4716         bits/syscall.h and bits/syscall.d.
4717
4718 2012-03-14  Roland McGrath  <roland@hack.frob.com>
4719
4720         [BZ #13846]
4721         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
4722
4723 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
4724
4725         [BZ #13841]
4726         * math/s_csqrt.c: Include <float.h>.
4727         (__csqrt): Scale large or subnormal inputs.
4728         * math/s_csqrtf.c: Likewise.
4729         * math/s_csqrtl.c: Likewise.
4730         * math/libm-test.inc (csqrt_test): Add more tests.
4731         * sysdeps/i386/fpu/libm-test-ulps: Update.
4732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4733
4734         [BZ #13840]
4735         * math/libm-test.inc (hypot_test): Add more tests.
4736
4737 2012-03-13  David S. Miller  <davem@davemloft.net>
4738
4739         [BZ #13840]
4740         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
4741         double-precision for the calculation instead of scaling.
4742
4743 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
4744
4745         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
4746         manipulate bits before adding and subtracting TWO52[sx].
4747         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
4748         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4749         Likewise.
4750         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
4751
4752 2012-03-13  David S. Miller  <davem@davemloft.net>
4753
4754         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
4755         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
4756         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
4757         rtld-global-offsets.h
4758         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4759
4760         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
4761         large parameters.
4762
4763         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
4764
4765         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
4766         'err' in the ifdef scope in which it is actually used.
4767
4768         * nss/nss_db/db-init.c: Include string.h
4769
4770 2012-03-12  David S. Miller  <davem@davemloft.net>
4771
4772         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
4773         masking out of the most significant byte of random value used.
4774         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4775         Fix coding style in previous change.
4776
4777         * sysdeps/unix/sysv/linux/kernel-features.h
4778         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
4779         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
4780         expression.
4781         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
4782         later.
4783
4784 2012-03-11  David S. Miller  <davem@davemloft.net>
4785
4786         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4787         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
4788         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
4789         for 'resultvar' otherwise things get truncated on 64-bit.
4790
4791         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4792         Fix masking out of the most significant byte of random value used.
4793
4794         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4795
4796 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
4797
4798         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4799
4800 2012-03-09  David S. Miller  <davem@davemloft.net>
4801
4802         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
4803         variables with appropriate CPP guards.
4804         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
4805         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
4806         on resulting framesize and the management of the outregs buffer for pltexit.
4807         Preserve floating point return values across _dl_call_pltexit call.
4808         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
4809         framesize and the management of the outregs buffer for pltexit.
4810         Preserve floating point return values across _dl_call_pltexit
4811         call.
4812         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
4813         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
4814         (print_exit): Fix format string for return register value.
4815
4816 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
4817
4818         * sunrpc/Makefile (others): Add rpcgen.
4819         ($(objpfx)rpcgen): Remove special build rule and dependency on
4820         libc.
4821         * sunrpc/rpcgen.c: New file.
4822
4823 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
4824
4825         [BZ #13673]
4826         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
4827         * stdio-common/bug-vfprintf-nargs.c: Likewise.
4828         * sysdeps/i386/crti.S: Likewise.
4829         * sysdeps/i386/crtn.S: Likewise.
4830         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
4831         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
4832         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
4833         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
4834         * sysdeps/sh/crti.S: Likewise.
4835         * sysdeps/sh/crtn.S: Likewise.
4836         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4837
4838         [BZ #13673]
4839         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
4840         with URL.
4841         * locale/programs/locfile-kw.gperf: Likewise.
4842         * locale/programs/charmap-kw.h: Regenerated.
4843         * locale/programs/locfile-kw.h: Likewise.
4844
4845         [BZ #13673]
4846         * intl/plural.y: Replace FSF snail mail address with URL.
4847         * intl/plural.c: Regenerated.
4848
4849 2012-03-09  Richard Henderson  <rth@twiddle.net>
4850
4851         * include/math_private.h: Remove file.
4852         * math/math_private.h: Move file ...
4853         * sysdeps/generic/math_private.h: ... here.
4854
4855         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
4856         * sysdeps/powerpc/fpu/math_private.h: Likewise.
4857         * sysdeps/x86_64/fpu/math_private.h: Likewise.
4858
4859         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
4860         and <math_private.h>.
4861         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4862         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4863         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4864         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4865         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4866         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
4867         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4868         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4869         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4870         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4871         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4872         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4873         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4874         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4875         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4876         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4877         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4878         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4879         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4880         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
4881         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4882         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4883         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4884         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4885         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4886         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4887         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4888         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4889         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4890         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4891         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4892         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4893         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4894         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4895         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4896         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4897         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4898         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4899         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4900         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4901         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
4902         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4903         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4904         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4905         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4906         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4907         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4908         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4909         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4910         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4911         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4912         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
4913         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4914         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4915         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4916         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4917         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
4918         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4919         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4920         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
4921         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4922         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4923         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4924         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4925         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
4926         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4927         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4928         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4929         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
4930         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
4931         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
4932         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
4933         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
4934         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4935         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
4936         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
4937         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
4938         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4939         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
4940         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
4941         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
4942         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4943         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
4944         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
4945         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
4946         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
4947         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
4948         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
4949         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
4950         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4951         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4952         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
4953         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4954         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
4955         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
4956         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
4957         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
4958         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4959         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4960         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4961         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
4962         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
4963         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
4964         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
4965         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4966         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
4967         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4968         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
4969         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4970         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4971         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4972         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4973         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
4974         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4975         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
4976         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
4977         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4978         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4979         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4980         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4981         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4982         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4983         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
4984         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
4985         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4986         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4987         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
4988         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4989         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4990         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4991         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
4992         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4993         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4994         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4995         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
4996         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4997         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4998         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4999         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
5000         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
5001         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5002         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
5003         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
5004         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
5005         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
5006         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5007         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
5008         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
5009         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5010         * sysdeps/ieee754/k_standard.c: Likewise.
5011         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
5012         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
5013         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
5014         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
5015         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
5016         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
5017         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
5018         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
5019         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
5020         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5021         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
5022         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
5023         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
5024         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
5025         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
5026         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
5027         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
5028         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
5029         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
5030         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
5031         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
5032         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
5033         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
5034         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
5035         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
5036         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
5037         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
5038         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5039         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
5040         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
5041         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
5042         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
5043         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
5044         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
5045         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
5046         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
5047         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
5048         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
5049         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
5050         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
5051         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
5052         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
5053         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
5054         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
5055         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
5056         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
5057         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
5058         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
5059         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
5060         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
5061         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
5062         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
5063         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
5064         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5065         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
5066         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
5067         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
5068         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
5069         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
5070         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
5071         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
5072         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5073         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
5074         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
5075         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
5076         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
5077         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
5078         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
5079         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
5080         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
5081         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
5082         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
5083         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
5084         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
5085         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
5086         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
5087         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
5088         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
5089         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5090         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
5091         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
5092         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
5093         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
5094         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
5095         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
5096         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5097         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5098         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
5099         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5100         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
5101         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
5102         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
5103         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
5104         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
5105         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
5106         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
5107         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
5108         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
5109         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
5110         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
5111         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
5112         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
5113         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
5114         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
5115         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
5116         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
5117         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
5118         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
5119         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
5120         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
5121         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
5122         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
5123         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
5124         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
5125         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
5126         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5127         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
5128         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
5129         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5130         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
5131         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
5132         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5133         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
5134         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
5135         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
5136         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5137         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
5138         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5139         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
5140         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
5141         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
5142         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
5143         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
5144         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
5145         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
5146         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
5147         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
5148         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
5149         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
5150         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
5151         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
5152         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
5153         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
5154         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
5155         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
5156         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
5157         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
5158         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
5159         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
5160         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
5161         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
5162         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5163         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
5164         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
5165         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
5166         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
5167         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
5168         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
5169         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
5170         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
5171         * sysdeps/ieee754/s_lib_version.c: Likewise.
5172         * sysdeps/ieee754/s_matherr.c: Likewise.
5173         * sysdeps/ieee754/s_signgam.c: Likewise.
5174         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5175         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5176         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
5177         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
5178         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
5179         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5180         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
5181         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
5182         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
5183         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
5184         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
5185         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
5186         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
5187         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
5188         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
5189         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
5190         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5191         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
5192         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5193         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
5194         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
5195
5196 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5197
5198         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
5199         * sunrpc/rpc_main.c: Likewise.
5200         * sunrpc/rpc_svcout.c: Likewise.
5201
5202 2012-03-09  David S. Miller  <davem@davemloft.net>
5203
5204         * include/math_private.h: New file.
5205
5206 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
5207
5208         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
5209         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
5210         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
5211         from <bits/socket_type.h>.
5212         (enum __socket_type): Don't define here.
5213         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
5214         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5215         bits/socket_type.h.
5216
5217         [BZ #13566]
5218         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
5219         checking __USE_GNU.
5220
5221         * Makerules ($(inst_includedir)/%.h): New rule.
5222         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
5223         (install-others): Remove variable setting.
5224         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
5225
5226 2012-03-08  Richard Henderson  <rth@twiddle.net>
5227
5228         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
5229         from macro to inline function; merge with the
5230         !__LIBC_INTERNAL_MATH_INLINES version.
5231         (__ieee754_sqrtf): Likewise.
5232
5233         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
5234         to inline function.
5235         (__rintf, __floor, __floorf): Likewise.
5236
5237         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
5238         macro to inline function.
5239         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
5240
5241         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
5242         not <math/math_private.h>.
5243
5244 2012-03-08  David S. Miller  <davem@davemloft.net>
5245
5246         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
5247         copyright year.
5248         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
5249
5250 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
5251
5252         * resolv/gai_misc.c (handle_requests): Fix struct timespec
5253         normalization.
5254         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
5255         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
5256
5257 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
5258
5259         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
5260         be defined individually, they must be defined as a block.  Define
5261         S for printing a string instead of hidint the different by using a
5262         macro for adding the 'l'.
5263         * stdio-common/tst-fphex-wide.c: Adjust.
5264
5265 2012-03-07  Marek Polacek  <polacek@redhat.com>
5266
5267         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
5268
5269 2012-03-08  Marek Polacek  <polacek@redhat.com>
5270
5271         [BZ #13806]
5272         * stdio-common/Makefile (tests): Add tst-fphex-wide.
5273         * stdio-common/tst-fphex.c: Define a few macros to make the
5274         test reusable.  Use them.
5275         * stdio-common/tst-fphex-wide.c: New file.
5276
5277 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
5278
5279         [BZ #6911]
5280         * manual/macros.texi (gnusystems): New macro.
5281         (nongnusystems): Likewise.
5282         (gnulinuxhurdsystems): Likewise.
5283         (gnuhurdsystems): Likewise..
5284         (gnulinuxsystems): Likewise.
5285         * manual/charset.texi: Use new macros or @theglibc{} to refer to
5286         variants of the GNU system, not "GNU system".
5287         * manual/conf.texi: Likewise.
5288         * manual/errno.texi: Likewise.  Update example of errno macro
5289         expansion.
5290         * manual/filesys.texi: Likewise.
5291         (getumask): Document as specific to GNU/Hurd.
5292         * manual/install.texi: Likewise.  Reword some references to
5293         GNU/Linux.
5294         * manual/intro.texi: Likewise.
5295         * manual/io.texi: Likewise.
5296         (File Name Portability): Detail which constraints are inapplicable
5297         to all GNU systems and which are only inapplicable to GNU/Hurd.
5298         * manual/job.texi: Likewise.
5299         * manual/llio.texi: Likewise.
5300         (O_NOCTTY): Document as present on GNU/Linux.
5301         * manual/maint.texi: Likewise.
5302         * manual/memory.texi: Likewise.
5303         * manual/pattern.texi: Likewise.
5304         * manual/pipe.texi: Likewise.
5305         * manual/process.texi: Likewise.
5306         * manual/resource.texi: Likewise.
5307         (RUSAGE_CHILDREN): Remove statement about specifying a particular
5308         child on GNU/Hurd.
5309         * manual/setjmp.texi: Likewise.
5310         * manual/signal.texi: Likewise.
5311         * manual/startup.texi: Likewise.
5312         * manual/stdio.texi: Likewise.
5313         * manual/terminal.texi: Likewise.
5314         (ONLCR): Document as POSIX.
5315         (OXTABS): Document availability on GNU/Linux as XTABS.
5316         (ONOEOT): Document availability separately from other bits.
5317         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
5318         * manual/time.texi: Likewise.
5319         * manual/users.texi: Likewise.
5320         * INSTALL: Regenerated.
5321         * sysdeps/gnu/errlist.c: Regenerated.
5322
5323         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
5324         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
5325         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
5326         puts.
5327         * configure: Regenerated.
5328
5329 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
5330
5331         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
5332         default includes instead of AC_HEADER_CHECK.
5333         * sysdeps/i386/configure: Regenerated.
5334
5335         [BZ #10716]
5336         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
5337         * math/s_cacoshf.c (__cacoshf): Likewise.
5338         * math/s_cacoshl.c (__cacoshl): Likewise.
5339         * math/s_casinh.c (__casinh): Set signs of result from argument.
5340         * math/s_casinhf.c (__casinhf): Likewise.
5341         * math/s_casinhl.c (__casinhl): Likewise.
5342         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
5343         (casinh_test): Add more tests.
5344         * sysdeps/i386/fpu/libm-test-ulps: Update.
5345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5346
5347 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
5348
5349         * po/zh_TW.po: Update from translation team.
5350
5351         * login/Makefile (distribute): Remove variable.
5352         * catgets/Makefile: Likewise.
5353         * mach/Makefile: Likewise.
5354         * malloc/Makefile: Likewise.
5355         * misc/Makefile: Likewise.
5356         * iconv/Makefile: Likewise.
5357         * nscd/Makefile: Likewise.
5358         * hurd/Makefile: Likewise.
5359         * manual/Makefile: Likewise.
5360         * locale/Makefile: Likewise.
5361         * intl/Makefile: Likewise.
5362         * conform/Makefile: Likewise.
5363         * nss/Makefile: Likewise.
5364         * time/Makefile: Likewise.
5365         * soft-fp/Makefile: Likewise.
5366         * dirent/Makefile: Likewise.
5367         * gmon/Makefile: Likewise.
5368         * po/Makefile: Likewise.
5369         * rt/Makefile: Likewise.
5370         * socket/Makefile: Likewise.
5371         * math/Makefile: Likewise.
5372         * signal/Makefile: Likewise.
5373         * debug/Makefile: Likewise.
5374         * elf/Makefile: Likewise.
5375         * timezone/Makefile: Likewise.
5376         * stdlib/Makefile: Likewise.
5377         * iconvdata/Makefile: Likewise.
5378         * sunrpc/Makefile: Likewise.
5379         * io/Makefile: Likewise.
5380         * argp/Makefile: Likewise.
5381         * inet/Makefile: Likewise.
5382         * hesiod/Makefile: Likewise.
5383         * grp/Makefile: Likewise.
5384         * csu/Makefile: Likewise.
5385         * wctype/Makefile: Likewise.
5386         * crypt/Makefile: Likewise.
5387         * libio/Makefile: Likewise.
5388         * string/Makefile: Likewise.
5389         * nis/Makefile: Likewise.
5390         * resolv/Makefile: Likewise.
5391         * stdio-common/Makefile: Likewise.
5392         * wcsmbs/Makefile: Likewise.
5393         * dlfcn/Makefile: Likewise.
5394         * posix/Makefile: Likewise.
5395
5396         [BZ #6959]
5397         * timezone/Makefile: Don't install timezone files, just the programs
5398         and scripts.
5399
5400 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
5401
5402         * nss/databases.def: Add missing gshadow entry.
5403
5404         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
5405
5406 2012-03-06  Marek Polacek  <polacek@redhat.com>
5407
5408         [BZ #13726]
5409         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
5410         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5411         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
5412         * stdio-common/tst-long-dbl-fphex.c: New file.
5413
5414 2012-03-06  David S. Miller  <davem@davemloft.net>
5415
5416         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5417         (set_obp_int): New function.
5418         (get_obp_int): New function.
5419         (__get_clockfreq_via_dev_openprom): Likewise.
5420         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5421         Avoid unused variable warnings on 'val' and use builtin_expect.
5422         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
5423         __builtin_expect.
5424         (INLINE_CLONE_SYSCALL): Likewise.
5425
5426 2012-03-05  David S. Miller  <davem@davemloft.net>
5427
5428         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5429
5430 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
5431
5432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5433
5434         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
5435         only for |x| >= 40.
5436         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
5437
5438 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5439
5440         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
5441         Replace gettimeofday with __vdso_gettimeofday.
5442
5443         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5444         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
5445         __vdso_clock_gettime and __vdso_getcpu.
5446
5447         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
5448         time with __vdso_time.
5449
5450 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5451
5452         * manual/lang.texi (size_t): Note types to which size_t may be
5453         equivalent with the GNU C Library, but do not describe when
5454         differences between them are significant.
5455
5456 2012-03-05  Andreas Jaeger  <aj@suse.de>
5457
5458         * sysdeps/i386/fpu/libm-test-ulps: Update.
5459
5460 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
5461
5462         [BZ #3976]
5463         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
5464         (__ieee754_pow): Save and restore rounding mode and use
5465         round-to-nearest for main computations.
5466         * math/libm-test.inc (pow_test_tonearest): New function.
5467         (pow_test_towardzero): Likewise.
5468         (pow_test_downward): Likewise.
5469         (pow_test_upward): Likewise.
5470         (main): Call the new functions.
5471         * sysdeps/i386/fpu/libm-test-ulps: Update.
5472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5473
5474         [BZ #3976]
5475         * math/libm-test.inc (cosh_test_tonearest): New function.
5476         (cosh_test_towardzero): Likewise.
5477         (cosh_test_downward): Likewise.
5478         (cosh_test_upward): Likewise.
5479         (sinh_test_tonearest): Likewise.
5480         (sinh_test_towardzero): Likewise.
5481         (sinh_test_downward): Likewise.
5482         (sinh_test_upward): Likewise.
5483         (main): Call the new functions.
5484         * sysdeps/i386/fpu/libm-test-ulps: Update.
5485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5486
5487 2012-03-05  Tom de Vries  <tom@codesourcery.com>
5488
5489         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
5490         default stack guard is set in last bytes.
5491         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
5492
5493 2012-03-05  Kees Cook  <keescook@chromium.org>
5494
5495         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
5496
5497         [BZ #13656]
5498         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
5499         possibly allocate from heap instead of stack.
5500         * stdio-common/bug-vfprintf-nargs.c: New file.
5501         * stdio-common/Makefile (tests): Add nargs overflow test.
5502
5503 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
5504
5505         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5506
5507 2012-03-03  Marek Polacek  <polacek@redhat.com>
5508
5509         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
5510         * math/math_private.h: Likewise.
5511         * stdlib/tst-strtod.c: Likewise.
5512         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5513         * sysdeps/x86_64/bits/atomic.h: Likewise.
5514
5515 2012-03-02  David S. Miller  <davem@davemloft.net>
5516
5517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
5518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
5519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
5520         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
5521         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
5522         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
5523         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
5524         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
5525
5526 2012-03-02  Roland McGrath  <roland@hack.frob.com>
5527
5528         [BZ #13792]
5529         * manual/examples/README: New file, says the example source files
5530         can be used under GPL>=2.
5531         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
5532         line containing just "*/".
5533         * manual/examples/add.c: Add copyright header (GPL>=2).
5534         * manual/examples/argp-ex1.c: Likewise.
5535         * manual/examples/argp-ex2.c: Likewise.
5536         * manual/examples/argp-ex3.c: Likewise.
5537         * manual/examples/argp-ex4.c: Likewise.
5538         * manual/examples/atexit.c: Likewise.
5539         * manual/examples/db.c: Likewise.
5540         * manual/examples/dir.c: Likewise.
5541         * manual/examples/dir2.c: Likewise.
5542         * manual/examples/execinfo.c: Likewise.
5543         * manual/examples/filecli.c: Likewise.
5544         * manual/examples/filesrv.c: Likewise.
5545         * manual/examples/fmtmsgexpl.c: Likewise.
5546         * manual/examples/genpass.c: Likewise.
5547         * manual/examples/inetcli.c: Likewise.
5548         * manual/examples/inetsrv.c: Likewise.
5549         * manual/examples/isockad.c: Likewise.
5550         * manual/examples/longopt.c: Likewise.
5551         * manual/examples/memopen.c: Likewise.
5552         * manual/examples/memstrm.c: Likewise.
5553         * manual/examples/mkfsock.c: Likewise.
5554         * manual/examples/mkisock.c: Likewise.
5555         * manual/examples/mygetpass.c: Likewise.
5556         * manual/examples/pipe.c: Likewise.
5557         * manual/examples/popen.c: Likewise.
5558         * manual/examples/rprintf.c: Likewise.
5559         * manual/examples/search.c: Likewise.
5560         * manual/examples/select.c: Likewise.
5561         * manual/examples/setjmp.c: Likewise.
5562         * manual/examples/sigh1.c: Likewise.
5563         * manual/examples/sigusr.c: Likewise.
5564         * manual/examples/stpcpy.c: Likewise.
5565         * manual/examples/strdupa.c: Likewise.
5566         * manual/examples/strftim.c: Likewise.
5567         * manual/examples/strncat.c: Likewise.
5568         * manual/examples/subopt.c: Likewise.
5569         * manual/examples/swapcontext.c: Likewise.
5570         * manual/examples/termios.c: Likewise.
5571         * manual/examples/testopt.c: Likewise.
5572         * manual/examples/testpass.c: Likewise.
5573         * manual/examples/timeval_subtract.c: Likewise.
5574
5575         [BZ #13792]
5576         * manual/time.texi (Elapsed Time): Move timeval_subtract example
5577         function to ...
5578         * manual/timeval_subtract.c.texi: ... here, new file.
5579
5580 2012-03-02  David S. Miller  <davem@davemloft.net>
5581
5582         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
5583
5584 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
5585
5586         [BZ #3976]
5587         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
5588         (__sin): Save and restore rounding mode and use round-to-nearest
5589         for all computations.
5590         (__cos): Save and restore rounding mode and use round-to-nearest
5591         for all computations.
5592         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
5593         <fenv.h>.
5594         (tan): Save and restore rounding mode and use round-to-nearest for
5595         all computations.
5596         * math/libm-test.inc (cos_test_tonearest): New function.
5597         (cos_test_towardzero): Likewise.
5598         (cos_test_downward): Likewise.
5599         (cos_test_upward): Likewise.
5600         (sin_test_tonearest): Likewise.
5601         (sin_test_towardzero): Likewise.
5602         (sin_test_downward): Likewise.
5603         (sin_test_upward): Likewise.
5604         (tan_test_tonearest): Likewise.
5605         (tan_test_towardzero): Likewise.
5606         (tan_test_downward): Likewise.
5607         (tan_test_upward): Likewise.
5608         (main): Call the new functions.
5609         * sysdeps/i386/fpu/libm-test-ulps: Update.
5610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5611
5612         [BZ #10135]
5613         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
5614         small n, then large n, before computing and testing k+n.
5615         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5616         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5617         Likewise.
5618         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5619         Likewise.
5620         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
5621         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5622         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5623         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5624         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5625         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5626         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5627         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
5628         * math/libm-test.inc (scalbn_test): Add more tests.
5629         (scalbln_test): Likewise.
5630
5631         * manual/filesys.texi (mode_t): Describe constraints on size and
5632         signedness, not exact equivalence to a particular type.
5633         (ino_t): Likewise.
5634         (ino64_t): Likewise.
5635         (dev_t): Likewise.
5636         (nlink_t): Likewise.
5637         (blkcnt_t): Likewise.
5638         (blkcnt64_t): Likewise.
5639         * manual/llio.texi (off_t): Likewise.
5640
5641         [BZ #3976]
5642         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
5643         (__ieee754_exp): Save and restore rounding mode and use
5644         round-to-nearest for all computations.
5645         * math/libm-test.inc (exp_test_tonearest): New function.
5646         (exp_test_towardzero): Likewise.
5647         (exp_test_downward): Likewise.
5648         (exp_test_upward): Likewise.
5649         (main): Call the new functions.
5650         * sysdeps/i386/fpu/libm-test-ulps: Update.
5651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5652
5653 2012-03-01  Chris Demetriou  <cgd@google.com>
5654
5655         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
5656         have predictable order.
5657
5658 2012-03-01  David S. Miller  <davem@davemloft.net>
5659
5660         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
5661
5662         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
5663         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
5664         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
5665         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
5666
5667         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
5668         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
5669         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
5670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
5671         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
5672         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
5673         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
5674         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
5675         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
5676
5677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5678
5679         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
5680         * sysdeps/sparc/fpu/libm-test-ulps: to here.
5681         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
5682
5683         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
5684         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5685         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5686         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5687         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5688         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5689         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5690         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5691         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5692         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5693         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5694         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
5695         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
5696         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
5697         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
5698         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
5699         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
5700         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
5701         * sysdeps/sparc/elf/configure: Regenerated.
5702
5703 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
5704
5705         * configure.in (AS, LD): Require binutils 2.20 or later.
5706         * configure: Regenerated.
5707         * manual/install.texi (Tools for Compilation): Give binutils 2.20
5708         as required minimum version.
5709         * INSTALL: Regenerated.
5710
5711         [BZ #2541]
5712         [BZ #4108]
5713         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
5714         before squaring exponent.
5715         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
5716         bottom long double and 27 bits of top long double before squaring
5717         exponent.
5718         * math/libm-test.inc (erfc_test): Add more tests.
5719         * sysdeps/i386/fpu/libm-test-ulps: Update.
5720         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5722
5723 2012-03-01  Kai Tietz  <ktietz@redhat.com>
5724
5725         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
5726         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
5727         containing bit-fields.
5728         * soft-fp/extended.h (_FP_UNION_E): Likewise.
5729         * soft-fp/single.h (_FP_UNION_S): Likewise.
5730         * soft-fp/double.h (_FP_UNION_D): Likewise.
5731
5732 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5733
5734         [BZ #13786]
5735         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
5736         not include ../strcmp.S.
5737         [USE_AS_STRNCASECMP_L]: Likewise.
5738         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
5739         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
5740         * sysdeps/i386/i686/multiarch/strncase_l-c.c
5741         (__strncasecmp_l_ia32): Define as alias to
5742         __strncasecmp_l_nonascii.
5743
5744         [BZ #5794]
5745         * math/libm-test.inc (expm1_test): Add test for bug 5794.
5746         * sysdeps/i386/fpu/libm-test-ulps: Update.
5747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5748
5749         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
5750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5751
5752 2012-02-29  Jeff Law  <law@redhat.com>
5753
5754         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
5755         out of bounds read.
5756
5757 2012-02-29  Marek Polacek  <polacek@redhat.com>
5758
5759         [BZ #13706]
5760         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
5761         * elf/Makefile: Add rules to run tst-unused-dep.out.
5762
5763 2012-02-28  David S. Miller  <davem@davemloft.net>
5764
5765         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
5766         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
5767         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
5768         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
5769         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
5770         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
5771
5772 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
5773
5774         * math/libm-test.inc (llround_test): Move one test from
5775         lround_test.  Use TEST_f_L in moved test.
5776         (lround_test): Move misplaced test to llround_test.  Add testcase
5777         from bug 2561.
5778
5779 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
5780
5781         * sysdeps/x86_64/fpu/e_expf.S: New file.
5782         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
5783
5784 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
5785
5786         [BZ #13637]
5787         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
5788         of remain_len that may cause incomplete multi-byte character and
5789         false match.
5790         * posix/bug-regex33.c: New file.
5791         * posix/Makefile (tests): Add bug-regex33.
5792
5793 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
5794
5795         * manual/macros.texi: New file.
5796         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
5797         * manual/libc.texinfo: Include macros.texi.
5798         * manual/creatute.texi: Likewise.
5799         * manual/install.texi: Likewise.
5800         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
5801         @glibcadj{} in references to the GNU C Library.
5802         * manual/charset.texi: Likewise.
5803         * manual/conf.texi: Likewise.
5804         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
5805         when not using those macros.
5806         * manual/creature.texi: Likewise.
5807         * manual/crypt.texi: Likewise.
5808         * manual/errno.texi: Likewise.
5809         * manual/filesys.texi: Likewise.
5810         * manual/header.texi: Likewise.
5811         * manual/install.texi: Likewise.
5812         * manual/intro.texi: Likewise.
5813         * manual/io.texi: Likewise.
5814         * manual/job.texi: Likewise.
5815         * manual/lang.texi: Likewise.
5816         * manual/libc.texiinfo: Likewise.
5817         * manual/llio.texi: Likewise.
5818         * manual/locale.texi: Likewise.
5819         * manual/maint.texi: Likewise.
5820         * manual/math.texi: Likewise.
5821         * manual/memory.texi: Likewise.
5822         * manual/message.texi: Likewise.
5823         * manual/nss.texi: Likewise.
5824         * manual/pattern.texi: Likewise.
5825         * manual/process.texi: Likewise.
5826         * manual/resource.texi: Likewise.
5827         * manual/search.texi: Likewise.
5828         * manual/setjmp.texi: Likewise.
5829         * manual/signal.texi: Likewise.
5830         * manual/socket.texi: Likewise.
5831         * manual/startup.texi: Likewise.
5832         * manual/stdio.texi: Likewise.
5833         * manual/string.texi: Likewise.
5834         * manual/sysinfo.texi: Likewise.
5835         * manual/syslog.texi: Likewise.
5836         * manual/terminal.texi: Likewise.
5837         * manual/time.texi: Likewise.
5838         * manual/users.texi: Likewise.
5839         * INSTALL: Regenerated.
5840         * NOTES: Regenerated.
5841         * sysdeps/gnu/errlist.c: Regenerated.
5842
5843 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
5844
5845         * include/dirent.h: Include <dirstream.h> before
5846         <dirent/dirent.h>.
5847
5848 2012-02-28  David S. Miller  <davem@davemloft.net>
5849
5850         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
5851         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
5852         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
5853         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
5854
5855 2012-02-27  David S. Miller  <davem@davemloft.net>
5856
5857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
5858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
5859         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
5860         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
5861
5862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
5863         frame pointer instead of stack pointer relative arg slot.
5864         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5865         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5866         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5867
5868 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
5869
5870         [BZ #3992]
5871         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
5872
5873 2012-02-27  David S. Miller  <davem@davemloft.net>
5874
5875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
5876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
5878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
5879         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5880         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5881         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
5882         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
5883
5884 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
5885
5886         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
5887         later.  Allow versions 5-9.
5888         * configure: Regenerated.
5889         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
5890         required minimum version and 4.6 as recommended version.  Do not
5891         mention bugs in GCC 2.7 and 2.8.
5892         * INSTALL: Regenerated.
5893
5894 2012-02-27  David S. Miller  <davem@davemloft.net>
5895
5896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
5897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
5898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
5899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
5900         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
5901         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
5902         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
5903         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
5904
5905         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
5906         manipulate bits before adding and subtracting TWO112[sx].
5907         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5908
5909 2012-02-27  Roland McGrath  <roland@hack.frob.com>
5910
5911         [BZ #13775]
5912         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
5913         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
5914         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
5915         being in POSIX, because they are in 1003.1-2008.
5916
5917         * rt/tst-aio.c: Include <fcntl.h>.
5918         * rt/tst-aio7.c: Likewise.
5919         * rt/tst-aio64.c: Likewise.
5920
5921         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
5922
5923 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
5924
5925         * manual/install.texi (--with-headers): Describe headers as
5926         interface headers, not private headers.
5927         (Specific advice for GNU/Linux systems): Describe use of headers
5928         from "make headers_install", not private headers from older
5929         kernels.
5930         * INSTALL: Regenerated.
5931         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
5932         Change to 2.6.19.
5933         * sysdeps/unix/sysv/linux/configure: Regenerated.
5934
5935         * manual/llio.texi (fclean): Remove documentation.
5936
5937         * manual/Makefile (libc-texi-generated): New variable.  Include
5938         version.texi.
5939         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
5940         $(libc-texi-generated), not duplicated list of files.
5941         (version.texi, stamp-version): New rules.
5942         (realclean): Remove $(libc-texi-generated), not individual files
5943         from that list.  Do not remove dir-add.texinfo.
5944         * manual/libc.texinfo: Comment out uses of edition numbers and
5945         references to printed manual.  Remove last-updated dates.
5946         (EDITION): Comment out.
5947         (ISBN): Likewise.
5948         (VERSION, UPDATED): Remove.
5949         (version.texi): Include.
5950
5951 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
5952
5953         * sysdeps/posix/spawni.c: Include <signal.h>.
5954         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
5955         * sysdeps/pthread/aio_fsync.c: Likewise.
5956
5957 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
5958
5959         * conform/Makefile (tests): Run only when not cross-compiling and
5960         when fast-check is not defined.
5961
5962         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
5963         * conform/data/limits.h-data: Fixes for POSIX2008.
5964         * conform/run-conformtest.sh: Run all tests.
5965         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
5966         headers.
5967         * include/bits/dlfcn.h: Likewise.
5968         * include/langinfo.h: Likewise.
5969         * include/monetary.h: Likewise.
5970         * include/sys/poll.h: Likewise.
5971
5972         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
5973         for __USE_GNU.
5974         * posix/spawn.h: Define __need_sigset_t.
5975         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
5976         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
5977         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
5978         to get sigevent_t only.
5979         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
5980         only for __USE_GNU.
5981         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5982         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5983         process_vm_writev only for __USE_GNU.
5984         * termios/termios.h: Declare tcgetsid also for POSIX2008.
5985
5986         * conform/Makefile: For now ignore errors from run-conformtest.
5987         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
5988         POSIX to avoid namespace pollution.  Don't prepend headers.
5989         * conform/data/aio.h-data: Fixes for POSIX testing.
5990         * conform/data/fcntl.h-data: Likewise.
5991         * conform/data/glob.h-data: Likewise.
5992         * conform/data/grp.h-data: Likewise.
5993         * conform/data/pthread.h-data: Likewise.
5994         * conform/data/pwd.h-data: Likewise.
5995         * conform/data/signal.h-data: Likewise.
5996         * conform/data/spawn.h-data: Likewise.
5997         * conform/data/stdio.h-data: Likewise.
5998         * conform/data/stdlib.h-data: Likewise.
5999         * conform/data/stropts.h-data: Likewise.
6000         * conform/data/sys/mman.h-data: Likewise.
6001         * conform/data/sys/stat.h-data: Likewise.
6002         * conform/data/sys/types.h-data: Likewise.
6003         * conform/data/sys/wait.h-data: Likewise.
6004         * conform/data/time.h-data: Likewise.
6005         * conform/data/unistd.h-data: Likewise.
6006         * conform/data/utime.h-data: Likewise.
6007
6008         * io/sys/stat.h: fchmod was always in POSIX.
6009         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
6010         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
6011         * rt/aio.h: Define __need_timespec before including <time.h>.
6012         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
6013         struct.  Add forward declaration of pthread_attr_t and use it in
6014         sigevent.
6015         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6016         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6017         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
6018         always remove CLK_TCK definition.
6019
6020 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
6021
6022         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
6023
6024 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
6025
6026         * conform/run-conformtest.sh: New file.
6027         * conform/Makefile: Run run-conformtest for tests.
6028         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
6029         support.
6030
6031         * conform/data/uchar.h-data: New file.
6032         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
6033         * conform/data/arpa/inet.h-data: Likewise.
6034         * conform/data/assert.h-data: Likewise.
6035         * conform/data/complex.h-data: Likewise.
6036         * conform/data/cpio.h-data: Likewise.
6037         * conform/data/ctype.h-data: Likewise.
6038         * conform/data/dirent.h-data: Likewise.
6039         * conform/data/dlfcn.h-data: Likewise.
6040         * conform/data/errno.h-data: Likewise.
6041         * conform/data/fcntl.h-data: Likewise.
6042         * conform/data/float.h-data: Likewise.
6043         * conform/data/fmtmsg.h-data: Likewise.
6044         * conform/data/fnmatch.h-data: Likewise.
6045         * conform/data/ftw.h-data: Likewise.
6046         * conform/data/glob.h-data: Likewise.
6047         * conform/data/grp.h-data: Likewise.
6048         * conform/data/iconv.h-data: Likewise.
6049         * conform/data/inttypes.h-data: Likewise.
6050         * conform/data/langinfo.h-data: Likewise.
6051         * conform/data/libgen.h-data: Likewise.
6052         * conform/data/limits.h-data: Likewise.
6053         * conform/data/locale.h-data: Likewise.
6054         * conform/data/math.h-data: Likewise.
6055         * conform/data/monetary.h-data: Likewise.
6056         * conform/data/mqueue.h-data: Likewise.
6057         * conform/data/ndbm.h-data: Likewise.
6058         * conform/data/net/if.h-data: Likewise.
6059         * conform/data/netdb.h-data: Likewise.
6060         * conform/data/netinet/in.h-data: Likewise.
6061         * conform/data/nl_types.h-data: Likewise.
6062         * conform/data/poll.h-data: Likewise.
6063         * conform/data/pthread.h-data: Likewise.
6064         * conform/data/pwd.h-data: Likewise.
6065         * conform/data/regex.h-data: Likewise.
6066         * conform/data/sched.h-data: Likewise.
6067         * conform/data/search.h-data: Likewise.
6068         * conform/data/semaphore.h-data: Likewise.
6069         * conform/data/setjmp.h-data: Likewise.
6070         * conform/data/signal.h-data: Likewise.
6071         * conform/data/spawn.h-data: Likewise.
6072         * conform/data/stdarg.h-data: Likewise.
6073         * conform/data/stdio.h-data: Likewise.
6074         * conform/data/stdlib.h-data: Likewise.
6075         * conform/data/string.h-data: Likewise.
6076         * conform/data/strings.h-data: Likewise.
6077         * conform/data/stropts.h-data: Likewise.
6078         * conform/data/sys/ipc.h-data: Likewise.
6079         * conform/data/sys/mman.h-data: Likewise.
6080         * conform/data/sys/msg.h-data: Likewise.
6081         * conform/data/sys/resource.h-data: Likewise.
6082         * conform/data/sys/select.h-data: Likewise.
6083         * conform/data/sys/sem.h-data: Likewise.
6084         * conform/data/sys/shm.h-data: Likewise.
6085         * conform/data/sys/socket.h-data: Likewise.
6086         * conform/data/sys/stat.h-data: Likewise.
6087         * conform/data/sys/statvfs.h-data: Likewise.
6088         * conform/data/sys/time.h-data: Likewise.
6089         * conform/data/sys/timeb.h-data: Likewise.
6090         * conform/data/sys/times.h-data: Likewise.
6091         * conform/data/sys/types.h-data: Likewise.
6092         * conform/data/sys/uio.h-data: Likewise.
6093         * conform/data/sys/un.h-data: Likewise.
6094         * conform/data/sys/utsname.h-data: Likewise.
6095         * conform/data/sys/wait.h-data: Likewise.
6096         * conform/data/syslog.h-data: Likewise.
6097         * conform/data/tar.h-data: Likewise.
6098         * conform/data/termios.h-data: Likewise.
6099         * conform/data/utime.h-data: Likewise.
6100         * conform/data/utmpx.h-data: Likewise.
6101         * conform/data/varargs.h-data: Likewise.
6102         * conform/data/wchar.h-data: Likewise.
6103         * conform/data/wctype.h-data: Likewise.
6104         * conform/data/wordexp.h-data: Likewise.
6105
6106         * include/stropts.h: New file.
6107         * include/uchar.h: New file.
6108         * include/aio.h: Changes to allow conformtest.pl to use the headers.
6109         * include/assert.h: Likewise.
6110         * include/ctype.h: Likewise.
6111         * include/dirent.h: Likewise.
6112         * include/dlfcn.h: Likewise.
6113         * include/fcntl.h: Likewise.
6114         * include/fnmatch.h: Likewise.
6115         * include/glob.h: Likewise.
6116         * include/grp.h: Likewise.
6117         * include/libio.h: Likewise.
6118         * include/locale.h: Likewise.
6119         * include/math.h: Likewise.
6120         * include/net/if.h: Likewise.
6121         * include/netdb.h: Likewise.
6122         * include/netinet/in.h: Likewise.
6123         * include/pthread.h: Likewise.
6124         * include/pwd.h: Likewise.
6125         * include/regex.h: Likewise.
6126         * include/sched.h: Likewise.
6127         * include/search.h: Likewise.
6128         * include/setjmp.h: Likewise.
6129         * include/signal.h: Likewise.
6130         * include/stdio.h: Likewise.
6131         * include/stdlib.h: Likewise.
6132         * include/string.h: Likewise.
6133         * include/sys/cdefs.h: Likewise.
6134         * include/sys/mman.h: Likewise.
6135         * include/sys/msg.h: Likewise.
6136         * include/sys/resource.h: Likewise.
6137         * include/sys/select.h: Likewise.
6138         * include/sys/socket.h: Likewise.
6139         * include/sys/stat.h: Likewise.
6140         * include/sys/statvfs.h: Likewise.
6141         * include/sys/time.h: Likewise.
6142         * include/sys/times.h: Likewise.
6143         * include/sys/uio.h: Likewise.
6144         * include/sys/utsname.h: Likewise.
6145         * include/sys/wait.h: Likewise.
6146         * include/termios.h: Likewise.
6147         * include/time.h: Likewise.
6148         * include/ulimit.h: Likewise.
6149         * include/unistd.h: Likewise.
6150         * include/utime.h: Likewise.
6151         * include/wchar.h: Likewise.
6152         * include/wctype.h: Likewise.
6153         * include/wordexp.h: Likewise.
6154
6155         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
6156
6157         * time/time.h: TIME_UTC must be a macro.
6158         Make timespec_get available for ISO C11 only as well.
6159
6160 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
6161
6162         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
6163         Reported by Peng Haitao <penght@cn.fujitsu.com>.
6164
6165 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6166
6167         * configure.in: Use -o not -a in test for unsupported multi-arch.
6168
6169 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6170
6171         * manual/texinfo.tex: Update to version 2012-01-19.16.
6172
6173 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
6174
6175         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
6176
6177 2012-02-24  Roland McGrath  <roland@hack.frob.com>
6178
6179         [BZ #13738]
6180         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
6181         * manual/fdl-1.3.texi: New file.
6182         * manual/fdl-1.1.texi: File removed.
6183
6184         [BZ #13738]
6185         * manual/libc.texinfo (FDL_VERSION): New @set.
6186         Use it for mention of FDL in cover text.
6187         (Documentation License): Use it in @include file name.
6188
6189 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6190             Roland McGrath  <roland@hack.frob.com>
6191
6192         [BZ #5461]
6193         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
6194         not LONG_LONG_MAX and LONG_LONG_MIN.
6195         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
6196         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
6197         name.
6198         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
6199
6200 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6201
6202         [BZ #2547]
6203         [BZ #11365]
6204         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
6205         manipulate bits before adding and subtracting TWO23[sx].
6206         * math/libm-test.inc (nearbyint_test): Add more tests.
6207
6208 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6209
6210         [BZ #2548]
6211         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
6212         bits before adding and subtracting TWO23[sx].
6213         * math/libm-test.inc (rint_test): Add more tests.
6214         (rint_test_tonearest): Likewise.
6215         (rint_test_towardzero): Likewise.
6216         (rint_test_downward): Likewise.
6217         (rint_test_upward: Likewise.
6218
6219 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6220
6221         [BZ #10110]
6222         * include/stdc-predef.h: New file.  Extracted from features.h.
6223         * include/features.h: Include stdc-predef.h.
6224         * Makefile (headers): Add stdc-predef.h.
6225         * CONFORMANCE (Compiler limitations): Update.
6226
6227 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
6228
6229         * manual/libc.texinfo (VERSION, UPDATED): Revert.
6230
6231 2012-02-21  David S. Miller  <davem@davemloft.net>
6232
6233         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
6234         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6235
6236 2012-02-20  David S. Miller  <davem@davemloft.net>
6237
6238         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
6239         using a normal save/restore sequence, rather than allocating a
6240         dummy stack frame just to store a frame pointer and restore.
6241         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6242
6243 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6244
6245         * manual/install.texi: Fix stray word in line-wrapped comment.
6246
6247 2012-02-20  David S. Miller  <davem@davemloft.net>
6248
6249         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
6250         both binutils and gcc support GOTDATA.
6251
6252         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
6253         "rd %pc" in the PIC register setup sequences.
6254
6255         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
6256         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
6257         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6258         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
6259         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6260         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
6261         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6262         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6263         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6264         (SYSCALL_ERROR_HANDLER): Likewise.
6265         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6266         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6267         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6268         (SYSCALL_ERROR_HANDLER): Likewise.
6269
6270         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
6271         (HAVE_GCC_GOTDATA): New.
6272         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
6273         relocation support in both binutils and gcc.
6274         * sysdeps/sparc/elf/configure: Regenerate.
6275
6276         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
6277         * sysdeps/sparc/sparc32/elf/configure: Delete.
6278         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
6279         * sysdeps/sparc/sparc64/elf/configure: Delete.
6280         * sysdeps/sparc/elf/configure.in: New file.
6281         * sysdeps/sparc/elf/configure: Generate.
6282
6283         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
6284         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
6285         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
6286         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
6287         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
6288
6289 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6290
6291         * manual/install.texi: Do not mention specific glibc version
6292         numbers.
6293         * manual/libc.texinfo (VERSION, UPDATED): Update.
6294         (@copying): Use @copyright{} and range of years.
6295
6296 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
6297
6298         [BZ #13695]
6299         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
6300         [crti.S not in sysdirs] (generated): Do not append.
6301         [crti.S not in sysdirs] (omit-deps): Likewise.
6302         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
6303         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
6304         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
6305         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
6306         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
6307         Likewise.
6308         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
6309         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
6310         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
6311         * csu/defs.awk: Remove file.
6312         * sysdeps/generic/initfini.c: Likewise.
6313         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
6314         variable.
6315         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
6316         Likewise.
6317
6318 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6319
6320         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
6321         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
6322         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
6323         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
6324         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
6325         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
6326         <bits/epoll.h>.
6327         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
6328         (__EPOLL_PACKED): Define to empty if not defined by
6329         <bits/epoll.h>.
6330         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
6331         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6332         bits/epoll.h.
6333
6334 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6335
6336         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
6337         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
6338         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
6339         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
6340         <bits/timerfd.h>.
6341         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
6342         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6343         bits/timerfd.h.
6344
6345 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
6346
6347         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
6348         in C locale.
6349         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6350         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
6351         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
6352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6353
6354 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
6355
6356         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6357         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
6358
6359 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
6360
6361         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
6362         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
6363         defined.
6364         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
6365         Likewise.
6366         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
6367         entry for 2.16.
6368
6369 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
6370
6371         * math/w_acos.c: Use non-signaling floating-point comparisons.
6372         * math/w_acosf.c: Likewise.
6373         * math/w_acosh.c: Likewise.
6374         * math/w_acoshf.c: Likewise.
6375         * math/w_acoshl.c: Likewise.
6376         * math/w_acosl.c: Likewise.
6377         * math/w_asin.c: Likewise.
6378         * math/w_asinf.c: Likewise.
6379         * math/w_asinl.c: Likewise.
6380         * math/w_atanh.c: Likewise.
6381         * math/w_atanhf.c: Likewise.
6382         * math/w_atanhl.c: Likewise.
6383         * math/w_exp2.c: Likewise.
6384         * math/w_exp2f.c: Likewise.
6385         * math/w_exp2l.c: Likewise.
6386         * math/w_j0.c: Likewise.
6387         * math/w_j0f.c: Likewise.
6388         * math/w_j0l.c: Likewise.
6389         * math/w_j1.c: Likewise.
6390         * math/w_j1f.c: Likewise.
6391         * math/w_j1l.c: Likewise.
6392         * math/w_jn.c: Likewise.
6393         * math/w_jnf.c: Likewise.
6394         * math/w_log.c: Likewise.
6395         * math/w_log10.c: Likewise.
6396         * math/w_log10f.c: Likewise.
6397         * math/w_log10l.c: Likewise.
6398         * math/w_log2.c: Likewise.
6399         * math/w_log2f.c: Likewise.
6400         * math/w_log2l.c: Likewise.
6401         * math/w_logf.c: Likewise.
6402         * math/w_logl.c: Likewise.
6403         * math/w_sqrt.c: Likewise.
6404         * math/w_sqrtf.c: Likewise.
6405         * math/w_sqrtl.c: Likewise.
6406         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6407         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
6408         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6409         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6410         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6411
6412 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6413
6414         [BZ #9739]
6415         * manual/string.texi (strnlen): Use correct parameter name in
6416         equivalent expression.
6417
6418 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6419
6420         [BZ #11174]
6421         * manual/users.texi (seteuid): Consistently use neweuid for
6422         argument name.
6423
6424 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
6425
6426         [BZ #13704]
6427         * manual/nss.texi (Services in the NSS configuration): Correct
6428         list of services in example configuration file.
6429
6430 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
6431
6432         [BZ #11322]
6433         * manual/arith.texi: Remove statements about negative zero
6434         behaving identically to zero.
6435
6436 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6437
6438         [BZ #5993]
6439         * manual/install.texi: Do not document upgrading from libc5.
6440
6441 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
6442
6443         [BZ #4596]
6444         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
6445
6446 2012-02-18  David S. Miller  <davem@davemloft.net>
6447
6448         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
6449         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
6450         %o7 across the call.
6451         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
6452         instead.
6453         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
6454         SETUP_PIC_REG_LEAF.
6455         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6456         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
6457         * sysdeps/sparc/crtn.S: Likewise.
6458
6459 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
6460
6461         * aout/Makefile: Remove.
6462
6463 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
6464
6465         [BZ #13058]
6466         * manual/examples/argp-ex1.c (main): Format definition in GNU
6467         style.
6468         * manual/examples/argp-ex2.c (main): Likewise.
6469         * manual/examples/argp-ex3.c (main): Likewise.
6470         * manual/examples/argp-ex4.c (main): Likewise.
6471         * manual/examples/longopt.c (main): Use new-style prototype
6472         definition.
6473         * manual/examples/strncat.c (main): Specify return type and use
6474         (void) for arguments.
6475         * manual/examples/subopt.c (main): Use char **argv argument.
6476
6477 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6478
6479         [BZ #5077]
6480         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
6481         rounding modes.
6482
6483 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
6484
6485         [BZ #6907]
6486         * manual/string.texi (strchr): Change when strchrnul is
6487         recommended.
6488
6489 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
6490
6491         [BZ #174]
6492         * manual/locale.texi (setlocale): Document LOCPATH.
6493
6494 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6495
6496         [BZ #10210]
6497         * manual/process.texi (execle): Move @dots{} before last argument.
6498
6499 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
6500
6501         [BZ #12047]
6502         * manual/charset.texi (Generic Charset Conversion): Fix typo
6503         (LC_TYPE -> LC_CTYPE).
6504
6505 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
6506
6507         [BZ #5805]
6508         * manual/arith.texi (scalbn): Use @var{} on parameter names.
6509         (scalbnf): Likewise.
6510         (scalbnl): Likewise.
6511         (scalbln): Likewise.
6512         (scalblnf): Likewise.
6513         (scalblnl): Likewise.
6514         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
6515         (vwarnx): Likewise.
6516         (verr): Likewise.
6517         (verrx): Likewise.
6518         * manual/filesys.texi (telldir): Use braces around return type.
6519         * manual/llio.texi (mmap): Add space after comma.
6520         (mmap64): Likewise.
6521         * manual/math.texi (jn): Use @var{} on parameter names.
6522         (jnf): Likewise.
6523         (jnl): Likewise.
6524         (yn): Likewise.
6525         (ynf): Likewise.
6526         (ynl): Likewise.
6527         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
6528         line.
6529         * manual/resource.texi (ulimit): Use @dots{} instead of literal
6530         "...".
6531         (sched_get_priority_min): Remove semicolon on @deftypefun line.
6532         (sched_get_priority_max): Likewise.
6533         * manual/signal.texi (sigvec): Add space after comma.
6534         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
6535         names.
6536         (if_indextoname): Likewise.
6537         (if_freenameindex): Likewise.
6538         (sendto): Use ',' instead of '.' in prototype.
6539         * manual/startup.texi (syscall): Use @dots{} instead of literal
6540         "...".
6541         * manual/stdio.texi (__fpending): Separate initial words of
6542         paragraph from @deftypefun line.
6543         * manual/syslog.texi (syslog): Use @dots{} instead of literal
6544         "...".
6545         (vsyslog): Use @var{} on parameter names.
6546         * manual/terminal.texi (stty): Use @var{} on parameter names.
6547         * manual/users.texi (getutmp): Use @var{} on parameter names.
6548         (getutmpx): Likewise.
6549
6550 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6551
6552         [BZ #6884]
6553         * manual/stdio.texi (fopen): Fix typos in description of
6554         ",ccs=STRING".
6555
6556 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
6557
6558         [BZ #4026]
6559         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
6560         get clock_id definition.
6561
6562 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
6563
6564         [BZ #4822]
6565         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
6566         (madvise): Cast every argument to void on its own.
6567
6568 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6569
6570         [BZ #9902]
6571         * manual/startup.texi (Exit Status): Fix typo.
6572
6573 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
6574
6575         [BZ #10140]
6576         * manual/examples/argp-ex1.c: Include <stdlib.h>.
6577         * manual/examples/argp-ex2.c: Likewise.
6578         * manual/examples/argp-ex3.c: Likewise.
6579
6580 2012-02-16  Richard Henderson  <rth@redhat.com>
6581
6582         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
6583         * sysdeps/s390/s390-32/initfini.c: Remove.
6584         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
6585         * sysdeps/s390/s390-64/initfini.c: Remove.
6586
6587 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6588
6589         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
6590         compiler output for sysdeps/generic/initfini.c.
6591         * sysdeps/sh/elf/initfini.c: Remove file.
6592
6593 2012-02-16  David S. Miller  <davem@davemloft.net>
6594
6595         [BZ #11494]
6596         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
6597
6598         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
6599         * sysdeps/sparc/crti.S: New file.
6600         * sysdeps/sparc/crtn.S: New file.
6601         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
6602         * sysdeps/sparc/sparc64/Makefile: Likewise.
6603
6604 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
6605
6606         [BZ #3335]
6607         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
6608
6609 2012-02-15  Roland McGrath  <roland@hack.frob.com>
6610
6611         [BZ #4822]
6612         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
6613
6614         * mach/devstream.c (cookie_io_functions_t): Macro removed.
6615         (write, read, close): Likewise.
6616         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6617
6618 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
6619
6620         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
6621         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
6622         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
6623         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
6624         <bits/signalfd.h>.
6625         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
6626         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6627         bits/signalfd.h.
6628
6629 2012-02-14  Marek Polacek  <polacek@redhat.com>
6630
6631         * sysdeps/x86_64/crti.S: New file.
6632         * sysdeps/x86_64/crtn.S: New file.
6633         * sysdeps/x86_64/elf/initfini.c: Remove file.
6634
6635 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
6636
6637         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
6638         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
6639         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
6640         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
6641         <bits/inotify.h>.
6642         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
6643         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6644         bits/inotify.h.
6645
6646 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
6647
6648         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
6649         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
6650         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
6651         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
6652         <bits/eventfd.h>.
6653         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
6654         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6655         bits/eventfd.h.
6656
6657 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
6658
6659         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
6660         __feraiseexcept instead of feraiseexcept.
6661
6662         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
6663         nanosleep invocations.
6664         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
6665         strings, and add error checking for a nanosleep invocations.
6666
6667 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6668
6669         Replace FSF snail mail address with URLs, as per GNU coding standards.
6670         Most of the snail mail addresses were wrong anyway, and omitting
6671         them makes the source code easier to maintain.  Almost all of the
6672         changes are to license notices and to locale LC_IDENTIFICATION
6673         addresses, except for this one:
6674         * manual/libc.texinfo: In "Published by", give the FSF's URL,
6675         not its snail mail address.
6676
6677 2012-02-09  Richard Henderson  <rth@twiddle.net>
6678
6679         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
6680         of kernel-features.h.
6681
6682         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
6683
6684 2012-02-08  Marek Polacek  <polacek@redhat.com>
6685
6686         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
6687         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
6688         * sysdeps/gnu/_G_config.h: Likewise.
6689         * sysdeps/generic/_G_config.h: Likewise.
6690
6691 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
6692
6693         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
6694         tests.
6695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6696
6697         * sysdeps/powerpc/powerpc32/crti.S: New file.
6698         * sysdeps/powerpc/powerpc32/crtn.S: New file.
6699         * sysdeps/powerpc/powerpc64/crti.S: New file.
6700         * sysdeps/powerpc/powerpc64/crtn.S: New file.
6701
6702         * Makeconfig (have-initfini): Don't set.
6703         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
6704         * configure.in (nopic_initfini): Don't substitute.
6705         * config.h.in (HAVE_INITFINI): Don't #undef.
6706         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
6707         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
6708
6709 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
6710
6711         Support crti.S and crtn.S provided directly by architectures.
6712         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
6713         [crti.S in sysdirs] (omit-deps): Likewise.
6714         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
6715         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
6716         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
6717         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
6718         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
6719         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
6720         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
6721         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
6722         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
6723         compiler output for sysdeps/generic/initfini.c.
6724         * sysdeps/i386/elf/Makefile: Remove file.
6725         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
6726
6727 2012-02-07  Marek Polacek  <polacek@redhat.com>
6728
6729         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
6730         * sysdeps/gnu/_G_config.h: Likewise.
6731         * sysdeps/mach/hurd/_G_config.h: Likewise.
6732
6733 2012-02-07  Marek Polacek  <polacek@redhat.com>
6734
6735         * math/Makefile (tests): Add tst-CMPLX2.
6736         * math/tst-CMPLX2.c: New file.
6737
6738 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
6739
6740         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6741
6742         * math/libm-test.inc (jn_test): Add missing L suffix.
6743
6744 2012-02-06  Marek Polacek  <polacek@redhat.com>
6745
6746         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
6747         * sysdeps/i386/fpu/e_powf.S: Likewise.
6748         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6749         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
6750         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6751         * sysdeps/i386/fpu/e_pow.S: Likewise.
6752         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
6753         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6754         * sysdeps/i386/fpu/s_expm1.S: Likewise.
6755         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6756         * sysdeps/i386/fpu/e_log2.S: Likewise.
6757         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6758         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6759         * sysdeps/i386/fpu/e_powl.S: Likewise.
6760         * sysdeps/i386/fpu/s_log1p.S: Likewise.
6761         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6762         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
6763         * sysdeps/i386/fpu/e_logl.S: Likewise.
6764         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
6765         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
6766         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6767         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
6768         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6769         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6770         * sysdeps/i386/fpu/e_log.S: Likewise.
6771         * sysdeps/i386/fpu/s_cexp.S: Likewise.
6772         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6773         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
6774         * sysdeps/i386/fpu/e_logf.S: Likewise.
6775         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6776         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6777         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
6778         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
6779         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
6780         * sysdeps/i386/fpu/e_log10.S: Likewise.
6781         * sysdeps/i386/fpu/s_frexp.S: Likewise.
6782         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6783         * sysdeps/i386/fpu/s_asinh.S: Likewise.
6784         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
6785         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6786         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
6787         * sysdeps/i386/asm-syntax.h: Likewise.
6788         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6789         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6790         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6791         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
6792         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
6793         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6794         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
6795         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
6796         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6797         * sysdeps/powerpc/sysdep.h: Likewise.
6798         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6799         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6800
6801 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6802
6803         [BZ #411]
6804         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
6805
6806 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
6807
6808         * sysdeps/i386/sysdep.h: Include <features.h>.
6809         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
6810         version.
6811
6812 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
6813
6814         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
6815         Define.
6816         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
6817         LOAD_PIC_REG_STR.
6818
6819 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6820
6821         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
6822         (SETUP_PIC_REG): Use GET_PC_THUNK.
6823         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
6824         macro.
6825
6826 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6827
6828         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
6829         for non-PIC compilation.
6830         (SETUP_PIC_REG): Add .p2align directive.
6831         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
6832         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
6833         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6834         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6835         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6836         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6837         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
6838         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6839         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6840         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6841         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6842         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6843         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6844         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6845         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6846         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6847         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6848         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6849         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6850         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6851         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6852         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6853         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6854         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
6855         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6856         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6857         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6858         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6859         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6860         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6861         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6862         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6863         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6864         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6865         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6866         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6867         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6868         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6869         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6870         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6871         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6872
6873 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
6874
6875         * math/tst-CMPLX.c: Include <stdio.h>.
6876
6877 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
6878
6879         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
6880         float.
6881         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
6882         * sysdeps/sparc/bits/mathdef.h: Likewise.
6883
6884 2012-01-31  Marek Polacek  <polacek@redhat.com>
6885
6886         * libio/libio.h: Don't define _PARAMS.
6887         * locale/programs/config.h: Don't define PARAMS.
6888         * stdlib/strtol_l.c: Likewise.
6889         (__strtol_l): Remove PARAMS from the prototype.
6890
6891 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
6892
6893         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
6894         names.  Just use the correct names.  Remove unnecessary wrapper
6895         functions.
6896         * malloc/arena.c: Likewise.
6897         * malloc/hooks.c: Likewise.
6898
6899         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
6900         ARENA_TEST says not to.  Simplify test for creation of a new arena.
6901         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
6902
6903 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
6904
6905         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
6906         into tail calls.
6907         (update_get_addr): New function.
6908         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
6909         GET_ADDR_MODULE parameter.
6910
6911 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
6912
6913         * crypt/cert.c: Remove __STDC__ conditionals.
6914         * crypt/crypt-entry.c: Likewise.
6915         * crypt/crypt_util.c: Likewise.
6916         * libio/filedoalloc.c: Likewise.
6917         * libio/fileops.c: Likewise.
6918         * libio/genops.c: Likewise.
6919         * libio/iofclose.c: Likewise.
6920         * libio/iofdopen.c: Likewise.
6921         * libio/iofopen.c: Likewise.
6922         * libio/iofopen64.c: Likewise.
6923         * libio/iogetdelim.c: Likewise.
6924         * libio/iopopen.c: Likewise.
6925         * libio/obprintf.c: Likewise.
6926         * libio/oldfileops.c: Likewise.
6927         * libio/oldiofclose.c: Likewise.
6928         * libio/oldiofdopen.c: Likewise.
6929         * libio/oldiofopen.c: Likewise.
6930         * libio/oldiopopen.c: Likewise.
6931         * libio/wfiledoalloc.c: Likewise.
6932         * libio/wgenops.c: Likewise.
6933         * locale/programs/xmalloc.c: Likewise.
6934         * misc/syslog.c: Likewise.
6935         * stdio-common/xbug.c: Likewise.
6936         * string/memchr.c: Likewise.
6937         * string/memcmp.c: Likewise.
6938         * string/memrchr.c: Likewise.
6939         * string/rawmemchr.c: Likewise.
6940         * sysdeps/posix/getcwd.c: Likewise.
6941         * time/strftime_l.c: Likewise.
6942
6943 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
6944
6945         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
6946         * config.make.in (config-cflags-sse2avx): Define.
6947         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
6948         Fix typo.
6949
6950 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
6951
6952         * scripts/config.guess: Update from upstream config git repository.
6953         * scripts/config.sub: Likewise.
6954
6955 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
6956
6957         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
6958         (EM_NUM): Update.
6959         (R_TILEPRO_*, R_TILEGX_*): New macros.
6960
6961         * scripts/firstversions.awk: Fix bug in version range handling.
6962
6963         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
6964
6965         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
6966
6967         * include/sys/epoll.h: New file.
6968         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
6969         libc_hidden_def.
6970
6971 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
6972
6973         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
6974         Avoid unnecessary __WORDSIZE == 64 test.
6975         (fmaxf): Use VEX format if possible.
6976         (fmax): Likewise.
6977         (fminf): Likewise.
6978         (fmin): Likewise.
6979
6980         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
6981         * math/math_private.h: Remove libc_fegetround* and
6982         libc_fesetround*.
6983         * sysdeps/i386/configure.in: Check for -msse2avx.
6984         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
6985         also if SSE2AVX is defined.
6986         Remove libc_fegetround* and libc_fesetround*.
6987         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
6988         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
6989         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
6990         of HAS_YMM_USABLE.
6991         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6992         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6993         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6994         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6995         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6996
6997         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
6998
6999 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7000
7001         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
7002         size is not set.
7003         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
7004
7005 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
7006
7007         [BZ #13618]
7008         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
7009         relocation.
7010         * Makeconfig (libm): Define.
7011         * elf/Makefile: Add rules to build and run tst-relsort1.
7012         * elf/tst-relsort1.c: New file.
7013         * elf/tst-relsort1mod1.c: New file.
7014         * elf/tst-relsort1mod2.c: New file.
7015
7016 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
7017
7018         * math/s_ldexp.c: Remove __STDC__ conditionals.
7019         * math/s_ldexpf.c: Likewise.
7020         * math/s_ldexpl.c: Likewise.
7021         * math/s_nextafter.c: Likewise.
7022         * math/s_nexttowardf.c: Likewise.
7023         * math/s_significand.c: Likewise.
7024         * math/s_significandf.c: Likewise.
7025         * math/s_significandl.c: Likewise.
7026         * math/w_jnl.c: Likewise.
7027         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
7028         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7029         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7030         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7031         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7032         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7033         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
7034         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7035         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7036         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
7037         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7038         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7039         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
7040         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
7041         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7042         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
7043         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7044         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7045         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
7046         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
7047         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7048         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7049         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7050         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7051         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7052         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7053         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7054         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7055         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
7056         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7057         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
7058         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7059         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
7060         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
7061         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7062         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
7063         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7064         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7065         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
7066         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7067         * sysdeps/ieee754/k_standard.c: Likewise.
7068         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7069         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7070         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7071         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7072         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7073         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
7074         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7075         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
7076         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7077         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7078         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
7079         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
7080         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7081         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
7082         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
7083         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7084         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7085         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7086         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7087         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7088         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7089         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
7090         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
7091         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7092         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
7093         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
7094         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
7095         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7096         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7097         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7098         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7099         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7100         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7101         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7102         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7103         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7104         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7105         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7106         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7107         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7108         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7109         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7110         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7111         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7112         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7113         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
7114         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7115         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7116         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7117         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7118         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7119         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7120         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7121         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7122         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7123         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7124         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7125         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7126         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7127         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7128         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7129         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7130         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7131         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7132         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7133         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7134         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7135         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7136         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7137         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7138         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7139         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7140         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7141         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7142         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7143         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7144         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7145         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7146         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7147         * sysdeps/ieee754/s_matherr.c: Likewise.
7148         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7149         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7150         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7151         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7152
7153 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7154
7155         * crypt/md5.h: Remove __STDC__ conditionals.
7156         * libio/libioP.h: Likewise.
7157         * locale/programs/config.h: Likewise.
7158         * sysdeps/generic/sysdep.h: Likewise.
7159         * sysdeps/i386/asm-syntax.h: Likewise.
7160         * sysdeps/s390/asm-syntax.h: Likewise.
7161         * sysdeps/unix/sysdep.h: Likewise.
7162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
7163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7164
7165 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
7166
7167         * libio/libio.h: Remove __STDC__ conditionals.
7168         * malloc/obstack.h: Likewise.
7169         * math/complex.h: Likewise.
7170         * math/math.h: Likewise.
7171         * sysdeps/generic/_G_config.h: Likewise.
7172         * sysdeps/gnu/_G_config.h: Likewise.
7173         * sysdeps/mach/hurd/_G_config.h: Likewise.
7174         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7175         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7176         * sysdeps/sparc/bits/mathdef.h: Likewise.
7177
7178 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
7179
7180         [BZ #13583]
7181         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
7182         Clean up HAS_* macros.
7183         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
7184         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
7185         possible.
7186         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
7187         HAS_AVX.
7188         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7189         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7190         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7191         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7192         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7193
7194 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
7195
7196         * elf/tst-unique3.cc (gets): Remove declaration.
7197         * elf/tst-unique3lib.cc (gets): Likewise.
7198         * elf/tst-unique3lib2.cc (gets): Likewise.
7199         * elf/tst-unique4.cc (gets): Likewise.
7200
7201 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
7202
7203         * include/stdio.h: Add C++ protection.  Add gets declarations and
7204         definitions.
7205         * debug/tst-chk1.c: Don't declare gets here.
7206         * stdio-common/tst-gets.c: Likewise.
7207
7208 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7209
7210         * posix/glob: Remove directory.
7211
7212 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
7213
7214         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
7215
7216 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
7217
7218         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
7219         of the non-standard EPFNOSUPPORT.
7220
7221 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7222
7223         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
7224         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
7225         ANYWHERE set to 1 only on KERN_NO_SPACE error.
7226
7227 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
7228
7229         * wcsmbs/uchar.h: Test __STDC_VERSION__.
7230
7231 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
7232
7233         * nscd/aicache.c (addhstaiX): Do not cache negative results of
7234         transient errors.
7235         * nscd/grpcache.c (cache_addgr): Likewise.
7236         * nscd/hstcache.c (cache_addhst): Likewise.
7237         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7238         * nscd/pwdcache.c (cache_addpw): Likewise.
7239         * nscd/servicescache.c (cache_addserv): Likewise.
7240
7241 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
7242
7243         * malloc/malloc.c: Various cleanups.
7244         * malloc/hooks.c: Likewise.
7245
7246         * stdlib/Makefile (tests): Add bug-fmtmsg1.
7247         * stdlib/bug-fmtmsg1.c: New file.
7248
7249         * stdlib/fmtmsg.c (init): Add missing unlock.
7250         Patch by Peng Haitao <penght@cn.fujitsu.com>.
7251
7252 2012-01-12  Marek Polacek  <polacek@redhat.com>
7253
7254         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
7255         and _GNU_SOURCE.
7256
7257 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7258
7259         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
7260         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
7261         macro to ensure uniqueness of label name.
7262         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
7263         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
7264
7265 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
7266
7267         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
7268
7269         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
7270         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
7271         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7272         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
7273
7274 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
7275
7276         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
7277
7278         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
7279         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
7280         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7281
7282         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
7283
7284         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
7285         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
7286         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7287         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
7288
7289         * math/bits/math-finite.h: Add ldexp support.
7290
7291 2012-01-10  Marek Polacek  <polacek@redhat.com>
7292
7293         * locale/programs/localedef.h (show_archive_content): Add noreturn
7294         attribute.
7295
7296 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
7297
7298         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
7299
7300 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7301
7302         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
7303
7304         * io/Makefile (headers): Add bits/poll2.h.
7305
7306 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
7307
7308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
7309         typo #include statement.
7310
7311 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7312
7313         * include/sys/cdefs.h: Define __attribute_alloc_size.
7314         * catgets/gencat.c: Add alloc_size attribute and apply consistently
7315         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
7316         * elf/pldd.c: Likewise.
7317         * iconv/iconv_charmap.c: Likewise.
7318         * iconv/iconvconfig.c: Likewise.
7319         * iconv/strtab.c: Likewise.
7320         * locale/programs/locale.c: Likewise.
7321         * locale/programs/localedef.h: Likewise.
7322         * locale/programs/simple-hash.c: Likewise.
7323         * nscd/nscd.h: Likewise.
7324         * nss/makedb.c: Likewise.
7325         * sysdeps/generic/ldconfig.h: Likewise.
7326         * locale/programs/localedef.c: Remove xmalloc prototype.
7327         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
7328
7329 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7330
7331         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
7332         appropriate.
7333
7334 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
7335
7336         * math/Makefile (tests): Add tst-CMPLX.
7337         * math/tst-CMPLX.c: New file.
7338
7339         * math/complex.h (CMPLXL): Fix typo.
7340
7341         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
7342         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
7343         GLIBC_2.16.
7344         * debug/tst-chk1.c: Add poll and ppoll tests.
7345         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
7346         * include/sys/poll.h: Add hidden proto for ppoll.
7347         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
7348         * sysdeps/mach/hurd/ppoll.c: Likewise.
7349         * io/ppoll.c: Likewise.
7350         * debug/poll_chk.c: New file.
7351         * debug/ppoll_chk.c: New file.
7352         * include/bits/poll2.h: New file.
7353         * io/bits/poll2.h: New file.
7354
7355         [BZ #1350]
7356         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
7357
7358         * configure.in: static is always set to yes.  Remove.
7359         * config.make.in: Don't set build-static.
7360         * Makeconfig: Remove use of build-static.
7361         * dlfcn/Makefile: Likewise.
7362         * elf/Makefile: Likewise.
7363         * math/Makefile: Likewise.
7364         * misc/Makefile: Likewise.
7365         * nptl/Makefile: Likewise.
7366         * sysdeps/mach/hurd/Makefile: Likewise.
7367
7368         * configure.in: PWD_P is not used anymore.
7369         * config.make.in: Remove PWD_P entry.
7370
7371         * configure.in: Remove last remnants of RANLIB.
7372         No need to check for signed size_t anymore.
7373         Don't set libc_commonpagesize and libc_relro_required here for Alpha
7374         and IA-64.
7375         Remove __builtin_expect test because we require at least gcc 3.4.
7376         * aclocal.m4: Likewise.
7377
7378         * wcsmbs/mbrtoc16.c: Implement using towc function.
7379         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
7380         * wcsmbs/wcsmbsload.c: Likewise.
7381         * iconv/gconv_simple.c: Likewise.
7382         * iconv/gconv_int.h: Likewise.
7383         * iconv/gconv_builtin.h: Likewise.
7384         * iconv/iconv_prog.c: Remove CHAR16 handling.
7385
7386         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
7387
7388         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
7389
7390         * configure.in: Remove --with-elf and --enable-bounded options.
7391         Dont set base_machine for ia64.  More non-ELF conditions removed.
7392         Remove testing and setting of leading underscore information.
7393         * config.make.in (build-bounded): Set to no.
7394         * config.h.in: Remove NO_UNDERSCORES entry.
7395         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
7396         them.
7397         * csu/start.c: Remove !NO_UNDERSCORE code.
7398         * locale/localeinfo.h: Likewise.
7399         * sysdeps/generic/machine-gmon.h: Likewise.
7400         * sysdeps/generic/sysdep.h: Likewise.
7401         * sysdeps/i386/sysdep.h: Likewise.
7402         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7403         * sysdeps/mach/sysdep.h: Likewise.
7404         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7405         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7406         * sysdeps/sh/sysdep.h: Likewise.
7407         * sysdeps/sparc/sparc32/alloca.S: Likewise.
7408         * sysdeps/unix/i386/sysdep.S: Likewise.
7409         * sysdeps/unix/sparc/start.c: Likewise.
7410         * sysdeps/unix/sparc/sysdep.S: Likewise.
7411         * sysdeps/unix/sparc/sysdep.h: Likewise.
7412         * sysdeps/unix/start.c: Likewise.
7413         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7414         * sysdeps/x86_64/sysdep.h: Likewise.
7415
7416 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
7417
7418         [BZ #13553]
7419         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
7420         for non-gcc.
7421         * argp/argp-fmtstream.h: Use const instead __const.
7422         * argp/argp.h: Likewise.
7423         * assert/assert.h: Likewise.
7424         * bits/fenv.h: Likewise.
7425         * bits/sched.h: Likewise.
7426         * bits/sigset.h: Likewise.
7427         * bits/sigthread.h: Likewise.
7428         * catgets/nl_types.h: Likewise.
7429         * conform/data/pthread.h-data: Likewise.
7430         * crypt/crypt-private.h: Likewise.
7431         * crypt/crypt.h: Likewise.
7432         * crypt/crypt_util.c: Likewise.
7433         * ctype/ctype.h: Likewise.
7434         * debug/execinfo.h: Likewise.
7435         * debug/mbsnrtowcs_chk.c: Likewise.
7436         * debug/mbsrtowcs_chk.c: Likewise.
7437         * debug/wcsnrtombs_chk.c: Likewise.
7438         * debug/wcsrtombs_chk.c: Likewise.
7439         * debug/wcstombs_chk.c: Likewise.
7440         * dirent/dirent.h: Likewise.
7441         * dlfcn/dlfcn.h: Likewise.
7442         * elf/neededtest4.c: Likewise.
7443         * grp/grp.h: Likewise.
7444         * gshadow/gshadow.h: Likewise.
7445         * iconv/gconv.h: Likewise.
7446         * iconv/gconv_int.h: Likewise.
7447         * iconv/gconv_simple.c: Likewise.
7448         * iconv/iconv.h: Likewise.
7449         * iconv/loop.c: Likewise.
7450         * iconv/skeleton.c: Likewise.
7451         * include/aio.h: Likewise.
7452         * include/aliases.h: Likewise.
7453         * include/argz.h: Likewise.
7454         * include/arpa/inet.h: Likewise.
7455         * include/assert.h: Likewise.
7456         * include/dirent.h: Likewise.
7457         * include/dlfcn.h: Likewise.
7458         * include/execinfo.h: Likewise.
7459         * include/fcntl.h: Likewise.
7460         * include/fenv.h: Likewise.
7461         * include/glob.h: Likewise.
7462         * include/grp.h: Likewise.
7463         * include/libintl.h: Likewise.
7464         * include/mntent.h: Likewise.
7465         * include/netdb.h: Likewise.
7466         * include/pwd.h: Likewise.
7467         * include/rpc/netdb.h: Likewise.
7468         * include/sched.h: Likewise.
7469         * include/search.h: Likewise.
7470         * include/shadow.h: Likewise.
7471         * include/signal.h: Likewise.
7472         * include/stdio.h: Likewise.
7473         * include/stdlib.h: Likewise.
7474         * include/string.h: Likewise.
7475         * include/sys/socket.h: Likewise.
7476         * include/sys/stat.h: Likewise.
7477         * include/sys/statfs.h: Likewise.
7478         * include/sys/statvfs.h: Likewise.
7479         * include/sys/syslog.h: Likewise.
7480         * include/sys/time.h: Likewise.
7481         * include/sys/uio.h: Likewise.
7482         * include/time.h: Likewise.
7483         * include/unistd.h: Likewise.
7484         * include/utmp.h: Likewise.
7485         * include/wchar.h: Likewise.
7486         * include/wctype.h: Likewise.
7487         * inet/aliases.h: Likewise.
7488         * inet/arpa/inet.h: Likewise.
7489         * inet/netinet/ether.h: Likewise.
7490         * inet/netinet/in.h: Likewise.
7491         * intl/libintl.h: Likewise.
7492         * io/bits/fcntl2.h: Likewise.
7493         * io/fcntl.h: Likewise.
7494         * io/ftw.h: Likewise.
7495         * io/sys/poll.h: Likewise.
7496         * io/sys/stat.h: Likewise.
7497         * io/sys/statfs.h: Likewise.
7498         * io/sys/statvfs.h: Likewise.
7499         * io/utime.h: Likewise.
7500         * libio/bits/stdio.h: Likewise.
7501         * libio/bits/stdio2.h: Likewise.
7502         * libio/libio.h: Likewise.
7503         * libio/libioP.h: Likewise.
7504         * libio/stdio.h: Likewise.
7505         * locale/lc-ctype.c: Likewise.
7506         * locale/locale.h: Likewise.
7507         * login/utmp.h: Likewise.
7508         * malloc/arena.c: Likewise.
7509         * malloc/malloc.c: Likewise.
7510         * malloc/malloc.h: Likewise.
7511         * malloc/mcheck.c: Likewise.
7512         * malloc/mtrace.c: Likewise.
7513         * math/bits/mathcalls.h: Likewise.
7514         * math/fenv.h: Likewise.
7515         * math/math_private.h: Likewise.
7516         * misc/bits/error.h: Likewise.
7517         * misc/bits/syslog.h: Likewise.
7518         * misc/err.h: Likewise.
7519         * misc/error.h: Likewise.
7520         * misc/fstab.h: Likewise.
7521         * misc/mntent.h: Likewise.
7522         * misc/regexp.h: Likewise.
7523         * misc/search.h: Likewise.
7524         * misc/sgtty.h: Likewise.
7525         * misc/sys/mman.h: Likewise.
7526         * misc/sys/syslog.h: Likewise.
7527         * misc/sys/uio.h: Likewise.
7528         * misc/sys/xattr.h: Likewise.
7529         * misc/ttyent.h: Likewise.
7530         * nis/rpcsvc/ypclnt.h: Likewise.
7531         * nss/nss.h: Likewise.
7532         * posix/bits/unistd.h: Likewise.
7533         * posix/fnmatch.h: Likewise.
7534         * posix/glob.h: Likewise.
7535         * posix/sched.h: Likewise.
7536         * posix/spawn.h: Likewise.
7537         * posix/sys/wait.h: Likewise.
7538         * posix/unistd.h: Likewise.
7539         * posix/wordexp.h: Likewise.
7540         * pwd/pwd.h: Likewise.
7541         * resolv/netdb.h: Likewise.
7542         * resource/sys/resource.h: Likewise.
7543         * rt/aio.h: Likewise.
7544         * rt/bits/mqueue2.h: Likewise.
7545         * rt/mqueue.h: Likewise.
7546         * shadow/shadow.h: Likewise.
7547         * signal/signal.h: Likewise.
7548         * socket/send.c: Likewise.
7549         * socket/sendto.c: Likewise.
7550         * socket/sys/socket.h: Likewise.
7551         * stdio-common/printf.h: Likewise.
7552         * stdlib/bits/stdlib.h: Likewise.
7553         * stdlib/fmtmsg.h: Likewise.
7554         * stdlib/monetary.h: Likewise.
7555         * stdlib/stdlib.h: Likewise.
7556         * stdlib/ucontext.h: Likewise.
7557         * streams/stropts.h: Likewise.
7558         * string/argz.h: Likewise.
7559         * string/bits/string2.h: Likewise.
7560         * string/string.h: Likewise.
7561         * string/strings.h: Likewise.
7562         * sunrpc/rpc/auth.h: Likewise.
7563         * sunrpc/rpc/auth_des.h: Likewise.
7564         * sunrpc/rpc/clnt.h: Likewise.
7565         * sunrpc/rpc/netdb.h: Likewise.
7566         * sunrpc/rpc/pmap_clnt.h: Likewise.
7567         * sunrpc/rpc/xdr.h: Likewise.
7568         * sysdeps/generic/inttypes.h: Likewise.
7569         * sysdeps/generic/net/if.h: Likewise.
7570         * sysdeps/generic/sys/swap.h: Likewise.
7571         * sysdeps/gnu/net/if.h: Likewise.
7572         * sysdeps/gnu/utmpx.h: Likewise.
7573         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
7574         * sysdeps/i386/i486/bits/string.h: Likewise.
7575         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
7576         * sysdeps/s390/bits/string.h: Likewise.
7577         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
7578         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
7579         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7580         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
7581         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7582         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7583         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7584         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
7585         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
7586         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
7587         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
7588         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
7589         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
7590         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
7591         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7592         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
7593         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
7594         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7595         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
7596         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
7597         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
7598         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
7599         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
7600         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
7601         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
7602         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
7603         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
7604         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7605         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
7606         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
7607         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
7608         * sysvipc/sys/ipc.h: Likewise.
7609         * sysvipc/sys/msg.h: Likewise.
7610         * sysvipc/sys/sem.h: Likewise.
7611         * sysvipc/sys/shm.h: Likewise.
7612         * termios/termios.h: Likewise.
7613         * time/sys/time.h: Likewise.
7614         * time/time.h: Likewise.
7615         * wcsmbs/bits/wchar2.h: Likewise.
7616         * wcsmbs/uchar.h: Likewise.
7617         * wcsmbs/wchar.h: Likewise.
7618         * wctype/wctype.h: Likewise.
7619
7620         [BZ #13551]
7621         * Makeconfig: Remove all but ELF support including AIX support.
7622         * Makerules: Likewise.
7623         * config.h.in: Likewise.
7624         * config.make.in: Likewise.
7625         * configure: Likewise.
7626         * configure.in: Likewise.
7627         * csu/Makefile: Likewise.
7628         * csu/version.c: Likewise.
7629         * debug/Makefile: Likewise.
7630         * dlfcn/Makefile: Likewise.
7631         * elf/Makefile: Likewise.
7632         * extra-lib.mk: Likewise.
7633         * iconv/Makefile: Likewise.
7634         * include/libc-symbols.h: Likewise.
7635         * include/shlib-compat.h: Likewise.
7636         * resolv/Makefile: Likewise.
7637         * resolv/res_libc.c: Likewise.
7638         * rt/Makefile: Likewise.
7639         * sysdeps/i386/asm-syntax.h: Likewise.
7640         * sysdeps/i386/sysdep.h: Likewise.
7641         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
7642         * sysdeps/mach/sysdep.h: Likewise.
7643         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
7644         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
7645         * sysdeps/s390/asm-syntax.h: Likewise.
7646         * sysdeps/s390/s390-32/sysdep.h: Likewise.
7647         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7648         * sysdeps/sh/sysdep.h: Likewise.
7649         * sysdeps/unix/sparc/sysdep.h: Likewise.
7650         * sysdeps/wordsize-32/divdi3.c: Likewise.
7651         * sysdeps/x86_64/sysdep.h: Likewise.
7652
7653         * argp/Versions: Remove _argp_unlock_xxx.
7654
7655         [BZ #13559]
7656         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
7657         * abilist/libBrokenLocale.abilist: Likewise.
7658         * abilist/libanl.abilist: Likewise.
7659         * abilist/libc.abilist: Likewise.
7660         * abilist/libcrypt.abilist: Likewise.
7661         * abilist/libdl.abilist: Likewise.
7662         * abilist/libm.abilist: Likewise.
7663         * abilist/libnsl.abilist: Likewise.
7664         * abilist/libpthread.abilist: Likewise.
7665         * abilist/libresolv.abilist: Likewise.
7666         * abilist/librt.abilist: Likewise.
7667         * abilist/libthread_db.abilist: Likewise.
7668         * abilist/libutil.abilist: Likewise.
7669         * abilist/libnss_db.abilist: New file.
7670
7671         * scripts/abilist.awk: Add support for indirect functions.
7672
7673         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
7674
7675         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
7676
7677         * shlib-versions: Remove entries for ports architectures.
7678
7679         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
7680         files in ports.
7681         * elf/stackguard-macros.h: Remove support for IA-64.
7682         * elf/tst-auditmod1.c: Likewise.
7683         * sysdeps/generic/ldsodefs.h: Likewise.
7684
7685         * sysdeps/unix/sysv/linux/configure.in: Ports should define
7686         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
7687         configure files.
7688
7689         [BZ #13552]
7690         * configure.in: Remove --enable-omitfp support.
7691         * FAQ.in: Adjust.
7692         * config.make.in: Likewise.
7693         * Makeconfig: Likewise.
7694         * manual/install.texi: Likewise.
7695
7696         In case anyone cares, the IA-64 architecture could move to ports.
7697         * sysdeps/ia64/*: Removed.
7698         * sysdeps/unix/sysv/linux/ia64/*: Removed.
7699         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
7700
7701         [BZ #13555]
7702         * configure.in: Remove entries for unsupported architectures.
7703
7704         [BZ #13533]
7705         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
7706         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
7707         routines.
7708         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
7709         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
7710         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
7711         fall back to using wcrtomb.
7712         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
7713         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
7714         renaming.
7715         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
7716         * wcsmbs/tst-c16c32-1.c: New file.
7717
7718         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
7719         local variable.
7720
7721         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
7722
7723         * elf/tst-unique3.cc: Add explicit declaration of gets.
7724         * elf/tst-unique3lib.cc: Likewise.
7725         * elf/tst-unique3lib2.cc: Likewise.
7726         * elf/tst-unique4.cc: Likewise.
7727
7728         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
7729
7730 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
7731
7732         [BZ #13566]
7733         * assert/assert.h (static_assert): Don't define for C++.
7734         * libio/stdio.h (gets): Do declare for C++ <= C++11.
7735         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
7736
7737 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
7738
7739         * iconv/loop.c (single loop): Fix assertion in storing of
7740         remaining bytes.
7741
7742         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
7743
7744 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
7745
7746         * posix/getconf.c: Update copyright year.
7747         * nss/getent.c: Likewise.
7748         * nss/makedb.c: Likewise.
7749         * iconv/iconvconfig.c: Likewise.
7750         * iconv/iconv_prog.c: Likewise.
7751         * elf/ldconfig.c: Likewise.
7752         * elf/pldd.c: Likewise.
7753         * elf/sotruss.ksh: Likewise.
7754         * catgets/gencat.c: Likewise.
7755         * csu/version.c: Likewise.
7756         * elf/ldd.bash.in: Likewise.
7757         * elf/sprof.c (print_version): Likewise.
7758         * locale/programs/locale.c: Likewise.
7759         * locale/programs/localedef.c: Likewise.
7760         * login/programs/pt_chown.c: Likewise.
7761         * nscd/nscd.c (print_version): Likewise.
7762         * debug/xtrace.sh: Likewise.
7763         * malloc/memusage.sh: Likewise.
7764         * malloc/mtrace.pl: Likewise.
7765         * debug/catchsegv.sh: Likewise.
7766
7767 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
7768
7769         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
7770         pure attribute.
7771
7772 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
7773
7774         [BZ #13533]
7775         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
7776         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
7777         transformations.
7778         * iconv/gconv_int.h: Likewise.
7779         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
7780         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
7781         from libc for GLIBC_2.16.
7782         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
7783         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
7784         * wcsmbs/uchar.h: Really define mbstate_t.
7785         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
7786         * wcsmbs/c16rtomb.c: New file.
7787         * wcsmbs/mbrtoc16.c: New file.
7788         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
7789         for C/POSIX locale.
7790         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
7791         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
7792
7793         * wcsmbs/wchar.h: Add missing __restrict.
7794
7795 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
7796
7797         [BZ #13532]
7798         * time/Makefile (routines): Add timespec_get.
7799         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
7800         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
7801         timespec for ISO C11.
7802         * time/timespec_get.c: New file.
7803         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
7804         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
7805
7806         [BZ #13531]
7807         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
7808         * stdlib/stdlib.h: Declare aligned_alloc.
7809         * Versions.def: Add GLIBC_2.16 for libc.
7810         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
7811
7812         [BZ 13527]
7813         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
7814         ISO C11.
7815
7816         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
7817         code.
7818
7819         [BZ #13528]
7820         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
7821
7822         [BZ #13529]
7823         * assert/assert.h (static_assert): Define.
7824
7825         * version.h: Update for 2.16 development version.
7826
7827         [BZ #13526]
7828         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
7829         _ISOC11_SOURCE.
7830
7831         * version.h (RELEASE): Bump for 2.15 release.
7832         * include/features.h (__GLIBC_MINOR__): Bump to 15.
7833
7834         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
7835         Patch by Marek Polacek <mpolacek@redhat.com>.
7836
7837         * bits/byteswap.h: Protect long long constants with __extension__.
7838         * sysdeps/i386/bits/byteswap.h: Likewise.
7839         * sysdeps/ia64/bits/byteswap.h: Likewise.
7840         * sysdeps/s390/bits/byteswap.h: Likewise.
7841         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7842
7843 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7844
7845         [BZ #13540]
7846         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
7847         destination buffer.
7848         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
7849
7850 2011-12-23  Marek Polacek  <polacek@redhat.com>
7851
7852         * elf/dl-addr.c (determine_info): Add inline keyword.
7853         * elf/tst-auditmod4b.c (check_avx): Likewise.
7854         * elf/tst-auditmod6b.c (check_avx): Likewise.
7855         * elf/tst-auditmod6c.c (check_avx): Likewise.
7856         * elf/tst-auditmod7b.c (check_avx): Likewise.
7857
7858 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
7859
7860         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
7861         !__SSE_MATH__.
7862
7863 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7864
7865         [BZ #13540]
7866         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
7867         processing for last bytes.
7868
7869 2011-08-06  Bruno Haible  <bruno@clisp.org>
7870
7871         [BZ #13061]
7872         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
7873         U+0385, not to U+1FEE.
7874
7875         [BZ #13062]
7876         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
7877         entry for U+00A5 U+0301.
7878
7879 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
7880
7881         [BZ #13166]
7882         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
7883         buffer for the output is too small.
7884
7885         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
7886         optimization.
7887
7888         [BZ #13185]
7889         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
7890         SSE flags if possible.
7891
7892 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7893
7894         [BZ #13540]
7895         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
7896         processing for last bytes.
7897
7898 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
7899
7900         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
7901         (syscall-list-default-options, syscall-list-default-condition)
7902         (syscall-list-includes): Define.
7903         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
7904         list of ABIs and options and #if conditions for each ABI.  Do not
7905         handle common syscalls between ABIs specially.
7906         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
7907         Remove.
7908         (syscall-list-variants, syscall-list-32bit-options)
7909         (syscall-list-32bit-condition, syscall-list-64bit-options)
7910         (syscall-list-64bit-condition): Define.
7911         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
7912         (syscall-list-variants, syscall-list-32bit-options)
7913         (syscall-list-32bit-condition, syscall-list-64bit-options)
7914         (syscall-list-64bit-condition): Define.
7915         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
7916         Remove.
7917         (syscall-list-variants, syscall-list-32bit-options)
7918         (syscall-list-32bit-condition, syscall-list-64bit-options)
7919         (syscall-list-64bit-condition): Define.
7920         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
7921         Remove.
7922         (syscall-list-variants, syscall-list-32bit-options)
7923         (syscall-list-32bit-condition, syscall-list-64bit-options)
7924         (syscall-list-64bit-condition): Define.
7925
7926 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
7927
7928         * locale/iso-639.def: Add brx entry.
7929
7930         [BZ #13328]
7931         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
7932         Proposed by Mariusz_Cukr <marcukr@op.pl>.
7933
7934         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
7935         __feraiseexcept_renamed.
7936
7937 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
7938
7939         [BZ #13538]
7940         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
7941         EPOLLET with unsigned values.
7942         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7943         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
7944
7945         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
7946         to large cancellation.
7947         * math/s_cacoshf.c: Likewise.
7948         * math/s_cacoshl.c: Likewise.
7949
7950 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
7951
7952         [BZ #13305]
7953         [BZ #12786]
7954         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
7955         * math/s_cacoshf.c: Likewise.
7956         * math/s_cacoshl.c: Likewise.
7957
7958 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
7959
7960         [BZ #13439]
7961         * iconv/gconv.h: Define __GCONV_SWAP.
7962         * iconvdata/unicode.c: The swap bit must be stored in __flags.
7963         * iconvdata/utf-16.c: Likewise.
7964         * iconvdata/utf-32.c: Likewise.
7965
7966 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
7967
7968         [BZ #13524]
7969         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
7970         numerator after shifting it by one limb.
7971
7972 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
7973
7974         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
7975         under [__USE_EXTERN_INLINES].
7976
7977 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
7978
7979         [BZ #13446]
7980         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
7981
7982 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7983
7984         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
7985         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
7986         optimized code.
7987         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
7988         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
7989         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
7990         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
7991         for strncasecmp/strncasecmp_l compilation.
7992         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
7993         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
7994
7995 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
7996
7997         [BZ #13484]
7998         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
7999         of __asm__.
8000
8001 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8002
8003         [BZ #13506]
8004         * time/tzfile.c (__tzfile_read): Check values from file header.
8005
8006 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8007
8008         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
8009         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
8010         * powerpc/powerpc32/dl-start.S: Likewise.
8011         * powerpc/powerpc32/elf/start.S: Likewise.
8012         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
8013         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
8014         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
8015         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
8016         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8017         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
8018         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
8019         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
8020         * powerpc/powerpc32/fpu/s_round.S: Likewise.
8021         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8022         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8023         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8024         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
8025         * powerpc/powerpc32/memset.S: Likewise.
8026         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8027         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8028         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8029         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8030         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8031         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
8032         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
8033         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
8034         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
8035         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
8036         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
8037         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8038         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8039
8040 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8041
8042         * math/libm-test.inc: Added more nearbyint tests.
8043         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
8044         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
8045         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
8046         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
8047
8048 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
8049
8050         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
8051         FD_CLOEXEC.
8052
8053 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8054
8055         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
8056         Add wcscpy-ssse3 wcscpy-c.
8057         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
8058         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
8059         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
8060         * sysdeps/x86_64/wcschr.S: New file.
8061         * sysdeps/x86_64/wcsrchr.S: New file.
8062         * string/test-strcmp.c: Remove checking of wcscmp function for
8063         wrong alignments.
8064         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
8065         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
8066         wcsrchr-sse2 wcsrchr-c.
8067         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
8068         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
8069         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
8070         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
8071         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
8072         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
8073         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
8074         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
8075         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
8076         * wcsmbc/wcschr.c (WCSCHR): New macro.
8077
8078 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8079
8080         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
8081         * wcsmbs/test-wcsrchr.c: New file.
8082         * string/test-strrchr.c: Add wcsrchr support.
8083         (WIDE): New macro.
8084         * wcsmbs/test-wcscpy.c: New file.
8085         * string/test-strcpy.c: Add wcscpy support.
8086         (WIDE): New macro.
8087
8088 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
8089
8090         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
8091         the inner loop.
8092
8093 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
8094
8095         [BZ #13472]
8096         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
8097
8098 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
8099
8100         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
8101         Minor optimizations.
8102
8103         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
8104         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
8105         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8106
8107 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
8108
8109         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
8110         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
8111         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
8112         for gcc to avoid warnings.
8113         * inet/Makefile (tests): Add tst-checks.
8114         * inet/tst-checks.c: New file.
8115
8116         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
8117         warning.
8118
8119         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
8120         __wmemcmp_sse2.
8121
8122         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
8123         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
8124
8125         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
8126
8127 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
8128
8129         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
8130         problem.
8131
8132         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
8133
8134 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
8135
8136         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
8137         conditional on GCC version.
8138         (__arch_compare_and_exchange_val_8_acq)
8139         (__arch_compare_and_exchange_val_16_acq)
8140         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
8141         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
8142         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
8143
8144 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
8145
8146         * sysdeps/sh/backtrace.c: New file.
8147
8148 2011-12-02  Andreas Schwab  <schwab@redhat.com>
8149
8150         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
8151         parenthesis.
8152
8153 2011-12-01  Andreas Schwab  <schwab@redhat.com>
8154
8155         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
8156         falling back to utime.
8157
8158 2011-11-30  Andreas Schwab  <schwab@redhat.com>
8159
8160         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
8161         expectations for float.
8162
8163 2011-11-29  Andreas Schwab  <schwab@redhat.com>
8164
8165         * locale/weight.h (findidx): Add parameter len.
8166         * locale/weightwc.h (findidx): Likewise.
8167         * posix/fnmatch_loop.c (FCT): Adjust caller.
8168         * posix/regcomp.c (build_equiv_class): Likewise.
8169         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
8170         * posix/regexec.c (check_node_accept_bytes): Likewise.
8171         * string/strcoll_l.c (STRCOLL): Likewise.
8172         * string/strxfrm_l.c (STRXFRM): Likewise.
8173
8174 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
8175
8176         * Makefile.in: Remove CVSOPT handling.
8177         * configure.in: Remove use of AC_REVISION.
8178         * iconvdata/Makefile (distribute): No need to filter out CVS.
8179         * scripts/list-sources.sh: Remove CVS, subversion and monotone
8180         handling.
8181
8182 2011-11-16  Andreas Schwab  <schwab@redhat.com>
8183
8184         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
8185         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
8186         [USE_AS_STRNCASECMP_L]: Likewise.
8187         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
8188         NO_TLS_DIRECT_SEG_REFS.
8189         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
8190         Fix argument offsets for non-PIC.
8191         [USE_AS_STRNCASECMP_L]: Likewise.
8192         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
8193         NO_TLS_DIRECT_SEG_REFS.
8194
8195 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8196
8197         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
8198         O_CLOEXEC.
8199         * locale/loadlocale.c (_nl_load_locale): Likewise.
8200
8201 2011-11-15  Andreas Schwab  <schwab@redhat.com>
8202
8203         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
8204         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
8205         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
8206         (SYSCALL_GETTIME): Set errno on error.
8207
8208         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
8209         count references to noai6ai_cached.
8210
8211 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
8212
8213         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
8214
8215         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
8216         FD_CLOEXEC for /proc/self/maps.
8217
8218         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
8219         FD_CLOEXEC for /proc/meminfo.
8220
8221         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
8222         gai.conf.
8223
8224         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
8225         FD_CLOEXEC for given file.
8226
8227         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
8228
8229         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
8230         FD_CLOEXEC for /etc/hosts.
8231         (_gethtent): Likewise.
8232
8233         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
8234
8235         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
8236         cancellation and set FD_CLOEXEC for /etc/netgroup.
8237
8238         * nss/nss_files/files-key.c (search): Don't allow cancellation when
8239         reading /etc/publickey.
8240
8241         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
8242         allow cancellation when reading /etc/group.
8243
8244         * nss/nss_files/files-alias.c (internal_setent): Don't allow
8245         cancellation.
8246         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
8247
8248         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
8249         when using data file.
8250
8251         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
8252
8253         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
8254         (write_nis_obj): Use "c" and "e" in fopen.
8255
8256         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
8257
8258         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
8259
8260         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
8261
8262         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
8263
8264         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
8265         locale.alias.
8266
8267         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
8268
8269         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
8270
8271         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
8272
8273         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
8274         file parsing and set FD_CLOEXEC.
8275
8276 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8277
8278         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
8279
8280 2011-11-14  Andreas Schwab  <schwab@redhat.com>
8281
8282         * malloc/arena.c (arena_get2): Don't call reused_arena when
8283         _int_new_arena failed.
8284
8285 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
8286
8287         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
8288         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
8289         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
8290         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8291         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8292         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
8293         to compile strcasecmp and strncasecmp.
8294         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
8295         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
8296
8297         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
8298
8299 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
8300
8301         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
8302         locale-defines.sym to gen-as-const-headers.
8303         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
8304         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
8305         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
8306         to compile strcasecmp and strncasecmp.
8307         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
8308         strcasecmp_l and strncasecmp_l.
8309         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
8310         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
8311         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
8312         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
8313         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
8314         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
8315         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
8316         * sysdeps/i386/i686/multiarch/strncase.S: New file.
8317         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
8318         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
8319         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
8320
8321 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
8322
8323         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
8324         result of SYSDEP_GETTIME_CPU to retval.
8325         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
8326         parameter list to macro.  Remove trailing semicolon.  Adjust users.
8327
8328         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
8329         variable.
8330
8331         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
8332         mantissa words.
8333         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8334
8335         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
8336         from unused variable.
8337
8338         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
8339         DWARF definitions.
8340         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
8341         for assembling.
8342
8343         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
8344         over namespaces.
8345
8346         * sunrpc/rpc_prot.c (rejected): Fix case value.
8347
8348         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
8349         unsigned long long int to avoid warnings in shift.
8350
8351         * posix/regex_internal.c (re_string_reconstruct): Actually use result
8352         of use of trans.
8353         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
8354         variable tmp.
8355
8356         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
8357         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
8358         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
8359
8360         * nis/nis_table.c (nis_list): Use variable of correct type for
8361         result of __follow_path call.
8362
8363 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8364
8365         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
8366         of math functions ceil, trunc, floor, round, and sqrt, when
8367         avaliable on the platform.
8368         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
8369         name clash.
8370         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8371         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
8372         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
8373
8374 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
8375
8376         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
8377         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8378
8379 2011-11-11  Roland McGrath  <roland@hack.frob.com>
8380
8381         * include/unistd.h: Fix __readlink return type.
8382         Reported by Chris Metcalf <cmetcalf@tilera.com>.
8383
8384 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
8385
8386         * stdlib/ucontext.h: Undo last change for makecontext.
8387
8388 2011-11-11  Andreas Schwab  <schwab@redhat.com>
8389
8390         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
8391
8392         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
8393         * setjmp/setjmp.h: Mark functions as non-leaf.
8394         * setjmp/bits/setjmp2.h: Likewise.
8395         * stdlib/ucontext.h: Likewise.
8396
8397 2011-11-10  Andreas Schwab  <schwab@redhat.com>
8398
8399         * malloc/arena.c (_int_new_arena): Don't increment narenas.
8400         (reused_arena): Don't check arena limit.
8401         (arena_get2): Atomically check arena limit.
8402
8403 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
8404
8405         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
8406         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
8407
8408         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
8409         instructions.
8410
8411 2011-11-07  Andreas Schwab  <schwab@redhat.com>
8412
8413         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
8414         handler when locking.
8415
8416         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
8417         Fix size of allocated buffer.
8418
8419 2011-11-04  Andreas Schwab  <schwab@redhat.com>
8420
8421         [BZ #10103]
8422         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
8423         declarations for long double functions.
8424         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
8425
8426         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
8427
8428 2011-11-03  Andreas Schwab  <schwab@redhat.com>
8429
8430         * nscd/nscd.c (main): Don't start AVC thread until credentials are
8431         installed.
8432
8433         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
8434         is disabled.
8435
8436 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8437
8438         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
8439
8440 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8441
8442         * include/alloca.h (stackinfo_alloca_round): Define.
8443         (extend_alloca): Use it.
8444         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
8445         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
8446         here.
8447
8448         * scripts/check-local-headers.sh: Ignore libaudit.h.
8449
8450         * nscd/Makefile (extra-objs): Make recursively expanded.
8451
8452 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
8453
8454         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
8455         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
8456
8457         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
8458         * posix/tst-rfc3484-2.c: Likewise.
8459         * posix/tst-rfc3484-3.c: Likewise.
8460
8461         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
8462         process_vm_writev.
8463         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
8464         process_vm_writev.
8465         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
8466         process_vm_writev from libc using GLIBC_2.15 version.
8467
8468         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
8469
8470 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8471
8472         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
8473         stack usage.
8474
8475 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
8476
8477         [BZ #13367]
8478         * nss/getent.c (initgroups_keys): Show error message in case no group
8479         names are given.
8480
8481         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
8482         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
8483         __bump_nl_timestamp.
8484         * nscd/connections (nscd_init): When host database is served open
8485         netlink socket and request notification about configuration changes.
8486         (main_loop_poll): Track netlink file descriptor and bump timestamp
8487         in case data becomes available.
8488         (main_loop_epoll): Likewise.
8489         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
8490         (database_pers_head): Add extra_data fileds.
8491         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
8492         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
8493         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
8494         Adjust caller.
8495         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
8496         in6ai data, call __free_in6ai.
8497         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
8498         Add -DHAVE_NETLINK.
8499         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
8500         interface information.  Reuse previous data if netlink timestamp
8501         is not changed.
8502         (__bump_nl_timestamp): New function.
8503         (__free_in6ai): New function.
8504
8505 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
8506
8507         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
8508         close_not_cancel_no_status here.
8509         (__check_pf): Reorganize code a bit to not call close twice if OOM.
8510
8511 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8512
8513         [BZ #13276]
8514         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
8515         return value.
8516
8517         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
8518         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
8519         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
8520
8521 2011-07-03  Andreas Jaeger  <aj@suse.de>
8522
8523         [BZ #10709]
8524         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
8525         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
8526         * math/libm-test.inc (sin_test): Add test case.
8527
8528 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
8529
8530         [BZ #13337]
8531         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
8532         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8533
8534         * elf/chroot_canon.c (chroot_canon): Cleanups.
8535
8536         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
8537
8538         [BZ #13335]
8539         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
8540         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
8541
8542         * string/test-strchr.c: Make usable for strchrnul testing.
8543         * string/test-strchrnul.c: New file.
8544         * string/Makefile (strop-tests): Add strchrnul.
8545
8546         * po/it.po: Update from translation team.
8547         * po/es.po: Likewise.
8548
8549 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
8550
8551         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
8552         the three constants needed as parameters.  Drop the others.
8553         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
8554         __m128i_strloadu_tolower.
8555         Create and initialize variable zero and use it in all the places
8556         where _mm_setzero_si128 was used.
8557
8558         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
8559         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
8560         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
8561         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
8562         anymore.
8563         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
8564         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
8565         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
8566         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
8567         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
8568         __mpranred, __mptan.
8569         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
8570         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
8571         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
8572         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
8573         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
8574         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
8575         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
8576         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
8577         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
8578
8579 2011-10-28  Andreas Schwab  <schwab@redhat.com>
8580
8581         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
8582         redefine if SHARED.
8583         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
8584
8585         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
8586         wide char related routines to wcsmbs subdir.
8587
8588 2011-10-27  Andreas Schwab  <schwab@redhat.com>
8589
8590         [BZ #13344]
8591         * misc/sys/cdefs.h (__THROWNL): Define.
8592         * posix/unistd.h: Use __THREADNL instead of __THREAD
8593         for memory synchronization functions.
8594
8595 2011-10-26  Roland McGrath  <roland@hack.frob.com>
8596
8597         [BZ #13349]
8598         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
8599         doesn't exist.
8600         * manual/stdio.texi (Obstack Streams): Node removed.
8601
8602 2011-10-26  Andreas Schwab  <schwab@redhat.com>
8603
8604         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
8605         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8606         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8607
8608         * math/math_private.h (math_force_eval): Allow non-addressable
8609         arguments.
8610         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
8611
8612 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8613
8614         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
8615         file is not needed.
8616
8617         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
8618         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8619         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8620         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8621         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8622         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8623         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8624         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
8625         Add AVX variants.
8626         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
8627         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
8628         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
8629         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
8630         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
8631         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
8632         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
8633         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
8634         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
8635         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
8636         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
8637         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
8638         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
8639         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
8640         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
8641         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
8642         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
8643         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
8644         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
8645
8646         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
8647         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
8648
8649         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
8650         place.  Use VEX encoding when compiling for AVX.
8651
8652 2011-10-25  Andreas Schwab  <schwab@redhat.com>
8653
8654         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
8655         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
8656
8657         * string/test-strchr.c (do_test): Don't generate NUL bytes.
8658
8659 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8660
8661         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
8662         useless if() expression.
8663         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8664         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8665         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8666         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8667         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8668         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8669         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8670         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8671         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8672         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8673         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8674         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8675         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8676         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8677         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8678         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8679         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8680         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8681         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8682
8683         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
8684
8685 2011-10-25  Andreas Schwab  <schwab@redhat.com>
8686
8687         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
8688         condition.
8689         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8690
8691 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
8692
8693         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
8694         .text section.  Avoid duplicate constants.
8695         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8696         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8697         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8698         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8699         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8700         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8701         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8702         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8703         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
8704         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
8705         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
8706         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
8707         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
8708         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
8709         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
8710         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
8711         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
8712         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
8713         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8714         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8715         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8716         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8717         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8718         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
8719         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
8720         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
8721         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
8722         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
8723         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
8724         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
8725         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
8726         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
8727         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8728         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
8729         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
8730         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
8731         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
8732         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
8733         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
8734         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
8735         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
8736         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
8737         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
8738         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
8739         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
8740
8741 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
8742
8743         * sysdeps/x86_64/dla.h: Move to ...
8744         * sysdeps/x86_64/fpu/dla.h: ...here.
8745         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
8746         situations.  Use __builtin_fma only for gcc 4.6 and up.
8747
8748         * config.make.in: Add have-mfma4 entry.
8749         * configure.in: Substitute libc_cv_cc_fma4.
8750         * math/Makefile (dbl-only-routines): Add sincostab.
8751         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
8752         Use __sincostab not sincos.
8753         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
8754         name is a macro.
8755         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8756         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8757         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8758         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
8759         using __copysign.
8760         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
8761         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
8762         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
8763         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
8764         and __inv.
8765         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
8766         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
8767         __copysign.
8768         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
8769         define aliases when function name is a macro.
8770         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
8771         sysdeps/ieee754/dbl-64/sincos.tbl.
8772         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
8773         fma4-enabled routines.
8774         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
8775         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
8776         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
8777         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
8778         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
8779         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
8780         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
8781         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
8782         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
8783         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
8784         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
8785         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
8786         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
8787         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
8788         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
8789         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
8790         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
8791         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
8792         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
8793         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
8794         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
8795         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
8796         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
8797         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
8798         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
8799         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
8800         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
8801         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
8802         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
8803         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
8804
8805         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
8806         rename.
8807         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8808         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8809         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8810         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8811         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8812         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8813         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8814         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8815
8816 2011-10-24  Andreas Schwab  <schwab@redhat.com>
8817
8818         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
8819
8820 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8821
8822         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
8823
8824         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
8825         prediction.
8826         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
8827
8828         * string/strnlen.c: Don't define STRNLEN, reverse logic.
8829         Remove unused variable magic_bits.
8830         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
8831
8832         * string/strnlen.c: Define and use STRNLEN macro.
8833         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
8834         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
8835         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
8836         * wcsmbs/wcslen.c: Define and use WCSLEN.
8837         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
8838         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
8839         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
8840         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
8841         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
8842         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
8843         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
8844
8845 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8846
8847         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8848         strnlen-sse2-no-bsf.
8849         Rename strlen-no-bsf to strlen-sse2-no-bsf.
8850         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
8851         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
8852         Add strnlen support.
8853         (USE_AS_STRNLEN): New macro.
8854         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
8855         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
8856         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
8857         * sysdeps/x86_64/wcslen.S: New file.
8858
8859 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
8860
8861         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8862         XMM-moves are used for copying on small sizes.
8863
8864 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8865
8866         * wcsmbs/Makefile (strop-tests): Add wcschr.
8867         * wcsmbs/test-wcschr.c: New file.
8868         * string/test-strchr.c: Update.
8869         Add wcschr support.
8870         (WIDE): New macro.
8871
8872 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8873
8874         * wcsmbs/Makefile (strop-tests): Add wcslen.
8875         * wcsmbs/test-wcslen.c: New file.
8876         * string/test-strlen.c: Update.
8877         Add wcslen support.
8878         (WIDE): New macro.
8879
8880 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8881
8882         * po/it.po: Update from translation team.
8883
8884 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8885
8886         * sysdeps/x86_64/wcscmp.S: Update.
8887         Fix wrong comparison semantics.
8888         wcscmp shall use signed comparison not unsigned.
8889         Don't use substraction to avoid overflow bug.
8890         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
8891         * wcsmbc/wcscmp.c: Likewise.
8892         * string/test-strcmp.c: Likewise.
8893         Add new tests to check cases with negative values.
8894
8895 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
8896
8897         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
8898         * sysdeps/x86_64/dla.h: ...here.  New file.
8899         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
8900         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8901         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8902         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8903         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8904         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8905         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8906         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8907         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8908
8909 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
8910
8911         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
8912         __ynl_finite aliases.
8913
8914 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
8915
8916         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8917
8918         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
8919         define DLA_FMA.
8920         [DLA_FMA] (EMULV): Use DLA_FMA.
8921         [DLA_FMA] (MUL12): Use EMULV.
8922         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
8923         that are not needed.
8924         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8925         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8926         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8927         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8928         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8929         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8930         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8931
8932 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
8933
8934         * math/s_nan.c: Undef __nan.
8935         * math/s_nanf.c: Undef __nanf.
8936         * math/s_nanl.c: Undef __nanl.
8937         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
8938         "math_private.h".
8939
8940 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
8941
8942         * math/s_catan.c: Add branch predictions.
8943         * math/s_catanf.c: Likewise.
8944         * math/s_catanh.c: Likewise.
8945         * math/s_catanhf.c: Likewise.
8946         * math/s_catanhl.c: Likewise.
8947         * math/s_catanl.c: Likewise.
8948         * math/s_cexp.c: Likewise.
8949         * math/s_cexpf.c: Likewise.
8950         * math/s_cexpl.c: Likewise.
8951         * math/s_clog.c: Likewise.
8952         * math/s_clog10.c: Likewise.
8953         * math/s_clog10f.c: Likewise.
8954         * math/s_clog10l.c: Likewise.
8955         * math/s_clogf.c: Likewise.
8956         * math/s_clogl.c: Likewise.
8957         * math/s_csqrt.c: Likewise.
8958         * math/s_csqrtf.c: Likewise.
8959         * math/s_csqrtl.c: Likewise.
8960         * math/s_ctanf.c: Likewise.
8961         * math/s_ctanh.c: Likewise.
8962         * math/s_ctanhf.c: Likewise.
8963         * math/s_ctanhl.c: Likewise.
8964         * math/s_ctanl.c: Likewise.
8965
8966         * math/math_private.h: Define __nan, __nanf, __nanl.
8967         * math/s_cacosh.c: Include <math_private.h>.
8968         * math/s_cacoshl.c: Likewise.
8969         * math/s_casinh.c: Likewise.
8970         * math/s_casinhf.c: Likewise.
8971         * math/s_casinhl.c: Likewise.
8972         * math/s_ccos.c: Rely entire on ccosh.
8973         * math/s_ccosf.c: Rely entire on ccoshf.
8974         * math/s_ccosl.c: Rely entirely on ccoshl.
8975         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
8976         Remove tests for FE_INVALID.
8977         * math/s_ccoshf.c: Likewise.
8978         * math/s_ccoshl.c: Likewise.
8979         * math/s_csin.c: Likewise.
8980         * math/s_csinf.c: Likewise.
8981         * math/s_csinh.c Likewise.
8982         * math/s_csinhf.c: Likewise.
8983         * math/s_csinhl.c: Likewise.
8984         * math/s_csinl.c: Likewise.
8985         * math/s_ctan.c: Likewise.
8986         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
8987         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
8988         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
8989
8990 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
8991
8992         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
8993         compilation problems.
8994
8995         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
8996         __builtin_expect.
8997
8998 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
8999
9000         * sysdeps/i386/configure.in: Test for -mfma4 option.
9001         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
9002         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
9003         COMMON_CPUID_INDEX_80000001.
9004         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
9005         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
9006         use it if FMA3 is not supported.
9007         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
9008
9009         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
9010         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
9011
9012 2011-10-20  Andreas Schwab  <schwab@redhat.com>
9013
9014         [BZ #12892]
9015         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
9016         it would create a cycle with a link time dependency.
9017
9018 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
9019
9020         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
9021         instruction.
9022         * string/Makefile (strop-tests): Add rawmemchr.
9023         * string/test-rawmemchr.c: New file.
9024
9025         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
9026         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
9027         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
9028         when compiling str{,n}casecmp and when AVX is available.  Hook up
9029         new optimized code in initializers.
9030
9031 2011-10-19  Andreas Schwab  <schwab@redhat.com>
9032
9033         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
9034         __feraiseexcept instead of feraiseexcept.
9035
9036 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
9037
9038         * math/math_private.h: Define defaults for libc_fetestexcept and
9039         libc_feupdateenv.
9040         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
9041         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9042         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9043         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9044         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9045         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9046         libc_fetestexcept and libc_feupdateenv.
9047
9048         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
9049         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
9050         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
9051         * sysdeps/x86_64/fpu/math_private.h: Define special version of
9052         libc_feholdexcept_setround.
9053
9054         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
9055         Add s_nearbyint-c and s_nearbyintf-c.
9056         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
9057         nearbyintf inlines.
9058         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
9059         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
9060         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
9061         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
9062
9063         * math/math_private.h: Define defaults for libc_fegetround,
9064         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
9065         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
9066         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
9067         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
9068         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
9069         standard functions.
9070         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9071         Remove comments and hacks for old compiler versions.
9072         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
9073         libc_fegetround, libc_fesetround, libc_feholdexcept, and
9074         libc_feholdexceptl.
9075
9076 2011-10-18  Andreas Schwab  <schwab@redhat.com>
9077
9078         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
9079         (__feraiseexcept_renamed): Add __NTH.
9080         (feraiseexcept): Add __NTH.  Rename local variables to fix
9081         namespace violations.
9082
9083 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
9084
9085         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
9086
9087         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
9088
9089         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
9090         recently added interfaces.
9091         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9092
9093         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
9094         about macro parameter expansion.
9095
9096         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
9097         __NO_MATH_INLINES is defined.  Cleanups.
9098
9099         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
9100         and __floorf is target has SSE4.1.
9101         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
9102         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
9103         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
9104         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
9105
9106         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
9107         name.
9108         (floorf): Likewise.
9109
9110         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
9111
9112 2011-10-17  Andreas Schwab  <schwab@redhat.com>
9113
9114         * misc/sys/cdefs.h: Fix last change.
9115
9116         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
9117         database lookup.
9118
9119 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
9120
9121         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
9122
9123         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
9124         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9125         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9126         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9127         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9128         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9129         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9130         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9131         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9132         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
9133         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
9134         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
9135         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
9136         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
9137         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
9138         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
9139         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
9140         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
9141         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
9142         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
9143         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
9144         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
9145
9146         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
9147         ceil, ceilf, floor, floorf.
9148
9149         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
9150         Perform IRELATIVE relocations last.
9151
9152         * elf/do-rel.h: Add another parameter nrelative, replacing the
9153         local variable with the same name.  Change name of the function
9154         to end in Rel or Rela (uppercase).
9155         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
9156         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
9157         elf_dynamic_do_##reloc function.
9158
9159 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9160
9161         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
9162         is sufficient, at least on modern CPUs.
9163
9164         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
9165
9166         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
9167         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
9168
9169         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
9170         __expl_finite.
9171         * math/bits/math-finite.h: Add entries for exp.
9172         * math/e_expl.c: Add __*_finite alias.
9173         * sysdeps/i386/fpu/e_exp.S: Likewise.
9174         * sysdeps/i386/fpu/e_expf.S: Likewise.
9175         * sysdeps/i386/fpu/e_expl.c: Likewise.
9176         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9177         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9178         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9179         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9180         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
9181         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
9182         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
9183
9184         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
9185         is sufficient, at least on modern CPUs.
9186
9187         * ctype/ctype-info.c (__ctype_init): Define.
9188         * include/ctype.h (__ctype_init): Declare.
9189         (__ctype_b_loc): The variable is always initialized.
9190         (__ctype_toupper_loc): Likewise.
9191         (__ctype_tolower_loc): Likewise.
9192         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
9193         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
9194
9195 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
9196
9197         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
9198
9199         * configure.in: Also look in $cxxmachine/include for C++ system
9200         headers.
9201
9202 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9203
9204         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
9205         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
9206         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
9207         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
9208         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
9209         (USE_AS_WMEMCMP): New macro.
9210         Fixing indents.
9211         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
9212         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
9213         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
9214         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
9215         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9216         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
9217         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
9218         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
9219         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
9220         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
9221         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
9222         (USE_AS_WMEMCMP): New macro.
9223         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
9224         * sysdeps/string/test-memcmp.c: Update.
9225         Fix simple_wmemcmp.
9226         Add new tests.
9227         * wcsmbs/wmemcmp.c: Update.
9228         (WMEMCMP): New macro.
9229         Fix overflow bug.
9230
9231 2011-10-12  Andreas Jaeger  <aj@suse.de>
9232
9233         [BZ #13268]
9234         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
9235
9236 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
9237
9238         * libio/iofwide.c (do_length): Avoid warning.
9239
9240         * ctype/ctype.h (__isctype_f): Add missing __THROW.
9241
9242 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
9243
9244         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
9245
9246         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
9247         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
9248         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
9249         * sysdeps/i386/i686/fpu/e_log.S: New file.
9250         * sysdeps/i386/i686/fpu/e_logf.S: New file.
9251         * sysdeps/i386/i686/fpu/e_logl.S: New file.
9252
9253         * ctype/ctype.h: Add support for inlined isXXX functions when
9254         compiling C++ code.
9255
9256 2011-10-14  Andreas Schwab  <schwab@redhat.com>
9257
9258         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9259
9260         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
9261
9262 2011-10-13  Roland McGrath  <roland@hack.frob.com>
9263
9264         [BZ #13291]
9265         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
9266
9267 2011-10-13  Andreas Schwab  <schwab@redhat.com>
9268
9269         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
9270         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
9271         feraiseexcept.
9272
9273         * sysdeps/x86_64/memrchr.S: Check for zero size.
9274
9275         * string/stratcliff.c: Add memrchr tests.
9276
9277 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9278
9279         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9280         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
9281         rawmemchr-sse2 rawmemchr-sse2-bsf.
9282         * sysdeps/i386/i686/multiarch/memchr.S: New file.
9283         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
9284         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9285         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
9286         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
9287         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
9288         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
9289         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
9290         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
9291         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
9292         * string/memrchr.c (MEMRCHR): New macro.
9293
9294 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
9295
9296         Add integration with gcc's -ffinite-math-only and optimize wrapper
9297         functions in libm.
9298         * Versions.def: Define GLIBC_2.15 version for libm.
9299         * math/Makefile (headers): Add bits/math-finite.h.
9300         * math/bits/math-finite.h: New file.
9301         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
9302         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
9303         * math/e_acoshl.c: Add __*_finite alias.
9304         * math/e_acosl.c: Likewise.
9305         * math/e_asinl.c: Likewise.
9306         * math/e_atan2l.c: Likewise.
9307         * math/e_atanhl.c: Likewise.
9308         * math/e_coshl.c: Likewise.
9309         * math/e_exp10.c: Likewise.
9310         * math/e_exp10f.c: Likewise.
9311         * math/e_exp10l.c: Likewise.
9312         * math/e_exp2l.c: Likewise.
9313         * math/e_fmodl.c: Likewise.
9314         * math/e_gammal_r.c: Likewise.
9315         * math/e_hypotl.c: Likewise.
9316         * math/e_j0l.c: Likewise.
9317         * math/e_j1l.c: Likewise.
9318         * math/e_jnl.c: Likewise.
9319         * math/e_lgammal_r.c: Likewise.
9320         * math/e_log10l.c: Likewise.
9321         * math/e_log2l.c: Likewise.
9322         * math/e_logl.c: Likewise.
9323         * math/e_powl.c: Likewise.
9324         * math/e_sinhl.c: Likewise.
9325         * math/e_sqrtl.c: Likewise.
9326         * math/e_scalb.c: Completely rewritten and optimized.
9327         * math/e_scalbf.c: Likewise.
9328         * math/e_scalbl.c: Likewise.
9329         * math/w_acos.c: Likewise.
9330         * math/w_acosf.c: Likewise.
9331         * math/w_acosl.c: Likewise.
9332         * math/w_acosh.c: Likewise.
9333         * math/w_acoshf.c: Likewise.
9334         * math/w_acoshl.c: Likewise.
9335         * math/w_asin.c: Likewise.
9336         * math/w_asinf.c: Likewise.
9337         * math/w_asinl.c: Likewise.
9338         * math/w_atan2.c: Likewise.
9339         * math/w_atan2f.c: Likewise.
9340         * math/w_atan2l.c: Likewise.
9341         * math/w_atanh.c: Likewise.
9342         * math/w_atanhf.c: Likewise.
9343         * math/w_atanhl.c: Likewise.
9344         * math/w_exp10.c: Likewise.
9345         * math/w_exp10f.c: Likewise.
9346         * math/w_exp10l.c: Likewise.
9347         * math/w_fmod.c: Likewise.
9348         * math/w_fmodf.c: Likewise.
9349         * math/w_fmodl.c: Likewise.
9350         * math/w_j0.c: Likewise.
9351         * math/w_j0f.c: Likewise.
9352         * math/w_j0l.c: Likewise.
9353         * math/w_j1.c: Likewise.
9354         * math/w_j1f.c: Likewise.
9355         * math/w_j1l.c: Likewise.
9356         * math/w_jn.c: Likewise.
9357         * math/w_jnf.c: Likewise.
9358         * math/w_log.c: Likewise.
9359         * math/w_logf.c: Likewise.
9360         * math/w_logl.c: Likewise.
9361         * math/w_log10.c: Likewise.
9362         * math/w_log10f.c: Likewise.
9363         * math/w_log10l.c: Likewise.
9364         * math/w_log2.c: Likewise.
9365         * math/w_log2f.c: Likewise.
9366         * math/w_log2l.c: Likewise.
9367         * math/w_pow.c: Likewise.
9368         * math/w_powf.c: Likewise.
9369         * math/w_powl.c: Likewise.
9370         * math/w_remainder.c: Likewise.
9371         * math/w_remainderf.c: Likewise.
9372         * math/w_remainderl.c: Likewise.
9373         * math/w_scalb.c: Likewise.
9374         * math/w_scalbf.c: Likewise.
9375         * math/w_scalbl.c: Likewise.
9376         * math/w_sqrt.c: Likewise.
9377         * math/w_sqrtf.c: Likewise.
9378         * math/w_sqrtl.c: Likewise.
9379         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
9380         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
9381         used.
9382         * math/math_private.h: Declare __kernel_standard_f.
9383         * math/w_cosh.c: Remove cruft and optimize a bit.
9384         * math/w_coshf.c: Likewise.
9385         * math/w_coshl.c: Likewise.
9386         * math/w_exp2.c: Likewise.
9387         * math/w_exp2f.c: Likewise.
9388         * math/w_exp2l.c: Likewise.
9389         * math/w_hypot.c: Likewise.
9390         * math/w_hypotf.c: Likewise.
9391         * math/w_hypotl.c: Likewise.
9392         * math/w_lgamma.c: Likewise.
9393         * math/w_lgamma_r.c: Likewise.
9394         * math/w_lgammaf.c: Likewise.
9395         * math/w_lgammaf_r.c: Likewise.
9396         * math/w_lgammal.c: Likewise.
9397         * math/w_lgammal_r.c: Likewise.
9398         * math/w_sinh.c: Likewise.
9399         * math/w_sinhf.c: Likewise.
9400         * math/w_sinhl.c: Likewise.
9401         * math/w_tgamma.c: Likewise.
9402         * math/w_tgammaf.c: Likewise.
9403         * math/w_tgammal.c: Likewise.
9404         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9405         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9406         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
9407         Minor optimizations.  Pretty printing.  Remove cruft.
9408         * sysdeps/i386/fpu/e_acosf.S: Likewise.
9409         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9410         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9411         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9412         * sysdeps/i386/fpu/e_acosl.c: Likewise.
9413         * sysdeps/i386/fpu/e_asin.S: Likewise.
9414         * sysdeps/i386/fpu/e_asinf.S: Likewise.
9415         * sysdeps/i386/fpu/e_atan2.S: Likewise.
9416         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
9417         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
9418         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9419         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9420         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9421         * sysdeps/i386/fpu/e_exp10.S: Likewise.
9422         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
9423         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
9424         * sysdeps/i386/fpu/e_exp2.S: Likewise.
9425         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
9426         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
9427         * sysdeps/i386/fpu/e_fmod.S: Likewise.
9428         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
9429         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9430         * sysdeps/i386/fpu/e_hypot.S: Likewise.
9431         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
9432         * sysdeps/i386/fpu/e_log.S: Likewise.
9433         * sysdeps/i386/fpu/e_log10.S: Likewise.
9434         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9435         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9436         * sysdeps/i386/fpu/e_log2.S: Likewise.
9437         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9438         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9439         * sysdeps/i386/fpu/e_logf.S: Likewise.
9440         * sysdeps/i386/fpu/e_logl.S: Likewise.
9441         * sysdeps/i386/fpu/e_pow.S: Likewise.
9442         * sysdeps/i386/fpu/e_powf.S: Likewise.
9443         * sysdeps/i386/fpu/e_powl.S: Likewise.
9444         * sysdeps/i386/fpu/e_remainder.S: Likewise.
9445         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
9446         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
9447         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9448         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9449         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9450         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
9451         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
9452         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
9453         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9454         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9455         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9456         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9457         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9458         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9459         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9460         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9461         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9462         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9463         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9464         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9465         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9466         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9467         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9468         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9469         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9470         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9471         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9472         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9473         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9474         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9475         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9476         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9477         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9478         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9479         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9480         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9481         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9482         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9483         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9484         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9485         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9486         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9487         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9488         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9489         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9490         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9491         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9492         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9493         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9494         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9495         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9496         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9497         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9498         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9499         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9500         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9501         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9502         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9503         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9504         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9505         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9506         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9507         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9508         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9509         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9510         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9511         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9512         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9513         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9514         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9515         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9516         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9517         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9518         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9519         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9520         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9521         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9522         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9523         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9524         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9525         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9526         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9527         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9528         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9529         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
9530         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9531         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9532         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9533         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9534         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9535         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9536         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9537         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9538         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9539         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9540         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9541         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9542         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9543         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9544         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9545         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9546         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9547         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9548         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
9549         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
9550         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
9551         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
9552         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
9553         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
9554         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
9555         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
9556         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
9557         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9558         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9559         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9560         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9561         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
9562         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9563         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
9564         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
9565         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
9566         (__isnanf): Likewise.
9567         (__isinf_ns): Likewise.
9568         (__isinf_nsf): Likewise.
9569         (__finite): Likewise.
9570         (__finitef): Likewise.
9571         (__ieee754_sqrt): Define as macro.
9572         (__ieee754_sqrtf): Define as macro.
9573         (__ieee754_sqrtl): Define as macro.
9574         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
9575         inlined copy.
9576         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
9577         __FINITE_MATH_ONLY__ consistent.
9578         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
9579
9580 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
9581
9582         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
9583         of rawmemchr.
9584
9585         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
9586
9587 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
9588
9589         * po/ja.po: Update from translation team.
9590
9591 2011-10-08  Roland McGrath  <roland@hack.frob.com>
9592
9593         * locale/programs/locarchive.c (prepare_address_space): New function.
9594         (create_archive, enlarge_archive, open_archive): Use it.
9595
9596         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
9597         inside [SHARED], where it is used.
9598
9599         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
9600
9601         * nss/getent.c (netgroup_keys): Remove unused variable.
9602         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9603
9604 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
9605
9606         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
9607         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
9608         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
9609         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
9610         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
9611         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
9612         * math/Makefile (libm-calls): Add s_isinf_ns.
9613         * math/divtc3.c: Use __isinf_nsl instead of isinf.
9614         * math/multc3.c: Likewise.
9615         * math/s_casin.c: Likewise.
9616         * math/s_casinf.c: Likewise.
9617         * math/s_casinl.c: Likewise.
9618         * math/s_ccos.c: Likewise.
9619         * math/s_ccosf.c: Likewise.
9620         * math/s_ccosl.c: Likewise.
9621         * math/s_ctan.c: Likewise.
9622         * math/s_ctanf.c: Likewise.
9623         * math/s_ctanh.c: Likewise.
9624         * math/s_ctanhf.c: Likewise.
9625         * math/s_ctanhl.c: Likewise.
9626         * math/s_ctanl.c: Likewise.
9627         * math/w_fmod.c: Likewise.
9628         * math/w_fmodf.c: Likewise.
9629         * math/w_fmodl.c: Likewise.
9630         * math/w_remainder.c: Likewise.
9631         * math/w_remainderf.c: Likewise.
9632         * math/w_remainderl.c: Likewise.
9633         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
9634         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
9635         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
9636         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
9637         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
9638         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
9639         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
9640         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
9641
9642         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
9643         of the number.
9644         * stdio-common/printf_fphex.c: Likewise.
9645         * stdio-common/printf_size.c: Likewise.
9646
9647         * math/e_exp10.c: Include math_private.h using <...> not "...".
9648         * math/e_exp10f.c: Likewise.
9649         * math/e_exp10l.c: Likewise.
9650         * math/e_exp2l.c: Likewise.
9651         * math/e_j0l.c: Likewise.
9652         * math/e_j1l.c: Likewise.
9653         * math/e_jnl.c: Likewise.
9654         * math/e_lgammal_r.c: Likewise.
9655         * math/e_rem_pio2l.c: Likewise.
9656         * math/e_scalb.c: Likewise.
9657         * math/e_scalbf.c: Likewise.
9658         * math/e_scalbl.c: Likewise.
9659         * math/k_cosl.c: Likewise.
9660         * math/k_sinl.c: Likewise.
9661         * math/k_tanl.c: Likewise.
9662         * math/s_cacoshf.c: Likewise.
9663         * math/s_catan.c: Likewise.
9664         * math/s_catanf.c: Likewise.
9665         * math/s_catanh.c: Likewise.
9666         * math/s_catanhf.c: Likewise.
9667         * math/s_catanhl.c: Likewise.
9668         * math/s_catanl.c: Likewise.
9669         * math/s_ccosh.c: Likewise.
9670         * math/s_ccoshf.c: Likewise.
9671         * math/s_ccoshl.c: Likewise.
9672         * math/s_cexp.c: Likewise.
9673         * math/s_cexpf.c: Likewise.
9674         * math/s_cexpl.c: Likewise.
9675         * math/s_clog.c: Likewise.
9676         * math/s_clog10.c: Likewise.
9677         * math/s_clog10f.c: Likewise.
9678         * math/s_clog10l.c: Likewise.
9679         * math/s_clogf.c: Likewise.
9680         * math/s_clogl.c: Likewise.
9681         * math/s_csin.c: Likewise.
9682         * math/s_csinf.c: Likewise.
9683         * math/s_csinh.c: Likewise.
9684         * math/s_csinhf.c: Likewise.
9685         * math/s_csinhl.c: Likewise.
9686         * math/s_csinl.c: Likewise.
9687         * math/s_csqrt.c: Likewise.
9688         * math/s_csqrtf.c: Likewise.
9689         * math/s_csqrtl.c: Likewise.
9690         * math/s_ctan.c: Likewise.
9691         * math/s_ctanf.c: Likewise.
9692         * math/s_ctanh.c: Likewise.
9693         * math/s_ctanhf.c: Likewise.
9694         * math/s_ctanhl.c: Likewise.
9695         * math/s_ctanl.c: Likewise.
9696         * math/s_ldexp.c: Likewise.
9697         * math/s_ldexpf.c: Likewise.
9698         * math/s_ldexpl.c: Likewise.
9699         * math/s_significand.c: Likewise.
9700         * math/s_significandf.c: Likewise.
9701         * math/s_significandl.c: Likewise.
9702         * math/w_acos.c: Likewise.
9703         * math/w_acosf.c: Likewise.
9704         * math/w_acosh.c: Likewise.
9705         * math/w_acoshf.c: Likewise.
9706         * math/w_acoshl.c: Likewise.
9707         * math/w_acosl.c: Likewise.
9708         * math/w_asin.c: Likewise.
9709         * math/w_asinf.c: Likewise.
9710         * math/w_asinl.c: Likewise.
9711         * math/w_atan2.c: Likewise.
9712         * math/w_atan2f.c: Likewise.
9713         * math/w_atan2l.c: Likewise.
9714         * math/w_atanh.c: Likewise.
9715         * math/w_atanhf.c: Likewise.
9716         * math/w_atanhl.c: Likewise.
9717         * math/w_cosh.c: Likewise.
9718         * math/w_coshf.c: Likewise.
9719         * math/w_coshl.c: Likewise.
9720         * math/w_dremf.c: Likewise.
9721         * math/w_exp10.c: Likewise.
9722         * math/w_exp10f.c: Likewise.
9723         * math/w_exp10l.c: Likewise.
9724         * math/w_exp2.c: Likewise.
9725         * math/w_exp2f.c: Likewise.
9726         * math/w_fmod.c: Likewise.
9727         * math/w_fmodf.c: Likewise.
9728         * math/w_fmodl.c: Likewise.
9729         * math/w_hypot.c: Likewise.
9730         * math/w_hypotf.c: Likewise.
9731         * math/w_hypotl.c: Likewise.
9732         * math/w_j0.c: Likewise.
9733         * math/w_j0f.c: Likewise.
9734         * math/w_j0l.c: Likewise.
9735         * math/w_j1.c: Likewise.
9736         * math/w_j1f.c: Likewise.
9737         * math/w_j1l.c: Likewise.
9738         * math/w_jn.c: Likewise.
9739         * math/w_jnf.c: Likewise.
9740         * math/w_jnl.c: Likewise.
9741         * math/w_lgamma.c: Likewise.
9742         * math/w_lgamma_r.c: Likewise.
9743         * math/w_lgammaf.c: Likewise.
9744         * math/w_lgammaf_r.c: Likewise.
9745         * math/w_lgammal.c: Likewise.
9746         * math/w_lgammal_r.c: Likewise.
9747         * math/w_log.c: Likewise.
9748         * math/w_log10.c: Likewise.
9749         * math/w_log10f.c: Likewise.
9750         * math/w_log10l.c: Likewise.
9751         * math/w_log2.c: Likewise.
9752         * math/w_log2f.c: Likewise.
9753         * math/w_log2l.c: Likewise.
9754         * math/w_logf.c: Likewise.
9755         * math/w_logl.c: Likewise.
9756         * math/w_pow.c: Likewise.
9757         * math/w_powf.c: Likewise.
9758         * math/w_powl.c: Likewise.
9759         * math/w_remainder.c: Likewise.
9760         * math/w_remainderf.c: Likewise.
9761         * math/w_remainderl.c: Likewise.
9762         * math/w_scalb.c: Likewise.
9763         * math/w_scalbf.c: Likewise.
9764         * math/w_scalbl.c: Likewise.
9765         * math/w_sinh.c: Likewise.
9766         * math/w_sinhf.c: Likewise.
9767         * math/w_sinhl.c: Likewise.
9768         * math/w_sqrt.c: Likewise.
9769         * math/w_sqrtf.c: Likewise.
9770         * math/w_sqrtl.c: Likewise.
9771         * math/w_tgamma.c: Likewise.
9772         * math/w_tgammaf.c: Likewise.
9773         * math/w_tgammal.c: Likewise.
9774
9775         * po/ja.po: Update from translation team.
9776
9777 2011-09-29  Andreas Jaeger  <aj@suse.de>
9778
9779         [BZ #13179]
9780         * sunrpc/netname.c (netname2host): Fix logic.
9781
9782         [BZ #6779]
9783         [BZ #6783]
9784         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
9785         correctly.
9786         * math/w_remainder.c (__remainder): Likewise.
9787         * math/w_remainderf.c (__remainderf): Likewise.
9788         * math/libm-test.inc (remainder_test): Add test cases.
9789
9790 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9791
9792         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
9793         sdiv_qrnnd.
9794
9795 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9796
9797         * string/test-memcmp.c: Avoid unncessary #defines.
9798         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9799
9800 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9801
9802         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
9803         Use new sse2 version for core i3 - i7 as it's faster
9804         than sse42 version.
9805         (bit_Prefer_PMINUB_for_stringop): New.
9806         * sysdeps/x86_64/rawmemchr.S: Update.
9807         Replace with faster SSE2 version.
9808         * sysdeps/x86_64/memrchr.S: New file.
9809         * sysdeps/x86_64/memchr.S: Update.
9810         Replace with faster SSE2 version.
9811
9812 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
9813
9814         * elf/dl-load.c (lose): Add cast to avoid warning.
9815
9816 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
9817
9818         * po/ca.po: Update from translation team.
9819
9820         * inet/getnetgrent_r.c: Hook up nscd.
9821         * nscd/Makefile (routines): Add nscd_netgroup.
9822         (nscd-modules): Add netgroupcache.
9823         (CFLAGS-netgroupcache.c): Define.
9824         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
9825         (cache_search): Add const to second parameter.
9826         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
9827         INNETGR.
9828         (dbs): Add netgrdb entry.
9829         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
9830         (verify_persistent_db): Handle netgrdb.
9831         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
9832         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
9833         GETFDNETGR.
9834         (netgroup_response_header): Define.
9835         (innetgroup_response_header): Define.
9836         (datahead): Add netgroup_response_header and innetgroup_response_header
9837         elements.
9838         * nscd/nscd.conf: Add entries for netgroup cache.
9839         * nscd/nscd.h (dbtype): Add netgrdb.
9840         (_PATH_NSCD_NETGROUP_DB): Define.
9841         (netgroup_iov_disabled): Declare.
9842         (xmalloc, xcalloc, xrealloc): Move declarations here.
9843         (cache_search): Adjust prototype.
9844         Add netgroup-related prototypes.
9845         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
9846         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
9847         (__nscd_innetgr): Declare.
9848         * nscd/selinux.c (perms): Use access_vector_t as element type and
9849         add netgroup-related initializers.
9850         * nscd/netgroupcache.c: New file.
9851         * nscd/nscd_netgroup.c: New file.
9852         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
9853         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
9854         For four parameters use innetgr.
9855         * nss/nss_files/files-init.c: Add definition and callback for netgr.
9856         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
9857         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
9858         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
9859
9860         * nscd/connections.c (register_traced_file): Don't register file
9861         for disabled databases.
9862
9863 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
9864
9865         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
9866
9867         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
9868         from tree and freeing node.
9869
9870 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
9871
9872         * nss/nsswitch.c (__nss_database_lookup): Handle
9873         nss_parse_service_list out of memory case.
9874
9875 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
9876
9877         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
9878         out of memory case.
9879
9880 2011-10-04  Andreas Schwab  <schwab@redhat.com>
9881
9882         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
9883         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
9884         pass it down.
9885         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
9886         elf_machine_rela, elf_machine_lazy_rel.
9887         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
9888         (ELF_DYNAMIC_DO_REL): Likewise.
9889         (ELF_DYNAMIC_DO_RELA): Likewise.
9890         (ELF_DYNAMIC_RELOCATE): Likewise.
9891         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
9892         to ELF_DYNAMIC_DO_REL.
9893         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
9894         (dl_main): In trace mode always set __RTLD_NOIFUNC.
9895         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
9896         elf_machine_rela.
9897         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
9898         skip_ifunc, don't call ifunc function if non-zero.
9899         (elf_machine_rela): Likewise.
9900         (elf_machine_lazy_rel): Likewise.
9901         (elf_machine_lazy_rela): Likewise.
9902         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
9903         (elf_machine_lazy_rel): Likewise.
9904         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
9905         Likewise.
9906         (elf_machine_lazy_rel): Likewise.
9907         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9908         Likewise.
9909         (elf_machine_lazy_rel): Likewise.
9910         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
9911         (elf_machine_lazy_rel): Likewise.
9912         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
9913         (elf_machine_lazy_rel): Likewise.
9914         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9915         (elf_machine_lazy_rel): Likewise.
9916         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
9917         (elf_machine_lazy_rel): Likewise.
9918         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
9919         (elf_machine_lazy_rel): Likewise.
9920         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9921         (elf_machine_lazy_rel): Likewise.
9922
9923 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
9924
9925         * nss/nss_files/files-init.c (_nss_files_init): Use static
9926         initialization for all the *_traced_file variables.
9927
9928 2011-09-28  Andreas Schwab  <schwab@redhat.com>
9929
9930         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
9931
9932 2011-09-27  Roland McGrath  <roland@hack.frob.com>
9933
9934         [BZ #13226]
9935         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
9936
9937 2011-09-27  Andreas Schwab  <schwab@redhat.com>
9938
9939         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9940         Reread the line before reparsing it.
9941
9942 2011-09-26  Andreas Schwab  <schwab@redhat.com>
9943
9944         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
9945
9946 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
9947             Maxim Kuvyrkov  <maxim@codesourcery.com>
9948             Joseph Myers  <joseph@codesourcery.com>
9949
9950         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
9951         if needed for __stack_chk_guard.
9952
9953 2011-09-19  Roland McGrath  <roland@hack.frob.com>
9954
9955         * sysdeps/posix/spawni.c (script_execute): Always define it.
9956         It will be optimized away if unused.
9957         (maybe_script_execute): New function.
9958         (__spawni): Call it.
9959
9960         * Makerules: Don't include tls.make.
9961         (config-tls): Always set to thread.
9962         * tls.make.c: File removed.
9963
9964 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
9965
9966         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
9967         * config.make.in (CPPFLAGS-config): New substituted variable.
9968
9969 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
9970
9971         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
9972
9973         [BZ #13192]
9974         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
9975         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
9976
9977 2011-09-15  Roland McGrath  <roland@hack.frob.com>
9978
9979         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
9980         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
9981         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
9982         (CALL_FAIL): Likewise.
9983         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
9984         (CALL_FAIL): Macro removed.
9985         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
9986
9987 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
9988
9989         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
9990         for __FINITE_MATH_ONLY__ == 1.
9991
9992 2011-09-15  Andreas Schwab  <schwab@redhat.com>
9993
9994         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
9995         __ieee754_sqrt instead of sqrt.
9996         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
9997         __ieee754_sqrtf instead of sqrtf.
9998         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
9999         __floorf instead of floorf.
10000         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
10001         __floorf, __truncf instead of floorf, truncf.
10002
10003 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
10004
10005         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
10006
10007         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
10008         __extern_always_inline.
10009         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
10010         32-bit.
10011
10012 2011-09-14  Andreas Schwab  <schwab@redhat.com>
10013
10014         * elf/rtld.c (dl_main): Also relocate in dependency order when
10015         doing symbol dependency testing.
10016
10017 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
10018
10019         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10020         Always define `refsym'.
10021
10022 2011-09-13  Andreas Schwab  <schwab@redhat.com>
10023
10024         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
10025         (__FD_ELT): Renamed from __FDELT.
10026         * misc/bits/select2.h (__FD_ELT): Likewise.
10027         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
10028         __FD_MASK instead of __FDELT, __FDMASK.
10029         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10030         Likewise.
10031         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
10032         Likewise.
10033
10034         * elf/Makefile (gen-ldd): Fix pattern.
10035
10036         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
10037         (init_tls): Likewise.
10038
10039 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
10040
10041         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
10042
10043 2011-09-12  Andreas Schwab  <schwab@redhat.com>
10044
10045         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
10046         `struct cmsghdr *' instead of `void *'.
10047         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
10048         Likewise.
10049
10050 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
10051
10052         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
10053         if non-absolute.
10054         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
10055         ldd_rewrite_script.
10056
10057 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
10058
10059         * configure.in: Remove --with-tls option.
10060         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
10061         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
10062         out in case it is missing.
10063         * sysdeps/ia64/elf/configure.in: Likewise.
10064         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
10065         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
10066         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
10067         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
10068         * sysdeps/sh/elf/configure.in: Likewise.
10069         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
10070         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10071         * sysdeps/x86_64/elf/configure.in: Likewise.
10072         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
10073         * sysdeps/mach/hurd/tls.h: Likewise.
10074
10075         [BZ #13067]
10076         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
10077
10078         [BZ #13090]
10079         * configure.in: Fix use of AC_INIT.
10080
10081         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
10082
10083 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
10084
10085         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
10086         __set_errno.
10087         * malloc/hooks.c: Likewise.
10088
10089         [BZ #11929]
10090         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
10091         variables statically.
10092         (narenas): Initialize.
10093         (list_lock): Initialize.
10094         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
10095         initializtion of main_arena and list_lock.  Small cleanups.
10096         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
10097         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
10098         Add initializers to main_arena and mp_.
10099         (malloc_state): Remove pagesize member.  Change all users to use
10100         GLRO(dl_pagesize).
10101
10102         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
10103         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
10104         is always initialized.
10105
10106         * malloc/malloc.c: Removed unused configurations and dead code.
10107         * malloc/arena.c: Likewise.
10108         * malloc/hooks.c: Likewise.
10109         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
10110
10111         * include/tls.h: Removed.  USE___THREAD must always be defined.
10112         * bits/libc-tsd.h: Don't handle !USE___THREAD.
10113         * elf/dl-libc.c: Likewise.
10114         * elf/dl-tsd.c: Likewise.
10115         * include/errno.h: Likewise.
10116         * include/netdb.h: Likewise.
10117         * include/resolv.h: Likewise.
10118         * inet/herrno-loc.c: Likewise.
10119         * inet/herrno.c: Likewise.
10120         * malloc/arena.c: Likewise.
10121         * malloc/hooks.c: Likewise.
10122         * malloc/malloc.c: Likewise.
10123         * resolv/res-state.c: Likewise.
10124         * resolv/res_libc.c: Likewise.
10125         * sysdeps/i386/dl-machine.h: Likewise.
10126         * sysdeps/ia64/dl-machine.h: Likewise.
10127         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10128         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10129         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10130         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10131         * sysdeps/sh/dl-machine.h: Likewise.
10132         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10133         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10134         * sysdeps/unix/i386/sysdep.S: Likewise.
10135         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10136         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
10137         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
10138         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10139         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
10140         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10141         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10142         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10143         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10144         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10145         * sysdeps/unix/x86_64/sysdep.S: Likewise.
10146         * sysdeps/x86_64/dl-machine.h: Likewise.
10147         * tls.make.c: Likewise.
10148
10149         * configure.in: Remove --with-__thread option.  Make tests for
10150         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
10151         tls_model attribute fail if no support is available.  Remove
10152         USE_IN_LIBIO.
10153         * Makeconfig: Adjust for dropped configure option.  All features are
10154         now mandatory.
10155         * Makerules: Likewise.
10156         * Versions.def: Likewise.
10157         * argp/argp-fmtstream.c: Likewise.
10158         * argp/argp-fmtstream.h: Likewise.
10159         * argp/argp-help.c: Likewise.
10160         * assert/assert.c: Likewise.
10161         * config.h.in: Likewise.
10162         * config.make.in: Likewise.
10163         * configure: Likewise.
10164         * configure.in: Likewise.
10165         * csu/Versions: Likewise.
10166         * csu/init.c: Likewise.
10167         * elf/tst-audit2.c: Likewise.
10168         * elf/tst-tls10.c: Likewise.
10169         * elf/tst-tls10.h: Likewise.
10170         * elf/tst-tls11.c: Likewise.
10171         * elf/tst-tls12.c: Likewise.
10172         * elf/tst-tls14.c: Likewise.
10173         * elf/tst-tlsmod11.c: Likewise.
10174         * elf/tst-tlsmod12.c: Likewise.
10175         * elf/tst-tlsmod13.c: Likewise.
10176         * elf/tst-tlsmod13a.c: Likewise.
10177         * elf/tst-tlsmod14a.c: Likewise.
10178         * elf/tst-tlsmod15b.c: Likewise.
10179         * elf/tst-tlsmod16a.c: Likewise.
10180         * elf/tst-tlsmod16b.c: Likewise.
10181         * elf/tst-tlsmod7.c: Likewise.
10182         * elf/tst-tlsmod8.c: Likewise.
10183         * elf/tst-tlsmod9.c: Likewise.
10184         * gmon/gmon.c: Likewise.
10185         * grp/fgetgrent_r.c: Likewise.
10186         * grp/putgrent.c: Likewise.
10187         * hurd/fopenport.c: Likewise.
10188         * include/libc-symbols.h: Likewise.
10189         * include/tls.h: Likewise.
10190         * intl/gettextP.h: Likewise.
10191         * intl/loadinfo.h: Likewise.
10192         * locale/global-locale.c: Likewise.
10193         * locale/localeinfo.h: Likewise.
10194         * mach/devstream.c: Likewise.
10195         * malloc/arena.c: Likewise.
10196         * malloc/set-freeres.c: Likewise.
10197         * misc/err.c: Likewise.
10198         * misc/getttyent.c: Likewise.
10199         * misc/mntent_r.c: Likewise.
10200         * posix/getopt.c: Likewise.
10201         * posix/wordexp.c: Likewise.
10202         * pwd/fgetpwent_r.c: Likewise.
10203         * resolv/Versions: Likewise.
10204         * resolv/res_hconf.c: Likewise.
10205         * shadow/fgetspent_r.c: Likewise.
10206         * shadow/putspent.c: Likewise.
10207         * stdio-common/printf_fphex.c: Likewise.
10208         * stdio-common/tmpfile.c: Likewise.
10209         * stdlib/abort.c: Likewise.
10210         * stdlib/fmtmsg.c: Likewise.
10211         * sunrpc/auth_unix.c: Likewise.
10212         * sunrpc/clnt_perr.c: Likewise.
10213         * sunrpc/clnt_tcp.c: Likewise.
10214         * sunrpc/clnt_udp.c: Likewise.
10215         * sunrpc/clnt_unix.c: Likewise.
10216         * sunrpc/openchild.c: Likewise.
10217         * sunrpc/svc_simple.c: Likewise.
10218         * sunrpc/svc_tcp.c: Likewise.
10219         * sunrpc/svc_udp.c: Likewise.
10220         * sunrpc/svc_unix.c: Likewise.
10221         * sunrpc/xdr.c: Likewise.
10222         * sunrpc/xdr_array.c: Likewise.
10223         * sunrpc/xdr_rec.c: Likewise.
10224         * sunrpc/xdr_ref.c: Likewise.
10225         * sunrpc/xdr_stdio.c: Likewise.
10226
10227 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10228
10229         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10230
10231 2011-07-03  Andreas Jaeger  <aj@suse.de>
10232
10233         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
10234         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
10235         regenerate with gen-libm-tests.pl.
10236
10237 2010-05-12  Petr Baudis  <pasky@suse.cz>
10238
10239         [BZ #11589]
10240         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
10241         around j0() zero points by switching to j1().
10242         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10243         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10244         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10245         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10246
10247 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10248
10249         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
10250         instead of 0.
10251         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
10252         instead of 0.                              .
10253         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10254         Patch in part by Pavel Roskin <proski@gnu.org>.
10255
10256         [BZ #13138]
10257         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
10258         realloc.
10259         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
10260         Free memory block if necessary.
10261
10262         [BZ #12847]
10263         * libio/genops.c (INTDEF): For string streams the _lock pointer can
10264         be NULL.  Don't lock in this case.
10265
10266 2011-09-09  Roland McGrath  <roland@hack.frob.com>
10267
10268         * elf/elf.h (ELFOSABI_GNU): New macro.
10269         (ELFOSABI_LINUX): Define to that.
10270
10271 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
10272
10273         * string/strncat.c (strncat): Undef the symbol in case it has been
10274         defined in bits/string.h.
10275
10276 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
10277
10278         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
10279
10280         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
10281         link map.
10282
10283 2011-08-17  Andreas Jaeger  <aj@suse.de>
10284
10285         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
10286
10287 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10288             Ian Lance Taylor  <iant@google.com>
10289
10290         * math/libm-test.inc (lround_test): New testcase.
10291         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
10292
10293 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
10294
10295         * Makefile: Remove support for automatic cvs check-ins.
10296         * Makerules: Likewise.
10297         * config.make.in: Likewise.
10298         * configure.in: Likewise.
10299         * intl/Makefile: Likewise.
10300         * locale/Makefile: Likewise.
10301         * po/Makefile: Likewise.
10302         * posix/Makefile: Likewise.
10303         * sysdeps/gnu/Makefile: Likewise.
10304         * sysdeps/mach/hurd/Makefile: Likewise.
10305         * sysdeps/sparc/sparc32/Makefile: Likewise.
10306
10307         [BZ #13118]
10308         * posix/Makefile (bug-regex32-ENV): Define.
10309         Patch by John Stanley <jpsinthemix@verizon.net>.
10310
10311         * misc/Makefile (headers): Add bits/select2.h.
10312         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
10313         * misc/bits/select2.h: New file.
10314         * include/bits/select2.h: New file.
10315         * debug/Makefile (routines): Add fdelt_chk.
10316         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
10317         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
10318         FD_ISSET.
10319         * debug/fdelt_chk.c: New file.
10320
10321         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
10322         * wcsmbs/test-wmemcmp.c: Likewise.
10323         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
10324         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
10325
10326 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10327
10328         * string/Makefile (strop-tests): Add memcmp.
10329         * string/test-wmemcmp.c: New file.
10330         * string/test-memcmp.c: Add wmemcmp support.
10331
10332 2011-09-08  Roland McGrath  <roland@hack.frob.com>
10333
10334         [BZ #13153]
10335         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
10336         2011-07-19 change.
10337
10338         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
10339         garbage value in a __mach_port_mod_refs call in the cases of the
10340         task-self and thread-self ports.
10341
10342 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10343
10344         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
10345
10346 2011-09-08  Andreas Schwab  <schwab@redhat.com>
10347
10348         * elf/dl-load.c (lose): Check for non-null L.
10349
10350 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10351
10352         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
10353
10354         * elf/dl-libc.c (dlerror_run): Pass back error code from
10355         dl_catch_error.
10356
10357         [BZ #13123]
10358         * elf/dl-load.c (lose): Free l_origin if it is valid.
10359
10360         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
10361         names.
10362         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
10363         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10364         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10365         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10366         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
10367         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
10368
10369 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10370
10371         * sysdeps/powerpc/fpu/e_hypot.c: New file.
10372         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
10373         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
10374         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
10375         * sysdeps/powerpc/fpu/k_cosf.c: New file.
10376         * sysdeps/powerpc/fpu/k_sinf.c: New file.
10377         * sysdeps/powerpc/fpu/s_cosf.c: New file.
10378         * sysdeps/powerpc/fpu/s_sinf.c: New file.
10379         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
10380         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
10381
10382 2011-08-15  Alan Modra  <amodra@gmail.com>
10383
10384         [BZ #13092]
10385         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
10386         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
10387         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
10388         ppc_mcount to static-only-routines.
10389         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
10390         __mcount_internal.
10391         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
10392         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
10393
10394 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
10395
10396         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
10397         for finite and infinity parameters.
10398
10399 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
10400
10401         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
10402         and add nop instructions for throughput optimization.
10403         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10404
10405 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
10406
10407         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
10408         aligned copy for power7 with vector-scalar instructions.
10409         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
10410
10411 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10412
10413         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
10414         AVX check.
10415
10416 2011-09-07  Andreas Schwab  <schwab@redhat.com>
10417
10418         [BZ #13144]
10419         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
10420         last change.
10421
10422 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
10423
10424         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10425         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
10426         syscall wrapper around clock_gettime in __vdso_clock_gettime.
10427         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
10428         clock_gettime.
10429
10430 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10431
10432         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
10433         Forgot to demangle the pointer.
10434
10435         * sysdeps/i386/sysdep.h: Define atom_text_section.
10436         * sysdeps/x86_64/sysdep.h: Likewise.
10437         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
10438         section with atom_text_section.
10439         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
10440         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
10441         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
10442         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
10443         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
10444
10445         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
10446         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
10447         already be defined.  Change to take two parameters and don't assign
10448         result to variable.  Adjust all users.
10449         Define INTERNAL_GETTIME if not already defined.
10450         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
10451         call.
10452         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
10453         HAVE_CLOCK_GETTIME_VSYSCALL.
10454         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
10455
10456         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
10457         gettimeofday vsyscall, just use time.
10458
10459 2011-09-06  Andreas Schwab  <schwab@redhat.com>
10460
10461         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
10462         <errno.h>.
10463
10464 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
10465
10466         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
10467         syscall on x86-64.
10468         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
10469         syscall.
10470         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
10471         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
10472         syscall if possible.
10473
10474 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10475
10476         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
10477         e_ident.  Don't pass to find_mapsXX.
10478         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
10479
10480 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10481
10482         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10483         strchr-sse2-no-bsf strrchr-sse2-no-bsf
10484         * sysdeps/x86_64/multiarch/strchr.S: Update.
10485         Check bit_slow_BSF bit.
10486         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
10487         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
10488         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
10489
10490 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10491
10492         [BZ #13134]
10493         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
10494         before glibc 2.15.
10495         (tryshell): Define.
10496         (__spawni): Change last parameter to be flag.  Test
10497         SPAWN_XFLAGS_USE_PATH flag to use path or not.
10498         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
10499         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
10500         * posix/spawni.c: Likewise.
10501         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
10502         * posix/spawnp.c: Likewise.  Change normal version to use
10503         SPAWN_XFLAGS_USE_PATH.
10504         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
10505         SPAWN_XFLAGS_TRY_SHELL.
10506
10507         [BZ #13150]
10508         * posix/glob.h: Remove gcc 1.x support.
10509
10510         [BZ #13068]
10511         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
10512
10513 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10514
10515         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10516         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
10517         strrchr-sse2-bsf
10518         * sysdeps/i386/i686/multiarch/strchr.S: New file.
10519         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
10520         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
10521         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
10522         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
10523         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
10524
10525 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10526
10527         * sysdeps/x86_64/wcscmp.S: New file.
10528
10529         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
10530         wcscmp-c wcscmp-sse2
10531         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
10532         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
10533         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
10534         * wcsmbs/wcscmp.c: Allow renaming.
10535
10536 2011-09-05  David S. Miller  <davem@davemloft.net>
10537
10538         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
10539         stack slot, rather than the struct return pointer slot.
10540         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
10541         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
10542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
10543         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
10544
10545 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
10546
10547         * po/ja.po: Update from translation team.
10548
10549         [BZ #13144]
10550         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
10551         kernel in 64-bit binaries.
10552
10553 2011-09-01  David S. Miller  <davem@davemloft.net>
10554
10555         * elf/elf.h (HWCAP_SPARC_*): Move to..
10556         * sysdeps/sparc/sysdep.h: this new file and add new values.
10557         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
10558         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
10559         _DL_HWCAP_COUNT to 24.
10560         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10561         entries.
10562         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
10563         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
10564         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
10565         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
10566         instead of magic constants.
10567         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10568
10569 2011-08-31  David S. Miller  <davem@davemloft.net>
10570
10571         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
10572         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
10573         Reimplement to do errno handling inline.
10574         (SYSCALL_ERROR_HANDLER): New macro.
10575         (__SYSCALL_STRING): Do not do errno handling in asm.
10576         (__CLONE_SYSCALL_STRING): Delete.
10577         (__INTERNAL_SYSCALL_STRING): Delete.
10578         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
10579         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
10580         (PSEUDO): Reimplement to do errno handling inline.
10581         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
10582         (SYSCALL_ERROR_HANDLER): New macro.
10583         (__SYSCALL_STRING): Do not do errno handling in asm.
10584         (__CLONE_SYSCALL_STRING): Delete.
10585         (__INTERNAL_SYSCALL_STRING): Delete.
10586         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
10587         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
10588         i386.
10589         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
10590         (inline_syscall*): Add 'err' argument.
10591         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
10592         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
10593         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
10594         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
10595
10596         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
10597         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
10598
10599 2011-08-30  Andreas Schwab  <schwab@redhat.com>
10600
10601         * elf/rtld.c (dl_main): Relocate objects in dependency order.
10602
10603 2011-08-29  Jiri Olsa <jolsa@redhat.com>
10604
10605         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
10606         directive.
10607
10608 2011-08-24  David S. Miller  <davem@davemloft.net>
10609
10610         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
10611
10612 2011-08-24  Andreas Schwab  <schwab@redhat.com>
10613
10614         * elf/Makefile: Add rules to build and run unload8 test.
10615         * elf/unload8.c: New file.
10616         * elf/unload8mod1.c: New file.
10617         * elf/unload8mod1x.c: New file.
10618         * elf/unload8mod2.c: New file.
10619         * elf/unload8mod3.c: New file.
10620
10621         * elf/dl-close.c (_dl_close_worker): Reset private search list if
10622         it wasn't used.
10623
10624 2011-08-23  David S. Miller  <davem@davemloft.net>
10625
10626         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
10627         subtract stack bias.
10628         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
10629         %sp not %fp in calculations.
10630         (_JMPBUF_UNWINDS_ADJ): Likewise.
10631
10632         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
10633         (aio_suspend): Call it to force an exception region around the
10634         AIO_MISC_WAIT() invocation.
10635
10636 2011-08-23  Andreas Schwab  <schwab@redhat.com>
10637
10638         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
10639         backslash.
10640
10641 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
10642
10643         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
10644         protection macro.
10645         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
10646         and <dl-machine.h>.
10647         (Elf64_FuncDesc): Remove.
10648
10649 2011-08-22  David S. Miller  <davem@davemloft.net>
10650
10651         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
10652         sigaltstack check, add missing cfi directives.
10653         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
10654         missing cfi directives, and sigaltstack handling.
10655
10656 2011-08-16  Andreas Schwab  <schwab@redhat.com>
10657
10658         [BZ #11724]
10659         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
10660         object is seen twice.
10661         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10662
10663         * elf/Makefile (distribute): Add tst-initorder2.c.
10664         (tests): Add tst-initorder2.
10665         (modules-names): Add tst-initorder2a tst-initorder2b
10666         tst-initorder2c tst-initorder2d.  Add rules to build them.
10667         ($(objpfx)tst-initorder2.out): New rule.
10668         * elf/tst-initorder2.c: New file.
10669         * elf/tst-initorder2.exp: New file.
10670
10671 2011-08-22  Andreas Schwab  <schwab@redhat.com>
10672
10673         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
10674
10675         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
10676         dependencies back to end of function.
10677
10678         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
10679         $(elfobjdir)/ld.so.
10680
10681 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
10682
10683         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
10684         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
10685         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
10686         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
10687         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
10688         of __vdso_gettimeofday.
10689         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
10690         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
10691         attribute_hidden.
10692         (_libc_vdso_platform_setup): Remove initialization of
10693         __vdso_gettimeofday and __vdso_time.
10694
10695 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
10696
10697         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
10698         and fgetc_unlocked.
10699         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
10700         getc_unlocked.
10701
10702         * elf/dl-open.c (add_to_global): Report additions to the global scope
10703         for LD_DEBUG=scopes.
10704         (dl_open_worker): Also print scope of newly loaded dependencies.
10705         (_dl_show_scope): Indicate if there is no scope.
10706
10707         [BZ #13114]
10708         * stdio-common/Makefile (tests): Add bug24.
10709         * stdio-common/bug24.c: New file.
10710
10711 2011-08-19  Andreas Jaeger  <aj@suse.de>
10712
10713         [BZ #13114]
10714         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
10715         non-existant file when using close-on-exec mode.
10716
10717 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
10718
10719         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
10720         the very first instruction.
10721
10722         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
10723         the CFI state in the end.
10724         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
10725         inclusion of dl-trampoline.h.
10726         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
10727
10728 2011-08-19  Andreas Schwab  <schwab@redhat.com>
10729
10730         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
10731         expectations for long double.
10732
10733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
10734         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
10735
10736 2011-08-14  David S. Miller  <davem@davemloft.net>
10737
10738         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
10739         artificual limit depends upon the system page size.
10740
10741 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10742
10743         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
10744         * resolv/Makefile: Define CFLAGS-libresolv.
10745
10746 2011-08-17  Andreas Schwab  <schwab@redhat.com>
10747
10748         * nss/makedb.c (compute_tables): Make variables used in nested
10749         function static.
10750
10751 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
10752
10753         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
10754         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
10755         if buffer was too small.
10756
10757         * elf/pldd.c (main): Attach to all threads in the process.
10758         Rewrite /proc handling to use *at functions.
10759
10760 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
10761
10762         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
10763         specifies first scope to show.
10764         (dl_open_worker): Update callers.  Move printing scope of new
10765         object to before the relocation.
10766         * elf/rtld.c (dl_main): Update _dl_show_scope call.
10767         * sysdeps/generic/ldsodefs.h: Update declaration.
10768
10769         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
10770         string for the scope number.
10771
10772 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
10773
10774         * nscd/servicescache.c (cache_addserv): Make sure written is always
10775         initialized.
10776
10777 2011-08-14  Roland McGrath  <roland@hack.frob.com>
10778
10779         * sysdeps/i386/i486/bits/atomic.h
10780         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
10781         statement expression, so as to suppress "set but not used" warning.
10782         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
10783
10784         * string/strncat.c (STRNCAT): Use prototype definition.
10785
10786         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
10787         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
10788         -Iprograms here.
10789         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
10790         (localedef-modules): Add localedef.
10791         (locale-modules): Add locale.
10792
10793         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
10794         * elf/rtld.c (dl_main): Invert order of assignment in last change,
10795         to avoid a warning.
10796
10797 2011-08-14  David S. Miller  <davem@davemloft.net>
10798
10799         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
10800         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
10801
10802 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
10803
10804         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
10805         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
10806         * elf/rtld.c (dl_main): Set l_name of vDSO.
10807         Call _dl_show_scope when DL_DEBUG_SCOPES.
10808         (process_dl_debug): Recognize scopes flag and also set it for all.
10809         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
10810         Declare _dl_show_scope.
10811
10812         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
10813         (do_dlopen): Pass caller_dlopen to dl_open.
10814         (__libc_dlopen_mode): Initialize caller_dlopen.
10815
10816         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
10817         of libc.  Make tolower call locale-independent.  Optimize a bit by
10818         using isdigit instead of isalnum.
10819         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
10820
10821 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
10822
10823         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
10824         was a dependency or dynamically loaded.
10825
10826 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
10827
10828         * intl/l10nflist.c: Allow architecture-specific pop function.
10829         * sysdeps/x86_64/l10nflist.c: New file.
10830
10831         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
10832         classification.
10833
10834 2011-08-10  Andreas Schwab  <schwab@redhat.com>
10835
10836         * include/dirent.h: Add libc_hidden_proto for scandirat and
10837         scandirat64.  Don't declare __scandirat64.
10838         * dirent/scandirat.c: Add libc_hidden_def.
10839         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
10840         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
10841
10842 2011-08-10  David S. Miller  <davem@davemloft.net>
10843
10844         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
10845         enum.
10846         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10847         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10848         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10849
10850 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
10851
10852         * Versions.def [libc]: Add GLIBC_2.15.
10853         * dirent/Makefile (routines): Add scandirat and scandirat64.
10854         * dirent/Versions [libc]: Export scandirat and scandirat64 for
10855         GLIBC_2.15.
10856         * dirent/dirent.h: Declare scandirat and scandirat64.
10857         * dirent/scandirat.c: New file.
10858         * dirent/scandirat64.c: New file.
10859         * sysdeps/wordsize-64/scandirat.c: New file.
10860         * sysdeps/wordsize-64/scandirat64.c: New file.
10861         * dirent/opendir.c: Define opendirat.
10862         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
10863         using scandirat.
10864         * dirent/scandir64.c: Adjust for scandir.c change.
10865         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
10866         __scandirat64, and __scandir_cancel_handler.
10867         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
10868         additional parameter and use openat instead of open (outside of ld.so).
10869         Add new __opendir as wrapper around __opendirat.
10870         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
10871         here without requiring old scandirat implementation.
10872
10873 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
10874
10875         * dirent/scandir.c (cancel_handler): Renamed to
10876         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
10877         defined.  Adjust users.
10878         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
10879         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
10880
10881 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
10882
10883         * string/test-string.h (IMPL): Use __STRING to expand name and then
10884         stringify it.
10885
10886         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
10887         of cleanups.
10888
10889 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10890
10891         * string/Makefile: Update.
10892         (strop-tests): Append strncat.
10893         * string/test-wcscmp.c: New file.
10894         New comprehensive test for wcscmp.
10895         * string/test-strcmp.c: Update.
10896         (WIDE): New define.
10897
10898 2011-07-22  Andreas Schwab  <schwab@redhat.com>
10899
10900         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
10901         line.
10902
10903 2011-07-26  Andreas Schwab  <schwab@redhat.com>
10904
10905         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10906         encoding to ACE if AI_IDN.
10907
10908 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
10909
10910         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
10911         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
10912
10913 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10914
10915         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
10916         Fix overflow bug in strncat.
10917         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
10918
10919         * string/test-strncat.c: Update.
10920         Add new tests for checking overflow bugs.
10921
10922 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
10923
10924         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10925         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
10926         * sysdeps/i386/i686/multiarch/strcat.S: New file.
10927         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
10928         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
10929         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
10930         * sysdeps/i386/i686/multiarch/strncat.S: New file.
10931         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
10932         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
10933
10934         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
10935         (USE_AS_STRCAT): Define.
10936         Add strcat and strncat support.
10937         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
10938
10939 2011-07-25  Andreas Schwab  <schwab@redhat.com>
10940
10941         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
10942         __n bigger than INT_MAX+1.
10943         (__strncmp_g): Likewise.
10944
10945 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
10946
10947         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
10948         * libio/stido.h: Likewise.
10949
10950         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
10951         (AF_NFC): Define.
10952         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
10953         (AF_NFC): Define.
10954
10955         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
10956         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10957         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10958         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10959         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10960
10961         [BZ #13021]
10962         * scripts/test-installation.pl: Don't expect libnss_test1 to be
10963         installed.
10964
10965         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
10966         typo.
10967         (_dl_x86_64_save_sse): Likewise.
10968
10969 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
10970
10971         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
10972         OSXSAVE.
10973         (_dl_x86_64_save_sse): Likewise.
10974
10975         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
10976
10977         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
10978
10979 2011-07-21  Andreas Schwab  <schwab@redhat.com>
10980
10981         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
10982         change.
10983         (_dl_x86_64_save_sse): Use correct AVX check.
10984
10985 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10986
10987         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
10988         bug in strncpy/strncat.
10989         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
10990
10991 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
10992
10993         * string/tester.c (test_strcat): Add tests for different alignments
10994         of source and destination.
10995         (test_strncat): Likewise.
10996
10997 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
10998
10999         [BZ #12852]
11000         * posix/glob.c (glob): Check passed in values before using them in
11001         expressions to avoid some overflows.
11002         (glob_in_dir): Likewise.
11003
11004         [BZ #13007]
11005         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
11006         check for AVX enablement so that we don't crash with old kernels and
11007         new hardware.
11008         * elf/tst-audit4.c: Add same checks here.
11009         * elf/tst-audit6.c: Likewise.
11010
11011         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
11012
11013 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
11014
11015         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
11016
11017 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
11018
11019         * po/cs.po: Update from translation team.
11020         * po/bg.po: Likewise.
11021
11022 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
11023
11024         * misc/sys/cdefs.h: Add support for const attribute.
11025         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
11026         to gnu_dev_{major,minor,makedev} functions.
11027
11028 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
11029
11030         * intl/dcigettext.c (get_output_charset): Add missing bracket.
11031
11032 2011-07-20  Andreas Schwab  <schwab@redhat.com>
11033
11034         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
11035         strlen results.
11036
11037 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11038
11039         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
11040         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
11041         register in order to avoid conflicts with the soft frame pointer
11042         being held in r11 when necessary.
11043         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11044         (INTERNAL_VSYSCALL_NCS): Likewise.
11045
11046 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
11047
11048         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
11049         * elf/dl-fini.c (_dl_fini): Adjust caller.
11050         * elf/dl-close.c (_dl_close_worker): Likewise.
11051         * sysdeps/generic/ldsodefs.h: Adjust declaration.
11052
11053 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11054
11055         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
11056         "aux_cache->nlibs < 0".
11057
11058         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
11059         in the reload-count case.
11060
11061 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11062
11063         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11064         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
11065         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
11066         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
11067         * sysdeps/x86_64/multiarch/strcat.S: New file.
11068         * sysdeps/x86_64/multiarch/strncat.S: New file.
11069         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
11070         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
11071         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
11072         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
11073         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
11074         (USE_AS_STRCAT): Define.
11075         Add strcat and strncat support.
11076         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11077         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
11078         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
11079         * string/strncat.c: Update.
11080         (USE_AS_STRNCAT): Define.
11081         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11082         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
11083         and i7.
11084         * sysdeps/x86_64/multiarch/init-arch.h
11085         (bit_Prefer_PMINUB_for_stringop): New.
11086         (index_Prefer_PMINUB_for_stringop): Likewise.
11087         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
11088         bit_Prefer_PMINUB_for_stringop.
11089
11090 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11091
11092         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
11093         buffer64.
11094         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
11095         of casting of buffer.
11096         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
11097         buffer32 and buffer64.
11098         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
11099         writes instead of casting of buffer.
11100         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
11101         buffer32.
11102         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
11103         casting of buffer.
11104
11105 2011-07-19  Andreas Schwab  <schwab@redhat.com>
11106
11107         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
11108
11109 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
11110
11111         * nscd/nscd.c (termination_handler): Don't do anything for a database
11112         if it has not yet been initialized.
11113
11114 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11115
11116         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11117
11118 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
11119
11120         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
11121
11122 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
11123
11124         * po/nl.po: Update from translation team.
11125         * po/sv.po: Likewise.
11126
11127 2011-07-16  Roland McGrath  <roland@hack.frob.com>
11128
11129         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
11130         now disallowed by GCC.
11131
11132         * configure.in (use-default-link): Default to yes if a test -shared
11133         link meets our qualifications.
11134         * configure: Regenerated.
11135
11136         * config.make.in (output-format): New variable.
11137         * configure.in: Check for ld --print-output-format support.
11138         * configure: Regenerated.
11139         * Makerules ($(common-objpfx)format.lds)
11140         [$(output-format) != unknown]: Just use $(output-format),
11141         instead of the linker-script munging.
11142
11143 2011-07-14  Roland McGrath  <roland@hack.frob.com>
11144
11145         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
11146         of $(common-objpfx)shlib.lds.
11147         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
11148
11149         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
11150         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
11151
11152         * configure.in (-z relro check): Adjust test code to add a large
11153         writable data section after it.
11154         * configure: Regenerated.
11155
11156 2011-07-11  Roland McGrath  <roland@hack.frob.com>
11157
11158         * configure.in (-z relro check): Fix test code to make the variable
11159         truly const.
11160         * configure: Regenerated.
11161
11162 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
11163
11164         * nscd/nscd.h (struct traced_file): Define.
11165         (struct database_dyn): Remove inotify_descr, reset_res, and filename
11166         elements.  Add traced_files.
11167         (inotify_fd): Declare.
11168         (register_traced_file): Declare.
11169         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
11170         (inotify_fd): Export.
11171         (resolv_conf_descr): Remove.
11172         (nscd_init): Move inotify descriptor creation to main.
11173         Don't register files for notification here.
11174         (register_traced_file): New function.
11175         (invalidate_cache): Don't use reset_res to determine whether to call
11176         res_init, go through the list of registered files.
11177         (main_loop_poll): The inotify descriptors are now stored in the
11178         structures for the traced files.
11179         (main_loop_epoll): Likewise
11180         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
11181         to __nss_disable_nscd.
11182         * nscd/cache.c (prune_cache): There is no single inotify descriptor
11183         for a database anymore.  Check the records for all the registered
11184         files instead.
11185         * nss/Makefile (libnss_files-routines): Add files-init.
11186         (libnss_db-routines): Add db-init.
11187         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
11188         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
11189         * nss/nss_db/db-init.c: New file.
11190         * nss/nss_files/files-init.c: New file.
11191         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
11192         __nss_lookup_function.
11193         (__nss_lookup_function): Call nss_load_library.
11194         (nss_load_all_libraries): New function.
11195         (__nss_disable_nscd): Take parameter with callback function for files
11196         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
11197         used for the cached services.
11198         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
11199         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
11200         options for features to all the files in nscd.
11201
11202         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
11203
11204 2011-07-10  Roland McGrath  <roland@hack.frob.com>
11205
11206         * csu/elf-init.c (__libc_csu_init): Comment typo.
11207
11208 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
11209
11210         * po/pl.po: Update from translation team.
11211         * po/ja.po: Likewise.
11212         * po/ru.po: Likewise.
11213         * po/ko.po: Likewise.
11214         * po/fr.po: Likewise.
11215
11216 2011-07-09  Roland McGrath  <roland@hack.frob.com>
11217
11218         * configure.in (.ctors/.dtors header and trailer check):
11219         Use an empirical test on a built program.
11220         * configure: Regenerated.
11221
11222         * configure.in (-z relro check): Use an empirical test on a built DSO.
11223         Detect, but do not require, on ia64.
11224         * configure: Regenerated.
11225
11226         * configure.in (READELF): Find it with AC_CHECK_TOOL.
11227         Update tests that use readelf to use $READELF instead.
11228         * configure: Regenerated.
11229
11230 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
11231
11232         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
11233         if the result is not used.
11234
11235 2011-07-05  Andreas Jaeger  <aj@suse.de>
11236
11237         [BZ#9696]
11238         * stdlib/tst-strtod.c: Add testcase.
11239
11240 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11241
11242         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
11243         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
11244         The latter has a higher limit.  Take additional parameter to pass to
11245         the new function.
11246         (__pathconf): Pass file to __statfs_link_max.
11247         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
11248         __statfs_link_max.
11249         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
11250         __statfs_link_max.
11251
11252         [BZ #12868]
11253         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
11254         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11255         Handle Lustre.
11256         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
11257         (__statfs_filesize_max): Likewise.
11258         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
11259
11260 2011-07-05  Andreas Jaeger  <aj@suse.de>
11261
11262         * resolv/res_comp.c (dn_skipname): Remove unused variable.
11263
11264 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
11265
11266         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
11267         `status' variable.
11268         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
11269         Likewise.
11270
11271 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11272
11273         * Makefile (strop-tests): Add strncat.
11274         * string/test-strncat.c: New file.
11275
11276 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
11277
11278         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
11279
11280 2011-06-21  Andreas Jaeger  <aj@suse.de>
11281
11282         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
11283         Copy rule from iconvdata/Makefile.
11284
11285 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11286
11287         [BZ #12922]
11288         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
11289         but no long options are defined, just return 'W'.
11290
11291 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
11292
11293         [BZ #9696]
11294         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
11295
11296 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
11297
11298         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
11299         netgroups to read.
11300         (innetgr): Likewise.
11301
11302 2011-07-05  Roland McGrath  <roland@hack.frob.com>
11303
11304         * config.make.in (install_root): Default to $(DESTDIR).
11305
11306 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
11307
11308         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
11309
11310 2011-07-02  Roland McGrath  <roland@hack.frob.com>
11311
11312         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
11313
11314         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
11315         containing directory rather than embedding absolute directory names.
11316
11317         * scripts/check-local-headers.sh: Rewritten using awk.
11318         Match by word, not by line.  Print error messages for matches.
11319         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
11320
11321         * Makerules [shlib-lds-flags empty]:
11322         ($(common-objpfx)libc_pic.opts): New target.
11323         ($(common-objpfx)libc_pic.os.clean): New target.
11324         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
11325
11326         * config.make.in (OBJCOPY): New variable.
11327         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
11328         * configure: Regenerated.
11329
11330         * config.make.in (use-default-link): New variable.
11331         * configure.in (use_default_link): Grok --with-default-link to set it.
11332         * configure: Regenerated.
11333         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
11334         (shlib-lds, shlib-lds-flags): Define to empty.
11335
11336         * Makerules (shlib-lds): New variable.
11337         (shlib-lds-flags): New variable.
11338         (build-shlib, build-moduile, build-module-asneeded): Use it.
11339         ($(common-objpfx)libc.so): Use $(shlib-lds).
11340         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
11341         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
11342
11343         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
11344         DT_FLAGS/DT_FLAGS_1 with zero flags.
11345
11346         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
11347         linker script munging.
11348
11349 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
11350
11351         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
11352         as 128-bit value.
11353         * crypt/sha512.c (sha512_process_block): Perform total addition using
11354         128-bit if possible.
11355         (__sha512_finish_ctx): Likewise.
11356         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
11357         as 64-bit value.
11358         * crypt/sha256.c (SWAP64): Define.
11359         (sha256_process_block): Perform total addition using 64-bit if
11360         possible.
11361         (__sha256_finish_ctx): Likewise.
11362
11363 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
11364
11365         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
11366         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11367         * nscd/hstcache.c (cache_addhst): Likewise.
11368         * nscd/grpcache.c (cache_addgr): Likewise.
11369         * nscd/aicache.c (addhstaiX): Likewise
11370         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
11371
11372 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
11373
11374         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
11375         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11376         * nscd/hstcache.c (cache_addhst): Likewise.
11377         * nscd/grpcache.c (cache_addgr): Likewise.
11378         * nscd/aicache.c (addhstaiX): Likewise
11379
11380 2011-07-01  Andreas Schwab  <schwab@redhat.com>
11381
11382         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
11383         domain only when needed.
11384
11385 2011-06-30  Andreas Schwab  <schwab@redhat.com>
11386
11387         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
11388         is always restored.
11389
11390 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
11391
11392         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
11393         are re-adding the entry.
11394         * nscd/servicescache.c (cache_addserv): Likewise.
11395
11396 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
11397
11398         * sysdeps/generic/dl-irel.h: fix protection against multiple
11399         inclusions.
11400         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
11401
11402 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
11403
11404         [BZ #12935]
11405         * malloc/memusage.sh: Fix quoting in message.
11406         * debug/xtrace.sh: Likewise.
11407
11408         * configure.in: Remove support for --experimental-malloc option, make
11409         it the default.
11410         * config.make.in: Likewise.
11411         * malloc/Makefile: Likewise.
11412
11413 2011-06-27  Andreas Schwab  <schwab@redhat.com>
11414
11415         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
11416         two-byte characters.
11417
11418 2011-06-27  Roland McGrath  <roland@hack.frob.com>
11419
11420         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
11421         AC_CACHE_CHECK invocation.
11422         * configure: Regenerated.
11423
11424         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
11425
11426 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
11427
11428         [BZ #12350]
11429         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
11430         bit from old_res_options.
11431
11432         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
11433
11434         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
11435         value type for setfct.
11436
11437 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11438
11439         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11440         __gettimeofday instead of gettimeofday.
11441
11442 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
11443
11444         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
11445
11446 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11447
11448         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
11449
11450         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
11451         info.
11452
11453 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11454
11455         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11456         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11457         strcpy-sse2-unaligned strncpy-sse2-unaligned
11458         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
11459         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
11460         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
11461         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
11462         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
11463         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
11464         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
11465         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
11466         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
11467         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
11468         (STRCPY): Support SSE2 and SSSE3 versions.
11469
11470 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
11471
11472         [BZ #12874]
11473         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
11474         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
11475         kernels which artificially limit size of requests.
11476
11477 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11478
11479         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11480         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
11481         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
11482         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
11483         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
11484         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
11485         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
11486         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
11487         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
11488         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
11489         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
11490         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
11491         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
11492         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
11493         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
11494         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11495         Enable unaligned load optimization for Intel Core i3, i5 and i7
11496         processors.
11497         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
11498         Define.
11499         (index_Fast_Unaligned_Load): Define.
11500         (HAS_FAST_UNALIGNED_LOAD): Define.
11501
11502 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
11503
11504         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
11505
11506 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11507
11508         [BZ #12907]
11509         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
11510         until it is clear that the information is realy needed.
11511         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
11512
11513 2011-06-22  Andreas Schwab  <schwab@redhat.com>
11514
11515         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
11516
11517 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
11518
11519         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
11520         /sys/devices/system/cpu/online if it is usable.
11521
11522         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
11523         reading the information from the /proc filesystem to once a second.
11524
11525 2011-06-21  Andreas Jaeger  <aj@suse.de>
11526
11527         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
11528         NULL after inclusion of kernel headers.
11529
11530 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
11531
11532         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
11533         calls to internal_setent.
11534
11535         [BZ #12885]
11536         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
11537         addresses using gethostbyname4_r ignore IPv4 addresses.
11538
11539         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
11540         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
11541
11542         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
11543
11544 2011-06-20  David S. Miller  <davem@davemloft.net>
11545
11546         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
11547         inclusions.
11548         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
11549
11550         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
11551         (elf_irel): Use it.
11552         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
11553         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
11554         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
11555         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
11556         * sysdeps/x86_64/dl-irel.h: Likewise.
11557
11558         * elf/dl-runtime.c: Use elf_ifunc_invoke.
11559         * elf/dl-sym.c: Likewise.
11560
11561 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
11562
11563         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
11564         need to dereference resplen2.
11565
11566 2011-06-14  Andreas Schwab  <schwab@redhat.com>
11567
11568         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
11569
11570 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
11571
11572         * Makeconfig: Define vardbdir and inst_vardbdir.
11573         * nss/Makefile: Add rules to install db-Makefile.
11574
11575         * nss/nss_db/db-XXX.c: Cleanup.
11576
11577         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
11578         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
11579         GLIBC_PRIVATE.
11580         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
11581         * nss/makedb.c: Implement -g option to specify that value strings
11582         are generated and should not be added to table iterated over for
11583         get*ent calls.
11584         * nss/nss_db/db-initgroups.c: New file.
11585
11586         * nss/getent.c: Add support for initgroups lookups through getgrouplist
11587         interface.
11588
11589         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
11590         (internal_getgrouplist): Adjust to name change.
11591         Update use_initgroups_entry if this is not the first call.
11592         * nss/databases.def: Add initgroups entry.
11593
11594         * nss/makedb.c (compute_tables): Check result of multiple hash table
11595         sizes to minimize maximum chain length.
11596
11597 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
11598
11599         * Versions.def: Add entry for libnss_db.
11600         * shlib-versions: Likewise.
11601         * nss/Makefile: Add rules to build libnss_db.
11602         * nss/Versions: Add libnss_db information.  Organize libnss_files
11603         entries better.
11604         * nss/db-Makefile: Add gshadow support.  Change rules for the new
11605         makedb progra.  Some minor improvements to generate smaller files.
11606         * nss/nss_db/nss_db.h: Move NSS database header data structures to
11607         here from...
11608         * nss/makedb.c: ...here.
11609         Improve database format to be smaller and require less memory at
11610         runtime.
11611         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
11612         db anymore.
11613         * nss/nss_db/db-netgrp.c: Likewise.
11614         * nss/nss_db/db-open.c: Likewise.
11615         * nss/nss_files/flies-XXX.x: Adjust comments.
11616         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
11617         * nss/nss_files/files-grp.c: Likewise.
11618         * nss/nss_files/files-hosts.c: Likewise.
11619         * nss/nss_files/files-network.c: Likewise.
11620         * nss/nss_files/files-proto.c: Likewise.
11621         * nss/nss_files/files-pwd.c: Likewise.
11622         * nss/nss_files/files-rpc.c: Likewise.
11623         * nss/nss_files/files-service.c: Likewise.
11624         * nss/nss_files/files-sgrp.c: Likewise.
11625         * nss/nss_files/files-spwd.c: Likewise.
11626         * nss/nss_db/db-alias.c: Removed.
11627         * nss/nss_db/dummy-db.h: Removed.
11628
11629 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
11630
11631         * nss/makedb.c: Rewritten to not use database library.
11632         * nss/Makefile: Update to build new makedb program.
11633
11634 2011-06-14  Andreas Jaeger  <aj@suse.de>
11635
11636         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
11637         memset declaration.
11638
11639 2011-06-10  Andreas Schwab  <schwab@redhat.com>
11640
11641         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
11642         tmpbuf.
11643
11644 2011-06-10  Roland McGrath  <roland@hack.frob.com>
11645
11646         * Makerules (shlib.lds): Fail if the linker script comes out empty.
11647         * elf/Makefile ($(objpfx)ld.so): Likewise.
11648
11649         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
11650         Don't list ld.so twice in dependencies.
11651
11652         * posix/bug-regex31.c: Include <stdlib.h>.
11653
11654         * nscd/hstcache.c (cache_addhst): Remove unused variable.
11655
11656         * nis/nss_compat/compat-spwd.c
11657         (getspent_next_nss_netgr): Remove unused variable.
11658         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
11659
11660         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
11661         nonmembers" output to use the right array.
11662
11663         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
11664
11665         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
11666
11667         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
11668         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
11669         * catgets/gencat.c (read_input_file): Likewise.
11670         * locale/programs/locarchive.c (enlarge_archive): Likewise.
11671
11672         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
11673         variable definition inside #if's controlling its use.
11674
11675         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
11676
11677         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
11678
11679         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
11680
11681         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
11682         unreachable code.
11683
11684         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
11685
11686         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
11687         * configure: Regenerated.
11688
11689         * Makerules: Revert last change.
11690         * elf/Makefile: Likewise.
11691
11692 2011-06-09  Roland McGrath  <roland@hack.frob.com>
11693
11694         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
11695         * elf/Makefile ($(objpfx)librtld.os): Likewise.
11696         (reloc-link): Likewise.
11697
11698 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
11699
11700         * elf/Makefile: Add rules to build pldd.
11701         * elf/pldd.c: New file.
11702         * elf/pldd-xx.c: New file.
11703
11704 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
11705
11706         * version.h: Update for 2.15 development version.
11707
11708 2011-06-07  David S. Miller  <davem@davemloft.net>
11709
11710         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
11711         ifuncs.
11712         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
11713         elf_machine_lazy_rel): Likewise.
11714         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
11715         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
11716         elf_machine_lazy_rel): Likewise.
11717         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
11718         dl_hwcap via passed in argument.
11719         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
11720         Likewise.
11721
11722 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11723
11724         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
11725
11726 2011-06-06  Roland McGrath  <roland@hack.frob.com>
11727
11728         [BZ #12849]
11729         * manual/fdl-1.1.texi: New file, verbatim from:
11730         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
11731         * manual/lgpl-2.1.texi: New file, verbatim from:
11732         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
11733         * manual/Makefile (licenses): New variable, list those new file names.
11734         (texis): Use it.
11735         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
11736
11737         * manual/fdl.texi: File removed.
11738         * manual/lesser.texi: File removed.
11739         * manual/libc.texinfo (Copying, Documentation License):
11740         Use new @include file names, put @appendix directive before @include.
11741
11742 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11743
11744         [BZ #12841]
11745         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
11746         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
11747         (mq_open): Add __NTH.
11748
11749 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11750
11751         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11752         Assume Intel Core i3/i5/i7 processor if AVX is available.
11753
11754 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11755
11756         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11757         typo.
11758
11759 2011-05-31  Andreas Schwab  <schwab@redhat.com>
11760
11761         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
11762         memory.  Use alloca_account.  Fix memory leak when retrying.
11763
11764 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
11765
11766         * version.h (RELEASE): Bump for 2.14 release.
11767         * include/features.h (__GLIBC_MINOR__): Bump to 14.
11768
11769         * config.make.in (RANLIB): Remove entry.
11770
11771 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
11772
11773         * po/Makefile (po-sed-cmd): Add ksh to extensions.
11774         (libc.pot): Work around missing support for .ksh extension in xgettext.
11775
11776         [BZ #12684]
11777         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
11778         if both request failed.
11779         (send_dg): In case of server errors clear resplen or *resplen2.
11780
11781         [BZ #12454]
11782         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
11783         when there are multiple maps.
11784         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
11785         (_dl_fini): Remove test here.
11786
11787         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
11788
11789 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
11790
11791         [BZ #12350]
11792         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
11793         bit from old_res_options.
11794         (gaih_inet): Likewise.
11795
11796         [BZ #11099]
11797         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
11798         as signed.
11799
11800         * resolv/res_init.c (res_setoptions): Make the code more compact.
11801
11802         [BZ #11558]
11803         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
11804         set RES_USEVC.
11805
11806         [BZ #11634]
11807         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
11808
11809         * malloc/malloc.h: Mark malloc hook variables as deprecated.
11810
11811         [BZ #11781]
11812         * malloc/malloc.h: Declare malloc hook variables as volatile.
11813
11814         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
11815         in last patch.
11816
11817         [BZ #11799]
11818         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
11819         raise in the comment.
11820         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11821         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11822         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11823
11824 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
11825
11826         [BZ #12811]
11827         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
11828         grow the buffers more if it already has to be sufficient.
11829         (build_wcs_upper_buffer): Likewise.
11830         * posix/regexec.c (check_matching): Likewise.
11831         (clean_state_log_if_needed): Likewise.
11832         (extend_buffers): Don't enlarge buffers beyond size of the input
11833         buffer.
11834         Patches mostly by Emil Wojak <emil@wojak.eu>.
11835         * posix/bug-regex32.c: New file.
11836         * posix/Makefile (tests): Add bug-regex32.
11837
11838         * locale/findlocale.c (_nl_find_locale): Return right away if
11839         _nl_explode_name failed.
11840         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
11841
11842         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
11843
11844         * debug/xtrace.sh: Unify messages.
11845         * malloc/memusage.sh: Likewise.
11846
11847         [BZ #12813]
11848         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
11849         time symbol from vDSO.  Substitute with vsyscall if not available.
11850         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
11851         __vdso_time.
11852
11853         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
11854         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
11855         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
11856         Add sendmmsg and internal_sendmmsg.
11857         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
11858         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
11859         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
11860
11861         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
11862         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
11863         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
11864
11865 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
11866
11867         [BZ #12813]
11868         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
11869         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
11870         available.
11871         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
11872         __vdso_getcpu.
11873
11874         [BZ #12814]
11875         * iconvdata/Makefile (tests): Add bug-iconv9.
11876         * iconvdata/bug-iconv9.c: New file.
11877
11878 2011-05-27  Andreas Schwab  <schwab@redhat.com>
11879
11880         [BZ #12814]
11881         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
11882
11883 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
11884
11885         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
11886         (struct user_regs_struct): Change intcs field back to cs.
11887
11888 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
11889
11890         * po/ja.po: Update from translation team.
11891
11892 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
11893
11894         [BZ #12795]
11895         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
11896         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
11897
11898 2011-05-20  Andreas Schwab  <schwab@redhat.com>
11899
11900         * stdlib/longlong.h: Update from GCC.
11901
11902 2011-05-23  Andreas Schwab  <schwab@redhat.com>
11903
11904         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
11905         parameter name.
11906         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
11907         Add parameter name.
11908         (__sysconf): Pass it down.
11909
11910 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
11911
11912         [BZ #12671]
11913         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
11914         some situations.
11915         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11916         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
11917         add in in __libc_use_alloca calls.  Adjust callers.
11918         (glob): Use malloc in some situations.
11919
11920         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
11921         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
11922         pltexit.
11923
11924 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
11925
11926         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
11927         and CLOCK_BOOTTIME_ALARM.
11928
11929         [BZ #12782]
11930         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
11931         is returned.
11932
11933         * string/_strerror.c (__strerror_r): Print negative errors as signed
11934         numbers.
11935
11936         [BZ #12777]
11937         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
11938         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
11939         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
11940
11941         * configure.in: Fix typo in redirection and correct removal of test
11942         files in two cases.
11943
11944         [BZ #12788]
11945         * locale/setlocale.c (new_composite_name): Fix test to check for
11946         identical name of all categories.
11947
11948         [BZ #12792]
11949         * libio/filedoalloc.c (local_isatty): New function.
11950         (_IO_file_doallocate): Use local_isatty.
11951         * stdio-common/perror.c (perror): In case a new stream is used
11952         forward the stream error.
11953         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
11954         error flag.
11955
11956 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
11957
11958         [BZ #11869]
11959         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
11960         alloca.
11961         * include/alloca.h (extend_alloca_account): Define.
11962
11963         [BZ #11857]
11964         * posix/regex.h: Fix comments with documentation of user-accessible
11965         fields after compilation and describe correct free'ing of pattern
11966         after re_compile_pattern.
11967         Patch by Reuben Thomas <rrt@sc3d.org>.
11968
11969 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
11970
11971         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
11972         and -mno-altivec to prevent the compiler from using Altivec and/or
11973         VSX instructions when the corresponding registers are not available.
11974
11975 2011-05-19  Andreas Schwab  <schwab@redhat.com>
11976
11977         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
11978
11979 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
11980
11981         * libio/freopen.c (freopen): Use __dup2, not dup2.
11982         * libio/freopen64.c (freopen64): Likewise.
11983
11984 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11985
11986         [BZ #12775]
11987         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
11988         * math/Makefile (tests): Add test-powl.
11989         (CFLAGS-test-powl.c): Define.
11990         * math/test-powl.c: New file.
11991
11992 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11993
11994         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
11995
11996 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
11997
11998         [BZ #11837]
11999         * iconvdata/gb18030.c: Update to GB18020-2005.
12000
12001 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
12002
12003         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
12004         RE_SYNTAX_POSIX_AWK): Update to match recent development.
12005         Patch by Aharon Robbins <arnold@skeeve.com>.
12006
12007         [BZ #11892]
12008         * stdlib/putenv.c (putenv): Don't always create copy of the variable
12009         on the stack.
12010
12011         [BZ #11895]
12012         * misc/pselect.c (__pselect): Handle timeout value errors hidden
12013         through underflows.
12014
12015         [BZ #12766]
12016         * misc/error.c (error_at_line): Ensure file_name and old_file_name
12017         point to strings before performing equality test for error_one_per_line
12018         mode.
12019
12020         [BZ #11697]
12021         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
12022
12023         [BZ #11820]
12024         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12025         (struct user_fpregs_struct): Avoid __uint*_t types.
12026
12027         [BZ #6420]
12028         * malloc/mtrace.c (tr_where): Add additional parameter to point to
12029         symbol info.  Use it instead of calling _dl_addr locally.
12030         (lock_and_info): New function.
12031         (tr_freehook): Call lock_and_info and pass symbol info as additional
12032         parameter to tr_where.
12033         (tr_mallochook): Likewise.
12034         (tr_reallochook): Likewise.
12035         (tr_memalignhook): Likewise.
12036
12037         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
12038         used and couldn't be at all thread-safe.
12039
12040 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
12041
12042         * libio/freopen.c (freopen): Don't close old file descriptor
12043         before the new one is opened.  Instead dup the new file descriptor
12044         to the old one after the new stream is created.
12045         * libio/freopen64.c (freopen64): Likewise.
12046         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
12047         * libio/fileops.c (_IO_new_file_close_it): Handle new
12048         _IO_FLAGS2_NOCLOSE flag.
12049         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
12050         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
12051         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
12052         _IO_FLAGS2_NOCLOSE flag.
12053         * include/unistd.h: Add hidden_proto for dup3.
12054         Define __have_dup3.
12055         * io/dup3.c: Define hidden symbol.
12056         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
12057
12058         [BZ #7101]
12059         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
12060         when an incomplete long option is used.
12061         * posix/tst-getopt_long1.c: New file.
12062         * posix/Makefile (tests): Add tst-getopt_long1.
12063
12064         [BZ #10138]
12065         * scripts/config.guess: Update from autoconf-2.68.
12066         * scripts/config.sub: Likewise.
12067
12068         [BZ #10157]
12069         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
12070         tests into ...
12071         (has_cpuclock): ...this.  New function.
12072         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
12073         macro here based on has_cpuclock code.
12074
12075         [BZ #10149]
12076         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12077         First byte (not low byte) is now always NUL.
12078         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
12079
12080         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12081         Use non-cancelable interfaces.
12082
12083         [BZ #9809]
12084         * locale/iso-639.def: Add entry for Sorani.
12085
12086         [BZ #11901]
12087         * include/stdlib.h: Move include protection to the right place.
12088         Define abort_msg_s.  Declare __abort_msg with it.
12089         * stdlib/abort.c (__abort_msg): Adjust type.
12090         * assert/assert.c (__assert_fail_base): New function.  Majority
12091         of code from __assert_fail.  Allocate memory for __abort_msg with
12092         mmap.
12093         (__assert_fail): Now call __assert_fail_base.
12094         * assert/assert-perr.c: Remove bulk of implementation.  Use
12095         __assert_fail_base.
12096         * include/assert.hL Declare __assert_fail_base.
12097         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
12098         mmap.
12099         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
12100
12101 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
12102
12103         [BZ #11952]
12104         [BZ #12453]
12105         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
12106         until all modules are registered in the DTV.
12107         * elf/Makefile: Add rules to build and run tst-tls19.
12108         * elf/tst-tls19.c: New file.
12109         * elf/tst-tls19mod1.c: New file.
12110         * elf/tst-tls19mod2.c: New file.
12111         * elf/tst-tls19mod3.c: New file.
12112         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
12113
12114         [BZ #12083]
12115         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
12116         correctly.
12117
12118         [BZ #12601]
12119         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
12120         two-byte sequence errors.
12121         * iconvdata/Makefile (tests): Add bug-iconv8.
12122         * iconvdata/bug-iconv8.c: New file.
12123
12124         [BZ #12626]
12125         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
12126         buf2 definition.
12127
12128         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
12129
12130         [BZ #12432]
12131         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
12132         (dummy_getcfa): New function.
12133         (init): Get _Unwind_GetCFA address, use dummy if not found.
12134         (backtrace_helper): In recursion check, also check whether CFA changes.
12135         (__backtrace): Completely initialize arg.
12136
12137         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
12138         storing incomplete byte sequence in state object.  Avoid testing for
12139         guaranteed too small input if we know there is enough data available.
12140
12141 2011-05-11  Andreas Schwab  <schwab@redhat.com>
12142
12143         * Makeconfig (+link-pie): Indent.
12144         * Rules (binaries-pie): Define if $(have-fpie) and
12145         $(build-shared).
12146         (binaries-shared): Also filter out $(binaries-pie).
12147         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
12148         * nscd/Makefile (others-pie): Add nscd.
12149         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
12150         ($(objpfx)nscd): Remove command override.
12151         * login/Makefile (others-pie): Add pt_chown.
12152         ($(objpfx)pt_chown): Remove command override.
12153         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
12154         remove command overrides.
12155
12156 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
12157
12158         * libio/tst_putwc.c: Fix error messages.
12159
12160         [BZ #12724]
12161         * libio/fileops.c (_IO_new_file_close_it): Always flush when
12162         currently writing and seek to current position when not.
12163         * libio/Makefile (tests): Add bug-fclose1.
12164         * libio/bug-fclose1.c: New file.
12165
12166 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
12167
12168         [BZ #12511]
12169         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
12170         don't set DF_1_NODELETE here.
12171         (do_lookup_x): When entering new entry test for copy relocation
12172         and if necessary set DF_1_NODELETE flag.
12173         * elf/tst-unique4.cc: New file.
12174         * elf/tst-unique4.h: New file.
12175         * elf/tst-unique4lib.cc: New file.
12176         * elf/Makefile: Add rules to build and run tst-unique4.
12177         Patch by Piotr Bury <pbury@goahead.com>.
12178
12179 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12180
12181         [BZ #12052]
12182         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
12183
12184         [BZ #12625]
12185         * misc/mntent_r.c (addmntent): Flush the stream after the output
12186
12187         [BZ #12393]
12188         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
12189         (is_trusted_path_normalize): Skip initial colon.  Append slash
12190         to empty buffer.  Duplicate is_trusted_path code but allow
12191         constructed patch to be prefix.
12192         (is_dst): Allow $ORIGIN followed by /.
12193         (_dl_dst_substitute): Correct clearing of check_for_trusted.
12194         Correct testing of result of is_trusted_path_normalize
12195         (decompose_rpath): Fix warning.
12196
12197 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
12198
12199         [BZ #11257]
12200         * grp/initgroups.c (internal_getgrouplist): When we found the service
12201         list through the initgroups entry in nsswitch.conf do not always
12202         continue on a successful lookup.  Don't always use the
12203         __nss_group_database value if it is set.
12204         * nss/nsswitch.conf (initgroups): Change action for successful db
12205         lookup to continue for compatibility.
12206
12207 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
12208
12209         [BZ #11532]
12210         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
12211         and CP774 modules.
12212         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
12213         and CP774 modules.
12214         * iconvdata/tst-tables.sh: Likewise.
12215         * iconvdata/cp770.c: New file.
12216         * iconvdata/cp771.c: New file.
12217         * iconvdata/cp772.c: New file.
12218         * iconvdata/cp773.c: New file.
12219         * iconvdata/cp774.c: New file.
12220         * iconvdata/testdata/CP770: New file.
12221         * iconvdata/testdata/CP770..UTF8: New file.
12222         * iconvdata/testdata/CP771: New file.
12223         * iconvdata/testdata/CP771..UTF8: New file.
12224         * iconvdata/testdata/CP772: New file.
12225         * iconvdata/testdata/CP772..UTF8: New file.
12226         * iconvdata/testdata/CP773: New file.
12227         * iconvdata/testdata/CP773..UTF8: New file.
12228         * iconvdata/testdata/CP774: New file.
12229         * iconvdata/testdata/CP774..UTF8: New file.
12230
12231         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
12232         END CHARMAP line.
12233         * iconvdata/gen-8bit-gap.sh: Likewise.
12234         * iconvdata/gen-8bit.sh: Likewise.
12235
12236         * locale/iso-639.def: Add ary entry.
12237
12238         [BZ #11258]
12239         * locale/C-translit.h.in: Add U20A1 transliteration.
12240
12241         [BZ #12178]
12242         * locale/iso-639.def: Add wae entry.
12243         Patch by Kevin Bortis <bortis@translate-wae.ch>.
12244
12245         [BZ #12545]
12246         * locale/programs/localedef.c (construct_output_path): Use ssize_t
12247         for n.
12248
12249         [BZ #12711]
12250         * locale/C-translit.h.in: Add entry for U20B9.
12251         Patch by pravin.d.s@gmail.com.
12252
12253 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
12254
12255         [BZ #12713]
12256         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
12257         ENAMETOOLONG use generic getcwd.
12258         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
12259         in rtld.  Use *stat64.
12260         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
12261         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
12262         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
12263         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
12264         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
12265         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
12266         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
12267         __fstatat64 macros.
12268         * include/dirent.h: Add libc_hidden_proto for rewinddir.
12269         * dirent/rewinddir.c: Add libc_hidden_def.
12270         * sysdeps/mach/hurd/rewinddir.c: Likewise.
12271         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
12272
12273         * include/dirent.h (__alloc_dir): Add flags parameter.
12274         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
12275         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
12276         __alloc_dir.
12277         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
12278         from fdopendir if O_CLOEXEC is already set.
12279
12280 2011-03-15  Alan Modra  <amodra@gmail.com>
12281
12282         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
12283         l_tls_firstbyte_offset non-zero.  Save padding offset in
12284         l_tls_firstbyte_offset for later use.
12285         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
12286         freeing static tls block.
12287
12288 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
12289
12290         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
12291         where #ifdef was intended.  The intent is to prevent ARG_MAX from
12292         being defined by the kernel headers.
12293
12294 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
12295
12296         [BZ #12734]
12297         * resolv/resolv.h: Define RES_NOTLDQUERY.
12298         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
12299         no-tld-query and set RES_NOTLDQUERY.
12300         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
12301         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
12302         modern BIND to search name as TLD unless forbidden.
12303
12304 2011-05-07  Petr Baudis  <pasky@suse.cz>
12305             Ulrich Drepper  <drepper@gmail.com>
12306
12307         [BZ #12393]
12308         * elf/dl-load.c (fillin_rpath): Move trusted path check...
12309         (is_trusted_path): ...to here.
12310         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
12311         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
12312         using is_trusted_path_normalize() in setuid scripts.
12313
12314 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12315
12316         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
12317         __BEGIN/__END_DECLS.
12318
12319 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
12320
12321         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
12322         NSS_STATUS_NOTFOUND if no record was found.
12323
12324 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12325
12326         * sunrpc/Makefile (headers): Add rpc/netdb.h.
12327         (headers-not-in-tirpc): Remove rpc/netdb.h
12328         * resolv/netdb.h: Revert last change.
12329
12330 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12331
12332         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
12333         circular dependency between libgcc.a and libc.a.
12334
12335 2011-05-05  Andreas Schwab  <schwab@redhat.com>
12336
12337         * resolv/netdb.h: Don't include <rpc/netdb.h>.
12338         * nis/Makefile: Don't install rpcsvc/*.
12339         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
12340         instead of <rpc/types.h>.
12341         (MAXHOSTNAMELEN): Define.
12342
12343 2011-05-03  Andreas Schwab  <schwab@redhat.com>
12344
12345         * elf/ldconfig.c (add_dir): Don't crash on empty path.
12346
12347 2011-04-28  Maciej Babinski  <mbabinski@google.com>
12348
12349         [BZ #12714]
12350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
12351         gethostbyname4_r when IPv6 results are possible.
12352
12353 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
12354
12355         [BZ #12723]
12356         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
12357         _PC_PIPE_BUF handling.
12358
12359 2011-04-30  Bruno Haible  <bruno@clisp.org>
12360
12361         [BZ #12717]
12362         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
12363         * resolv/netdb.h (getnameinfo): Change type of flags parameter
12364         to 'int'.
12365         * inet/getnameinfo.c (getnameinfo): Likewise.
12366
12367 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
12368
12369         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
12370         to groups setting in database lookup.
12371         * nss/nsswitch.conf: Add initgroups entry.
12372
12373 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
12374
12375         [BZ #12685]
12376         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
12377         mode string.
12378         Patch by Eric Blake <eblake@redhat.com>.
12379
12380 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
12381
12382         * sunrpc/Makefile (need-export-routines): Add svc_run.
12383         (routines): Remove svc_run.
12384         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
12385         * sunrpc/clnt_perr.c (clnt_perrno): Export.
12386         * sunrpc/svc_run.c (svc_run): Likewise.
12387         * sunrpc/svc_udp.c (svcudp_create): Likewise.
12388
12389 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
12390
12391         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
12392         problem in reallocation in last patch.
12393
12394 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
12395
12396         * sunrpc/Makefile: Move inclusion of Rules.
12397
12398 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12399
12400         * nss/nss_files/files-initgroups.c: New file.
12401         * nss/Makefile (libnss_files-routines): Add files-initgroups.
12402         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
12403         _nss_files_initgroups_dyn.
12404
12405 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
12406
12407         * elf/elf.h (R_ARM_IRELATIVE): Define.
12408
12409 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
12410
12411         * po/ru.po: Update from translation team.
12412
12413 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12414
12415         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
12416         dependencies.
12417
12418 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
12419
12420         [BZ #12653]
12421         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
12422         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
12423         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12424         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12425         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12426
12427 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
12428
12429         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
12430         differing bytes.
12431         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12432         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12433         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12434
12435 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
12436
12437         [BZ #12420]
12438         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
12439         storing it.
12440         * stdlib/bug-getcontext.c: New file.
12441         * stdlib/Makefile: Add rules to build and run bug-getcontext.
12442
12443 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12444
12445         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
12446         instructions into .machine "z9-109".
12447         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
12448         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
12449
12450 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12451
12452         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
12453         between environment variables and auxiliary vector.
12454
12455 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
12456
12457         * Makefile: Add rules to build linkobj/libc.so.
12458         * include/libc-symbols.h: Define libc_hidden_nolink.
12459         * include/rpc/auth.h: Mark functions which are to be hidden.
12460         * include/rpc/auth_des.h: Likewise.
12461         * include/rpc/auth_unix.h: Likewise.
12462         * include/rpc/clnt.h: Likewise.
12463         * include/rpc/des_crypt.h: Likewise.
12464         * include/rpc/key_prot.h: Likewise.
12465         * include/rpc/pmap_clnt.h: Likewise.
12466         * include/rpc/pmap_prot.h: Likewise.
12467         * include/rpc/pmap_rmt.h: Likewise.
12468         * include/rpc/rpc_msg.h: Likewise.
12469         * include/rpc/svc.h: Likewise.
12470         * include/rpc/svc_auth.h: Likewise.
12471         * include/rpc/xdr.h: Likewise.
12472         * nis/Makefile: Link all DSOs against linkobj/libc.so.
12473         * nss/Makefile: Likewise.
12474         * sunrpc/Makefile: Don't install headers.  Build library with normal
12475         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
12476         * sunrpc/auth_des.c: Hide exported symbols by default, export some
12477         for the compat linking library.  Remove use of INTDEF/INTUSE.
12478         * sunrpc/auth_none.c: Likewise.
12479         * sunrpc/auth_unix.c: Likewise.
12480         * sunrpc/authdes_prot.c: Likewise.
12481         * sunrpc/authuxprot.c: Likewise.
12482         * sunrpc/clnt_gen.c: Likewise.
12483         * sunrpc/clnt_perr.c: Likewise.
12484         * sunrpc/clnt_raw.c: Likewise.
12485         * sunrpc/clnt_simp.c: Likewise.
12486         * sunrpc/clnt_tcp.c: Likewise.
12487         * sunrpc/clnt_udp.c: Likewise.
12488         * sunrpc/clnt_unix.c: Likewise.
12489         * sunrpc/des_crypt.c: Likewise.
12490         * sunrpc/des_soft.c: Likewise.
12491         * sunrpc/get_myaddr.c: Likewise.
12492         * sunrpc/key_call.c: Likewise.
12493         * sunrpc/key_prot.c: Likewise.
12494         * sunrpc/netname.c: Likewise.
12495         * sunrpc/pm_getmaps.c: Likewise.
12496         * sunrpc/pm_getport.c: Likewise.
12497         * sunrpc/pmap_clnt.c: Likewise.
12498         * sunrpc/pmap_prot.c: Likewise.
12499         * sunrpc/pmap_prot2.c: Likewise.
12500         * sunrpc/pmap_rmt.c: Likewise.
12501         * sunrpc/publickey.c: Likewise.
12502         * sunrpc/rpc_cmsg.c: Likewise.
12503         * sunrpc/rpc_common.c: Likewise.
12504         * sunrpc/rpc_dtable.c: Likewise.
12505         * sunrpc/rpc_prot.c: Likewise.
12506         * sunrpc/rpc_thread.c: Likewise.
12507         * sunrpc/rtime.c: Likewise.
12508         * sunrpc/svc.c: Likewise.
12509         * sunrpc/svc_auth.c: Likewise.
12510         * sunrpc/svc_authux.c: Likewise.
12511         * sunrpc/svc_raw.c: Likewise.
12512         * sunrpc/svc_run.c: Likewise.
12513         * sunrpc/svc_simple.c: Likewise.
12514         * sunrpc/svc_tcp.c: Likewise.
12515         * sunrpc/svc_udp.c: Likewise.
12516         * sunrpc/svc_unix.c: Likewise.
12517         * sunrpc/svcauth_des.c: Likewise.
12518         * sunrpc/xcrypt.c: Likewise.
12519         * sunrpc/xdr.c: Likewise.
12520         * sunrpc/xdr_array.c: Likewise.
12521         * sunrpc/xdr_float.c: Likewise.
12522         * sunrpc/xdr_intXX_t.c: Likewise.
12523         * sunrpc/xdr_mem.c: Likewise.
12524         * sunrpc/xdr_rec.c: Likewise.
12525         * sunrpc/xdr_ref.c: Likewise.
12526         * sunrpc/xdr_sizeof.c: Likewise.
12527         * sunrpc/xdr_stdio.c: Likewise.
12528
12529 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
12530
12531         [BZ #12650]
12532         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
12533         * sysdeps/ia64/dl-tls.h: Likewise.
12534         * sysdeps/powerpc/dl-tls.h: Likewise.
12535         * sysdeps/s390/dl-tls.h: Likewise.
12536         * sysdeps/sh/dl-tls.h: Likewise.
12537         * sysdeps/sparc/dl-tls.h: Likewise.
12538         * sysdeps/x86_64/dl-tls.h: Likewise.
12539         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
12540
12541 2011-03-14  Andreas Schwab  <schwab@redhat.com>
12542
12543         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
12544         rpath element also skip the following colon.
12545         (expand_dynamic_string_token): Add is_path parameter and pass
12546         down to DL_DST_REQUIRED and _dl_dst_substitute.
12547         (decompose_rpath): Call expand_dynamic_string_token with
12548         non-zero is_path.  Ignore empty rpaths.
12549         (_dl_map_object_from_fd): Call expand_dynamic_string_token
12550         with zero is_path.
12551
12552 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
12553
12554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
12555         Make cancelable.
12556
12557 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
12558
12559         [BZ #12655]
12560         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
12561         Patch by Filipe David Manana <fdmanana@apache.org>.
12562
12563 2011-04-07  Andreas Schwab  <schwab@redhat.com>
12564
12565         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
12566         Maintain aligned stack.
12567         (CHECK_RSP): Remove unused macro.
12568
12569 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
12570
12571         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
12572         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
12573
12574 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
12575
12576         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
12577
12578         * include/features.h: Mention __USE_XOPEN2K8 in comment.
12579
12580 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
12581
12582         [BZ #12518]
12583         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
12584         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
12585         * sysdeps/x86_64/memmove.c: New file.
12586         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
12587         (memcpy): Renamed to ...
12588         (__new_memcpy): This.
12589         (memcpy): Provide GLIBC_2_14 memcpy.
12590         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
12591         (memcpy): Provide GLIBC_2_2_5 memcpy.
12592
12593 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12594
12595         [BZ #12631]
12596         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
12597
12598 2011-03-30  Andreas Schwab  <schwab@redhat.com>
12599
12600         * misc/syncfs.c: New file.
12601         * misc/Makefile (routines): Add syncfs.
12602         * posix/unistd.h: Declare syncfs.
12603         * sysdeps/unix/syscalls.list: Add syncfs.
12604
12605 2011-04-01  Andreas Schwab  <schwab@redhat.com>
12606
12607         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
12608         open_by_handle_at.
12609         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12610         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12611         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12612         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12614         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
12615         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12616
12617 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12618
12619         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
12620         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12621         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12622         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12623         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12624         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12625         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12626
12627         * io/Makefile: Compile fallocate.c, fallocate64.c, and
12628         sync_file_range.c with -fexceptions.
12629         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
12630         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
12631         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
12632         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
12633         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
12634         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
12635         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
12636         sync_file_range as cancellation point
12637         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
12638         now a wrapper around __call_sync_file_range with cancellation handling.
12639         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
12640         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
12641         function name to __call_sync_file_range.
12642         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
12643         Add call_sync_file_range.
12644
12645 2011-04-01  Andreas Schwab  <schwab@redhat.com>
12646
12647         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12648         bits/timex.h.
12649
12650 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
12651
12652         * iconv/iconv.h: Fix typo in comment.
12653         * io/fcntl.h: Likewise.
12654         * libio/stdio.h: Likewise.
12655         * posix/spawn.h: Likewise.
12656         * posix/unistd.h: Likewise.
12657         * stdlib/stdlib.h: Likewise.
12658         * time/time.h: Likewise.
12659         * wcsmbs/wchar.h: Likewise.
12660
12661         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
12662         open_by_handle): Add.
12663         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
12664         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
12665         Augment a few comments.
12666         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12667         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12668         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12669         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12670         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12671         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
12672         open_by_handle.
12673
12674         * io/fcntl.h (AT_EMPTY_PATH): Define.
12675
12676 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
12677
12678         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
12679         * sysdeps/unix/sysv/linux/bits/time.h: New file.
12680         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
12681         to...
12682         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
12683         * Versions.def: Add GLIBC_2.14.
12684         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
12685         Export.
12686
12687 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
12688
12689         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
12690         round counter.
12691         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
12692
12693 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
12694
12695         [BZ #12597]
12696         * string/test-strncmp.c (do_page_test): New function.
12697         (check2): Likewise.
12698         (test_main): Call check2.
12699         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
12700
12701 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
12702
12703         [BZ #12587]
12704         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12705         Handle cache information in CPU leaf 4.
12706         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
12707
12708 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
12709
12710         [BZ #12583]
12711         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
12712         character representation.
12713         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
12714
12715 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
12716
12717         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
12718         END(__isnan) to END(__isnanf) to match function entry point/label
12719         EALIGN(__isnanf,...).
12720
12721 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
12722
12723         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
12724
12725 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
12726
12727         [BZ #12510]
12728         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
12729         copy from the symbol referenced in the relocation to initialize the
12730         used variable.
12731         Patch by Piotr Bury <pbury@goahead.com>.
12732         * elf/Makefile: Add rules to build and tst-unique3.
12733         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
12734         * elf/tst-unique3.cc: New file.
12735         * elf/tst-unique3.h: New file.
12736         * elf/tst-unique3lib.cc: New file.
12737         * elf/tst-unique3lib2.cc: New file.
12738
12739         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
12740
12741 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
12742
12743         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
12744         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
12745         to _start.
12746
12747 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
12748
12749         * elf/dl-load.c (_dl_map_object): If we are looking for the first
12750         to-be-loaded object along a path to loader is ld.so.
12751
12752 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12753             Ulrich Drepper  <drepper@gmail.com>
12754
12755         * sysdeps/x86_64/memset.S: After aligning destination, code
12756         branches to different locations depending on the value of
12757         misalignment, when multiarch is enabled. Fix this.
12758
12759 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
12760
12761         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
12762         Set _x86_64_preferred_memory_instruction for AMD processsors.
12763         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12764         Set bit_Prefer_SSE_for_memop for AMD processors.
12765
12766 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
12767
12768         * libio/fmemopen.c (fmemopen): Optimize a bit.
12769
12770 2011-03-03  Andreas Schwab  <schwab@redhat.com>
12771
12772         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
12773
12774 2011-03-03  Roland McGrath  <roland@redhat.com>
12775
12776         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
12777
12778 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
12779
12780         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
12781         __bzero_ultra1 instead of __memset_ultra1.
12782
12783 2011-02-23  Andreas Schwab  <schwab@redhat.com>
12784             Ulrich Drepper  <drepper@gmail.com>
12785
12786         [BZ #12509]
12787         * include/link.h (struct link_map): Add l_orig_initfini.
12788         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
12789         returning unsuccessfully.
12790         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
12791         close of a file loaded at startup, restore the original l_initfini
12792         list.
12793         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
12794         list, store the pointer.
12795         * elf/Makefile ($(objpfx)noload-mem): New rule.
12796         (noload-ENV): Define.
12797         (tests): Add $(objpfx)noload-mem.
12798         * elf/noload.c: Include <memcheck.h>.
12799         (main): Call mtrace.  Close all opened handles.
12800
12801 2011-02-17  Andreas Schwab  <schwab@redhat.com>
12802
12803         [BZ #12454]
12804         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
12805         dependencies are missing.
12806
12807 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12808
12809         Fix __if_freereq crash: Unlike the generic version which uses free,
12810         Hurd needs munmap.
12811         * sysdeps/mach/hurd/ifreq.h: New file.
12812
12813 2011-01-27  Petr Baudis  <pasky@suse.cz>
12814             Ulrich Drepper  <drepper@gmail.com>
12815
12816         [BZ 12445]#
12817         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
12818         to extend_alloca().
12819         * stdio-common/bug23.c: New file.
12820         * stdio-common/Makefile (tests): Add bug23.
12821
12822 2010-09-28  Andreas Schwab  <schwab@redhat.com>
12823             Ulrich Drepper  <drepper@gmail.com>
12824
12825         [BZ #12489]
12826         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
12827         before performing relro protection.  At old place add assertion
12828         to make sure nothing changed.
12829
12830 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
12831             Glauber de Oliveira Costa  <glommer@gmail.com>
12832
12833         * elf/elf.h: Add new ARM TLS relocs.
12834
12835 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
12836
12837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12838         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
12839         cast from r3.
12840         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
12841         'tests' variable.
12842         * sysdeps/wordsize-64/tst-writev.c: New file.
12843
12844 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
12845
12846         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
12847         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
12848         insns in _dl_start to prevent a TOC reference before relocs are
12849         resolved.
12850
12851 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
12852
12853         [BZ #12469]
12854         * Makeconfig: Remove RANLIB definition.
12855         * Makerules: Don't use RANLIB.
12856         * aclocal.m4: Remove ranlib test.
12857         * configure.in: No need to check for ranlib.
12858         * elf/rtld-Rules: Don't use RANLIB.
12859
12860 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12861
12862         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
12863         protection macro.
12864         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
12865         inclusion protection macro.
12866
12867         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
12868         SIGRTMIN and SIGRTMAX and print information in that case only when
12869         SIGRTMIN is defined.
12870
12871 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12872
12873         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
12874         arginfo fn returning -1.
12875
12876         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
12877         and thousands string is zero terminated.
12878
12879 2011-02-03  Andreas Schwab  <schwab@redhat.com>
12880
12881         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
12882         sysdeps/unix/sysv/linux/bits/socket.h.
12883
12884 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12885
12886         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
12887         (__CPU_COUNT): Remove old macros.
12888         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
12889         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
12890         (__CPU_ALLOC, __CPU_FREE): Add macros.
12891         (__sched_cpualloc, __sched_cpufree): Add declarations.
12892
12893 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
12894
12895         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
12896         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
12897         * nscd/aicache.c (addhstaiX): Return timeout of added value.
12898         (readdhstai): Return value of addhstaiX call.
12899         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
12900         (addgrbyX): Return value returned by cache_addgr.
12901         (readdgrbyname): Return value returned by addgrbyX.
12902         (readdgrbygid): Likewise.
12903         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
12904         (addpwbyX): Return value returned by cache_addpw.
12905         (readdpwbyname): Return value returned by addhstbyX.
12906         (readdpwbyuid): Likewise.
12907         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
12908         (addservbyX): Return value returned by cache_addserv.
12909         (readdservbyname): Return value returned by addservbyX:
12910         (readdservbyport): Likewise.
12911         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
12912         (addhstbyX): Return value returned by cache_addhst.
12913         (readdhstbyname): Return value returned by addhstbyX.
12914         (readdhstbyaddr): Likewise.
12915         (readdhstbynamev6): Likewise.
12916         (readdhstbyaddrv6): Likewise.
12917         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
12918         (readdinitgroups): Return value returned by addinitgroupsX.
12919         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
12920         (prune_cache): Keep track of timeout value of re-added entries.
12921         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
12922         * nscd/nscd.h: Adjust prototypes of readd* functions.
12923
12924 2011-02-04  Roland McGrath  <roland@redhat.com>
12925
12926         * nis/nis_server.c (nis_servstate): Use the right name for 0.
12927         (nis_stats): Likewise.
12928         * nis/nis_modify.c (nis_modify): Likewise.
12929         * nis/nis_remove.c (nis_remove): Likewise.
12930         * nis/nis_add.c (nis_add): Likewise.
12931
12932         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
12933
12934         * posix/fnmatch_loop.c: Add some consts.
12935
12936         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
12937
12938 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
12939
12940         [BZ #12460]
12941         * config.make.in (config-cflags-novzeroupper): Define.
12942         * configure.in: Substitute libc_cv_cc_novzeroupper.
12943         * elf/Makefile (AVX-CFLAGS): Define.
12944         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
12945         (CFLAGS-tst-auditmod4a.c): Likewise.
12946         (CFLAGS-tst-auditmod4b.c): Likewise.
12947         (CFLAGS-tst-auditmod6b.c): Likewise.
12948         (CFLAGS-tst-auditmod6c.c): Likewise.
12949         (CFLAGS-tst-auditmod7b.c): Likewise.
12950         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
12951
12952 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
12953
12954         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
12955         function to the callback.
12956         Patch partly by Jiri Olsa <jolsa@redhat.com>.
12957
12958 2011-02-02  Andreas Schwab  <schwab@redhat.com>
12959
12960         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
12961         of errno.
12962
12963 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
12964
12965         [BZ #11724]
12966         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
12967         of constructors.
12968         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
12969         of destructors.
12970         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
12971
12972         [BZ #11724]
12973         * elf/Makefile: Add rules to build and run new test.
12974         * elf/tst-initorder.c: New file.
12975         * elf/tst-initorder.exp: New file.
12976         * elf/tst-initordera1.c: New file.
12977         * elf/tst-initordera2.c: New file.
12978         * elf/tst-initordera3.c: New file.
12979         * elf/tst-initordera4.c: New file.
12980         * elf/tst-initorderb1.c: New file.
12981         * elf/tst-initorderb2.c: New file.
12982         * elf/tst-order-a1.c: New file.
12983         * elf/tst-order-a2.c: New file.
12984         * elf/tst-order-a3.c: New file.
12985         * elf/tst-order-a4.c: New file.
12986         * elf/tst-order-b1.c: New file.
12987         * elf/tst-order-b2.c: New file.
12988         * elf/tst-order-main.c: New file.
12989         New test case by George Gensure <werkt0@gmail.com>.
12990
12991 2010-10-01  Andreas Schwab  <schwab@redhat.com>
12992
12993         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
12994         decoding ACE if AI_CANONIDN.
12995
12996 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
12997
12998         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
12999
13000 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
13001
13002         * version.h (RELEASE): Bump for 2.13 release.
13003         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
13004
13005         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
13006
13007         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
13008         MADV_NOHUGEPAGE.
13009         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
13010         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
13011         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13012         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13013         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
13014         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13015
13016         * posix/getconf.c: Update copyright year.
13017         * catgets/gencat.c: Likewise.
13018         * csu/version.c: Likewise.
13019         * debug/catchsegv.sh: Likewise.
13020         * debug/xtrace.sh: Likewise.
13021         * elf/ldconfig.c: Likewise.
13022         * elf/ldd.bash.in: Likewise.
13023         * elf/sprof.c (print_version): Likewise.
13024         * iconv/iconv_prog.c: Likewise.
13025         * iconv/iconvconfig.c: Likewise.
13026         * locale/programs/locale.c: Likewise.
13027         * locale/programs/localedef.c: Likewise.
13028         * malloc/memusage.sh: Likewise.
13029         * malloc/mtrace.pl: Likewise.
13030         * nscd/nscd.c (print_version): Likewise.
13031         * nss/getent.c: Likewise.
13032
13033         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
13034         PF_CAIF, and PF_ALG.
13035         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13036
13037 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
13038
13039         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
13040         (modules-names): Use them.
13041         (ifunc-test-modules, ifunc-pie-tests): Define.
13042         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
13043         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
13044         (test-extras): Likewise.
13045         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
13046         $(compile-command.c).
13047         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
13048         (all-built-dso): Define.
13049         (check-textrel.out, check-execstack.out): Depend on it.
13050
13051         * configure.in: Don't override --enable-multi-arch.
13052
13053 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
13054
13055         [BZ #6812]
13056         * nscd/hstcache.c (tryagain): Define.
13057         (cache_addhst): Return tryagain not notfound for temporary errors.
13058         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
13059         failed.
13060
13061 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
13062
13063         [BZ #10563]
13064         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
13065         to make the syscall.
13066         * sysdeps/unix/sysv/linux/setgroups.c: New file.
13067
13068         [BZ #12378]
13069         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
13070         and fall back to matching as normal character if the string ends before
13071         the matching ']' is found.  This is what POSIX requires.
13072         * posix/testfnm.c: Adjust test result.
13073         * posix/globtest.sh: Adjust test result.  Add new test.
13074         * posix/tst-fnmatch.input: Likewise.
13075         * posix/tst-fnmatch2.c: Add new test.
13076
13077 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
13078
13079         * elf/Makefile (check-execstack): Revert last change.  Depend on
13080         check-execstack.h.
13081         (check-execstack.h): New target.
13082         (generated): Add check-execstack.h.
13083         * elf/check-execstack.c: Include "check-execstack.h".
13084         (main): Revert last change.
13085         (handle_file): Return zero if GNU_STACK is absent and
13086         DEFAULT_STACK_PERMS doesn't include PF_X.
13087
13088 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
13089
13090         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
13091         in child fails because the descriptor is already closed.
13092         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
13093         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
13094         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
13095
13096         [BZ #12397]
13097         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
13098         syscall.
13099
13100         [BZ #10484]
13101         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
13102         temporary buffer used to handle multi lookups locally.
13103         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
13104
13105 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13106
13107         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
13108         loader is ld.so.
13109
13110 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
13111
13112         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
13113         alignment for SSE2.
13114
13115 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
13116
13117         [BZ #12394]
13118         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
13119         characters.  When rounding increased number of integer digits recompute
13120         number of groups.
13121         * stdio-common/tst-grouping.c: New file.
13122         * stdio-common/Makefile: Add rules to build and run tst-grouping.
13123
13124 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
13125
13126         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
13127         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
13128
13129         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
13130         void.
13131         * bits/select.h: Likewise.
13132
13133 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
13134
13135         * po/ja.po: Update from translation team.
13136
13137 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
13138
13139         [BZ #11155]
13140         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
13141         implementation just like for lxstat, fxstatat, et al.
13142
13143 2010-12-27  Jim Meyering  <meyering@redhat.com>
13144
13145         [BZ #12348]
13146         * posix/regexec.c (build_trtable): Return failure indication upon
13147         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13148
13149 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
13150
13151         [BZ #12201]
13152         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
13153         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
13154         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
13155         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
13156
13157         [BZ #12207]
13158         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
13159
13160         [BZ #12204]
13161         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
13162         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
13163
13164 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13165
13166         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
13167         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
13168         script has SORT_BY_INIT_PRIORITY.
13169         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
13170         NO_CTORS_DTORS_SECTIONS is defined.
13171         * elf/soinit.c: Likewise.
13172         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
13173         NO_CTORS_DTORS_SECTIONS is defined.
13174         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
13175         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
13176         * sysdeps/sh/init-first.c: Likewise.
13177         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
13178
13179 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
13180
13181         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
13182         always use the slow path.
13183
13184 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
13185
13186         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
13187         similar rule which adds the sysdep directories to the header search in
13188         order to pick up the correct platform stackinfo.h.
13189         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
13190         perform test if it is, otherwise return successfully without testing.
13191         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
13192         DEFAULT_STACK_PERMS define in stackinfo.h.
13193         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
13194         defined in stackinfo.h.
13195         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
13196         DEFAULT_STACK_PERMS defined in stackinfo.h.
13197         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
13198         * sysdeps/ia64/stackinfo.h: Likewise.
13199         * sysdeps/s390/stackinfo.h: Likewise.
13200         * sysdeps/sh/stackinfo.h: Likewise.
13201         * sysdeps/sparc/stackinfo.h: Likewise.
13202         * sysdeps/x86_64/stackinfo.h: Likewise.
13203         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
13204         PF_X for powerpc64.  Retain PF_X for powerpc32.
13205
13206 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
13207
13208         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
13209         accurately.
13210         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
13211         GETDENTS_64BIT_ALIGNED.
13212
13213 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
13214
13215         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
13216
13217 2010-12-10  Andreas Schwab  <schwab@redhat.com>
13218
13219         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
13220         _GNU_SOURCE.
13221
13222         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
13223         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
13224         Remove __restrict.
13225         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
13226         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
13227
13228 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
13229
13230         [BZ #11655]
13231         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
13232         are initialized.
13233
13234 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
13235
13236         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
13237
13238 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
13239
13240         * po/it.po: Update from translation team.
13241
13242 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
13243
13244         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
13245         unused codes.
13246
13247 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
13248
13249         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
13250
13251 2010-11-24  Andreas Schwab  <schwab@redhat.com>
13252
13253         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
13254         specially.
13255         (gaih_getanswer_slice): Likewise.
13256
13257 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
13258
13259         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
13260
13261 2010-05-31  Petr Baudis  <pasky@suse.cz>
13262
13263         [BZ #11149]
13264         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
13265         silently even in the chroot mode.
13266
13267 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
13268
13269         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
13270         last patch a bit.  Pretty printing
13271
13272 2010-05-31  Petr Baudis <pasky@suse.cz>
13273
13274         [BZ #10085]
13275         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
13276         initialization of skip_initgroups_dyn.
13277
13278 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
13279
13280         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
13281         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
13282
13283 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
13284
13285         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
13286
13287 2010-11-11  Andreas Schwab  <schwab@redhat.com>
13288
13289         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
13290         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
13291         (tst-fnmatch-ENV): Set MALLOC_TRACE.
13292         ($(objpfx)tst-fnmatch-mem): New rule.
13293         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
13294         * posix/tst-fnmatch.c (main): Call mtrace.
13295
13296 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
13297
13298         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13299         Support Intel processor model 6 and model 0x2c.
13300
13301 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
13302
13303         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
13304           signed comparison.
13305
13306 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
13307
13308         [BZ #12205]
13309         * string/test-strncasecmp.c (check_result): New function.
13310         (do_one_test): Use it.
13311         (check1): New function.
13312         (test_main): Use it.
13313         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
13314         Support strcasecmp and strncasecmp.
13315
13316 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
13317
13318         [BZ #12194]
13319         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
13320         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13321
13322 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13323
13324         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
13325         IFUNC support.
13326         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13327         memset-x86-64.
13328         * sysdeps/x86_64/multiarch/bzero.S: New file.
13329         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
13330         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
13331         * sysdeps/x86_64/multiarch/memset.S: New file.
13332         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
13333         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13334         Set bit_Prefer_SSE_for_memop for Intel processors.
13335         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
13336         Define.
13337         (index_Prefer_SSE_for_memop): Define.
13338         (HAS_PREFER_SSE_FOR_MEMOP): Define.
13339
13340 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
13341
13342         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
13343         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
13344
13345 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
13346
13347         [BZ #12191]
13348         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13349         (__x86_64_raw_data_cache_size_half): Likewise.
13350         (__x86_64_raw_shared_cache_size): Likewise.
13351         (__x86_64_raw_shared_cache_size_half): Likewise.
13352
13353         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
13354         (__x86_64_raw_data_cache_size_half): Likewise.
13355         (__x86_64_raw_shared_cache_size): Likewise.
13356         (__x86_64_raw_shared_cache_size_half): Likewise.
13357         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
13358         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
13359         and __x86_64_raw_shared_cache_size_half.  Round
13360         __x86_64_data_cache_size_half, __x86_64_data_cache_size
13361         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
13362         to multiple of 256 bytes.
13363
13364 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
13365
13366         [BZ #12167]
13367         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
13368         of inacessible symlinks.  Verify result of symlink before returning it.
13369         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
13370         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
13371
13372 2010-10-28  Erich Ritz  <erichritz@gmail.com>
13373
13374         * math/math.h (isinf): Fix typo in comment.
13375
13376 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
13377
13378         * po/da.po: Update from translation team.
13379
13380 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
13381
13382         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
13383         is added to the list.
13384
13385 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13386             Ulrich Drepper  <drepper@gmail.com>
13387
13388         * elf/dl-object.c (_dl_new_object): Don't append the new object to
13389         the global list here.  Move code to...
13390         (_dl_add_to_namespace_list): ...here.  New function.
13391         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
13392         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
13393         * elf/dl-load.c (lose): Don't remove the element from the list.
13394         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
13395         (_dl_map_object): Likewise.
13396
13397 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
13398
13399         [BZ #12159]
13400         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
13401         into all bytes of SSE register.
13402         Patch by Richard Li <richardpku@gmail.com>.
13403
13404 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
13405
13406         [BZ #12140]
13407         * malloc/malloc.c (_int_free): Fill correct number of bytes when
13408         perturbing.
13409
13410 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
13411
13412         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
13413         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
13414         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
13415         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
13417         submachine.
13418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13419
13420 2010-10-22  Andreas Schwab  <schwab@redhat.com>
13421
13422         * include/dlfcn.h (__RTLD_SECURE): Define.
13423         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
13424         mode & __RTLD_SECURE instead.
13425         (open_path): Rename preloaded parameter to secure.
13426         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
13427         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
13428         * elf/dl-deps.c (openaux): Likewise.
13429         * elf/rtld.c (struct map_args): Remove is_preloaded.
13430         (map_doit): Don't use it.
13431         (dl_main): Likewise.
13432         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
13433         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
13434
13435 2010-09-09  Andreas Schwab  <schwab@redhat.com>
13436
13437         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
13438         (sysd-rules-targets): Remove duplicates.
13439         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
13440         rtld-%.$o dependency.
13441
13442 2010-10-18  Andreas Schwab  <schwab@redhat.com>
13443
13444         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
13445         _dl_map_object do it.
13446
13447 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
13448
13449         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
13450         fast fma builtins, define the macros in the C99 standard.
13451         (FP_FAST_FMAF): Likewise.
13452         (FP_FAST_FMAL): Likewise.
13453         * sysdeps/x86_64/bits/mathdef.h: Likewise.
13454
13455         * bits/mathdef.h: Update copyright year.
13456         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13457
13458 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13459
13460         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
13461         builtins, define the macros in the C99 standard.
13462         (FP_FAST_FMAF): Likewise.
13463         (FP_FAST_FMAL): Likewise.
13464         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
13465         multiply/add.
13466         (FP_FAST_FMAF): Likewise.
13467
13468 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
13469
13470         [BZ #3268]
13471         * math/libm-test.inc (fma_test): Some new testcases.
13472         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
13473         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
13474         y and infinite z.  Do multiplication by C already in long double.
13475         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
13476         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
13477         y and infinite z.  Do bitwise or of inexact bit into u.d.
13478         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
13479         * sysdeps/i386/fpu/s_fmaf.S: Removed.
13480         * sysdeps/i386/fpu/s_fma.S: Removed.
13481         * sysdeps/i386/fpu/s_fmal.S: Removed.
13482
13483 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
13484
13485         [BZ #3268]
13486         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
13487         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
13488         computation is not scheduled after fetestexcept.  Fix value
13489         of minimum denormal long double.
13490
13491 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
13492
13493         [BZ #3268]
13494         * math/libm-test.inc (fma_test): Add some more tests.
13495         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
13496         correctly.
13497
13498 2010-10-15  Andreas Schwab  <schwab@redhat.com>
13499
13500         * scripts/data/localplt-s390-linux-gnu.data: New file.
13501         * scripts/data/localplt-s390x-linux-gnu.data: New file.
13502
13503 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
13504
13505         [BZ #3268]
13506         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
13507         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
13508         instead of dbl-64.
13509         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
13510         inlines.
13511         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
13512         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
13513         if one of x and y is very large and the other is subnormal.
13514         * sysdeps/s390/fpu/s_fmaf.c: New file.
13515         * sysdeps/s390/fpu/s_fma.c: New file.
13516         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
13517         * sysdeps/powerpc/fpu/s_fma.S: New file.
13518         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
13519         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
13520         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
13521
13522 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
13523
13524         [BZ #3268]
13525         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
13526         fma tests.
13527         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
13528         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
13529         * sysdeps/i386/i686/multiarch/s_fma.c: Include
13530         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
13531         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
13532         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
13533         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
13534
13535 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
13536
13537         [BZ #12078]
13538         * posix/regcomp.c (parse_branch): One more memory leak plugged.
13539         * posix/bug-regex31.input: Add test case.
13540
13541 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
13542
13543         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
13544         * posix/bug-regex31.input: New file.
13545
13546         [BZ #12078]
13547         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
13548         (parse_sub_exp): Fix last change, use postorder.
13549
13550         * posix/bug-regex31.c: New file.
13551         * posix/Makefile: Add rules to build and run bug-regex31.
13552
13553         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
13554
13555         [BZ #12078]
13556         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
13557
13558         [BZ #12108]
13559         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
13560         to have entries in sys_siglist.
13561
13562         [BZ #12093]
13563         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
13564         be NULL.
13565
13566 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
13567
13568         [BZ #3268]
13569         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
13570         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
13571         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
13572         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
13573         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13574         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
13575         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
13576         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
13577         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
13578         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
13579         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
13580         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
13581         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
13582         * math/ftestexcept.c (fetestexcept): Likewise.
13583         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
13584         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
13585         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13586         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
13587         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
13588         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
13589         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13590
13591 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
13592
13593         [BZ #12107]
13594         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
13595         newline.
13596
13597 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
13598
13599         * string/bug-strstr1.c: New file.
13600         * string/Makefile: Add rules to build and run bug-strstr1.
13601
13602 2010-10-05  Eric Blake  <eblake@redhat.com>
13603
13604         [BZ #12092]
13605         * string/str-two-way.h (two_way_long_needle): Always clear memory
13606         when skipping input due to the shift table.
13607
13608 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
13609
13610         [BZ #12005]
13611         * malloc/mcheck.c: Handle large requests.
13612
13613         [BZ #12077]
13614         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
13615         for strncmp and strncasecmp.
13616         * string/stratcliff.c: Add tests for strcmp and strncmp.
13617         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
13618
13619 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13620
13621         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
13622         __set_fpscr.
13623
13624 2010-09-30  Andreas Jaeger  <aj@suse.de>
13625
13626         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
13627         (CGROUP_SUPER_MAGIC): Define.
13628         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13629         Handle btrfs and cgroup file systems.
13630         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
13631         Likewise.
13632
13633 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
13634
13635         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
13636         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
13637
13638 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13639
13640         [BZ #12067]
13641         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
13642         trying to locate the ELF header.
13643
13644 2010-09-27  Andreas Schwab  <schwab@redhat.com>
13645
13646         [BZ #11611]
13647         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
13648         Mask out sign-bit copies when constructing f_fsid.
13649
13650 2010-09-24  Petr Baudis <pasky@suse.cz>
13651
13652         * debug/stack_chk_fail_local.c: Add missing licence exception.
13653         * debug/warning-nop.c: Likewise.
13654
13655 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
13656
13657         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
13658         implementing getdents64 using getdents syscall, set d_type if
13659         __ASSUME_GETDENTS32_D_TYPE.
13660
13661 2010-09-16  Andreas Schwab  <schwab@redhat.com>
13662
13663         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
13664         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
13665
13666 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
13667
13668         [BZ #12037]
13669         * posix/unistd.h: Undo change of feature selection for ftruncate from
13670         2010-01-11.
13671
13672 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
13673
13674         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
13675         detection.
13676
13677 2010-09-20  Andreas Schwab  <schwab@redhat.com>
13678
13679         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
13680         fanotify_mark.
13681         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
13682
13683 2010-09-14  Andreas Schwab  <schwab@redhat.com>
13684
13685         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
13686         variables after CHECK_SP call.
13687         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
13688
13689 2010-09-13  Andreas Schwab  <schwab@redhat.com>
13690             Ulrich Drepper  <drepper@redhat.com>
13691
13692         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
13693         re-relocationg ld.so.
13694         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
13695         _dl_init_paths call.
13696         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
13697         here anymore.
13698
13699 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
13700
13701         * resolv/res_init.c (__res_vinit): Count the default server we added.
13702
13703 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
13704             Ulrich Drepper  <drepper@redhat.com>
13705
13706         [BZ #11968]
13707         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
13708         (____longjmp_chk): Use %ebx for saving value across system call.
13709         Add unwind info.
13710
13711 2010-09-06  Andreas Schwab  <schwab@redhat.com>
13712
13713         * manual/Makefile: Don't mix pattern rules with normal rules.
13714
13715 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
13716
13717         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
13718         operation.
13719         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
13720         * libio/iofopncook.c (_IO_cookie_init): Likewise.
13721         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
13722         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
13723         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13724         Likewise.
13725
13726 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
13727
13728         [BZ #11979]
13729         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
13730         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
13731
13732 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
13733
13734         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
13735         * sysdeps/x86_64/addmul_1.S: Likewise.
13736         * sysdeps/x86_64/lshift.S: Likewise.
13737         * sysdeps/x86_64/mul_1.S: Likewise.
13738         * sysdeps/x86_64/rshift.S: Likewise.
13739         * sysdeps/x86_64/sub_n.S: Likewise.
13740         * sysdeps/x86_64/submul_1.S: Likewise.
13741
13742 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13743
13744         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
13745         Define __sched_param instead of SCHED_* and sched_param when
13746         <bits/sched.h> is included with __need_schedparam defined.
13747         * bits/sched.h [__need_schedparam]
13748         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
13749         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
13750         (__defined_schedparam): Define to 1.
13751         (__sched_param): New structure, identical to sched_param.
13752         (__need_schedparam): Undefine.
13753
13754 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
13755
13756         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
13757         (epoll_create1): Declare.
13758
13759         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
13760
13761 2010-08-31  Andreas Schwab  <schwab@redhat.com>
13762
13763         [BZ #7066]
13764         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
13765         shifting retval into place.
13766
13767 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
13768
13769         * nis/rpcsvc/nis.h: Update copyright notice.
13770         * nis/rpcsvc/nis.x: Likewise.
13771         * nis/rpcsvc/nis_callback.h: Likewise.
13772         * nis/rpcsvc/nis_callback.x: Likewise.
13773         * nis/rpcsvc/nis_object.x: Likewise.
13774         * nis/rpcsvc/nis_tags.h: Likewise.
13775         * nis/rpcsvc/yp.h: Likewise.
13776         * nis/rpcsvc/yp.x: Likewise.
13777         * nis/rpcsvc/ypupd.h: Likewise.
13778         * nis/yp_xdr.c: Likewise.
13779         * nis/ypupdate_xdr.c: Likewise.
13780
13781         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
13782         mainly the body of pmap_getport.  Add parameters to specify timeouts.
13783         (pmap_getport): Use __libc_rpc_getport.
13784         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
13785         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
13786         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
13787
13788 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
13789
13790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
13791         fanotify_mark.
13792
13793 2010-08-27  Roland McGrath  <roland@redhat.com>
13794
13795         * sysdeps/i386/i686/multiarch/Makefile
13796         (CFLAGS-varshift.c): New variable.
13797
13798 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
13799
13800         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
13801         * sysdeps/i386/i686/multiarch/varshift.c: New file.
13802
13803         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
13804
13805         * sysdeps/x86_64/strlen.S: Minimal code improvement.
13806
13807 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13808
13809         * sysdeps/x86_64/strlen.S: Unroll the loop.
13810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13811         strlen-sse2 strlen-sse2-bsf.
13812         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
13813         __strlen_no_bsf if bit_Slow_BSF is set.
13814         (__strlen_sse42): Removed.
13815         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
13816         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
13817
13818 2010-08-25  Roland McGrath  <roland@redhat.com>
13819
13820         * sysdeps/x86_64/multiarch/varshift.S: File removed.
13821         * sysdeps/x86_64/multiarch/varshift.c: New file.
13822         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
13823         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
13824         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
13825         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13826
13827 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13828
13829         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13830         strlen-sse2 strlen-sse2-bsf.
13831         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
13832         __strlen_sse2_bsf if bit_Slow_BSF is unset.
13833         (__strlen_sse2): Removed.
13834         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
13835         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
13836         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
13837         bit_Slow_BSF for Atom.
13838         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
13839         (index_Slow_BSF): Define.
13840         (HAS_SLOW_BSF): Define.
13841
13842 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
13843
13844         [BZ #10851]
13845         * resolv/res_init.c (__res_vinit): When no server address at all
13846         is given default to loopback.
13847
13848 2010-08-24  Roland McGrath  <roland@redhat.com>
13849
13850         * configure.in: Remove config-name.h generation.
13851         * configure: Regenerated.
13852         * config-name.in: File removed.
13853         * scripts/config-uname.sh: New file.
13854         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
13855         ($(objdir)config-name.h): New target.
13856
13857         * sunrpc/rpc_parse.h: Avoid nested comment.
13858
13859 2010-08-24  Richard Henderson  <rth@redhat.com>
13860             Ulrich Drepper  <drepper@redhat.com>
13861             H.J. Lu  <hongjiu.lu@intel.com>
13862
13863         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
13864         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
13865         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
13866         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
13867         _mm_alignr_epi8 with _mm_loadu_si128.
13868         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
13869         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
13870         (__m128i_shift_right): Removed.
13871         * sysdeps/i386/i686/multiarch/varshift.h: New file.
13872         * sysdeps/i386/i686/multiarch/varshift.S: New file.
13873         * sysdeps/x86_64/multiarch/varshift.h: New file.
13874         * sysdeps/x86_64/multiarch/varshift.S: New file.
13875
13876 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
13877
13878         * configure.in: Move assembler checks to before sysdep dir checking.
13879
13880 2010-08-20  Petr Baudis  <pasky@suse.cz>
13881
13882         * LICENSES: Sync the sunrpc license.
13883
13884 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
13885
13886         * sunrpc/auth_des.c: Update copyright notice once again.
13887         * sunrpc/auth_none.c: Likewise.
13888         * sunrpc/auth_unix.c: Likewise.
13889         * sunrpc/authdes_prot.c: Likewise.
13890         * sunrpc/authuxprot.c: Likewise.
13891         * sunrpc/bindrsvprt.c: Likewise.
13892         * sunrpc/clnt_gen.c: Likewise.
13893         * sunrpc/clnt_perr.c: Likewise.
13894         * sunrpc/clnt_raw.c: Likewise.
13895         * sunrpc/clnt_simp.c: Likewise.
13896         * sunrpc/clnt_tcp.c: Likewise.
13897         * sunrpc/clnt_udp.c: Likewise.
13898         * sunrpc/clnt_unix.c: Likewise.
13899         * sunrpc/des_crypt.c: Likewise.
13900         * sunrpc/des_soft.c: Likewise.
13901         * sunrpc/get_myaddr.c: Likewise.
13902         * sunrpc/getrpcport.c: Likewise.
13903         * sunrpc/key_call.c: Likewise.
13904         * sunrpc/key_prot.c: Likewise.
13905         * sunrpc/openchild.c: Likewise.
13906         * sunrpc/pm_getmaps.c: Likewise.
13907         * sunrpc/pm_getport.c: Likewise.
13908         * sunrpc/pmap_clnt.c: Likewise.
13909         * sunrpc/pmap_prot.c: Likewise.
13910         * sunrpc/pmap_prot2.c: Likewise.
13911         * sunrpc/pmap_rmt.c: Likewise.
13912         * sunrpc/rpc/auth.h: Likewise.
13913         * sunrpc/rpc/auth_unix.h: Likewise.
13914         * sunrpc/rpc/clnt.h: Likewise.
13915         * sunrpc/rpc/des_crypt.h: Likewise.
13916         * sunrpc/rpc/key_prot.h: Likewise.
13917         * sunrpc/rpc/netdb.h: Likewise.
13918         * sunrpc/rpc/pmap_clnt.h: Likewise.
13919         * sunrpc/rpc/pmap_prot.h: Likewise.
13920         * sunrpc/rpc/pmap_rmt.h: Likewise.
13921         * sunrpc/rpc/rpc.h: Likewise.
13922         * sunrpc/rpc/rpc_des.h: Likewise.
13923         * sunrpc/rpc/rpc_msg.h: Likewise.
13924         * sunrpc/rpc/svc.h: Likewise.
13925         * sunrpc/rpc/svc_auth.h: Likewise.
13926         * sunrpc/rpc/types.h: Likewise.
13927         * sunrpc/rpc/xdr.h: Likewise.
13928         * sunrpc/rpc_clntout.c: Likewise.
13929         * sunrpc/rpc_cmsg.c: Likewise.
13930         * sunrpc/rpc_common.c: Likewise.
13931         * sunrpc/rpc_cout.c: Likewise.
13932         * sunrpc/rpc_dtable.c: Likewise.
13933         * sunrpc/rpc_hout.c: Likewise.
13934         * sunrpc/rpc_main.c: Likewise.
13935         * sunrpc/rpc_parse.c: Likewise.
13936         * sunrpc/rpc_parse.h: Likewise.
13937         * sunrpc/rpc_prot.c: Likewise.
13938         * sunrpc/rpc_sample.c: Likewise.
13939         * sunrpc/rpc_scan.c: Likewise.
13940         * sunrpc/rpc_scan.h: Likewise.
13941         * sunrpc/rpc_svcout.c: Likewise.
13942         * sunrpc/rpc_tblout.c: Likewise.
13943         * sunrpc/rpc_util.c: Likewise.
13944         * sunrpc/rpc_util.h: Likewise.
13945         * sunrpc/rpcinfo.c: Likewise.
13946         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
13947         * sunrpc/rpcsvc/key_prot.x: Likewise.
13948         * sunrpc/rpcsvc/klm_prot.x: Likewise.
13949         * sunrpc/rpcsvc/mount.x: Likewise.
13950         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
13951         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
13952         * sunrpc/rpcsvc/rex.x: Likewise.
13953         * sunrpc/rpcsvc/rstat.x: Likewise.
13954         * sunrpc/rpcsvc/rusers.x: Likewise.
13955         * sunrpc/rpcsvc/sm_inter.x: Likewise.
13956         * sunrpc/rpcsvc/spray.x: Likewise.
13957         * sunrpc/rpcsvc/yppasswd.x: Likewise.
13958         * sunrpc/rtime.c: Likewise.
13959         * sunrpc/svc.c: Likewise.
13960         * sunrpc/svc_auth.c: Likewise.
13961         * sunrpc/svc_authux.c: Likewise.
13962         * sunrpc/svc_raw.c: Likewise.
13963         * sunrpc/svc_run.c: Likewise.
13964         * sunrpc/svc_simple.c: Likewise.
13965         * sunrpc/svc_tcp.c: Likewise.
13966         * sunrpc/svc_udp.c: Likewise.
13967         * sunrpc/svc_unix.c: Likewise.
13968         * sunrpc/svcauth_des.c: Likewise.
13969         * sunrpc/xcrypt.c: Likewise.
13970         * sunrpc/xdr.c: Likewise.
13971         * sunrpc/xdr_array.c: Likewise.
13972         * sunrpc/xdr_float.c: Likewise.
13973         * sunrpc/xdr_mem.c: Likewise.
13974         * sunrpc/xdr_rec.c: Likewise.
13975         * sunrpc/xdr_ref.c: Likewise.
13976         * sunrpc/xdr_sizeof.c: Likewise.
13977         * sunrpc/xdr_stdio.c: Likewise.
13978
13979         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
13980         handling.
13981
13982 2010-08-19  Andreas Schwab  <schwab@redhat.com>
13983
13984         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
13985
13986 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
13987
13988         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
13989         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
13990         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
13991         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
13992         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
13993         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
13994         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
13995         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
13996         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
13997         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
13998         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
13999         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
14000         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
14001         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
14002
14003 2010-07-26  Anton Blanchard  <anton@samba.org>
14004
14005         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
14006         * malloc/arena.c (heap_trim): Likewise.
14007
14008 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
14009
14010         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
14011         here.  Not...
14012         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
14013         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
14014
14015 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14016
14017         * sysdeps/i386/elf/Makefile: New file.
14018
14019 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14020
14021         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
14022         from fanotify_init.
14023         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
14024         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14025
14026 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
14027
14028         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
14029         of strncasecmp_l.
14030         * sysdeps/multiarch/strcmp.S: Likewise.
14031
14032 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
14033
14034         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14035         strncase_l-nonascii.
14036         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14037         Add strncase_l-ssse3.
14038         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
14039         * sysdeps/x86_64/strcmp.S: Likewise.
14040         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
14041         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
14042         * sysdeps/x86_64/strncase.S: New file.
14043         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
14044         * sysdeps/x86_64/strncase_l.S: New file.
14045         * string/Makefile (strop-tests): Add strncasecmp.
14046         * string/test-strncasecmp.c: New file.
14047
14048         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
14049         warning.
14050
14051         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
14052         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
14053
14054 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
14055
14056         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
14057
14058 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
14059
14060         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
14061         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
14062         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
14063
14064 2010-05-01  Alan Modra  <amodra@gmail.com>
14065
14066         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
14067         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
14068         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
14069         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
14070         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
14071         tidying.  Don't tail-call __sigjmp_save for static lib.
14072         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
14073         save location.
14074         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
14075         (CALL_MCOUNT): Add eh info, and nop after bl.
14076         (TAIL_CALL_SYSCALL_ERROR): New macro.
14077         (PSEUDO_RET): Use it.
14078         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
14079         Correct save location of integer regs and cr.
14080         (_dl_profile_resolve): Correct cr save location.  Delete nops
14081         after bl when SHARED.  Reduce cfi size a little by better
14082         placement of cfi directives.
14083         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
14084         make a stack frame.  Instead use parm save area as a temp.
14085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
14086         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
14087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
14088         Don't make a stack frame for parent, use parm save area.
14089         Increase child stack frame to 112 bytes.  Don't save unused reg,
14090         and adjust reg usage.  Set up cfi on error recovery and
14091         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
14092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14093         (__makecontext): Add dummy nop after jump to exit.
14094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
14095         Use correct parm save area and cr save, reduce stack frame.
14096         Correct cfi for possible PSEUDO_RET frame setup.
14097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
14098         Branch to local label emitted by PSEUDO_RET rather than
14099         __syscall_error.
14100
14101 2010-08-12  Andreas Schwab  <schwab@redhat.com>
14102
14103         [BZ #11904]
14104         * locale/programs/locale.c (print_assignment): New function.
14105         (show_locale_vars): Use it.
14106
14107 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
14108
14109         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
14110         field.
14111         (struct statfs64): Likewise.
14112         (_STATFS_F_FLAGS): Define.
14113         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
14114         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14115         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
14116         (ST_VALID): Define locally.
14117         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
14118         __statvfs_getflags, use the provided value.
14119         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14120         __ASSUME_STATFS_F_FLAGS.
14121
14122         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
14123
14124         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
14125         Add sys/fanotify.h.
14126         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
14127         fanotify_mask for GLIBC_2.13.
14128         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
14129         fanotify_init and fanotify_mark.
14130         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14131         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
14132
14133         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
14134         Add prlimit.
14135         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
14136         prlimit64 for GLIBC_2.13.
14137         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
14138         prlimit64.
14139         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
14140         syscall.
14141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14142         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14143         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
14144         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
14145         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
14146         add prlimit alias.
14147         * sysdeps/unix/sysv/linux/prlimit.c: New file.
14148
14149         [BZ #11903]
14150         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
14151         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
14152
14153         * nss/Makefile: Add rules to build and run tst-nss-test1.
14154         * shlib-versions: Add entry for libnss_test1.
14155         * nss/nss_test1.c: New file.
14156         * nss/tst-nss-test1.c: New file.
14157
14158         * nss/nsswitch.c (__nss_database_custom): Define new variable.
14159         (__nss_configure_lookup): Set appropriate entry in
14160         __nss_configure_lookup to true.
14161         * nss/nsswitch.h: Define enum with indeces of databases in
14162         databases and __nss_database_custom arrays.  Declare
14163         __nss_database_custom.
14164         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
14165         to avoid using nscd when custom rules are installed.
14166         * nss/getXXbyYY_r.c: Likewise.
14167         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14168
14169         * nss/nss_files/files-parse.c: Whitespace fixes.
14170
14171 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
14172
14173         [BZ #11883]
14174         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
14175         * posix/fnmatch_loop.c: Likewise.
14176
14177 2010-07-17  Andi Kleen  <ak@linux.intel.com>
14178
14179         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
14180         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
14181         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
14182         * Versions.def [GLIBC_2.13]: Add.
14183
14184 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
14185
14186         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14187         Also fail if tpwd after pwuid call is NULL.
14188
14189 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14190
14191         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
14192         when converting to ms.
14193
14194 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14195
14196         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
14197         EOPNOTSUPP errors with ENOTTY.
14198         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
14199         EOPNOTSUPP errors with ENOTTY.
14200
14201 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
14202
14203         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
14204         Add strcasecmp_l-ssse3.
14205         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
14206         strcasecmp.
14207         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
14208         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
14209         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
14210
14211 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
14212
14213         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
14214
14215         * string/Makefile (strop-tests): Add strcasecmp.
14216         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
14217         strcasecmp_l-nonascii.
14218         (gen-as-const-headers): Add locale-defines.sym.
14219         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
14220         * sysdeps/x86_64/strcasecmp.S: New file.
14221         * sysdeps/x86_64/strcasecmp_l.S: New file.
14222         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
14223         * sysdeps/x86_64/locale-defines.sym: New file.
14224         * string/test-strcasecmp.c: New file.
14225
14226         * string/test-strcasestr.c: Test both ends of the range of characters.
14227         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
14228
14229 2010-07-29  Roland McGrath  <roland@redhat.com>
14230
14231         [BZ #11856]
14232         * manual/locale.texi (Yes-or-No Questions): Fix example code.
14233
14234 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
14235
14236         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
14237         for ld.so.
14238
14239 2010-07-27  Andreas Schwab  <schwab@redhat.com>
14240
14241         * manual/memory.texi (Malloc Tunable Parameters): Document
14242         M_PERTURB.
14243
14244 2010-07-26  Roland McGrath  <roland@redhat.com>
14245
14246         [BZ #11840]
14247         * configure.in (-fgnu89-inline check): Set and substitute
14248         gnu89_inline, not libc_cv_gnu89_inline.
14249         * configure: Regenerated.
14250         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
14251
14252 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
14253
14254         * string/test-strnlen.c: New file.
14255         * string/Makefile (strop-tests): Add strnlen.
14256         * string/tester.c (test_strnlen): Add a few more test cases.
14257         * string/tst-strlen.c: Better error reporting.
14258
14259         * sysdeps/x86_64/strnlen.S: New file.
14260
14261 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
14262
14263         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
14264         lower-latency instructions.
14265
14266 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
14267
14268         * string/test-strcasestr.c: New file.
14269         * string/test-strstr.c: New file.
14270         * string/Makefile (strop-tests): Add strstr and strcasestr.
14271         * string/str-two-way.h: Don't undefine MAX.
14272         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
14273
14274 2010-07-21  Andreas Schwab  <schwab@redhat.com>
14275
14276         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14277         strcasestr-nonascii.
14278         (CFLAGS-strcasestr-nonascii.c): Define.
14279         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
14280         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
14281         Remove unused attribute.
14282
14283 2010-07-20  Roland McGrath  <roland@redhat.com>
14284
14285         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
14286         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
14287         ld.so.cache was broken.  With it, there is no way to disable dsocaps
14288         like LD_HWCAP_MASK can disable hwcaps.
14289
14290 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14291
14292         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
14293
14294 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
14295
14296         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
14297         call in strcasestr.
14298         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
14299         __strcasestr_sse42_nonascii.
14300         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
14301         strcasestr-nonascii.c.
14302         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
14303
14304 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
14305
14306         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
14307         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
14308         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
14309         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
14310
14311 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
14312
14313         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
14314         fcntl.
14315
14316 2010-07-06  Andreas Schwab  <schwab@redhat.com>
14317
14318         [BZ #11577]
14319         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
14320         dl_signal_cerror.
14321
14322 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
14323
14324         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
14325         _PC_PIPE_BUF using F_GETPIPE_SZ.
14326
14327 2010-07-05  Roland McGrath  <roland@redhat.com>
14328
14329         * manual/arith.texi (Rounding Functions): Fix rint description
14330         implicit in round description.
14331
14332 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
14333
14334         * elf/Makefile: Fix linking for a few tests to make recent linker
14335         happy.
14336
14337 2010-06-30  Andreas Schwab  <schwab@redhat.com>
14338
14339         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
14340         $(common-objpfx)libc_nonshared.a.
14341
14342 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
14343
14344         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
14345         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
14346         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14347         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14348         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
14349         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
14350         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14351         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
14353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
14354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
14355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
14356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
14357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
14358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
14359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
14360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
14361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
14362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
14363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
14364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
14365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
14366         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
14367         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
14368         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
14369         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
14370         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
14371         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
14372         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
14373         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
14374         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
14375         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
14376         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
14377         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
14378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
14379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
14380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
14381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
14382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
14383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
14384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
14385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
14386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
14387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
14388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
14389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
14390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
14391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
14392
14393 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14394
14395         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
14396         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
14397         * string/memmove.c (memmove): Renamed to ...
14398         (MEMMOVE): ...this.  Default to memmove.
14399         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
14400         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
14401         (END_CHK): Define.
14402         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14403         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
14404         mempcpy-ssse3-back memmove-ssse3-back.
14405         * sysdeps/x86_64/multiarch/bcopy.S: New file .
14406         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
14407         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
14408         * sysdeps/x86_64/multiarch/memcpy.S: New file.
14409         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
14410         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
14411         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
14412         * sysdeps/x86_64/multiarch/memmove.c: New file.
14413         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
14414         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
14415         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
14416         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
14417         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
14418         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
14419         Define.
14420         (index_Fast_Copy_Backward): Define.
14421         (HAS_ARCH_FEATURE): Define.
14422         (HAS_FAST_REP_STRING): Define.
14423         (HAS_FAST_COPY_BACKWARD): Define.
14424
14425 2010-06-21  Andreas Schwab  <schwab@redhat.com>
14426
14427         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14428         Restore proper fallback handling.
14429
14430 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
14431
14432         [BZ #11701]
14433         * posix/group_member.c (__group_member): Correct checking loop.
14434
14435         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
14436         OOM in getpwuid_r correctly.  Return error number when the caller
14437         should return, otherwise -1.
14438         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
14439         call returning > 0 value.
14440         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
14441
14442 2010-06-07  Andreas Schwab  <schwab@redhat.com>
14443
14444         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
14445         libc_nonshared.a from targets in modules-names.
14446
14447 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
14448
14449         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
14450         requires it.
14451
14452 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
14453
14454         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
14455         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
14456         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
14457         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
14458
14459 2010-06-02  Andreas Schwab  <schwab@redhat.com>
14460
14461         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
14462
14463 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
14464
14465         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
14466         and F_GETPIPE_SZ.
14467         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14468         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14469         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14470         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14471         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14472         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
14473
14474 2010-06-14  Roland McGrath  <roland@redhat.com>
14475
14476         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
14477
14478 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
14479
14480         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
14481         __REDIRECT followed by __THROW.
14482         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
14483         * posix/getopt.h (getopt): Likewise.
14484
14485 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
14486
14487         * hurd/lookup-at.c (__file_name_lookup_at): Accept
14488         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
14489         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
14490         in AT_FLAGS.
14491         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
14492         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
14493
14494 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
14495
14496         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
14497
14498 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14499
14500         [BZ #11640]
14501         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14502         Properly check family and model.
14503
14504 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
14505
14506         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
14507
14508 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
14509
14510         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
14511
14512 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
14513
14514         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
14515         symbol reference.
14516
14517 2010-05-19  Andreas Schwab  <schwab@redhat.com>
14518
14519         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
14520         symbol reference.
14521
14522 2010-05-21  Andreas Schwab  <schwab@redhat.com>
14523
14524         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
14525         and internal_recvmmsg.
14526         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
14527         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
14528         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
14529         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
14530
14531         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
14532         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
14533         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
14534
14535 2010-05-20  Andreas Schwab  <schwab@redhat.com>
14536
14537         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
14538
14539 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
14540
14541         POWER7 optimizations.
14542         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
14543         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
14544
14545 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
14546
14547         * version.h: Update for 2.13 development version.
14548
14549 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
14550
14551         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
14552         exceptions.  Return 0.
14553
14554 2010-05-07  Roland McGrath  <roland@redhat.com>
14555
14556         * elf/ldconfig.c (main): Add a const.
14557
14558 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
14559
14560         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
14561         (args_options): Add no-idn option.
14562         (ahosts_keys_int): Add idn_flags to ai_flags.
14563         (parse_option): Handle 'i' option to clear idn_flags.
14564
14565         * malloc/malloc.c (_int_free): Possible race in the most recently
14566         added check.  Only act on the data if no current modification
14567         happened.
14568
14569 See ChangeLog.17 for earlier changes.