tst-longjmp_chk3: new test for checking sigaltstack edge cases
[jlayton/glibc.git] / ChangeLog
1 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
2
3         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
4         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
5         * debug/tst-longjmp_chk3.c: New file.
6
7 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8
9         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
10         (test_main): Replace code with set_fortify_handler call.
11         * debug/test-strcpy_chk.c: Likewise.
12         * debug/tst-chk1.c: Likewise.
13         * debug/tst-longjmp_chk.c: Likewise.
14         * test-skeleton.c: Include fcntl.h & paths.h
15         (set_fortify_handler): Define.
16
17 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
18
19         * debug/tst-longjmp_chk.c: Add header comment and include
20         ../test-skeleton.c.
21         (do_test): Mark static.
22         (TEST_FUNCTION): Define.
23
24 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
25
26         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
27         (IP_PMTUDISC_INTERFACE): Likewise.
28         (IP_MULTICAST_IF): Likewise.
29         (IP_MULTICAST_TTL): Likewise.
30         (IP_MULTICAST_LOOP): Likewise.
31         (IP_ADD_MEMBERSHIP): Likewise.
32         (IP_DROP_MEMBERSHIP): Likewise.
33         (IP_UNBLOCK_SOURCE): Likewise.
34         (IP_BLOCK_SOURCE): Likewise.
35         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
36         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
37         (IP_MSFILTER): Likewise.
38         (MCAST_JOIN_GROUP): Likewise.
39         (MCAST_BLOCK_SOURCE): Likewise.
40         (MCAST_UNBLOCK_SOURCE): Likewise.
41         (MCAST_LEAVE_GROUP): Likewise.
42         (MCAST_JOIN_SOURCE_GROUP): Likewise.
43         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
44         (MCAST_MSFILTER): Likewise.
45         (IP_MULTICAST_ALL): Likewise.
46         (IP_UNICAST_IF): Likewise.
47
48 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
49
50         * timezone/Makefile: Delete $(have-ksh) check.
51         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
52         * timezone/tzselect.ksh: Add +x mode bits.
53
54 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
55
56         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
57         (ANON_INODE_FS_MAGIC): Likewise.
58         (BDEVFS_MAGIC): Likewise.
59         (BINFMTFS_MAGIC): Likewise.
60         (BTRFS_TEST_MAGIC): Likewise.
61         (CRAMFS_MAGIC_WEND): Likewise.
62         (DEBUGFS_MAGIC): Likewise.
63         (ECRYPTFS_SUPER_MAGIC): Likewise.
64         (EXT3_SUPER_MAGIC): Likewise.
65         (EXT4_SUPER_MAGIC): Likewise.
66         (FUTEXFS_SUPER_MAGIC): Likewise.
67         (HOSTFS_SUPER_MAGIC): Likewise.
68         (HUGETLBFS_MAGIC): Likewise.
69         (MINIX3_SUPER_MAGIC): Likewise.
70         (MTD_INODE_FS_MAGIC): Likewise.
71         (NILFS_SUPER_MAGIC): Likewise.
72         (OPENPROM_SUPER_MAGIC): Likewise.
73         (PIPEFS_MAGIC): Likewise.
74         (PSTOREFS_MAGIC): Likewise.
75         (QNX6_SUPER_MAGIC): Likewise.
76         (RAMFS_MAGIC): Likewise.
77         (REISERFS_SUPER_MAGIC_STRING): Likewise.
78         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
79         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
80         (SECURITYFS_MAGIC): Likewise.
81         (SELINUX_MAGIC): Likewise.
82         (SMACK_MAGIC): Likewise.
83         (SOCKFS_MAGIC): Likewise.
84         (SQUASHFS_MAGIC): Likewise.
85         (STACK_END_MAGIC): Likewise.
86         (TMPFS_MAGIC): Likewise.
87         (USBDEVICE_SUPER_MAGIC): Likewise.
88         (V9FS_MAGIC): Likewise.
89         (XENFS_SUPER_MAGIC): Likewise.
90         (CRAMFS_MAGIC): Fix typo in comment.
91         (EXT2_SUPER_MAGIC): Update comment.
92         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
93
94 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
95
96         * sysdeps/arm: Move directory from ports/sysdeps/arm.
97         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
98         * sysdeps/unix/sysv/linux/arm: Move directory from
99         ports/sysdeps/unix/sysv/linux/arm.
100         * README: Update listing for arm-*-linux-gnueabi.
101
102         * README: Remove mention of am33.
103
104 2014-02-07  Roland McGrath  <roland@hack.frob.com>
105
106         * bits/sigset.h (__sigemptyset): Use a statement expression rather
107         than the comma operator, to avoid "rhs of comma has no effect"
108         compiler warnings.
109         (__sigfillset, __sigandset, __sigorset): Likewise.
110         * include/signal.h (__sigemptyset): Likewise.
111         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
112
113 2014-02-07  Allan McRae  <allan@archlinux.org>
114
115         * version.h (RELEASE): Set to "development".
116         (VERSION): Set to "2.19.90"
117         * NEWS: Add 2.20 section.
118
119 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
120
121         [BZ #16529]
122         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
123
124 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
125
126         * manual/contrib.texi: Update entry for Carlos O'Donell,
127         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
128
129 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
130
131         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
132
133         * sysdeps/unix/sysv/linux/kernel-features.h
134         [__LINUX_KERNEL_VERSION >= 0x020621]
135         (__ASSUME_PROC_PID_TASK_COMM): Define.
136
137 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
138
139         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
140         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
141         Leonard and Allan McRae.
142
143 2014-02-04  David S. Miller  <davem@davemloft.net>
144
145         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
146         32-bit.
147
148 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
149
150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist: New
151         file
152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
153         New file
154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist: New
155         file.
156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist: New
157         file.
158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
159         New file.
160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist: New
161         file.
162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist: New
163         file.
164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
165         New file.
166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
167         New file.
168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
169         New file.
170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
171         New file.
172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
173         New file.
174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
175         New file.
176
177 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
178
179         * nptl/shlib-versions: Change powerpc*le start to 2.17.
180         * shlib-versions: Likewise.
181
182 2014-02-04  Roland McGrath  <roland@hack.frob.com>
183             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
184
185         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
186         (abilist-pattern): New variable, set to %-le.abilist.
187
188         * Makerules (abilist-pattern): New variable.
189         (vpath): Use $(abilist-pattern) in place of %.abilist.
190         (check-abi-% pattern rule): Likewise.
191         (check-abi, update-abi): Likewise.
192
193 2014-02-04  Eric Wong  <normalperson@yhbt.net>
194
195         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
196
197 2014-02-04  Eric Wong  <normalperson@yhbt.net>
198
199         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
200
201 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
202
203         * manual/startup.texi: Add next, previous, and top entries for
204         the `Program Arguments' and `Environment Variables' nodes.
205
206 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
207
208         * manual/macros.texi: Add comments before MTASC-safety macros.
209
210         * manual/users.texi: Document MTASC-safety properties.
211
212         * manual/threads.texi (pthread_key_create, pthread_key_delete,
213         pthread_getspecific, pthread_setspecific): Format with
214         @deftypefun, and add @safety note.
215         * manual/signal.texi: Move comments that analyze the above
216         functions to their home place.
217
218 2014-02-03  Allan McRae  <allan@archlinux.org>
219
220         * po/sl.po: Update Slovenian translation from translation project.
221
222 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
223
224         * manual/time.texi (timegm): Add missing blank after @c.
225         Reported by Joseph Myers <joseph@codesourcery.com>.
226
227 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
228
229         * manual/check-safety.sh: New.
230         * manual/Makefile ($(objpfx)stamp-summary): Run it.
231
232         * manual/terminal.texi: Document MTASC-safety properties.
233
234         * manual/filesys.texi: Document MTASC-safety properties.
235
236         * manual/errno.texi: Document MTASC-safety properties.
237
238         * manual/intro.texi: Document safety identifiers and
239         conditionals.
240
241         * manual/string.texi (wcstok): Fix prototype.
242         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
243
244         * manual/time.texi: Document MTASC-safety properties.
245
246         * manual/string.texi: Document MTASC-safety properties.
247
248         * manual/threads.texi: Document MTASC-safety properties.
249
250         * manual/stdio.texi: Document MTASC-safety properties.
251
252         * manual/syslog.texi: Document MTASC-safety properties.
253
254         * manual/sysinfo.texi: Document MTASC-safety properties.
255
256         * manual/startup.texi: Document MTASC-safety properties.
257
258         * manual/socket.texi: Document MTASC-safety properties.
259
260         * manual/signal.texi: Document MTASC-safety properties.
261
262 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
263
264         * manual/setjmp.texi: Document MTASC-safety properties.
265
266         * manual/search.texi: Document MTASC-safety properties.
267
268         * manual/resource.texi: Document MTASC-safety properties.
269
270         * manual/process.texi: Document MTASC-safety properties.
271
272         * manual/platform.texi: Document MTASC-safety properties.
273
274         * manual/pipe.texi: Document MTASC-safety properties.
275
276         * manual/pattern.texi: Document MTASC-safety properties.
277
278         * manual/message.texi: Document MTASC-safety properties.
279
280         [BZ #12751]
281         * manual/memory.texi: Document MTASC-safety properties.
282
283         * manual/math.texi: Document MTASC-safety properties.
284
285         * manual/locale.texi: Document MTASC-safety properties.
286
287         * manual/llio.texi: Document MTASC-safety properties.
288
289         * manual/libdl.texi: New.
290
291         * manual/lang.texi: Document MTASC-safety properties.
292
293         * manual/job.texi: Document MTASC-safety properties.
294
295         * manual/getopt.texi: Document MTASC-safety properties.
296
297         * manual/ctype.texi: Document MTASC-safety properties.
298
299 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
300
301         [BZ #16046]
302         * csu/libc-tls.c (static_map): Remove variable.
303         (__libc_setup_tls): Use main executable's link map for TLS data.
304         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
305         casing for LM_ID_BASE and GL(dl_nns).
306         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
307         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
308         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
309         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
310         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
311         member.
312         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
313         l_phnum members.
314
315 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
316
317         * manual/debug.texi: Document MTASC-safety properties.
318
319 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
320
321         [BZ #16510]
322         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
323         of __x86_64__ when disabling x87 inline functions.
324
325 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
326
327         * manual/charset.texi: Document MTASC-safety properties.
328
329         * manual/crypt.texi: Document MTASC-safety properties.
330
331         * manual/conf.texi: Document MTASC-safety properties.
332
333         * manual/arith.texi: Document MTASC-safety properties.
334
335         * manual/argp.texi: Document MTASC-safety properties.
336
337         * manual/macros.texi: Introduce macros to document multi
338         thread, asynchronous signal and asynchronous cancellation
339         safety properties.
340         * manual/intro.texi: Introduce the properties themselves.
341
342 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
343
344         * sysdeps/sh/sh4/Makefile: New file.
345
346 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
347
348         * math/gen-libm-test.pl ($srcdir): New variable.
349         ($auto_input): Use it.
350
351 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
352
353         [BZ #16506]
354         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
355         access beyond array bounds when parsing netgroups file.
356
357         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
358         the old buffer before realloc.
359
360 2014-01-27  Allan McRae  <allan@archlinux.org>
361
362         * po/fr.po: Update French translation from translation project.
363
364 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
365
366         * sysdeps/sh/libm-test-ulps: Regenerate.
367
368 2014-01-24  David S. Miller  <davem@davemloft.net>
369
370         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
371
372 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
373
374         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
375         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
376
377 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
378
379         [BZ #16474]
380         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
381         string pointers after reallocation.
382
383 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
384
385         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
386         __SH4A__ instead of __SH_FPU_ANY__.
387
388 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
389
390         * sysdeps/sh/fpu_control.h: New file.
391         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
392         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
393         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
394         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
395         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
396         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
397         * sysdeps/sh/sys/ucontext.h: Remove.
398         * sysdeps/sh/sys: Remove directory.
399
400 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
401
402         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
403         s390/sys/ucontext.h.
404         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
405         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
406
407 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
408
409         [BZ #15605]
410         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
411
412 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
413
414         [BZ#16431]
415         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
416         Adjust the vDSO correctly for internal calls.
417         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
418
419 2014-01-20  Allan McRae  <allan@archlinux.org>
420
421         * po/ca.po: Update Catalan translation from translation project.
422
423 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
424
425         * sysdeps/s390/sotruss-lib.c: New file.
426
427 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
428
429         [BZ#16430]
430         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
431         (__GI___gettimeofday): Alias for a different internal symbol to avoid
432         local calls issues by not having a PLT stub required for IFUNC calls.
433         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
434
435 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
436
437         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
438         * math/test-fpucw-static.c: Likewise.
439
440 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
441
442         [BZ #16453]
443         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
444
445 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
446
447         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
448         implementation for powerpc.
449
450 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
451
452         [BZ #14782]
453         * sysdeps/posix/system.c (__libc_system): Do not enable
454         asynchronous cancellation.
455
456 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
457
458         [BZ #16427]
459         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
460         handling only for numbers special also in the IEEE case.
461
462 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
463
464         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
465
466 2014-01-11  Allan McRae  <allan@archlinux.org>
467
468         * po/bg.po: Update Bulgarian translation from translation project.
469
470         * po/de.po: Update German translation from translation project.
471
472 2014-01-10  Roland McGrath  <roland@hack.frob.com>
473
474         * sysdeps/generic/gcc-compat.h: New file.
475
476 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
477
478         * benchtests/asin-inputs: Correct slow inputs.
479         * benchtests/acos-inputs: Likewise.
480
481 2014-01-10  Allan McRae  <allan@archlinux.org>
482
483         * po:sv.po: Update Swedish translation from translation project.
484
485         * po/vi.po: Update Vietnamese translation from translation project.
486
487         * po/eo.po: Update Esperanto translation from translation project.
488
489         * po/cs.po: Update Czech translation from translation project.
490
491         * po/nl.po: Update Dutch translation from translation project.
492
493         * po/pl.po: Update Polish translation from translation project.
494
495         * po/ru.po: Update Russian translation from translation project.
496
497         * po/uk.po: Update Ukrainian translation from translation project.
498
499 2014-01-08  Brooks Moses  <bmoses@google.com>
500
501         * elf/dl-load.c: Fix comment typo.
502
503 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
504
505         * po/header.pot: Rename to...
506         * po/pot.header: ... this.
507         * po/Makefile: Use pot.header.
508
509 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
510             Maxim Kuvyrkov  <maxim@kugelworks.com>
511
512         [BZ #16394]
513         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
514         SRC and DEST against LEN.
515
516 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
517
518         [BZ #16414]
519         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
520         implementation.
521         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
522
523 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
524
525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
526
527 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
528
529         [BZ #16408]
530         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
531         for large positive arguments.
532
533 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
534
535         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
536
537         * math/auto-libm-test-in: Mark various tests with
538         xfail-rounding:ldbl-128ibm.
539         * math/auto-libm-test-out: Regenerated.
540
541         [BZ #16407]
542         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
543         Increase overflow threshold.
544
545 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
546
547         [BZ #14286]
548         * stdio-common/vfprintf.c: Check for integer overflow.
549
550 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
551
552         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
553         the first argument and return value of __tls_get_addr_internal.
554
555 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
556
557         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
558         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
559
560 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
561
562         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
563         * sysdeps/s390/rtld-global-offsets.sym: New file.
564         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
565         GLIBC_2.19 symbol.
566         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
567         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
568         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
569         ... this.
570         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
571         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
572         ... this.
573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
574         Regenerate.
575         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
576         Regenerate.
577         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
578         halfs of GPRs for high_gprs contexts.
579         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
580         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
581         field.
582         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
583         uc_flags field.
584         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
585         64 bit versions:
586         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
587         for high GPRs (uc_high_gprs) and for future extensions
588         (__reserved).
589         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
590         for future extensions (__reserved).
591         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
592         64 bit versions:
593         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
594         SC_HIGHGPRS offset definition.
595         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
596         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
597
598 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
599
600         * Versions.def: Add GLIBC_2.19 for libpthread.
601         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
602         siglongjmp for libpthread with GLIBC_2.19 symver.
603         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
604         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
605         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
606         * sysdeps/s390/__longjmp.c: New file.
607         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
608         * sysdeps/s390/longjmp.c: New file.
609         * sysdeps/s390/setjmp.S: New file.
610         * sysdeps/s390/sigjmp.S: New file.
611         * sysdeps/s390/v1-longjmp.c: New file.
612         * sysdeps/s390/v1-setjmp.h: New file.
613         * sysdeps/s390/v1-sigjmp.c: New file.
614         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
615         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
616         GLIBC_2.19 version.
617         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
618         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
619         versioned symbols for ____longjmp_chk.
620         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
621         Likewise.
622         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
623         Regenerate.
624         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
625         Regenerate.
626         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
627         Regenerate.
628         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
629         Regenerate.
630         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
631         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
632         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
633         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
634         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
635         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
636         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
637         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
638         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
639         * sysdeps/s390/rtld-__longjmp.c: New file.
640         * sysdeps/s390/rtld-setjmp.S: New file.
641
642 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
643
644         [BZ #16400]
645         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
646         Return -__logl (x) for small positive arguments without evaluating
647         a polynomial.
648
649 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
650
651         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
652         Rename to ...
653         (__ptrace_peeksiginfo_args): ... this.
654         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
655         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
656         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
657
658 2014-01-06  Allan McRae  <allan@archlinux.org>
659
660         * inet/netinet/in.h: Fix typo in comment.
661
662 2014-01-05  Andreas Jaeger  <aj@suse.de>
663
664         * sysdeps/i386/fpu/libm-test-ulps: Update.
665
666 2014-01-05  Allan McRae  <allan@archlinux.org>
667
668         * po/libc.pot: Regenerated.
669
670         * malloc/memusagestat.c: Fix gettext call formatting.
671
672 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
673
674         * nscd/nscd.c: Improve usage() output.
675
676 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
677
678         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
679         * sysdeps/unix/sysv/linux/configure: Regenerated.
680         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
681         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
682
683 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
684
685         [BZ #16390]
686         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
687         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
688
689 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
690
691         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
692         extra tokens at end of #undef directive.
693         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
694         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
695         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
696
697 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
698
699         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
700
701         * math/auto-libm-test-in: Mark various tests with
702         xfail-rounding:ldbl-128ibm.
703         * math/auto-libm-test-out: Regenerated.
704
705 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
706
707         [BZ #16386]
708         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
709         numbers with subnormal high part when calculating exponent.
710
711         [BZ #16385]
712         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
713         fabs.
714
715         [BZ #16384]
716         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
717         M_LN2l.
718         (__ieee754_acoshl): Use __log1pl not __log1p.
719
720 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
721
722         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
723         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
724         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
725         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
726         Convert to GNU style.
727         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
728         mem2mem_check, mem2chunk_check, top_check, realloc_check,
729         memalign_check, __malloc_set_state): Likewise.
730         * malloc/mallocbug.c (main): Likewise.
731         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
732         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
733         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
734         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
735         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
736         * malloc/malloc.h: Likewise.
737         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
738         memalignhook, reallochook, mabort): Likewise.
739         * malloc/mcheck.h: Likewise.
740         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
741         mmap64, mremap, munmap, dest): Likewise.
742         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
743         * malloc/morecore.c (__default_morecore): Likewise.
744         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
745         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
746         _obstack_allocated_p, obstack_free, _obstack_memory_used,
747         print_and_abort): Likewise.
748         * malloc/obstack.h: Likewise.
749         * malloc/set-freeres.c (__libc_freeres): Likewise.
750         * malloc/tst-mallocstate.c (main): Likewise.
751         * malloc/tst-mtrace.c (main): Likewise.
752         * malloc/tst-realloc.c (do_test): Likewise.
753
754 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
755
756         [BZ #16366]
757         * nscd/netgroupcache.c (do_notfound): New function.
758         (addgetnetgrentX): Use it.
759
760         [BZ # 16365]
761         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
762         NSS_STATUS_NOTFOUND.
763
764 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
765
766         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
768
769 2014-01-01  Allan McRae  <allan@archlinux.org>
770
771         * scripts/update-copyrights: Update configure input file suffix.
772
773         * NEWS: Update copyright year.
774         * catgets/gencat.c: Likewise.
775         * csu/version.c: Likewise.
776         * debug/catchsegv.sh: Likewise.
777         * debug/pcprofiledump.c: Likewise.
778         * debug/xtrace.sh: Likewise.
779         * elf/ldconfig.c: Likewise.
780         * elf/ldd.bash.in: Likewise.
781         * elf/pldd.c: Likewise.
782         * elf/sotruss.ksh: Likewise.
783         * elf/sprof.c: Likewise.
784         * iconv/iconv_prog.c: Likewise.
785         * iconv/iconvconfig.c: Likewise.
786         * locale/programs/locale.c: Likewise.
787         * locale/programs/localedef.c: Likewise.
788         * login/programs/pt_chown.c: Likewise.
789         * malloc/memusage.sh: Likewise.
790         * malloc/memusagestat.c: Likewise.
791         * malloc/mtrace.pl: Likewise.
792         * manual/libc.texinfo: Likewise.
793         * nscd/nscd.c: Likewise.
794         * nss/getent.c: Likewise.
795         * nss/makedb.c: Likewise.
796         * posix/getconf.c: Likewise.
797         * scripts/test-installation.pl: Likewise.
798
799         * All files with FSF copyright notices: Update copyright dates
800         using scripts/update-copyrights.
801         * intl/plural.c: Regenerated.
802         * locale/programs/charmap-kw.h: Likewise.
803         * locale/programs/locfile-kw.h: Likewise.
804
805 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
806
807         * sysdeps/unix/sysv/linux/configure: Regenerated.
808         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
809         the linux/fanotify.h header.
810         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
811         HAVE_LINUX_FANOTIFY_H is defined.
812
813 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
814
815         * benchtests/cos-inputs: New inputs.
816         * benchtests/sin-inputs: Likewise.
817
818         * benchtests/atan-inputs: New inputs. Fix name of multiple
819         precision fallback inputs.
820
821         * benchtests/atanh-inputs: New inputs.
822         * benchtests/tanh-inputs: Likewise.
823
824         * benchtests/acosh-inputs: New inputs.
825         * benchtests/asinh-inputs: Likewise.
826
827         * benchtests/cosh-inputs: New inputs.
828         * benchtests/sinh-inputs: Likewise.
829
830         * benchtests/acos-inputs: Add more inputs.
831         * benchtests/asin-inputs: Likewise.
832
833 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
834
835         [BZ #16375]
836         * manual/arith.texi: Fix spelling.
837         * manual/charset.texi: Likewise.
838         * manual/errno.texi: Likewise.
839         * manual/filesys.texi: Likewise.
840         * manual/lang.texi: Likewise.
841         * manual/llio.texi: Likewise.
842         * manual/locale.texi: Likewise.
843         * manual/message.texi: Likewise.
844         * manual/resource.texi: Likewise.
845         * manual/search.texi: Likewise.
846         * manual/setjmp.texi: Likewise.
847         * manual/stdio.texi: Likewise.
848         * manual/string.texi: Likewise.
849         * manual/sysinfo.texi: Likewise.
850         * manual/time.texi: Likewise.
851
852 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
853
854         * po/sl.po: New file.
855
856 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
857
858         * .gitignore: Add core/.gdbinit/.gdb_history.
859
860 2013-12-27  Allan McRae  <allan@archlinux.org>
861
862         [BZ #16369]
863         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
864         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
865
866 2013-12-24  Brooks Moses  <bmoses@google.com>
867
868         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
869         all compilers that claim C++98 compliance, not just GCC.
870         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
871         Likewise.
872
873 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
874
875         * NEWS: Restore accidentally deleted bug-fix entries.
876
877 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
878             Ondřej Bílka  <neleai@seznam.cz>
879
880         [BZ #15073]
881         * malloc/malloc.c (_int_free): Perform sanity check only if we
882         have_lock.
883
884 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
885
886         [BZ #12986]
887         * manual/stdio.texi (String Input Conversions): Clarify that character
888         classes are not supported.
889
890 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
891
892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
893
894 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
895
896         [BZ #16337]
897         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
898         Calculate results for small negative arguments directly rather
899         than using reflection formula with special underflow handling.
900
901         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
902         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
903         sysdeps/unix/bsd/bsd4.4/syscalls.list.
904         (fchflags): Likewise.
905         (revoke): Likewise.
906         (setlogin): Likewise.
907         (sigaltstack): Likewise.
908         (wait4): Likewise.
909         (sigblock): Remove.
910         (sigsetmask): Likewise.
911         (wait3): Likewise.
912         (waitpid): Likewise.
913         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
914         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
915         file.
916         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
917         * sysdeps/unix/bsd/Makefile: ... here.
918         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
919         * sysdeps/unix/bsd/Versions: ... here.
920         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
921         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
922         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
923         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
924         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
925         * sysdeps/unix/bsd/sigblock.c: ... here.
926         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
927         * sysdeps/unix/bsd/sigsetmask.c: ... here.
928         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
929         * sysdeps/unix/bsd/sigvec.c: ... here.
930         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
931         * sysdeps/unix/bsd/tcdrain.c: ... here.
932         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
933         * sysdeps/unix/bsd/tcgetattr.c: ... here.
934         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
935         * sysdeps/unix/bsd/tcsetattr.c: ... here.
936         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
937         * sysdeps/unix/bsd/wait.c: ... here.
938         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
939         * sysdeps/unix/bsd/wait3.c: ... here.
940         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
941         * sysdeps/unix/bsd/waitpid.c: ... here.
942
943 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
944
945         [BZ #16356]
946         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
947         round-to-nearest for [!USE_AS_EXPM1L].
948         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
949         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
950         more tests of exp and exp10.  Expect some exp10 tests to miss
951         exceptions or fail in directed rounding modes.
952         * math/auto-libm-test-out: Regenerated.
953         * math/libm-test.inc (exp10_tonearest_test_data): New array.
954         (exp10_test_tonearest): New function.
955         (exp10_towardzero_test_data): New array.
956         (exp10_test_towardzero): New function.
957         (exp10_downward_test_data): New array.
958         (exp10_test_downward): New function.
959         (exp10_upward_test_data): New array.
960         (exp10_test_upward): New function.
961         (main): Call the new functions.
962         * sysdeps/i386/fpu/libm-test-ulps: Update.
963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
964
965 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
966
967         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
968         asinh, atan, atan2, atanh, cbrt, cos and cosh.
969         * math/auto-libm-test-out: Regenerated.
970         * math/libm-test.inc (acosh_test_data): Add more tests.
971         (atanh_test_data): Likewise.
972         (ceil_test_data): Likewise.
973         (copysign_test_data): Likewise.
974         * sysdeps/i386/fpu/libm-test-ulps: Update.
975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
976
977         * timezone/checktab.awk: Update from tzcode 2013i.
978         * timezone/private.h: Likewise.
979         * timezone/scheck.c: Likewise.
980         * timezone/tzfile.h: Likewise.
981         * timezone/tzselect.ksh: Likewise.
982         * timezone/zdump.c: Likewise.
983         * timezone/zic.c: Likewise.
984
985         * math/auto-libm-test-in: Add tests of cpow.
986         * math/auto-libm-test-out: Regenerated.
987         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
988         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
989         mpc_cc_c.
990         (func_calc_desc): Add mpc_cc_c union field.
991         (test_functions): Add cpow.
992         (special_fill_2pi): New function.
993         (special_real_inputs): Add 2pi.
994         (calc_generic_results): Handle mpc_cc_c.
995         * sysdeps/i386/fpu/libm-test-ulps: Update.
996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
997
998         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
999         csqrt, ctan and ctanh.
1000         * math/auto-libm-test-out: Regenerated.
1001         * math/libm-test.inc (TEST_COND_x86_64): New macro.
1002         (TEST_COND_x86): Likewise.
1003         (ccos_test_data): Use AUTO_TESTS_c_c.
1004         (ccosh_test_data): Likewise.
1005         (cexp_test_data): Likewise.
1006         (clog_test_data): Likewise.
1007         (csqrt_test_data): Likewise.
1008         (ctan_test_data): Likewise.
1009         (ctan_tonearest_test_data): Likewise.
1010         (ctan_towardzero_test_data): Likewise.
1011         (ctan_downward_test_data): Likewise.
1012         (ctan_upward_test_data): Likewise.
1013         (ctanh_test_data): Likewise.
1014         (ctanh_tonearest_test_data): Likewise.
1015         (ctanh_towardzero_test_data): Likewise.
1016         (ctanh_downward_test_data): Likewise.
1017         (ctanh_upward_test_data): Likewise.
1018         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1019         mpc_c_c.
1020         (func_calc_desc): Add mpc_c_c union field.
1021         (FUNC_mpc_c_c): New macro.
1022         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
1023         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
1024         ctanh.
1025         (special_fill_min_subnorm_p120): New function.
1026         (special_real_inputs): Add min_subnorm_p120.
1027         (calc_generic_results): Handle mpc_c_c.
1028         * sysdeps/i386/fpu/libm-test-ulps: Update.
1029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1030
1031 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1032
1033         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
1034         do_sin_slow): New functions.
1035         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
1036         cslow2, csloww1, csloww2): Use the new functions.
1037
1038         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
1039         Use M to change sign of result instead of X.  Assume X is
1040         positive.
1041         (csloww1): Likewise.
1042         (__sin): Adjust.
1043         (__cos): Adjust.
1044
1045         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
1046         arguments A and DA.
1047         (__sin): Adjust.
1048         (__cos): Likewise.
1049
1050         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
1051         (__cos): Likewise.
1052         (sloww1): Don't adjust sign of DX.
1053         (csloww1): Likewise.
1054         (sloww2): Use X directly and don't adjust sign of DX.
1055         (csloww2): Likewise.
1056
1057 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
1058
1059         * math/auto-libm-test-in: Add tests of cabs and carg.
1060         * math/auto-libm-test-out: Regenerated.
1061         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
1062         (carg_test_data): Likewise.
1063         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1064         mpc_c_f.
1065         (func_calc_desc): Add mpc_c_f union field.
1066         (test_functions): Add cabs and carg.
1067         (calc_generic_results): Handle mpc_c_f.
1068
1069         * sysdeps/powerpc/powerpc32/libgcc-compat.S
1070         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
1071         as a macro and a compat symbol.
1072         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
1073         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
1074         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
1075         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
1076         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
1077         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
1078         not use .hidden.
1079         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
1080         Likewise.
1081         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
1082         Likewise.
1083         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
1084         Likewise.
1085         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
1086         Likewise.
1087         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
1088         Likewise.
1089         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
1090         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
1091         from GLIBC_2.3.2.
1092
1093 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1094
1095         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1096
1097 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
1098
1099         * manual/texinfo.tex: Update to version 2013-11-26.10 with
1100         trailing whitespace removed.
1101         * scripts/config.guess: Update to version 2013-11-29.
1102         * scripts/config.sub: Update to version 2013-10-01.
1103
1104         * math/auto-libm-test-in: Add tests of sincos.
1105         * math/auto-libm-test-out: Regenerated.
1106         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
1107         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1108         mpfr_f_11.
1109         (func_calc_desc): Add mpfr_f_11 union field.
1110         (test_functions): Add sincos.
1111         (calc_generic_results): Handle mpfr_f_11.
1112         * sysdeps/i386/fpu/libm-test-ulps: Update.
1113         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1114
1115 2013-12-19  Andreas Schwab  <schwab@suse.de>
1116
1117         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
1118         CALL_MCOUNT.
1119         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
1120         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
1121         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
1122
1123 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
1124
1125         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
1126         * sysdeps/i386/fpu/libm-test-ulps: Update.
1127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1128
1129         [BZ #16293]
1130         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
1131         round-to-nearest mode when using frndint.
1132         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
1133         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1134         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
1135         Likewise.
1136         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
1137         sinh test to fail.
1138         * math/auto-libm-test-out: Regenerated.
1139         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
1140         (TEST_COND_x86): Likewise.
1141         (expm1_tonearest_test_data): New array.
1142         (expm1_test_tonearest): New function.
1143         (expm1_towardzero_test_data): New array.
1144         (expm1_test_towardzero): New function.
1145         (expm1_downward_test_data): New array.
1146         (expm1_test_downward): New function.
1147         (expm1_upward_test_data): New array.
1148         (expm1_test_upward): New function.
1149         (main): Run the new test functions.
1150         * sysdeps/i386/fpu/libm-test-ulps: Update.
1151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1152
1153         * include/features.h: Update comment documenting feature test
1154         macros.  Mention _DEFAULT_SOURCE in comment.
1155         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
1156         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
1157         _BSD_SOURCE and _SVID_SOURCE.
1158         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
1159         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
1160         !_SVID_SOURCE]: Likewise.
1161         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1162         (__USE_POSIX_IMPLICITLY): Define.
1163         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1164         (_POSIX_SOURCE): Undefine and redefine.
1165         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1166         (_POSIX_C_SOURCE): Likewise.
1167         * manual/creature.texi (_DEFAULT_SOURCE): Document.
1168         (Feature Test Macros): Update documentation of default features.
1169
1170 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1171
1172         * benchtests/Makefile: Add bench-strtok.
1173         * benchtests/bench-strtok.c: New file: strtok benchtest.
1174
1175 2013-12-19  Allan McRae  <allan@archlinux.org>
1176
1177         * manual/install.texi: Suppress menu for plain text output.
1178         * INSTALL: Regenerated.
1179
1180 2013-12-18  Brooks Moses  <bmoses@google.com>
1181
1182         [BZ #15846]
1183         * misc/getauxval.c: Include errno.h.
1184         (__getauxval): Set errno to ENOENT if the requested type is not
1185         found.
1186         * misc/sys/auxv.h (getauxval): Document that it may set errno;
1187         don't declare with __attribute_const__.
1188         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
1189         * manual/startup.texi: Document that getauxval sets errno.
1190
1191 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1192
1193         * math/auto-libm-test-in: Add tests of jn and yn.
1194         * math/auto-libm-test-out: Regenerated.
1195         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
1196         (yn_test_data): Likewise.
1197         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1198         mpfr_if_f.
1199         (func_calc_desc): Add mpfr_if_f union field.
1200         (FUNC_mpfr_if_f): New macro.
1201         (test_functions): Add jn and yn.
1202         (calc_generic_results): Assert type of second input for
1203         mpfr_ff_f.  Handle mpfr_if_f.
1204         (output_for_one_input_case): Disable all checking for arguments
1205         fitting floating-point types in case of an integer argument.
1206         * sysdeps/i386/fpu/libm-test-ulps: Update.
1207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1208
1209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
1210         Don't expect fegetround reference in libm.so.
1211
1212 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1213
1214         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
1215         $(config-cflags-nofma).
1216
1217 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1218
1219         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
1220         * math/auto-libm-test-out: Regenerated.
1221
1222         [BZ #16338]
1223         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
1224         to determine exponent and adjust argument to have exponent of -1.
1225         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
1226         log2.
1227         * math/auto-libm-test-out: Regenerated.
1228         * sysdeps/i386/fpu/libm-test-ulps: Update.
1229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1230
1231 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
1232
1233         * manual/probes.texi: Remove cases when per-thread arenas are
1234         disabled.
1235
1236 2013-12-18  Andreas Schwab  <schwab@suse.de>
1237
1238         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
1239         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
1240         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
1241         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
1242         * sysdeps/i386/i686/multiarch/Makefile: Update.
1243         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
1244
1245 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1246
1247         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
1248         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
1249
1250 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1251
1252         [BZ #15968]
1253         Support TZ transition times < 00:00:00.
1254         This is needed for version-3 tz-format files; it supports time
1255         stamps past 2037 for America/Godthab (the only entry in the tz
1256         database for which this change is relevant).
1257         * manual/time.texi (TZ Variable): Document transition times
1258         from -167:59:59 through -00:00:01.
1259         * time/tzset.c (tz_rule): Time of day is now signed.
1260         (__tzset_parse_tz): Parse negative time of day.
1261
1262         Document TZ transition times >= 25:00:00.
1263         * manual/time.texi (TZ Variable): Document transition times from
1264         25:00:00 through 167:59:59.  These are already supported, and this
1265         support will help with version-3 tz-format files.
1266
1267         * manual/time.texi (TZ Variable): Modernize North America example
1268         to reflect current (i.e., 2007-and-later) daylight saving rules.
1269
1270         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
1271
1272 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1273
1274         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
1275         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1276         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
1277         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1278         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
1279         * sysdeps/unix/bsd/bsdstat.h: Likewise.
1280         * sysdeps/unix/bsd/clock.c: Likewise.
1281         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1282         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
1283         * sysdeps/unix/bsd/init-posix.c: Likewise.
1284         * sysdeps/unix/bsd/poll.c: Likewise.
1285         * sysdeps/unix/bsd/ptsname.c: Likewise.
1286         * sysdeps/unix/bsd/seekdir.c: Likewise.
1287         * sysdeps/unix/bsd/setegid.c: Likewise.
1288         * sysdeps/unix/bsd/seteuid.c: Likewise.
1289         * sysdeps/unix/bsd/setgid.c: Likewise.
1290         * sysdeps/unix/bsd/setrgid.c: Likewise.
1291         * sysdeps/unix/bsd/setruid.c: Likewise.
1292         * sysdeps/unix/bsd/setsid.c: Likewise.
1293         * sysdeps/unix/bsd/setuid.c: Likewise.
1294         * sysdeps/unix/bsd/sigaction.c: Likewise.
1295         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1296         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1297         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
1298         * sysdeps/unix/bsd/telldir.c: Likewise.
1299         * sysdeps/unix/bsd/times.c: Likewise.
1300         * sysdeps/unix/bsd/usleep.c: Likewise.
1301
1302         * misc/Makefile (install-lib): Remove libbsd-compat.a.
1303         ($(objpfx)libbsd-compat.a): Remove rule.
1304
1305         * include/features.h (__FAVOR_BSD): Do not define.
1306         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
1307         features conflicting with POSIX.
1308         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
1309         (_BSD_SOURCE): Remove description of not being a subset of other
1310         feature test macros.
1311         * manual/job.texi (getpgrp): Do not document BSD version.
1312         (getpgid): Do not document by reference to BSD getpgrp.
1313         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
1314         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
1315         * signal/signal.h [__FAVOR_BSD]: Likewise.
1316         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
1317         instead of making contents conditional on [__FAVOR_BSD].
1318         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
1319
1320 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1321
1322         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1323
1324 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1325
1326         [BZ #16314]
1327         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
1328         values below 2**-450, not 2**-500.
1329         * math/auto-libm-test-in: Don't allow spurious underflow from
1330         hypot.
1331         * math/auto-libm-test-out: Regenerated.
1332
1333         [BZ #16316]
1334         [BZ #16330]
1335         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
1336         values of ha and hb and sort them after adjusting subnormal
1337         arguments.
1338         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1339         Likewise.
1340         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
1341         values of ea and eb and sort them after adjusting subnormal
1342         arguments.
1343         * math/auto-libm-test-in: Do not expect some hypot tests of
1344         subnormals to fail.  Add more hypot tests.
1345         * math/auto-libm-test-out: Regenerated.
1346
1347 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1348
1349         [BZ #13304]
1350         * sysdeps/sh/s_fma.c: New file.
1351         * sysdeps/sh/s_fmaf.c: New file.
1352         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
1353         version.
1354         * sysdeps/sh/Implies: Add sh/soft-fp.
1355
1356 2013-12-16  Roland McGrath  <roland@hack.frob.com>
1357
1358         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
1359         level of indirection to members `objname', `errstring', `malloced'.
1360         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1361         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1362         it as the __longjmp argument (just pass 1 instead).
1363         (_dl_catch_error): Initialize C with argument pointers and address of
1364         volatile local ERRCODE rather than copying values out of C at return.
1365
1366 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1367
1368         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1369         * math/auto-libm-test-out: Regenerated.
1370         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1371         (hypot_test_data): Likewise.
1372         (pow_test_data): Likewise.
1373         (pow_tonearest_test_data): Likewise.
1374         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1375         mpfr_ff_f.
1376         (func_calc_desc): Add mpfr_ff_f union field.
1377         (FUNC_mpfr_ff_f): New macro.
1378         (test_functions): Add atan2, hypot and pow.
1379         (special_fill_min): New function.
1380         (special_fill_minus_min): Likewise.
1381         (special_fill_min_subnorm): Likewise.
1382         (special_fill_minus_min_subnorm): Likewise.
1383         (special_real_inputs): Add min, -min, min_subnorm and
1384         -min_subnorm.
1385         (calc_generic_results): Handle mpfr_ff_f.
1386         * sysdeps/i386/fpu/libm-test-ulps: Update.
1387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1388
1389 2013-12-16  Will Newton  <will.newton@linaro.org>
1390
1391         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1392         (Aligned Memory Blocks): Add documentation for aligned_alloc
1393         and suggest it as an alternative to posix_memalign.
1394         (Hooks for Malloc): Document __memalign_hook is also called
1395         for aligned_alloc.  (Summary of Malloc): Add summary for
1396         aligned alloc.  Document __memalign_hook is also called
1397         for aligned_alloc.
1398
1399 2013-12-16  Will Newton  <will.newton@linaro.org>
1400
1401         * manual/memory.texi (Malloc Examples): Clarify default
1402         alignment documentation.  Suggest posix_memalign rather
1403         than memalign or valloc.
1404         (Aligned Memory Blocks): Remove suggestion to use memalign
1405         or valloc.  Remove obsolete comment about BSD.
1406         Document memalign errno values and mark the function obsolete.
1407         Document posix_memalign returned error codes.  Mark valloc
1408         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1409         called for posix_memalign and valloc.
1410         (Summary of Malloc): Add posix_memalign to function summary.
1411         __memalign_hook is also called for posix_memalign and valloc.
1412
1413 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1414
1415         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1416         TAYLOR_SIN.
1417         (__sin): Adjust.
1418         (__cos): Likewise.
1419         (sloww): Use mynumber union.  Expand ternary operator into
1420         if-else statements.
1421         (cslow): use mynumber union.
1422
1423 2013-12-16  Allan McRae  <allan@archlinux.org>
1424
1425         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1426         * configure: Regenerated.
1427
1428         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1429
1430         [BZ #14120]
1431         * configure.ac: Added --enable-maintainer-mode. Check for
1432         autoconf when enabled.
1433         * configure: Regenerated.
1434
1435         * nscd/nscd.service: New file.
1436         * nscd/nscd.tmpfiles: New file.
1437
1438 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1439
1440         [BZ #12100]
1441         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1442         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1443         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1444         (strstr): Add __strstr_sse2_unaligned ifunc.
1445         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1446         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1447         (strcasestr): Remove __strcasestr_sse42 ifunc.
1448         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1449         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1450         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1451
1452 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1453
1454         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1455         * sysdeps/sh/bits/fenv.h: ... here.
1456         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1457
1458 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1459
1460         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1461
1462 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1463
1464         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1465         hypotf multiarch implementations.
1466         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1467         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1468         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1469         multiarch hypot for PPC64.
1470         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1471         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1472         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1473         multiarch hypotf for PPC64.
1474
1475 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1476
1477         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1478         modff multiarch implementations.
1479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1482         multiarch modf for PPC64.
1483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1486         multiarch modff for PPC64.
1487
1488 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1489
1490         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1491         and logl multiarch implementations.
1492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1495         multiarch logb for PPC64.
1496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1499         multiarch logb for PPC64.
1500         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1503         multiarch logb for PPC64.
1504
1505 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1506
1507         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1508         isinff multiarch implementation.
1509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1510         file.
1511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1512         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1513         multiarch isinf for PPC64.
1514         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1515         file.
1516         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1517         multiarch isinff for PPC64.
1518
1519 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1520
1521         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1522         finitef multiarch implementation.
1523         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1524         file.
1525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1527         multiarch finite for PPC64.
1528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1529         file.
1530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1531         multiarch finitef for PPC64.
1532
1533 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1534
1535         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1536         lrint multiarch implementation.
1537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1538         file.
1539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1541         multiarch llrint for PPC64.
1542         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1543         multiarch lrint for PPC64.
1544
1545 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1546
1547         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1548         copysignf multiarch implementation.
1549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1550         file.
1551         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1552         file.
1553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1554         multiarch copysign for PPC64.
1555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1556         multiarch copysignf for PPC64.
1557
1558 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1559
1560         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1561         multiarch implementation.
1562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1563         file.
1564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1565         file.
1566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1567         file.
1568         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1569         file.
1570         multiarch llround for PPC64.
1571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1572         multiarch trunc for PPC64.
1573         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1574         multiarch truncf for PPC64.
1575
1576 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1577
1578         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1579         multiarch implementation.
1580         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1581         file.
1582         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1583         file.
1584         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1585         file.
1586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1587         file.
1588         multiarch llround for PPC64.
1589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1590         multiarch round for PPC64.
1591         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1592         multiarch roundf for PPC64.
1593
1594 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1595
1596         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1597         multiarch implementation.
1598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1599         file.
1600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1601         file.
1602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1603         file.
1604         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1605         file.
1606         multiarch llround for PPC64.
1607         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1608         multiarch floor for PPC64.
1609         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1610         multiarch floorf for PPC64.
1611
1612 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1613
1614         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1615         multiarch implementation.
1616         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1617         file.
1618         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1619         file.
1620         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1621         file.
1622         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1623         file.
1624         multiarch llround for PPC64.
1625         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1626         multiarch ceil for PPC64.
1627         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1628         multiarch ceilf for PPC64.
1629
1630 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1631
1632         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1633         multiarch implementation.
1634         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1635         file.
1636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1637         file.
1638         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1639         file.
1640         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1641         multiarch llround for PPC64.
1642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1643         multiarch lround for PPC64.
1644
1645 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1646
1647         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1648         multiarch implementation.
1649         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1650         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1652         file.
1653         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1654         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1655         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1656         multiarch isnan for PPC64.
1657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1658         multiarch isnanf for PPC64.
1659
1660 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1661
1662         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1663         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1664         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1665         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1666         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1668
1669 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1670
1671         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1672         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1673         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1674         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1675
1676 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1677
1678         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1679         multiarch implementations.
1680         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1681         (__libc_ifunc_impl_list): Likewise.
1682         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1683         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1684         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1685         multiarch stpcpy for PPC64.
1686
1687 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1688
1689         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1690         multiarch implementations.
1691         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1692         (__libc_ifunc_impl_list): Likewise.
1693         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1694         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1695         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1696         multiarch strcpy for PPC64.
1697
1698 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1699
1700         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1701         redefine function name.
1702         (_wordcopy_fwd_dest_aligned): Likewise.
1703         (_wordcopy_bwd_aligned): Likewise.
1704         (_wordcopy_bwd_dest_aligned): Likewise.
1705         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1706         multiarch implementations.
1707         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1708         (__libc_ifunc_impl_list): Likewise.
1709         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1710         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1711         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1712         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1713         multiarch wcscpy for PPC64.
1714
1715 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1716
1717         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1718         multiarch implementations.
1719         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1720         (__libc_ifunc_impl_list): Likewise.
1721         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1722         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1723         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1724         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1725         multiarch wcscpy for PPC64.
1726
1727 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1728
1729         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1730         multiarch implementations.
1731         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1732         (__libc_ifunc_impl_list): Likewise.
1733         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1734         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1735         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1736         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1737         multiarch wcsrchr for PPC64.
1738
1739 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1740
1741         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1742         multiarch implementations.
1743         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1744         (__libc_ifunc_impl_list): Likewise.
1745         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1746         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1747         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1748         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1749         multiarch wcschr for PPC64.
1750
1751 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1752
1753         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1754         multiarch implementations.
1755         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1756         (__libc_ifunc_impl_list): Likewise.
1757         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1758         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1759         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1760         multiarch strchrnul for PPC64.
1761
1762 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1763
1764         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1765         implementations.
1766         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1767         (__libc_ifunc_impl_list): Likewise.
1768         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1769         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1770         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1771         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1772         strchr for PPC64.
1773
1774 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1775
1776         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1777         implementations.
1778         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1779         (__libc_ifunc_impl_list): Likewise.
1780         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1781         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1782         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1783         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1784         strncmp for PPC64.
1785
1786 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1787
1788         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1789         multiarch implementations.
1790         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1791         (__libc_ifunc_impl_list): Likewise.
1792         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1793         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1794         strncasecmp for PPC64.
1795         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1796         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1797         multiarch strncasecmp_l for PPC64.
1798
1799 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1800
1801         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1802         multiarch implementations.
1803         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1804         (__libc_ifunc_impl_list): Likewise.
1805         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1806         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1807         multiarch strcasecmp for PPC64.
1808         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1809         file.
1810         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1811         multiarch strcasecmp_l for PPC64.
1812
1813 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1814
1815         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1816         implementations.
1817         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1818         (__libc_ifunc_impl_list): Likewise.
1819         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1820         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1821         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1822         strnlen for PPC64.
1823
1824 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1825
1826         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1827         implementations.
1828         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1829         (__libc_ifunc_impl_list): Likewise.
1830         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1831         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1832         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1833         strlen for PPC64.
1834
1835 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1836
1837         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1838         implementations.
1839         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1840         (__libc_ifunc_impl_list): Likewise.
1841         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1842         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1843         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1844         rawmemrchr for PPC64.
1845
1846 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1847
1848         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1849         implementation.
1850         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1851         (__libc_ifunc_impl_list): Likewise.
1852         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1853         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1854         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1855         memrchr for PPC64.
1856
1857 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1858
1859         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1860         implementation.
1861         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1862         (__libc_ifunc_impl_list): Likewise.
1863         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1864         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1865         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1866         memchr for PPC64.
1867
1868 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1869
1870         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1871         implementation.
1872         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1873         (__libc_ifunc_impl_list): Likewise.
1874         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1875         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1876         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1877         mempcpy for PPC64.
1878
1879 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1880
1881         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1882         avoid cretion of __bzero symbol.
1883         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1884         Likewise.
1885         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1886         Likewise.
1887         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1888         Likewise.
1889         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1890         multiarch implementations.
1891         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1892         (__libc_ifunc_impl_list): Likewise.
1893         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1894         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1895         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1896         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1897         bzero for PPC32.
1898         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1899         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1900         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1901         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1902         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1903         memset for PPC64.
1904         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1905
1906 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1907
1908         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1909         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1910         implementations.
1911         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1912         (__libc_ifunc_impl_list): Likewise.
1913         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1914         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1915         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1916         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1917         memcmp for PPC64.
1918
1919 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1920
1921         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1922         multiarch for POWER/PPC64.
1923         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1924         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1925         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1926         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1927         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1928         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1929         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1930         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1931         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1932         memcpy for PPC64.
1933
1934 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1935
1936         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1937         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1938         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1939         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1940         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1941         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1942         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1943         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1944         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1945         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1946         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1947         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1948         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1949         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1950         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1958
1959 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1960
1961         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1962
1963 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1964
1965         * benchtests/Makefile (bench): Add exp2 and log2.
1966         (LDLIBS-bench-exp2): Add -lm.
1967         (LDLIBS-bench-log2): Likewise.
1968         * benchtests/exp2-inputs: New inputs file.
1969         * benchtests/log2-inputs: New inputs file.
1970         * benchtests/log-inputs: Add new inputs.
1971         * benchtests/tan-inputs: Likewise.
1972
1973 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1974
1975         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1976         definition...
1977         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1978         csloww1, csloww2): ... from here.
1979
1980         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1981         instead of structures.
1982         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1983         (POLYNOMIAL): Likewise.
1984         (TAYLOR_SLOW): Likewise.
1985         (__sin): Likewise.
1986         (__cos): Likewise.
1987         (slow1): Likewise.
1988         (slow2): Likewise.
1989         (sloww): Likewise.
1990         (sloww1); Likewise.
1991         (sloww2): Likewise.
1992         (bsloww1): Likewise.
1993         (bsloww2): Likewise.
1994         (cslow2): Likewise.
1995         (csloww): Likewise.
1996         (csloww1): Likewise.
1997         (csloww2): Likewise.
1998
1999 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
2000
2001         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
2002         (__malloc_assert, __libc_realloc, __libc_calloc,
2003         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
2004         memcpy and memset.
2005         * malloc/hooks.c (realloc_check): Likewise.
2006
2007 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
2008
2009         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
2010         * malloc/arena.c: Remove PER_THREAD conditional.
2011         [!PER_THREAD]: Remove code.
2012         (ptmalloc_unlock_all2): Likewise.
2013         (ptmalloc_init): Likewise.
2014         (_int_new_arena): Likewise.
2015         (arena_get2): Likewise.
2016         * malloc/hooks.c (__malloc_get_state): Likewise.
2017         (__malloc_set_state): Likewise.
2018         * malloc/malloc.c: Likewise.
2019         (struct malloc_state): Likewise.
2020         (struct malloc_par): Likewise.
2021         (__libc_realloc): Likewise.
2022         (__libc_mallopt): Likewise.
2023
2024 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2025
2026         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
2027
2028 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
2029
2030         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
2031         macro to a function.  Check for zero perturb_byte.
2032         (_int_malloc, _int_free): Remove zero perturb_byte checks.
2033
2034 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
2035
2036         * malloc/malloc.c: (force_reg): Remove.
2037         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
2038         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
2039         force_reg by atomic_forced_read.
2040         * malloc/arena.c (ptmalloc_init): Likewise.
2041         * malloc/hooks.c (top_check): Likewise.
2042
2043 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2044
2045         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2046
2047 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
2048
2049         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2050
2051 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
2052
2053         * math/auto-libm-test-in: Add tests of lgamma.
2054         * math/auto-libm-test-out: Regenerated.
2055         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
2056         (M_LOG_2_SQRT_PIl): Likewise.
2057         (lgamma_test_data): Use AUTO_TESTS_f_f1.
2058         * math/gen-auto-libm-tests.c (func_calc_method): Add value
2059         mpfr_f_f1.
2060         (func_calc_desc): Add mpfr_f_f1 union field.
2061         (ARGS1): New macro.
2062         (ARGS2): Likewise.
2063         (ARGS3): Likewise.
2064         (ARGS4): Likewise.
2065         (RET1): Likewise.
2066         (RET2): Likewise.
2067         (CALC): Likewise.
2068         (FUNC): Likewise.
2069         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
2070         (test_functions): Add lgamma.
2071         (calc_generic_results): Handle mpfr_f_f1.
2072         * sysdeps/i386/fpu/libm-test-ulps: Update.
2073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2074
2075 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2076
2077         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
2078         __mpn_add_n for PowerPC64/POWER7.
2079         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
2080         __mpn_sub_n for PowerPC64/POWER7.
2081
2082 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2083
2084         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
2085         __mpn_addmul_1 for PowerPC64.
2086         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
2087         __mpn_submul_1 for PowerPC64.
2088         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
2089         for PowerPC64.
2090         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
2091         for PowerPC64.
2092
2093 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
2094
2095         [BZ #15089]
2096         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
2097
2098 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2099
2100         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
2101
2102 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2103
2104         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
2105         add multiarch folders.
2106         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
2107         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
2108         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
2109         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
2110         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
2111         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
2112         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
2113         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
2114         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
2115         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
2116         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
2117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
2118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
2119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
2120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
2121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
2122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
2123
2124 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2125
2126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2127         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
2128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
2129         New file.
2130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
2131         New file.
2132         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
2133         multiarch __ieee754_hypot for PowerPC32.
2134         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
2135         New file.
2136         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
2137         New file.
2138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
2139         multiarch __ieee754_hypotf for PowerPC32.
2140
2141 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2142
2143         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
2144         long_double_symbol only if __logbl is defined.
2145         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
2146         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
2147         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
2148         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
2149         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
2150         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
2151         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
2152         path for implementation.
2153         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2154         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
2156         logb, and logbl multiarch implementations for PowerPC32.
2157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
2158         file.
2159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
2160         file.
2161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
2162         multiarch logb for PowerPC32.
2163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
2164         file.
2165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
2166         file.
2167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
2168         multiarch logbf for PowerPC32.
2169         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
2170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
2171         file.
2172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
2173         multiarch logbl implementation for PowerPC32.
2174
2175 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2176
2177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
2178         and modff multiarch implementations.
2179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2180         New file.
2181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
2182         New file.
2183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
2184         multiarch modf for PowerPC32.
2185         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2186         New file.
2187         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
2188         New file.
2189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
2190         multiarch modff for PowerPC32.
2191
2192 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2193
2194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
2195         and lrintf multiarch implementations.
2196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
2197         New file.
2198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2199         New file.
2200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
2201         multiarch lrint for PowerPC32.
2202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
2203         file: multiarch lrintf for PowerPC32.
2204
2205 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2206
2207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
2208         and lroundf multiarch implementations.
2209         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2210         New file.
2211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
2212         New file.
2213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2214         New file.
2215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
2216         multiarch lround for PowerPC32.
2217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
2218         file: multiarch lroundf for PowerPC32.
2219
2220 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2221
2222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2223         copysign and copysignf multiarch implementations.
2224         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2225         New file.
2226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2227         New file.
2228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
2229         file: multiarch copysign for PowerPC32.
2230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
2231         file: multiarch copysignf for PowerPC32.
2232
2233 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2234
2235         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
2236         and truncf multiarch implementations.
2237         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
2238         New file.
2239         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
2240         file.
2241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
2242         multiarch trunc for PowerPC32.
2243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
2244         New file.
2245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
2246         New file.
2247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
2248         multiarch truncf for PowerPC32.
2249
2250 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2251
2252         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
2253         and roundf multiarch implementations.
2254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
2255         New file.
2256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
2257         file.
2258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
2259         multiarch round for PowerPC32.
2260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
2261         New file.
2262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
2263         New file.
2264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
2265         multiarch roundf for PowerPC32.
2266
2267 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2268
2269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
2270         and floorf multiarch implementations.
2271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
2272         New file.
2273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
2274         file.
2275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
2276         multiarch floor for PowerPC32.
2277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2278         New file.
2279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2280         New file.
2281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
2282         multiarch floorf for PowerPC32.
2283
2284 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2285
2286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
2287         and ceilf multiarch implementations.
2288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2289         New file.
2290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
2291         file.
2292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
2293         multiarch ceil for PowerPC32.
2294         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2295         New file.
2296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
2297         file.
2298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
2299         multiarch ceilf for PowerPC32.
2300
2301 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2302
2303         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
2304         is defined.
2305         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
2306         FINITEF is defined.
2307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
2308         and finitef multiarch implementations.
2309         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2310         New file.
2311         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
2312         file.
2313         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
2314         multiarch finite for PowerPC32.
2315         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2316         New file.
2317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
2318         file: multiarch finitef for PowerPC32.
2319
2320 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2321
2322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
2323         and isinff multiarch implementations.
2324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
2325         file.
2326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
2327         file.
2328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
2329         multiarch isinf for PowerPC32.
2330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2331         New file.
2332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
2333         multiarch isinff for PowerPC32.
2334
2335 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2336
2337         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
2338         alias when __isnan is defined.
2339         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
2340         and isnanf multiarch implementations.
2341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
2342         file.
2343         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
2344         file.
2345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
2346         file.
2347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
2348         file.
2349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
2350         multiarch isnan for PowerPC32.
2351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2352         New file.
2353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
2354         New file.
2355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
2356         multiarch isnanf for PowerPC32.
2357
2358 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2359
2360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2361         and sqrtf multiarch implementations.
2362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2363         file.
2364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2365         file.
2366         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2367         multiarch sqrt for PowerPC32.
2368         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2369         file.
2370         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2371         file.
2372         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2373         multiarch sqrtf for PowerPC32.
2374
2375 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2376
2377         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2378         and llroundf multiarch implementations.
2379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2380         New file.
2381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2382         New file.
2383         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2384         New file.
2385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2386         file: multiarch llround for PowerPC32.
2387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2388         file: multiarch llroundf for PowerPC32.
2389
2390 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2391
2392         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2393         multiarch PowerPC32 fpu implementations.
2394         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2395         New file.
2396         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2397         New file.
2398         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2399         multiarch llrint for PowerPC32.
2400         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2401         New file.
2402         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2403         New file.
2404         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2405         file.
2406
2407 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2408
2409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2410
2411 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2412
2413         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2414         file.
2415         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2416         file.
2417         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2418         file.
2419         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2420         multiarch wordcopy for PPC32.
2421         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2422         wordcopy objects.
2423         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2424         (__libc_ifunc_impl_list): Likewise.
2425         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2426         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2427         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2428         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2429         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2430         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2431
2432 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2433
2434         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2435         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2436         file.
2437         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2438         file.
2439         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2440         file.
2441         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2442         multiarch wcscpy for PPC32.
2443         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2444         multiarch objects.
2445         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2446         (__libc_ifunc_impl_list): Likewise.
2447         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2448         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2449         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2450         sysdeps/powerpc/power6/wcscpy.c.
2451
2452 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2453
2454         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2455         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2456         file.
2457         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2458         file.
2459         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2460         file.
2461         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2462         multiarch wcsrchr for PPC32.
2463         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2464         multiarch objects.
2465         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2466         (__libc_ifunc_impl_list): Likewise.
2467         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2468         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2469         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2470         sysdeps/powerpc/power6/wcsrchr.c.
2471
2472 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2473
2474         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2475         file.
2476         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2477         file.
2478         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2479         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2480         multiarch wcschr for PPc32.
2481         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2482         multiarch objects.
2483         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2484         (__libc_ifunc_impl_list): Likewise.
2485         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2486         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2487         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2488         sysdeps/powerpc/power6/wcschr.c.
2489
2490 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2491
2492         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2493         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2494         file.
2495         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2496         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2497         file: multiarch strchr for PPC32.
2498         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2499         multiarch objects.
2500         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2501         (__libc_ifunc_impl_list): Likewise.
2502
2503 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2504
2505         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2506         name.
2507         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2508         file.
2509         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2510         file.
2511         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2512         multiarch strchrnul for PPC32.
2513         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
2514         multiarch objects.
2515         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2516         (__libc_ifunc_impl_list): Likewise.
2517
2518 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2519
2520         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2521         file.
2522         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2523         multiarch strncasecmp for PPC32.
2524         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2525         file.
2526         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2527         multiarch strncasecmp_l for PPC32.
2528         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2529         strncasecmp multiarch objects.
2530         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2531         (__libc_ifunc_impl_list): Likewise.
2532
2533 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2534
2535         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
2536         file.
2537         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2538         multiarch strncasecmp for PPC32.
2539         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2540         New file.
2541         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2542         multiarch strcasecmp_l for PPC32.
2543         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2544         multiarch objects.
2545         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2546         (__libc_ifunc_impl_list): Likewise.
2547
2548 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2549
2550         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
2551         file.
2552         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2553         file.
2554         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2555         multiarch strncmp for PPC32.
2556         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2557         multiarch objects.
2558         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2559         (__libc_ifunc_impl_list): Likewise.
2560
2561 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2562
2563         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2564         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2565         file.
2566         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2567         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2568         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2569         multiarch objects.
2570         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2571         (__libc_ifunc_impl_list): Likewise.
2572
2573 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2574
2575         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2576         file.
2577         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2578         file.
2579         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2580         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2581         multiarch objects.
2582         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2583         (__libc_ifunc_impl_list): Likewise.
2584
2585 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2586
2587         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2588         file.
2589         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2590         file.
2591         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2592         multiarch rawmemchr for PPC32.
2593         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2594         multiarch objects.
2595         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2596         (__libc_ifunc_impl_list): Likewise.
2597
2598 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2599
2600         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2601         file.
2602         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2603         file.
2604         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2605         file: memrchr multiarch for PPC32.
2606         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2607         multiarch objects.
2608         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2609         (__libc_ifunc_impl_list): Likewise.
2610
2611 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2612
2613         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2614         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2615         file.
2616         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2617         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2618         multiarch memchr for PPC32.
2619         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2620         multiarch objects.
2621         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2622         (__libc_ifunc_impl_list): Likewise.
2623
2624 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2625
2626         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2627         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2628         file.
2629         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2630         file.
2631         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2632         file: multiarch mempcpy for PPC32.
2633         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2634         multiarch objects.
2635         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2636         (__libc_ifunc_impl_list): Likewise.
2637
2638 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2639
2640         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2641         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2642         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2643         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2644         multiarch bzero for PPC32.
2645         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2646         file.
2647         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2648         file.
2649         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2650         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2651         file: multiarch memset for PPC32.
2652         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2653         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2654         memset multiarch objects.
2655         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2656         (__libc_ifunc_impl_list): Likewise.
2657
2658 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2659
2660         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2661         file.
2662         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2663         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2664         memcmp for PPC32.
2665         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2666         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2667         multiarch objects.
2668         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2669         (__libc_ifunc_impl_list): Likewise.
2670
2671 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2672
2673         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2674         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2675         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2676         file.
2677         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2678         file.
2679         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2680         file.
2681         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2682         multiarch memcpy for PPC32.
2683         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2684         multiarch objects.
2685         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2686         (__libc_ifunc_impl_list): Likewise.
2687
2688 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2689
2690         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2691         support multiarch for POWER/PPC32.
2692         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2693         Likewise.
2694         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2696         Implies file to make multiarch folder appers before the fpu and
2697         default folder for power4 configuration.
2698
2699 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2700
2701         * scripts/bench.pl: Append volatile keyword to type.
2702
2703 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2704
2705         * sysdeps/sh/sotruss-lib.c: New file.
2706         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2707
2708 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2709
2710         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2711
2712 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2713
2714         [BZ #6810]
2715         * math/w_tgamma.c: Include <errno.h>.
2716         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2717         * math/w_tgammaf.c: Include <errno.h>.
2718         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2719         * math/w_tgammal.c: Include <errno.h>.
2720         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2721         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2722         underflow.  Add more tgamma tests.
2723         * math/auto-libm-test-out: Regenerated.
2724         * sysdeps/i386/fpu/libm-test-ulps: Update.
2725         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2726
2727         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2728         sin, sinh, tan, tanh, tgamma, y0 and y1.
2729         * math/auto-libm-test-out: Regenerated.
2730         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2731         (TEST_COND_x86): Likewise.
2732         (M_E2l): Remove macro.
2733         (M_E3l): Likewise.
2734         (M_2_SQRT_PIl): Likewise.
2735         (M_SQRT_PIl): Likewise.
2736         (M_1_DIV_El): Likewise.
2737         (log_test_data): Use AUTO_TESTS_f_f.
2738         (log10_test_data): Likewise.
2739         (log1p_test_data): Likewise.
2740         (log2_test_data): Likewise.
2741         (sin_test_data): Likewise.
2742         (sin_tonearest_test_data): Likewise.
2743         (sin_towardzero_test_data): Likewise.
2744         (sin_downward_test_data): Likewise.
2745         (sin_upward_test_data): Likewise.
2746         (sinh_test_data): Likewise.
2747         (sinh_tonearest_test_data): Likewise.
2748         (sinh_towardzero_test_data): Likewise.
2749         (sinh_downward_test_data): Likewise.
2750         (sinh_upward_test_data): Likewise.
2751         (tan_test_data): Likewise.
2752         (tan_tonearest_test_data): Likewise.
2753         (tan_towardzero_test_data): Likewise.
2754         (tan_downward_test_data): Likewise.
2755         (tan_upward_test_data): Likewise.
2756         (tanh_test_data): Likewise.
2757         (tgamma_test_data): Likewise.
2758         (y0_test_data): Likewise.
2759         (y1_test_data): Likewise.
2760         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2761         (special_real_inputs): Add pi/4.
2762         * sysdeps/i386/fpu/libm-test-ulps: Update.
2763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2764
2765 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2766
2767         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2768         "longjmp_target" static probes.
2769         (__longjmp): Rename to __longjmp_symbol.
2770         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2771         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2772         on which longjmp to generate.
2773         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2774         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2775         probe.
2776         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2777         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2778         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2779         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2780         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2781         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2783         __longjmp_symbol based on which __longjmp to generate.
2784         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2785         probe.
2786         (setjmp): Rename to setjmp_symbol.
2787         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2788         (_setjmp): Rename to _setjmp_symbol.
2789         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2790         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2791         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2792         which setjmp to generate.
2793         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2794         "longjmp_target" static probes.
2795
2796 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2797
2798         * benchtests/README: Add note about output arguments.
2799         * benchtests/bench-sincos.c: Remove file.
2800         * benchtests/sincos-inputs: New file.
2801         * scripts/bench.pl: Identify output arguments and define
2802         static variables for them.
2803
2804         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2805
2806         [BZ #15941]
2807         * Makefile (INSTALL): Add install-plain.texi as the primary
2808         dependency.
2809         * manual/install-plain.texi: New file.
2810         * manual/install.texi: Include node directive only for
2811         non-plaintext output.
2812
2813 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2814
2815         * stdlib/longlong.h: Update from GCC.
2816
2817         [BZ #6807]
2818         [BZ #15901]
2819         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2820         * math/w_j0f.c (y0f): Likewise.
2821         * math/w_j0l.c (__y0l): Likewise.
2822         * math/w_j1.c (y1): Likewise.
2823         * math/w_j1f.c (y1f): Likewise.
2824         * math/w_j1l.c (__y1l): Likewise
2825         * math/w_jn.c (yn): Likewise.
2826         * math/w_jnf.c (ynf): Likewise.
2827         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2828         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2829         value for Bessel function domain errors outside _SVID_ mode.
2830         Adjust sign of return value for yn (negative integer, 0).
2831         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2832         by zero in return for negative x and set sign appropriately for
2833         negative n.
2834         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2835         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2836         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2837         expectations in error cases.
2838         (y1_test_data): Likewise.
2839         (yn_test_data): Likewise.
2840         * sysdeps/i386/fpu/libm-test-ulps: Update.
2841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2842
2843 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2844
2845         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2846         "64" to "64-v1".  Add "64-v2".
2847         (abi-64-options): Rename to ...
2848         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2849         (abi-64-condition): Rename to ...
2850         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2851         (abi-64-ld-soname): Rename to ...
2852         (abi-64-v1-ld-soname): ... this.
2853         (abi-64-v2-options): Define.
2854         (abi-64-v2-condition): Likewise.
2855         (abi-64-v2-ld-soname): Likewise.
2856         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2857         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2861
2862 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2863             Alan Modra  <amodra@gmail.com>
2864
2865         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2866         New versions for use with the ELFv2 ABI.
2867         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2868         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2869         declaration.
2870         (struct La_ppc64v2_retval): Likewise.
2871         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2872         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2873         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2874         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2875         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2876         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2877         Do not save or restore CR.
2878         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2879         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2880         return values for ELFv2 ABI.  Fix location of FPR return registers.
2881         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2882         updated values for _CALL_ELF == 2.
2883         (La_regs, La_retval, int_retval): Likewise.
2884
2885 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2886
2887         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2888         (FRAME_MIN_SIZE_PARM): Likewise.
2889         (FRAME_BACKCHAIN): Likewise.
2890         (FRAME_CR_SAVE): Likewise.
2891         (FRAME_LR_SAVE): Likewise.
2892         (FRAME_TOC_SAVE): Likewise.
2893         (FRAME_PARM_SAVE): Likewise.
2894         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2895         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2896         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2897         (call_mcount_parm_offset): New macro.
2898         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2899         (PROF): Use symbolic stack frame offsets.
2900         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2901         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2902         Redefine in terms of FRAME_MIN_SIZE.
2903         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2904         (_dl_profile_resolve): Likewise.  Update comment.
2905         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2906         symbols stack frame offsets.
2907         (__sigsetjmp): Likewise.
2908         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2909         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2910         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2911         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2912
2913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2914         (FRAME_BACKCHAIN): Remove.
2915         (FRAME_CR_SAVE): Likewise.
2916         (FRAME_LR_SAVE): Likewise.
2917         (FRAME_COMPILER_DW): Likewise.
2918         (FRAME_LINKER_DW): Likewise.
2919         (FRAME_TOC_SAVE): Likewise.
2920         (FRAME_PARM_SAVE): Likewise.
2921         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2922         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2923         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2925         (CHECK_SP): Use symbolic stack frame offsets.
2926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2927         zone" instead of caller's parameter save area for temp storage.
2928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2929         Likewise.  Also, use symbolic stack frame offsets.
2930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2931         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2932         our own stack frame instead of the caller's.
2933         (__socket): Use symbolic stack frame offsets.
2934
2935 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2936             Alan Modra  <amodra@gmail.com>
2937
2938         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2939         Define.
2940         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2941         PPC64_LOCAL_ENTRY_OFFSET): Define.
2942         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2943         New function.
2944         (elf_machine_fixup_plt): Call it.
2945         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2946         reloc arguments.
2947         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2948         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2949         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2950         r2 before calling target.
2951
2952 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2953             Alan Modra  <amodra@gmail.com>
2954
2955         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2956         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2957         versions of macros to support ELFv2 ABI.
2958         (LOCALENTRY): New macro.
2959         (ENTRY, EALIGN): Use it.
2960         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2961         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2962         fall through into ENTRY entry point.
2963         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2964         Only define if _CALL_ELF != 2.
2965
2966         (elf_machine_matches_host): Verify ABI version matches.
2967         (RTLD_START): Use LOCALENTRY.
2968         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2969         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2970         (PLT_ENTRY_WORDS): New macro.
2971         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2972         (elf_machine_runtime_setup): Support ELFv2 ABI.
2973         (elf_machine_fixup_plt): Likewise.
2974         (elf_machine_plt_conflict): Likewise.
2975         (resolve_ifunc): Likewise.
2976         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2977         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2978         Likewise.
2979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2980         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2982         (makecontext): Support ELFv2 ABI.
2983         * elf/elf.h (EF_PPC64_ABI): Define.
2984
2985 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2986
2987         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2988         New assembler macro.
2989         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2990         [ASSEMBLER] (ENTRY): ... but instead here ...
2991         [ASSEMBLER] (EALIGN): ... and here.
2992         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
2993         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
2994         [!ASSEMBLER] (ENTRY_2): Use it.
2995         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
2996         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
2997         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2998         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
2999         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
3000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
3001         Use PPC64_LOAD_FUNCPTR.
3002
3003 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3004
3005         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
3006
3007 2013-12-04  Alan Modra  <amodra@gmail.com>
3008
3009         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
3010         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
3011         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
3012         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
3013
3014         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
3015         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
3016         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
3017         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
3018         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
3019         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
3020
3021 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3022
3023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3024         (__makecontext): Fix incorrect CFI when backtracing out of
3025         context created via makecontext.
3026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
3027         (__setcontext): Fix incorrect CFI during switch to new context.
3028         (__novec_setcontext): Likewise.
3029
3030 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
3031
3032         [BZ #4772]
3033         * time/strptime_l.c (__strptime_internal): Allow modifiers
3034         in strptime.
3035         * time/tst-strptime.c (day_tests): Add testcase.
3036
3037
3038 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3039
3040         * scripts/bench.pl: Skip over blank lines.
3041
3042 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
3043
3044         [BZ #926]
3045         * manual/time.texi (Calendar Time): Clarify what timezone functions
3046         use.
3047
3048 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3049
3050         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3051
3052 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
3053
3054         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
3055         implementation.
3056         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
3057         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
3058         * debug/memset_chk.c (__memset_chk): Likewise.
3059         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
3060         * debug/strncpy_chk.c: Likewise.
3061
3062 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
3063
3064         [BZ #15268]
3065         [BZ #15425]
3066         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
3067         (__ieee754_exp): For possibly underflowing results, check size of
3068         result and force underflow exception if required.
3069         * math/auto-libm-test-in: Add more tests of exp.
3070         * math/auto-libm-test-out: Regenerated.
3071         * sysdeps/i386/fpu/libm-test-ulps: Update.
3072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3073
3074         [BZ #16283]
3075         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
3076         * math/w_exp2f.c (__exp2f): Likewise.
3077         * math/w_exp2l.c (__exp2l): Likewise.
3078         * math/auto-libm-test-in: Do not allow missing errno on exp2
3079         underflow.
3080         * math/auto-libm-test-out: Regenerated.
3081
3082 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
3083
3084         [BZ #16274]
3085         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
3086         handle filename validation.
3087         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
3088         (do_open): Delete.
3089
3090 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
3091
3092         [BZ #6786]
3093         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
3094         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
3095         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
3096         <float.h>.
3097         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
3098         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
3099         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3100         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
3101         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3102         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
3103         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3104         * math/auto-libm-test-in: Don't allow missing errno from erfc.
3105         Add more erfc tests.
3106         * math/auto-libm-test-out: Regenerated.
3107         * sysdeps/i386/fpu/libm-test-ulps: Update.
3108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3109
3110         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
3111         exp2, expm1, j0 and j1.
3112         * math/auto-libm-test-out: Regenerated.
3113         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
3114         (erfc_test_data): Likewise.
3115         (exp_test_data): Likewise.
3116         (exp_tonearest_test_data): Likewise.
3117         (exp_towardzero_test_data): Likewise.
3118         (exp_downward_test_data): Likewise.
3119         (exp_upward_test_data): Likewise.
3120         (exp10_test_data): Likewise.
3121         (exp2_test_data): Likewise.
3122         (expm1_test_data): Likewise.
3123         (j0_test_data): Likewise.
3124         (j1_test_data): Likewise.
3125         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
3126         (input_flag_type): Add flag_xfail_rounding.
3127         (input_flags): Add xfail-rounding.
3128         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
3129         (output_for_one_input_case): Handle flag_xfail_rounding.
3130         * sysdeps/i386/fpu/libm-test-ulps: Update.
3131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3132
3133 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
3134
3135         [BZ #16289]
3136         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
3137         division by 0.
3138
3139 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3140
3141         [BZ #16195]
3142         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3143         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
3144         (STAP_PROBE0): New macro.
3145         (STAP_PROBE1): Likewise.
3146         (STAP_PROBE2): Likewise.
3147         (STAP_PROBE3): Likewise.
3148         (STAP_PROBE4): Likewise.
3149
3150 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
3151
3152         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
3153
3154 2013-12-02  Steve Ellcey  <sellcey@mips.com>
3155
3156         * benchtests/Makefile (bench): Add sqrt.
3157         (LDLIBS-bench-sqrt): New.
3158         * benchtests/sqrt-input: New.
3159
3160 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
3161
3162         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
3163         (GAIH_EAI): Likewise.
3164         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
3165         (gaih_inet): Likewise.
3166         (getaddrinfo): Don't use GAIH_EAI.
3167
3168         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
3169         (struct gaih): Remove definition.
3170
3171 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
3172
3173         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
3174         Use HERRNOP directly.
3175
3176 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3177
3178         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3179
3180 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
3181
3182         * math/gen-auto-libm-tests.c (test_functions): Add more
3183         single-argument functions.
3184         (special_fill_pi_2): New function.
3185         (special_fill_minus_pi_2): Likewise.
3186         (special_fill_pi_6): Likewise.
3187         (special_fill_minus_pi_6): Likewise.
3188         (special_fill_pi_3): Likewise.
3189         (special_fill_2pi_3): Likewise.
3190         (special_fill_e): Likewise.
3191         (special_fill_1_e): Likewise.
3192         (special_fill_e_minus_1): Likewise.
3193         (special_real_inputs): Add more special inputs.
3194         (output_for_one_input_case): Do not require ERANGE on underflow to
3195         zero if round-to-nearest result does not underflow to zero, unless
3196         exact results required.
3197         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
3198         atan, atanh, cbrt, cos and cosh.
3199         * math/auto-libm-test-out: Regenerated.
3200         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
3201         (acos_tonearest_test_data): Likewise.
3202         (acos_towardzero_test_data): Likewise.
3203         (acos_downward_test_data): Likewise.
3204         (acos_upward_test_data): Likewise.
3205         (acosh_test_data): Likewise.
3206         (asin_test_data): Likewise.
3207         (asin_tonearest_test_data): Likewise.
3208         (asin_towardzero_test_data): Likewise.
3209         (asin_upward_test_data): Likewise.
3210         (asinh_test_data): Likewise.
3211         (atan_test_data): Likewise.
3212         (atanh_test_data): Likewise.
3213         (cbrt_test_data): Likewise.
3214         (cos_test_data): Likewise.
3215         (cos_tonearest_test_data): Likewise.
3216         (cos_towardzero_test_data): Likewise.
3217         (cos_downward_test_data): Likewise.
3218         (cos_upward_test_data): Likewise.
3219         (cosh_test_data): Likewise.
3220         (cosh_tonearest_test_data): Likewise.
3221         (cosh_towardzero_test_data): Likewise.
3222         (cosh_downward_test_data): Likewise.
3223         (cosh_upward_test_data): Likewise.
3224         * sysdeps/i386/fpu/libm-test-ulps: Update.
3225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3226
3227 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3228
3229         [BZ #6787]
3230         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
3231         * math/w_exp10f.c (__exp10f): Likewise.
3232         * math/w_exp10l.c (__exp10l): Likewise.
3233         * math/libm-test.inc (exp10_test_data): Add more tests and expect
3234         errno settings in existing tests.
3235
3236         [BZ #14032]
3237         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
3238         precision control set to double precision.
3239         * sysdeps/i386/fpu/w_sqrt.c: New file.
3240         * math/auto-libm-test-in: Add more tests.
3241         * math/auto-libm-test-out: Update.
3242
3243         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
3244         (sqrt_test_tonearest): New function.
3245         (sqrt_towardzero_test_data): New variable.
3246         (sqrt_test_towardzero): New function.
3247         (sqrt_downward_test_data): New variable.
3248         (sqrt_test_downward): New function.
3249         (sqrt_upward_test_data): New variable.
3250         (sqrt_test_upward): New function.
3251         (main): Call the new functions.
3252
3253         * math/gen-auto-libm-tests.c: New file.
3254         * math/auto-libm-test-in: Likewise.
3255         * math/auto-libm-test-out: New generated file.
3256         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
3257         variables.
3258         (%beautify): Add generated representations of zero.
3259         (top level): Set $auto_input and call parse_auto_input.
3260         (beautify): Remove trailing "f" from hex float constants.
3261         (parse_args): Handle XFAIL_TEST.
3262         (convert_condition): New function.
3263         (or_value): Likewise.
3264         (or_cond_value): Likewise.
3265         (generate_testfile): Handle AUTO_TESTS_* lines.
3266         (parse_auto_input): New function.
3267         * math/libm-test.inc (XFAIL_TEST): New macro.
3268         (ERRNO_UNCHANGED): Update value.
3269         (ERRNO_EDOM): Likewise.
3270         (ERRNO_ERANGE): Likewise.
3271         (IGNORE_RESULT): Likewise.
3272         (TEST_COND_flt_32): New macro.
3273         (TEST_COND_dbl_64): Likewise.
3274         (TEST_COND_ldbl_96_intel): Likewise.
3275         (TEST_COND_ldbl_96_m68k): Likewise.
3276         (TEST_COND_ldbl_128): Likewise.
3277         (TEST_COND_ldbl_128ibm): Likewise.
3278         (TEST_COND_long32): Likewise.
3279         (TEST_COND_long64): Likewise.
3280         (TEST_COND_before_rounding): Likewise.
3281         (TEST_COND_after_rounding): Likewise.
3282         (enable_test): Handle XFAIL_TEST flag.
3283         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
3284         with finite results.
3285         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
3286         auto-libm-test-out.
3287
3288 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3289             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3290
3291         [BZ #16214]
3292         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
3293         __tls_get_addr_internal instead of __tls_get_offset in order to
3294         avoid GOT pointer dependency.  Make rtld export
3295         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
3296         __tls_get_addr since we are a __tls_get_offset platform.
3297         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
3298         GOT pointer being set up before.
3299         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
3300
3301 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
3302
3303         * manual/math.texi (Errors in Math Functions): Document accuracy
3304         goals.
3305
3306         [BZ #15004]
3307         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
3308         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
3309         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3310         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3311         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3312         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3313         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3314         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3315         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3316         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3317         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3318         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3319         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3320         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3321         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3322         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3323
3324         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
3325         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
3326         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
3327         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
3328         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
3329         Likewise.
3330         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
3331         Likewise.
3332         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
3333         Likewise.
3334         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
3335         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3336         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
3337         atomic-feupdateenv and flt-rounds.
3338         * sysdeps/powerpc/nofpu/Versions (libc): Add
3339         __atomic_feholdexcept, __atomic_feclearexcept,
3340         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
3341         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
3342         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
3343         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
3344         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
3345         here.
3346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
3347         Update.
3348
3349         * manual/arith.texi (FP Exceptions): Document that exceptions may
3350         not be raised when matherr is used.
3351         (Math Error Reporting): Document overflow in directed rounding
3352         modes.  Document that errno may not be set when finite values are
3353         returned on overflow.  Document intent to set errno on underflow
3354         only for underflow to zero.
3355
3356         [BZ #16271]
3357         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
3358         round-to-nearest then adjust result for other rounding modes.
3359         * include/fenv.h (fegetround): Use libm_hidden_proto.
3360         * math/fegetround.c (fegetround): Use libm_hidden_def.
3361         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3362         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3363         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3364         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3365         Likewise.
3366         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3367         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3368         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3369         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3370
3371 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3372
3373         [BZ #16077]
3374         * nss/Versions (libnss_files): Add
3375         _nss_files_gethostbyname3_r.
3376         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3377         New function.
3378         (HOST_DB_LOOKUP): Remove macro.
3379         (_nss_files_gethostbyname_r): Implement function without the
3380         HOST_DB_LOOKUP macro.
3381         (_nss_files_gethostbyname2_r): Likewise.
3382
3383 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3384
3385         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3386
3387 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3388
3389         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3390         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3391         warning.
3392
3393 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3394
3395         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3396         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3397         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3398         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3399         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3400         __fe_nomask_env_priv and attribute_hidden.
3401         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3402         (libc_feupdateenv_test_ppc): Likewise.
3403         (libc_feresetround_ppc): Likewise.
3404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3405         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3406         compat_symbol macro.
3407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3408         (__fe_nomask_env): Likewise.
3409         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3410
3411 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3412
3413         * string/Makefile: Remove ifunc tests.
3414         * string/test-string.h: Define TEST_IFUNC.
3415         * string/test-bcopy-ifunc.c: Remove.
3416         * string/test-bzero-ifunc.c: Likewise.
3417         * string/test-memccpy-ifunc.c: Likewise.
3418         * string/test-memchr-ifunc.c: Likewise.
3419         * string/test-memcmp-ifunc.c: Likewise.
3420         * string/test-memcpy-ifunc.c: Likewise.
3421         * string/test-memmem-ifunc.c: Likewise.
3422         * string/test-memmove-ifunc.c: Likewise.
3423         * string/test-mempcpy-ifunc.c: Likewise.
3424         * string/test-memrchr-ifunc.c: Likewise.
3425         * string/test-memset-ifunc.c: Likewise.
3426         * string/test-rawmemchr-ifunc.c: Likewise.
3427         * string/test-stpcpy-ifunc.c: Likewise.
3428         * string/test-stpncpy-ifunc.c: Likewise.
3429         * string/test-strcasecmp-ifunc.c: Likewise.
3430         * string/test-strcasestr-ifunc.c: Likewise.
3431         * string/test-strcat-ifunc.c: Likewise.
3432         * string/test-strchr-ifunc.c: Likewise.
3433         * string/test-strchrnul-ifunc.c: Likewise.
3434         * string/test-strcmp-ifunc.c: Likewise.
3435         * string/test-strcpy-ifunc.c: Likewise.
3436         * string/test-strcspn-ifunc.c: Likewise.
3437         * string/test-strlen-ifunc.c: Likewise.
3438         * string/test-strncasecmp-ifunc.c: Likewise.
3439         * string/test-strncat-ifunc.c: Likewise.
3440         * string/test-strncmp-ifunc.c: Likewise.
3441         * string/test-strncpy-ifunc.c: Likewise.
3442         * string/test-strnlen-ifunc.c: Likewise.
3443         * string/test-strpbrk-ifunc.c: Likewise.
3444         * string/test-strrchr-ifunc.c: Likewise.
3445         * string/test-strspn-ifunc.c: Likewise.
3446         * string/test-strstr-ifunc.c: Likewise.
3447
3448 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3449
3450         * benchtests/Makefile: Remove ifunc tests.
3451         * benchtests/bench-string.h: Define TEST_IFUNC.
3452         * benchtests/bench-bcopy-ifunc.c: Remove.
3453         * benchtests/bench-bzero-ifunc.c: Likewise.
3454         * benchtests/bench-memccpy-ifunc.c: Likewise.
3455         * benchtests/bench-memchr-ifunc.c: Likewise.
3456         * benchtests/bench-memcmp-ifunc.c: Likewise.
3457         * benchtests/bench-memcpy-ifunc.c: Likewise.
3458         * benchtests/bench-memmem-ifunc.c: Likewise.
3459         * benchtests/bench-memmove-ifunc.c: Likewise.
3460         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3461         * benchtests/bench-memrchr-ifunc.c: Likewise.
3462         * benchtests/bench-memset-ifunc.c: Likewise.
3463         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3464         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3465         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3466         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3467         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3468         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3469         * benchtests/bench-strcat-ifunc.c: Likewise.
3470         * benchtests/bench-strchr-ifunc.c: Likewise.
3471         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3472         * benchtests/bench-strcmp-ifunc.c: Likewise.
3473         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3474         * benchtests/bench-strcpy-ifunc.c: Likewise.
3475         * benchtests/bench-strcspn-ifunc.c: Likewise.
3476         * benchtests/bench-strlen-ifunc.c: Likewise.
3477         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3478         * benchtests/bench-strncat-ifunc.c: Likewise.
3479         * benchtests/bench-strncmp-ifunc.c: Likewise.
3480         * benchtests/bench-strncpy-ifunc.c: Likewise.
3481         * benchtests/bench-strnlen-ifunc.c: Likewise.
3482         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3483         * benchtests/bench-strrchr-ifunc.c: Likewise.
3484         * benchtests/bench-strsep-ifunc.c: Likewise.
3485         * benchtests/bench-strspn-ifunc.c: Likewise.
3486         * benchtests/bench-strstr-ifunc.c: Likewise.
3487
3488 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3489
3490         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3491
3492 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3493
3494         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3495         * rt/aio.h: Likewise.
3496         * sysdeps/gnu/bits/utmp.h: Likewise.
3497         * sysdeps/gnu/bits/utmpx.h: Likewise.
3498         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3499         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3500         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3501         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3502         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3503         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3504         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3505         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3506         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3507         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3508         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3509         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3510         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3512         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3513         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3514         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3515         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3516         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3517         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3518         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3519         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3520         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3521         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3522         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3523         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3524         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3525         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3526         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3527         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3528         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3529         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3530         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3531         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3532         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3533         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3534         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3535         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3536         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3537         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3538         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3539         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3540
3541 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3542
3543         [BZ #16245]
3544         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3545         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3546
3547 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3548
3549         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3550         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3551         Likewise.
3552
3553 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3554
3555         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3556         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3557         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3558         (__fesetround): Remove define.
3559         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3560         rounding and exceptions handling.
3561         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3562         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3563         (__fe_nomask_env): Likewise.
3564         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3565         __fegetround instead of fegetround.
3566         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3567         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3568
3569 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3570
3571         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3572         it's there.
3573
3574         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3575
3576 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3577
3578         [BZ #11157]
3579         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3580         (encrypt_r): Likewise.
3581         * malloc/obstack.h (obstack_free): Likewise.
3582         * posix/unistd.h (encrypt): Likewise.
3583
3584 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3585
3586         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3587         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3588         DL_CALL_DT_FINI() that call the functions directly.
3589         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3590         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3591         * elf/dl-fini.c: Likewise.
3592
3593 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3594
3595         * malloc/hooks.c (memalign_check): Add alignment rounding.
3596         * malloc/malloc.c (_mid_memalign): New function.
3597         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3598         Implement by calling _mid_memalign.
3599         * manual/probes.texi (Memory Allocation Probes): Remove
3600         memory_valloc_retry and memory_pvalloc_retry.
3601
3602 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3603
3604         * locale/programs/locarchive.c (open_archive): Add const
3605         qualifier to ARCHIVEFNAME and copy default fname to
3606         DEFAULT_FNAME.
3607
3608         [BZ #15601]
3609         * libio/tst-widetext.input: Rename Oriya to Odia.
3610         * locale/iso-639.def: Likewise.
3611
3612         * manual/probes.texi (Mathematical Function Probes): Add
3613         documentation for sin, cos, asin and acos probes.
3614         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3615         (__sin32): Add slowasin probe.
3616         (__cos32): Add slowacos probe.
3617         (__mpsin): Add slowsin probe.
3618         (__mpcos): Add slowcos probe.
3619
3620 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3621
3622         [BZ #15483]
3623         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3624         thread-local __sim_exceptions_thread and global
3625         __sim_exceptions_global.
3626         (__sim_disabled_exceptions): Change to thread-local
3627         __sim_disabled_exceptions_thread and global
3628         __sim_disabled_exceptions_global.
3629         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3630         and global __sim_round_mode_global.
3631         (__simulate_exceptions): Use thread-local floating-point state and
3632         set global state from it as needed.
3633         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3634         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3635         __sim_round_mode_thread.
3636         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3637         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3638         and global __sim_exceptions_global.
3639         (__sim_disabled_exceptions): Change to thread-local
3640         __sim_disabled_exceptions_thread and global
3641         __sim_disabled_exceptions_global.
3642         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3643         and global __sim_round_mode_global.
3644         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3645         (SIM_SET_GLOBAL): Likewise.
3646         * sysdeps/powerpc/soft-fp/sfp-machine.h
3647         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3648         __sim_round_mode_thread.
3649         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3650         __sim_disabled_exceptions_thread.
3651         (__sim_exceptions): Change to __sim_exceptions_thread.
3652         (__sim_disabled_exceptions): Change to
3653         __sim_disabled_exceptions_thread.
3654         (__sim_round_mode): Change to __sim_round_mode_thread.
3655         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3656         thread-local floating-point state and set global state from it as
3657         needed.
3658         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3659         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3660         (__sim_disabled_exceptions): Remove extern declaration.
3661         (feenableexcept): Use thread-local floating-point state and set
3662         global state from it as needed.
3663         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3664         extern declaration.
3665         (__sim_disabled_exceptions): Likewise.
3666         (__sim_round_mode): Likewise.
3667         (__fegetenv): Use thread-local floating-point state.
3668         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3669         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3670         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3671         floating-point state and set global state from it as needed.
3672         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3673         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3674         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3675         Likewise.
3676         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3677         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3678         Likewise.
3679         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3680         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3681         Use __sim_round_mode_thread.
3682         * math/test-fenv-tls.c: New file.
3683         * math/Makefile (tests): Add test-fenv-tls.
3684         ($(objpfx)test-fenv-tls): Depend on
3685         $(common-objpfx)nptl/libpthread.so.
3686
3687 2013-11-19  Andreas Schwab  <schwab@suse.de>
3688
3689         * locale/programs/locale.c (show_info): Decode wordarray elements.
3690         * locale/categories.def (LC_MONETARY): Add element for
3691         _NL_MONETARY_CRNCYSTR.
3692         * locale/C-monetary.c (conversion_rate): New variable.
3693         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3694         element.
3695
3696 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3697
3698         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3699         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3700
3701 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3702
3703         * elf/Makefile (tst-auxv): New test.
3704         * elf/tst-auxv.c: New
3705         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3706
3707 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3708
3709         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3710         (hidden_proto): Caller changed.
3711         (hidden_tls_proto): New macro.
3712         (libc_hidden_tls_proto): Likewise.
3713         (rtld_hidden_tls_proto): Likewise.
3714         (libm_hidden_tls_proto): Likewise.
3715         (libresolv_hidden_tls_proto): Likewise.
3716         (librt_hidden_tls_proto): Likewise.
3717         (libdl_hidden_tls_proto): Likewise.
3718         (libnss_files_hidden_tls_proto): Likewise.
3719         (libnsl_hidden_tls_proto): Likewise.
3720         (libnss_nisplus_hidden_tls_proto): Likewise.
3721         (libutil_hidden_tls_proto): Likewise.
3722
3723 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3724
3725         [BZ #10253]
3726         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3727         (decompose_rpath): Defer expansion to fillin_rpath.
3728         (_dl_init_paths): Pass linkmap to fillin_rpath.
3729
3730 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3731
3732         * benchtests/Makefile: Add strsep.
3733         * benchtests/bench-strsep.c: New file: strsep benchtest.
3734         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3735
3736 2013-11-18  Andreas Schwab  <schwab@suse.de>
3737
3738         * locale/programs/locale.c (show_info) [case byte]: Check for
3739         '\377' instead of '\177'.
3740         * locale/C-monetary.c (not_available): Always use "\377".
3741         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3742         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3743         detect unavailable sign_posn locale elements.
3744         * locale/localeconv.c (__localeconv): For grouping and
3745         mon_grouping handle "\177" and "\377" like no grouping.
3746         (INT_ELEM): New macro.  Use it to set all numeric members.
3747         * locale/programs/ld-monetary.c (monetary_read)
3748         <tok_mon_grouping>: Normalize single -1 to the empty string.
3749         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3750         Likewise.
3751
3752 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3753
3754         [BZ #16055]
3755         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3756         when we match (nil).
3757         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3758
3759 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3760
3761         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3762         (NO_TEST_INLINE): Update value.
3763         (ERRNO_UNCHANGED): Likewise.
3764         (ERRNO_EDOM): Likewise.
3765         (ERRNO_ERANGE): Likewise.
3766         (IGNORE_RESULT): Likewise.
3767         (check_float_internal): Check signs of NaN results if
3768         TEST_NAN_SIGN used.
3769         (check_complex): Pass TEST_NAN_SIGN flag through to second
3770         check_float_internal call.
3771         (copysign_test_data): Add tests with quiet NaNs as second
3772         argument.  Use TEST_NAN_SIGN.
3773         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3774         TEST_NAN_SIGN.
3775         (signbit_test_data): Add tests of quiet NaN argument.
3776         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3777
3778         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3779         $ignore_result.
3780         (parse_args): Handle function results specified as IGNORE.
3781         * math/libm-test.inc (IGNORE_RESULT): New macro.
3782         (check_float_internal): Do not check numerical result if flag
3783         IGNORE_RESULT set.
3784         (check_complex): Pass through IGNORE_RESULT to second
3785         check_float_internal call.
3786         (check_int): Do not check numerical result if flag IGNORE_RESULT
3787         set.
3788         (check_long): Likewise.
3789         (check_bool): Likewise.
3790         (check_longlong): Likewise.
3791         (lrint_test_data): Add tests of infinite and NaN arguments.
3792         (lrint_tonearest_test_data): Likewise.
3793         (lrint_towardzero_test_data): Likewise.
3794         (lrint_downward_test_data): Likewise.
3795         (lrint_upward_test_data): Likewise.
3796         (llrint_test_data): Likewise.
3797         (llrint_tonearest_test_data): Likewise.
3798         (llrint_towardzero_test_data): Likewise.
3799         (llrint_downward_test_data): Likewise.
3800         (llrint_upward_test_data): Likewise.
3801         (lround_test_data): Likewise.
3802         (llround_test_data): Likewise.
3803
3804         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3805         (ERRNO_UNCHANGED): Update value.
3806         (ERRNO_EDOM): Likewise.
3807         (ERRNO_ERANGE): Likewise.
3808         (NO_TEST_INLINE_FLOAT): New macro.
3809         (NO_TEST_INLINE_DOUBLE): Likewise.
3810         (enable_test): New function.
3811         (RUN_TEST_f_f): Check enable_test before running test.
3812         (RUN_TEST_2_f): Likewise.
3813         (RUN_TEST_fff_f): Likewise.
3814         (RUN_TEST_c_f): Likewise.
3815         (RUN_TEST_f_f1): Likewise.
3816         (RUN_TEST_fF_f1): Likewise.
3817         (RUN_TEST_fI_f1): Likewise.
3818         (RUN_TEST_ffI_f1): Likewise.
3819         (RUN_TEST_c_c): Likewise.
3820         (RUN_TEST_cc_c): Likewise.
3821         (RUN_TEST_f_i): Likewise.
3822         (RUN_TEST_f_i_tg): Likewise.
3823         (RUN_TEST_ff_i_tg): Likewise.
3824         (RUN_TEST_f_b): Likewise.
3825         (RUN_TEST_f_b_tg): Likewise.
3826         (RUN_TEST_f_l): Likewise.
3827         (RUN_TEST_f_L): Likewise.
3828         (RUN_TEST_fFF_11): Likewise.
3829         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3830         conditionals.
3831         (cosh_test_data): Likewise.
3832         (exp_test_data): Likewise.
3833         (expm1_test_data): Likewise.
3834         (hypot_test_data): Likewise.
3835         (pow_test_data): Likewise.
3836         (sinh_test_data): Likewise.
3837         (tanh_test_data): Likewise.
3838         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3839         flags argument.
3840
3841         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3842         tests with quiet NaN input and output.
3843         (acosh_test_data): Likewise.
3844         (asin_test_data): Likewise.
3845         (asinh_test_data): Likewise.
3846         (atan_test_data): Likewise.
3847         (atanh_test_data): Likewise.
3848         (atan2_test_data): Likewise.
3849         (cbrt_test_data): Likewise.
3850         (cos_test_data): Likewise.
3851         (cosh_test_data): Likewise.
3852         (erf_test_data): Likewise.
3853         (erfc_test_data): Likewise.
3854         (exp_test_data): Likewise.
3855         (exp10_test_data): Likewise.
3856         (exp2_test_data): Likewise.
3857         (expm1_test_data): Likewise.
3858         (hypot_test_data): Likewise.
3859         (j0_test_data): Likewise.
3860         (j1_test_data): Likewise.
3861         (jn_test_data): Likewise.
3862         (lgamma_test_data): Likewise.
3863         (log_test_data): Likewise.
3864         (log10_test_data): Likewise.
3865         (log1p_test_data): Likewise.
3866         (log2_test_data): Likewise.
3867         (pow_test_data): Likewise.
3868         (scalb_test_data): Likewise.
3869         (sin_test_data): Likewise.
3870         (sincos_test_data): Likewise.
3871         (sinh_test_data): Likewise.
3872         (tan_test_data): Likewise.
3873         (tanh_test_data): Likewise.
3874         (tgamma_test_data): Likewise.
3875         (y0_test_data): Likewise.
3876         (y1_test_data): Likewise.
3877         (yn_test_data): Likewise.
3878
3879         [BZ #16167]
3880         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3881         argument being NaN and avoid computations with second argument in
3882         that case.
3883         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3884         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3885         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3886
3887 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3888
3889         * locale/iso-639.def: Add Chitwani Tharu (the).
3890
3891 2013-11-14  Andreas Schwab  <schwab@suse.de>
3892
3893         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3894         word instead of empty string.
3895
3896 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3897
3898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3899         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3901         (__fe_nomask_env): Likewise.
3902
3903 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3904
3905         * benchtests/bench-timing.h: Include time.h.
3906
3907 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3908
3909         [BZ #15997]
3910         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3911         to 3.4.0 for x32.
3912         * sysdeps/unix/sysv/linux/configure: Regenerated.
3913
3914 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3915
3916         [BZ #16151]
3917         * stdlib/strtod_l.c (round_and_return): Do not consider
3918         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3919         exponent one less than half the least subnormal exponent.
3920         * stdlib/test-strtod-round-data: Add more tests.
3921         * stdlib/tst-strtod-round.c (tests): Regenerated.
3922
3923 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3924
3925         [BZ #14143]
3926         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3927         (__fe_mask_env): Likewise.
3928         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3929         libm_hidden_proto and add function prototype.
3930         (__fe_mask_env): Add function prototype.
3931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3932         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3934         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3936         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3937
3938 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3939
3940         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3941         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3942
3943 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3944
3945         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3946         of htab_find_slot().
3947
3948 2013-11-11  David S. Miller  <davem@davemloft.net>
3949
3950         [BZ #16150]
3951         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3952         symbol in the non-vis3 case in static builds.
3953         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3954         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3955         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3956         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3957
3958 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3959
3960         [BZ #387]
3961         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3962         it is empty.
3963
3964 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3965
3966         * benchtests/Makefile: Add bench-strtod.
3967         * benchtests/bench-strtod.c: New file: strtod benchtest
3968
3969 2013-11-11  Andreas Schwab  <schwab@suse.de>
3970
3971         [BZ #16153]
3972         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3973         terminating NUL in key length.
3974
3975 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3976
3977         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3978         Add artificial ODP entry for vDSO symbol for PPC64.
3979         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3980         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3981
3982 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3983
3984         [BZ #15374]
3985         * nss/getent.c (services_keys): Recognize services starting with digit.
3986
3987 2013-11-06  David S. Miller  <davem@davemloft.net>
3988
3989         [BZ #15985]
3990         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
3991         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
3992
3993 2013-11-06  Will Newton  <will.newton@linaro.org>
3994
3995         * manual/memory.texi (Malloc Examples): Remove register
3996         keyword from examples.
3997
3998 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
3999
4000         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
4001
4002 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
4003
4004         [BZ #6981]
4005         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
4006         depending on [__GCC_IEC_559 > 0].
4007         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
4008         depending on [__GCC_IEC_559_COMPLEX > 0].
4009
4010 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
4011
4012         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
4013         to iso-639.def.
4014
4015 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
4016
4017         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
4018
4019 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
4020
4021         [BZ #16112]
4022         * malloc/malloc (malloc_info): Do not handle first bin as
4023         special case.
4024
4025 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
4026
4027         * locale/iso-639.def: Add Central Nahuatl (nhn).
4028
4029 2013-11-01  Bruno Haible  <bruno@clisp.org>
4030
4031         [BZ #7003]
4032         * manual/math.texi (BSD Random): Specify range upper bound as
4033         in POSIX.
4034
4035 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
4036
4037         * locale/iso-639.def: Add Meadow Mari (mhr).
4038
4039 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
4040
4041         [BZ #14752], [BZ #15763]
4042         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
4043         Validate name.
4044         * rt/tst_shm.c: Add test for escaping directory.
4045
4046 2013-10-31  Andreas Schwab  <schwab@suse.de>
4047
4048         [BZ #15917]
4049         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
4050         followed by 'x' as part of digit sequence.
4051         * stdio-common/tst-sscanf.c (double_tests2): New tests.
4052
4053 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4054
4055         [BZ #16037]
4056         * configure.ac: allow GNU Make 4.0 and greater.
4057         * configure: Regenerated.
4058
4059 2013-10-30  Will Newton  <will.newton@linaro.org>
4060
4061         [BZ #16038]
4062         * malloc/hooks.c (memalign_check): Limit alignment to the
4063         maximum representable power of two.
4064         * malloc/malloc.c (__libc_memalign): Likewise.
4065         * malloc/tst-memalign.c (do_test): Add test for very
4066         large alignment values.
4067         * malloc/tst-posix_memalign.c (do_test): Likewise.
4068
4069 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
4070
4071         [BZ #11087]
4072         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
4073         (munmap_chunk): Likewise.
4074         (mremap_chunk): Likewise.
4075
4076 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
4077
4078         [BZ #15799]
4079         * stdlib/div.c (div): Remove obsolete code.
4080         * stdlib/ldiv.c (ldiv): Likewise.
4081         * stdlib/lldiv.c (lldiv): Likewise.
4082
4083 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4084
4085         [BZ #16071]
4086         * nss/nss_files/files-XXX.c (get_contents_ret): New
4087         enumerator.
4088         (get_contents): New function.
4089         (internal_getent): Use it.  Expand size of LINEBUFLEN.
4090
4091 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
4092
4093         * configure.in: Moved to ...
4094         * configure.ac: ... here. Change reference to configure.in
4095         to configure.ac.
4096         * sysdeps/arm/preconfigure.ac: ... here.
4097         configure.in to configure.ac.
4098         * sysdeps/gnu/configure.in: Moved to ...
4099         * sysdeps/gnu/configure.ac: ... here.
4100         * sysdeps/i386/configure.in: Moved to ...
4101         * sysdeps/i386/configure.ac: ... here.
4102         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
4103         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
4104         * sysdeps/mach/configure.in: Moved to ...
4105         * sysdeps/mach/configure.ac: ... here.
4106         * sysdeps/mach/hurd/configure.in: Moved to ...
4107         * sysdeps/mach/hurd/configure.ac: ... here.
4108         * sysdeps/powerpc/configure.in: Moved to ...
4109         * sysdeps/powerpc/configure.ac: ... here.
4110         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
4111         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
4112         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
4113         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
4114         * sysdeps/s390/s390-32/configure.in: Moved to ...
4115         * sysdeps/s390/s390-32/configure.ac: ... here.
4116         * sysdeps/s390/s390-64/configure.in: Moved to ...
4117         * sysdeps/s390/s390-64/configure.ac: ... here.
4118         * sysdeps/sh/configure.in: Moved to ...
4119         * sysdeps/sh/configure.ac: ... here.
4120         * sysdeps/sparc/configure.in: Moved to ...
4121         * sysdeps/sparc/configure.ac: ... here.
4122         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
4123         * sysdeps/unix/sysv/linux/configure.ac: ... here.
4124         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
4125         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
4126         * sysdeps/x86_64/configure.in: Moved to ...
4127         * sysdeps/x86_64/configure.ac: ... here.
4128         * sysdeps/x86_64/preconfigure.in: Moved to ...
4129         * sysdeps/x86_64/preconfigure.ac: ... here.
4130         * aclocal.m4: Change reference to configure.in to configure.ac.
4131         * config.h.in: Likewise.
4132         * manual/install.texi: Likewise.
4133         * manual/maint.texi: Likewise.
4134         * Makefile: Likewise.
4135         * malloc/Makefile: Likewise.
4136         * nscd/Makefile: Likewise.
4137         * Makeconfig: Change reference to configure.in and
4138         preconfigure.in to configure.ac and preconfigure.ac
4139         respectively.
4140         * INSTALL: Regenerated.
4141         * configure: Likewise.
4142         * sysdeps/gnu/configure: Likewise.
4143         * sysdeps/i386/configure: Likewise.
4144         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
4145         * sysdeps/mach/configure: Likewise.
4146         * sysdeps/mach/hurd/configure: Likewise.
4147         * sysdeps/powerpc/configure: Likewise.
4148         * sysdeps/powerpc/powerpc32/configure: Likewise.
4149         * sysdeps/powerpc/powerpc64/configure: Likewise.
4150         * sysdeps/s390/s390-32/configure: Likewise.
4151         * sysdeps/s390/s390-64/configure: Likewise.
4152         * sysdeps/sh/configure: Likewise.
4153         * sysdeps/sparc/configure: Likewise.
4154         * sysdeps/unix/sysv/linux/configure: Likewise.
4155         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
4156         * sysdeps/x86_64/configure: Likewise.
4157         * sysdeps/x86_64/preconfigure: Likewise.
4158
4159 2013-10-29  Andreas Schwab  <schwab@suse.de>
4160
4161         * stdio-common/Makefile (tst-swscanf-ENV): Define.
4162
4163 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4164
4165         * benchtests/pow-inputs: Add new inputs.
4166
4167         * benchtests/exp-inputs: Add new inputs.
4168
4169         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
4170         conditional check for return value.
4171         (__cos32): Likewise.
4172
4173 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4174
4175         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
4176         to provide a boost for large inputs with word alignment.
4177         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
4178         implementation based on optimized PPC64 strcpy.
4179         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
4180         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
4181         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
4182         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
4183
4184 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4185
4186         [BZ #2801]
4187         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
4188
4189 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4190
4191         [BZ #14876]
4192         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
4193         * time/tst-strptime.c (day_tests): Add testcase.
4194
4195 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4196
4197         [BZ #14029]
4198         * manual/pattern.texi: Acknowledge that fnmatch can fail.
4199
4200 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
4201
4202         [BZ #16074]
4203         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
4204         MAP_FAILED on error.
4205
4206 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4207
4208         [BZ #16072]
4209         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
4210         heap for large requests.
4211
4212 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
4213
4214         [BZ #9954]
4215         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
4216         result if the result has no associated interface.
4217         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
4218         interface for all 127.X.Y.Z addresses.
4219
4220 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
4221
4222         * locale/iso-639.def: Add Ligurian (lij)
4223
4224 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
4225
4226         [BZ #15825]
4227         * sunrpc/rpc_main.c: Document rpcgen -5.
4228
4229 2013-10-19  Michael Stahl  <mstahl@redhat.com>
4230
4231         * elf/rtld.c (do_preload): Print the reason why preloading failed.
4232
4233 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4234
4235         [BZ #10278]
4236         * posix/glob.c: Match only directories when trailing slash is present.
4237         * posix/tst-gnuglob.c (my_opendir): Do not open files.
4238         (main): Add testcase.
4239
4240 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4241
4242         [BZ #15670]
4243         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
4244
4245 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
4246
4247         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
4248         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
4249         AUTH_DES and cindex for FIPS 140-2.
4250         (DES Encryption): Add cindex FIPS 46-3.
4251
4252         * locale/locarchive.h (struct locarhandle): Add fname.
4253         * locale/programs/localedef.c (main): Pass ARGV[remaining]
4254         if an optional argument was specified to --list-archive,
4255         otherwise NULL.
4256         * locale/programs/locarchive.c (show_archive_content): Take new
4257         argument fname and pass it via ah.fname to open_archive.
4258         * locale/programs/localedef.h: Update decl.
4259         (open_archive): If AH->fname is non-null, open that file
4260         rather than the default file name, and don't ignore ENOENT.
4261         (create_archive): Set AH.fname to NULL.
4262         (delete_locales_from_archive): Likewise.
4263         (add_locales_to_archive): Likewise.
4264         * locale/programs/locfile.c (write_all_categories): Likewise.
4265
4266 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
4267             Aldy Hernandez  <aldyh@redhat.com>
4268
4269         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
4270         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
4271         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
4272         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
4273         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
4274         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
4275         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
4276         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
4277         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
4278         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
4279         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
4280         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
4281         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
4282         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
4283         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
4284         Likewise.
4285         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
4286         Likewise.
4287         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
4288         Likewise.
4289         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
4290         Likewise.
4291         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
4292         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
4293         Likewise.
4294         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
4295         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
4296         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
4297         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
4298         Likewise.
4299         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
4300         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
4301         * sysdeps/powerpc/preconfigure: Likewise.
4302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4303         Likewise.
4304         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
4305         Replace contents of file by #include of <fenv_libc.h>.
4306         * sysdeps/powerpc/soft-fp/sfp-machine.h
4307         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
4308         and <sys/prctl.h>.
4309         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
4310         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
4311         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
4312         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
4313         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
4314         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
4315         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
4316         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
4317         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
4318         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
4319         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
4320         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
4321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
4322         Allow copysignl PLT reference to be missing.
4323
4324 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
4325             Joseph Myers  <joseph@codesourcery.com
4326
4327         [BZ #15948]
4328         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
4329         single character.
4330         (add_to_tablewc): Assert sequence of wide characters is nonempty.
4331
4332 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4333
4334         * elf/tst-tls-dlinfo.c: Don't include tls.h.
4335         * elf/tst-tls1.c: Likewise.
4336         * elf/tst-tls10.h: Likewise.
4337         * elf/tst-tls14.c: Likewise.
4338         * elf/tst-tls2.c: Likewise.
4339         * elf/tst-tls3.c: Likewise.
4340         * elf/tst-tls4.c: Likewise.
4341         * elf/tst-tls5.c: Likewise.
4342         * elf/tst-tls6.c: Likewise.
4343         * elf/tst-tls7.c: Likewise.
4344         * elf/tst-tls8.c: Likewise.
4345         * elf/tst-tls9.c: Likewise.
4346         * elf/tst-tlsmod1.c: Likewise.
4347         * elf/tst-tlsmod13.c: Likewise.
4348         * elf/tst-tlsmod13a.c: Likewise.
4349         * elf/tst-tlsmod14a.c: Likewise.
4350         * elf/tst-tlsmod16a.c: Likewise.
4351         * elf/tst-tlsmod16b.c: Likewise.
4352         * elf/tst-tlsmod2.c: Likewise.
4353         * elf/tst-tlsmod3.c: Likewise.
4354         * elf/tst-tlsmod4.c: Likewise.
4355         * elf/tst-tlsmod5.c: Likewise.
4356         * elf/tst-tlsmod6.c: Likewise.
4357
4358 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
4359
4360         [BZ #12486]
4361         * malloc/malloc.c: remove checks for statistics.
4362
4363 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4364
4365         [BZ #15277]
4366         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4367         * inet/tst-network.c: Add testcase.
4368
4369 2013-10-17  Andreas Schwab  <schwab@suse.de>
4370
4371         [BZ #15218]
4372         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4373         to determine canonical name.
4374
4375 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4376
4377         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4378         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4379         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4380         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4381         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4382         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4383         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4384         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4385         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4386         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4387         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4388         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4389         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4390         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4391         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4392         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4393         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4394         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4395         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4396         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4397         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4398         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4399         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4400         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4401         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4402         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4403         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4404         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4405         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4406         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4407         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4408         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4409         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4410         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4411         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4412         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4413         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4414         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4415         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4416         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4417         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4418         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4419         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4420         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4421         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4422         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4423         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4424         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4425         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4426         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4427         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4428         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4429         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4430         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4431         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4432         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4433         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4434         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4435
4436 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4437
4438         [BZ #16041]
4439         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4440         make result into a quiet NaN.
4441
4442 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4443
4444         * soft-fp/adddf3.c: Fix horizontal whitespace.
4445         * soft-fp/addsf3.c: Likewise.
4446         * soft-fp/addtf3.c: Likewise.
4447         * soft-fp/divdf3.c: Likewise.
4448         * soft-fp/divsf3.c: Likewise.
4449         * soft-fp/divtf3.c: Likewise.
4450         * soft-fp/double.h: Likewise.
4451         * soft-fp/eqdf2.c: Likewise.
4452         * soft-fp/eqsf2.c: Likewise.
4453         * soft-fp/eqtf2.c: Likewise.
4454         * soft-fp/extenddftf2.c: Likewise.
4455         * soft-fp/extended.h: Likewise.
4456         * soft-fp/extendsfdf2.c: Likewise.
4457         * soft-fp/extendsftf2.c: Likewise.
4458         * soft-fp/extendxftf2.c: Likewise.
4459         * soft-fp/fixdfdi.c: Likewise.
4460         * soft-fp/fixdfsi.c: Likewise.
4461         * soft-fp/fixdfti.c: Likewise.
4462         * soft-fp/fixsfdi.c: Likewise.
4463         * soft-fp/fixsfsi.c: Likewise.
4464         * soft-fp/fixsfti.c: Likewise.
4465         * soft-fp/fixtfdi.c: Likewise.
4466         * soft-fp/fixtfsi.c: Likewise.
4467         * soft-fp/fixtfti.c: Likewise.
4468         * soft-fp/fixunsdfdi.c: Likewise.
4469         * soft-fp/fixunsdfsi.c: Likewise.
4470         * soft-fp/fixunsdfti.c: Likewise.
4471         * soft-fp/fixunssfdi.c: Likewise.
4472         * soft-fp/fixunssfsi.c: Likewise.
4473         * soft-fp/fixunssfti.c: Likewise.
4474         * soft-fp/fixunstfdi.c: Likewise.
4475         * soft-fp/fixunstfsi.c: Likewise.
4476         * soft-fp/fixunstfti.c: Likewise.
4477         * soft-fp/floatdidf.c: Likewise.
4478         * soft-fp/floatdisf.c: Likewise.
4479         * soft-fp/floatditf.c: Likewise.
4480         * soft-fp/floatsidf.c: Likewise.
4481         * soft-fp/floatsisf.c: Likewise.
4482         * soft-fp/floatsitf.c: Likewise.
4483         * soft-fp/floattidf.c: Likewise.
4484         * soft-fp/floattisf.c: Likewise.
4485         * soft-fp/floattitf.c: Likewise.
4486         * soft-fp/floatundidf.c: Likewise.
4487         * soft-fp/floatundisf.c: Likewise.
4488         * soft-fp/floatunditf.c: Likewise.
4489         * soft-fp/floatunsidf.c: Likewise.
4490         * soft-fp/floatunsisf.c: Likewise.
4491         * soft-fp/floatunsitf.c: Likewise.
4492         * soft-fp/floatuntidf.c: Likewise.
4493         * soft-fp/floatuntisf.c: Likewise.
4494         * soft-fp/floatuntitf.c: Likewise.
4495         * soft-fp/fmadf4.c: Likewise.
4496         * soft-fp/fmasf4.c: Likewise.
4497         * soft-fp/fmatf4.c: Likewise.
4498         * soft-fp/gedf2.c: Likewise.
4499         * soft-fp/gesf2.c: Likewise.
4500         * soft-fp/getf2.c: Likewise.
4501         * soft-fp/ledf2.c: Likewise.
4502         * soft-fp/lesf2.c: Likewise.
4503         * soft-fp/letf2.c: Likewise.
4504         * soft-fp/muldf3.c: Likewise.
4505         * soft-fp/mulsf3.c: Likewise.
4506         * soft-fp/multf3.c: Likewise.
4507         * soft-fp/negdf2.c: Likewise.
4508         * soft-fp/negsf2.c: Likewise.
4509         * soft-fp/negtf2.c: Likewise.
4510         * soft-fp/op-1.h: Likewise.
4511         * soft-fp/op-2.h: Likewise.
4512         * soft-fp/op-4.h: Likewise.
4513         * soft-fp/op-8.h: Likewise.
4514         * soft-fp/op-common.h: Likewise.
4515         * soft-fp/quad.h: Likewise.
4516         * soft-fp/single.h: Likewise.
4517         * soft-fp/soft-fp.h: Likewise.
4518         * soft-fp/sqrtdf2.c: Likewise.
4519         * soft-fp/sqrtsf2.c: Likewise.
4520         * soft-fp/sqrttf2.c: Likewise.
4521         * soft-fp/subdf3.c: Likewise.
4522         * soft-fp/subsf3.c: Likewise.
4523         * soft-fp/subtf3.c: Likewise.
4524         * soft-fp/truncdfsf2.c: Likewise.
4525         * soft-fp/trunctfdf2.c: Likewise.
4526         * soft-fp/trunctfsf2.c: Likewise.
4527         * soft-fp/trunctfxf2.c: Likewise.
4528         * soft-fp/unorddf2.c: Likewise.
4529         * soft-fp/unordsf2.c: Likewise.
4530         * soft-fp/unordtf2.c: Likewise.
4531
4532 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4533
4534         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4535         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4536
4537 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4538
4539         * elf/dl-libc.c: Clear initfini list after freeing.
4540
4541 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4542
4543         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4544         * soft-fp/addsf3.c: Likewise.
4545         * soft-fp/addtf3.c: Likewise.
4546         * soft-fp/divdf3.c: Likewise.
4547         * soft-fp/divsf3.c: Likewise.
4548         * soft-fp/divtf3.c: Likewise.
4549         * soft-fp/double.h: Likewise.
4550         * soft-fp/eqdf2.c: Likewise.
4551         * soft-fp/eqsf2.c: Likewise.
4552         * soft-fp/eqtf2.c: Likewise.
4553         * soft-fp/extenddftf2.c: Likewise.
4554         * soft-fp/extended.h: Likewise.
4555         * soft-fp/extendsfdf2.c: Likewise.
4556         * soft-fp/extendsftf2.c: Likewise.
4557         * soft-fp/extendxftf2.c: Likewise.
4558         * soft-fp/fixdfdi.c: Likewise.
4559         * soft-fp/fixdfsi.c: Likewise.
4560         * soft-fp/fixdfti.c: Likewise.
4561         * soft-fp/fixsfdi.c: Likewise.
4562         * soft-fp/fixsfsi.c: Likewise.
4563         * soft-fp/fixsfti.c: Likewise.
4564         * soft-fp/fixtfdi.c: Likewise.
4565         * soft-fp/fixtfsi.c: Likewise.
4566         * soft-fp/fixtfti.c: Likewise.
4567         * soft-fp/fixunsdfdi.c: Likewise.
4568         * soft-fp/fixunsdfsi.c: Likewise.
4569         * soft-fp/fixunsdfti.c: Likewise.
4570         * soft-fp/fixunssfdi.c: Likewise.
4571         * soft-fp/fixunssfsi.c: Likewise.
4572         * soft-fp/fixunssfti.c: Likewise.
4573         * soft-fp/fixunstfdi.c: Likewise.
4574         * soft-fp/fixunstfsi.c: Likewise.
4575         * soft-fp/fixunstfti.c: Likewise.
4576         * soft-fp/floatdidf.c: Likewise.
4577         * soft-fp/floatdisf.c: Likewise.
4578         * soft-fp/floatditf.c: Likewise.
4579         * soft-fp/floatsidf.c: Likewise.
4580         * soft-fp/floatsisf.c: Likewise.
4581         * soft-fp/floatsitf.c: Likewise.
4582         * soft-fp/floattidf.c: Likewise.
4583         * soft-fp/floattisf.c: Likewise.
4584         * soft-fp/floattitf.c: Likewise.
4585         * soft-fp/floatundidf.c: Likewise.
4586         * soft-fp/floatundisf.c: Likewise.
4587         * soft-fp/floatunsidf.c: Likewise.
4588         * soft-fp/floatunsisf.c: Likewise.
4589         * soft-fp/floatuntidf.c: Likewise.
4590         * soft-fp/floatuntisf.c: Likewise.
4591         * soft-fp/floatuntitf.c: Likewise.
4592         * soft-fp/fmadf4.c: Likewise.
4593         * soft-fp/fmasf4.c: Likewise.
4594         * soft-fp/fmatf4.c: Likewise.
4595         * soft-fp/gedf2.c: Likewise.
4596         * soft-fp/gesf2.c: Likewise.
4597         * soft-fp/getf2.c: Likewise.
4598         * soft-fp/ledf2.c: Likewise.
4599         * soft-fp/lesf2.c: Likewise.
4600         * soft-fp/letf2.c: Likewise.
4601         * soft-fp/muldf3.c: Likewise.
4602         * soft-fp/mulsf3.c: Likewise.
4603         * soft-fp/multf3.c: Likewise.
4604         * soft-fp/negdf2.c: Likewise.
4605         * soft-fp/negsf2.c: Likewise.
4606         * soft-fp/negtf2.c: Likewise.
4607         * soft-fp/op-1.h: Likewise.
4608         * soft-fp/op-2.h: Likewise.
4609         * soft-fp/op-4.h: Likewise.
4610         * soft-fp/op-8.h: Likewise.
4611         * soft-fp/op-common.h: Likewise.
4612         * soft-fp/quad.h: Likewise.
4613         * soft-fp/single.h: Likewise.
4614         * soft-fp/soft-fp.h: Likewise.
4615         * soft-fp/sqrtdf2.c: Likewise.
4616         * soft-fp/sqrtsf2.c: Likewise.
4617         * soft-fp/sqrttf2.c: Likewise.
4618         * soft-fp/subdf3.c: Likewise.
4619         * soft-fp/subsf3.c: Likewise.
4620         * soft-fp/subtf3.c: Likewise.
4621         * soft-fp/truncdfsf2.c: Likewise.
4622         * soft-fp/trunctfdf2.c: Likewise.
4623         * soft-fp/trunctfsf2.c: Likewise.
4624         * soft-fp/trunctfxf2.c: Likewise.
4625         * soft-fp/unorddf2.c: Likewise.
4626         * soft-fp/unordsf2.c: Likewise.
4627         * soft-fp/unordtf2.c: Likewise.
4628
4629 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4630
4631         [BZ #15672]
4632         * misc/error.c (error_tail): Fix possible buffer overflow.
4633
4634 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4635
4636         [BZ #13028]
4637         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4638         address.
4639
4640 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4641
4642         [BZ #832]
4643         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4644         testing pipefail option.
4645
4646 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4647
4648         * soft-fp/double.h: Indent preprocessor directives inside #if.
4649         * soft-fp/extended.h: Likewise.
4650         * soft-fp/op-2.h: Likewise.
4651         * soft-fp/op-4.h: Likewise.
4652         * soft-fp/op-common.h: Likewise.
4653         * soft-fp/quad.h: Likewise.
4654         * soft-fp/single.h: Likewise.
4655         * soft-fp/soft-fp.h: Likewise.
4656
4657 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4658
4659         * iconv/iconv_prog.c: Fix typos.
4660         * stdio-common/psiginfo-data.h: Likewise.
4661
4662 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4663
4664         [BZ #15764]
4665         * locale/setlocale.c: Fix typo.
4666
4667 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4668
4669         [BZ #16036]
4670         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4671         signaling NaN arguments.
4672         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4673         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4674
4675         [BZ #14910]
4676         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4677         unordered operands.
4678         * soft-fp/gesf2.c (__gesf2): Likewise.
4679         * soft-fp/getf2.c (__getf2): Likewise.
4680         * soft-fp/ledf2.c (__ledf2): Likewise.
4681         * soft-fp/lesf2.c (__lesf2): Likewise.
4682         * soft-fp/letf2.c (__letf2): Likewise.
4683
4684         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4685         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4686         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4687         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4688         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4689         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4690         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4691         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4692         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4693         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4694         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4695         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4696         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4697         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4698         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4699         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4700         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4701         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4702         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4703         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4704         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4705         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4706         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4707         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4708         * soft-fp/floattidf.c (__floattidf): Likewise.
4709         * soft-fp/floattisf.c (__floattisf): Likewise.
4710         * soft-fp/floattitf.c (__floattitf): Likewise.
4711         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4712         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4713         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4714         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4715         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4716         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4717         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4718         * soft-fp/gesf2.c (__gesf2): Likewise.
4719         * soft-fp/getf2.c (__getf2): Likewise.
4720         * soft-fp/ledf2.c (__ledf2): Likewise.
4721         * soft-fp/lesf2.c (__lesf2): Likewise.
4722         * soft-fp/letf2.c (__letf2): Likewise.
4723
4724         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4725         Undefine and redefine.
4726         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4727         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4728         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4729         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4730         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4731         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4732         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4733         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4734         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4735         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4736         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4737         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4738         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4739         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4740         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4741
4742         [BZ #16032]
4743         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4744         without decrementing exponent if mantissa >= that for the
4745         denominator, not >.
4746         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4747         denominator, not >.  Decrement exponent in < case instead of
4748         incrementing in >= case.
4749         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4750         without decrementing exponent if mantissa >= that for the
4751         denominator, not >.
4752
4753         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4754         computing saturated result for unsigned overflow.
4755
4756 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4757             Jeff Law  <law@redhat.com>
4758
4759         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4760         (atan2Mp): Add systemtap probe marker.
4761         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4762         (__ieee754_log): Add systemtap probe marker.
4763         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4764         (atanMp): Add systemtap probe marker.
4765         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4766         (tanMp): Add systemtap probe marker.
4767         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4768         (__slowexp): Add systemtap probe marker.
4769         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4770         (__slowpow): Add systemtap probe marker.
4771         * manual/probes.texi: Document probes.
4772
4773 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4774
4775         [BZ #15362]
4776         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4777         written.
4778         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4779         written.
4780         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4781         written to buffer but not flushed.
4782         * libio/iofwrite_u.c:  Likewise.
4783         * libio/iopadn.c:  Return bytes returned even if EOF was
4784         encountered.
4785         * libio/iowpadn.c:  Likewise.
4786         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4787         if _IO_padn does not write the whole buffer.
4788         [!COMPILE_WPRINTF] (PAD): Likewise.
4789
4790 2013-10-10  David S. Miller  <davem@davemloft.net>
4791
4792         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4793         directory block.
4794
4795 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4796
4797         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4798         instead of FSF address.
4799         * soft-fp/fixdfti.c: Likewise.
4800         * soft-fp/fixsfti.c: Likewise.
4801         * soft-fp/fixtfti.c: Likewise.
4802         * soft-fp/fixunsdfti.c: Likewise.
4803         * soft-fp/fixunssfti.c: Likewise.
4804         * soft-fp/fixunstfti.c: Likewise.
4805         * soft-fp/floattidf.c: Likewise.
4806         * soft-fp/floattisf.c: Likewise.
4807         * soft-fp/floattitf.c: Likewise.
4808         * soft-fp/floatuntidf.c: Likewise.
4809         * soft-fp/floatuntisf.c: Likewise.
4810         * soft-fp/floatuntitf.c: Likewise.
4811         * soft-fp/trunctfxf2.c: Likewise.
4812
4813         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4814         * soft-fp/fixdfti.c: Likewise.
4815         * soft-fp/fixsfti.c: Likewise.
4816         * soft-fp/fixtfti.c: Likewise.
4817         * soft-fp/fixunsdfti.c: Likewise.
4818         * soft-fp/fixunssfti.c: Likewise.
4819         * soft-fp/fixunstfti.c: Likewise.
4820         * soft-fp/floattidf.c: Likewise.
4821         * soft-fp/floattisf.c: Likewise.
4822         * soft-fp/floattitf.c: Likewise.
4823         * soft-fp/floatuntidf.c: Likewise.
4824         * soft-fp/floatuntisf.c: Likewise.
4825         * soft-fp/floatuntitf.c: Likewise.
4826         * soft-fp/trunctfxf2.c: Likewise.
4827
4828 2013-10-10  David S. Miller  <davem@davemloft.net>
4829
4830         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4831
4832 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4833
4834         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4835         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4836         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4837         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4838         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4839         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4840         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4841
4842         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4843         for NaNs before doing comparisons on argument.
4844         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4845         Likewise.
4846
4847 2013-10-10  Will Newton  <will.newton@linaro.org>
4848
4849         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4850         passed to _int_memalign does not overflow.
4851
4852 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4853
4854         * scripts/bench.pl: Add include-sources directive.
4855         * benchtests/README: Update documentation.
4856
4857 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4858
4859         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4860         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4861         instead of FP_INIT_ROUNDMODE.
4862         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4863         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4864
4865         [BZ #16034]
4866         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4867         copy class of input value.
4868         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4869         not handle exceptions.
4870         * soft-fp/negsf2.c (__negsf2): Likewise.
4871         * soft-fp/negtf2.c (__negtf2): Likewise.
4872         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4873
4874 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4875
4876         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4877         semicolon.  From Linux kernel.
4878
4879 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4880
4881         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4882
4883 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4884
4885         [BZ #156]
4886         * manual/socket.texi: Added statement about buffer
4887         for gethostbyname2_r.
4888
4889 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4890
4891         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4892         Use .p2align directive instead, throughout.
4893         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4894         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4895         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4896         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4897         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4898         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4899         * sysdeps/x86_64/strchr.S: Likewise.
4900         * sysdeps/x86_64/strrchr.S: Likewise.
4901
4902 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4903
4904         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4905
4906         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4907
4908         * sysdeps/generic/math_private.h (__mpsin1): Remove
4909         declaration.
4910         (__mpcos1): Likewise.
4911         (__mpsin): New argument __range_reduce.
4912         (__mpcos): Likewise.
4913         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4914         (slow): Use __mpsin and __mpcos.
4915         (slow1): Likewise.
4916         (slow2): Likewise.
4917         (sloww): Likewise.
4918         (sloww1): Likewise.
4919         (sloww2): Likewise.
4920         (bsloww): Likewise.
4921         (bsloww1): Likewise.
4922         (bsloww2): Likewise.
4923         (cslow2): Likewise.
4924         (csloww): Likewise.
4925         (csloww1): Likewise.
4926         (csloww2): Likewise.
4927         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4928         range_reduce.  Merge in __mpsin1.
4929         (__mpcos): Likewise.
4930         (__mpsin1): Remove.
4931         (__mpcos1): Likewise.
4932
4933 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4934
4935         * locale/loadlocale.c (_nl_intern_locale_data): Use
4936         LOCFILE_ALIGNED_P.
4937         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4938         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4939         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4940         obstack data is appropriately aligned.
4941         (obstack_int32_grow_fast): Likewise.
4942         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4943         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4944         (add_locale_uint32_array): Likewise.
4945
4946 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4947
4948         * benchtests/Makefile: Remove ARGLIST and RET variables.
4949         ($(objpfx)bench-%.c): Pass only function name to the script.
4950         * benchtests/README: Update documentation.
4951         * benchtests/acos-inputs: Add new directives.
4952         * benchtests/acosh-inputs: Likewise.
4953         * benchtests/asin-inputs: Likewise.
4954         * benchtests/asinh-inputs: Likewise.
4955         * benchtests/atan-inputs: Likewise.
4956         * benchtests/atanh-inputs: Likewise.
4957         * benchtests/cos-inputs: Likewise.
4958         * benchtests/cosh-inputs: Likewise.
4959         * benchtests/exp-inputs: Likewise.
4960         * benchtests/log-inputs: Likewise.
4961         * benchtests/pow-inputs: Likewise.
4962         * benchtests/rint-inputs: Likewise.
4963         * benchtests/sin-inputs: Likewise.
4964         * benchtests/sinh-inputs: Likewise.
4965         * benchtests/tan-inputs: Likewise.
4966         * benchtests/tanh-inputs: Likewise.
4967         * scripts/bench.pl: Add support for new directives.
4968
4969 2013-10-07  Alan Modra  <amodra@gmail.com>
4970
4971         * README: Fix careless merge.
4972
4973 2013-10-05  Alan Modra  <amodra@gmail.com>
4974
4975         * NEWS: Mention powerpc64le support and bugs fixed.
4976         * README: Both big-endian and little-endian powerpc64 supported.
4977
4978 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4979
4980         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4981         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4982         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4983         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4984
4985 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4986
4987         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4988         match prototype.
4989
4990 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
4991
4992         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
4993         Move -mhard-float appending from
4994         ports/sysdeps/powerpc/powerpc32/Makefile.
4995         [$(with-fp) = yes] (ASFLAGS): Likewise.
4996         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
4997         * sysdeps/powerpc/nofpu: Move directory from
4998         ports/sysdeps/powerpc/nofpu.
4999         * sysdeps/powerpc/soft-fp: Move directory from
5000         ports/sysdeps/powerpc/soft-fp.
5001         * sysdeps/powerpc/powerpc32/405: Move directory from
5002         ports/sysdeps/powerpc/powerpc32/405.
5003         * sysdeps/powerpc/powerpc32/440: Move directory from
5004         ports/sysdeps/powerpc/powerpc32/440.
5005         * sysdeps/powerpc/powerpc32/464: Move directory from
5006         ports/sysdeps/powerpc/powerpc32/464.
5007         * sysdeps/powerpc/powerpc32/476: Move directory from
5008         ports/sysdeps/powerpc/powerpc32/476.
5009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
5010         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
5011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
5012         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
5013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
5014         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
5015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
5016         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
5017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
5018         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
5019         * README: Update for powerpc-*-linux-gnu software floating point
5020         support in libc.
5021
5022         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
5023         case to powerpc/powerpc32*.
5024         * sysdeps/unix/sysv/linux/configure: Regenerated.
5025
5026         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
5027         (_FPU_MASK_OM): Define as 0x04.
5028         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
5029         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
5030         0x00c10080.
5031         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
5032         0x0000003c.
5033         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
5034
5035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5036         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
5037         getcontext_e500.
5038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5039         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
5040         setcontext_e500.
5041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5042         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
5043         and setcontext_e500.
5044
5045 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
5046
5047         * locale/iso-3166.def: Update iso-1366.def and related occurrences
5048
5049 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5050
5051         * manual/threads.texi (Default Thread Attributes): Fix typo.
5052
5053 2013-10-04  Will Newton  <will.newton@linaro.org>
5054
5055         * malloc/Makefile: Add tst-memalign.
5056         * malloc/tst-memalign.c: New file.
5057
5058         * malloc/tst-posix_memalign.c: Add comments.
5059         (do_test): Add comments and call free on all potentially
5060         allocated pointers. Add space after cast.
5061
5062         * malloc/tst-pvalloc.c: Add comments.
5063         (do_test): Add comments and call free on all potentially
5064         allocated pointers. Remove duplicate check for NULL pointer.
5065         Add space after cast.
5066
5067         * malloc/tst-valloc.c: Add comments.
5068         (do_test): Add comments and call free on all potentially
5069         allocated pointers. Remove duplicate check for NULL pointer.
5070         Add space after cast.
5071
5072 2013-10-04  Alan Modra  <amodra@gmail.com>
5073
5074         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5075         Use stdint types in rather than __attribute__((mode())).
5076         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5077
5078 2013-10-04  Alan Modra  <amodra@gmail.com>
5079
5080         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5081         Correct handling of unaligned relocs for little-endian.
5082         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5083
5084 2013-10-04  Alan Modra  <amodra@gmail.com>
5085
5086         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
5087         * configure: Regenerate.
5088         * nptl/shlib-versions: Powerpc*le starts at 2.18.
5089         * shlib-versions: Likewise.
5090
5091 2013-10-04  Alan Modra  <amodra@gmail.com>
5092
5093         * string/tester.c (test_memrchr): Increment reported test cycle.
5094
5095 2013-10-04  Alan Modra  <amodra@gmail.com>
5096
5097         * string/test-memcpy.c (do_one_test): When reporting errors, print
5098         string address and don't overrun end of string.
5099
5100 2013-10-04  Alan Modra  <amodra@gmail.com>
5101
5102         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
5103         insrdi.  Make better use of reg selection to speed exit slightly.
5104         Schedule entry path a little better.  Remove useless "are we done"
5105         checks on entry to main loop.  Handle wrapping around zero address.
5106         Correct main loop count.  Handle single left-over word from main
5107         loop inline rather than by using loop_small.  Remove extra word
5108         case in loop_small caused by wrong loop count.  Add little-endian
5109         support.
5110         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5111         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
5112         cache hint.
5113         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5114         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
5115         support.  Avoid rlwimi.
5116         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
5117
5118 2013-10-04  Alan Modra  <amodra@gmail.com>
5119
5120         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
5121         insrdi.  Formatting.
5122         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5123         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5124         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
5125         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
5126         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5127         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
5128
5129 2013-10-04  Alan Modra  <amodra@gmail.com>
5130
5131         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
5132         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5133         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
5134         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
5135         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5136         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5137         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5138         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
5139         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
5140         use of regs.  Use power7 mtocrf.  Tidy function tails.
5141
5142 2013-10-04  Alan Modra  <amodra@gmail.com>
5143
5144         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
5145         Formatting.  Consistently use rXXX register defines or rN defines.
5146         Use early exit labels that avoid restoring unused non-volatile regs.
5147         Make cr field use more consistent with rWORDn compares.  Rename
5148         regs used as shift registers for unaligned loop, using rN defines
5149         for short lifetime/multiple use regs.
5150         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5151         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
5152         addi 1,1,64 to pop stack frame.  Simplify return value code.
5153         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5154
5155 2013-10-04  Alan Modra  <amodra@gmail.com>
5156
5157         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
5158         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
5159         rather than rlwimi.
5160         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
5161         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
5162         little-endian support.  Correct typos.
5163         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
5164         rather than rlwimi.
5165         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
5166         in loop and entry code to keep "and." results.
5167         (strchr): Add little-endian support.  Comment.  Move cntlzd
5168         earlier in tail.
5169         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
5170
5171 2013-10-04  Alan Modra  <amodra@gmail.com>
5172
5173         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
5174         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
5175         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
5176         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
5177
5178 2013-10-04  Alan Modra  <amodra@gmail.com>
5179
5180         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
5181         (rTMP): Define as r11.
5182         (strcmp): Add little-endian support.  Optimise tail.
5183         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
5184         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5185         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5186         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5187         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5188         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5189         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5190
5191 2013-10-04  Alan Modra  <amodra@gmail.com>
5192
5193         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
5194         little-endian support.  Remove unnecessary "are we done" tests.
5195         Handle "s" wrapping around zero and extremely large "size".
5196         Correct main loop count.  Handle single left-over word from main
5197         loop inline rather than by using small_loop.  Correct comments.
5198         Delete "zero" tail, use "end_max" instead.
5199         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
5200
5201 2013-10-04  Alan Modra  <amodra@gmail.com>
5202
5203         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
5204         support.  Don't branch over align.
5205         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
5206         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
5207         support.  Rearrange tmp reg use to suit.  Comment.
5208         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
5209
5210 2013-10-04  Alan Modra  <amodra@gmail.com>
5211
5212         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
5213
5214 2013-10-04  Alan Modra  <amodra@gmail.com>
5215
5216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
5217         conditional form of branch and link when obtaining pc.
5218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5219
5220 2013-10-04  Alan Modra  <amodra@gmail.com>
5221
5222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
5223         HIWORD/LOWORD.
5224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
5225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
5226
5227 2013-10-04  Alan Modra  <amodra@gmail.com>
5228
5229         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
5230         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
5231         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5232         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
5233         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5234         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5235         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
5236         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5237         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5238         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
5239
5240 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5241             Alistair Popple <alistair@ozlabs.au.ibm.com>
5242             Alan Modra <amodra@gmail.com>
5243
5244         [BZ #15723]
5245         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
5246         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
5247         _dl_hwcap access for little-endian.
5248         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
5249         destroy vmx regs when saving unaligned.
5250         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
5251         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
5252         destroy vmx regs when saving unaligned.
5253
5254 2013-10-04  Alan Modra  <amodra@gmail.com>
5255
5256         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
5257         Don't use a union to pack hi/low value.
5258
5259 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5260
5261         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
5262         for little-endian.
5263         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5264         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
5265         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5266         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
5267         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
5268
5269 2013-10-04  Alan Modra  <amodra@gmail.com>
5270
5271         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
5272         constants to usual value for .cst8 section, and remove redundant
5273         high address load.
5274         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
5275         constant for 0x1p52.  Load little-endian words of double from
5276         correct stack offsets.
5277
5278 2013-10-04  Alan Modra  <amodra@gmail.com>
5279
5280         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
5281         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
5282         words of double from correct stack offsets.
5283         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
5284         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
5285         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
5286         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
5287         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
5288         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
5289         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
5290         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
5291         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
5292         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
5293         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
5294         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
5295         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5296         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5297         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5298         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
5299         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
5300
5301 2013-10-04  Alan Modra  <amodra@gmail.com>
5302
5303         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
5304         64-bit int/double union.
5305         (_FPU_SETCW): Likewise.
5306         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5307         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
5308
5309 2013-10-04  Alan Modra  <amodra@gmail.com>
5310
5311         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
5312         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
5313
5314 2013-10-04  Alan Modra  <amodra@gmail.com>
5315
5316         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
5317         use vector int constants.
5318         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
5319
5320 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5321
5322         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
5323         array with long long.
5324         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
5325         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
5326         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
5327         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
5328         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
5329         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
5330         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
5331         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
5332         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
5333         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
5334         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
5335         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
5336         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
5337
5338 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5339
5340         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
5341         (__signbit): Likewise.  Correct for little-endian.
5342         (__signbitl): Call __signbit.
5343         (lrint): Correct for little-endian.
5344         (lrintf): Call lrint.
5345
5346 2013-10-04  Alan Modra  <amodra@gmail.com>
5347
5348         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
5349         union 32-bit int array member with 64-bit int array.
5350         (t515, tm256): Double rather than long double.
5351         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
5352
5353 2013-10-04  Alan Modra  <amodra@gmail.com>
5354
5355         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
5356         Delete.
5357         (IEEE854_LONG_DOUBLE_BIAS): Delete.
5358         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
5359         version of math_ldbl.h.
5360
5361 2013-10-04  Alan Modra  <amodra@gmail.com>
5362
5363         [BZ #15734], [BZ #15735]
5364         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5365         all uses of ieee875 long double macros and unions.  Simplify test
5366         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5367         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5368         normalize after ldbl_extract_mantissa, and don't add hidden bit
5369         already handled.  Don't treat low word of ieee854 mantissa like
5370         low word of IBM long double and mask off bit when testing for
5371         zero.
5372         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5373         all uses of ieee875 long double macros and unions.  Simplify tests
5374         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5375         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5376         two1022, instead use their values.  Recognise that tests for large
5377         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5378         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5379         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5380         test for 0.0L and nan.  Correct negation.
5381         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5382         ieee875 long double macros and unions.  Correct output for large
5383         magnitude x.  Correct absolute value calculation.
5384         (__erfcl): Likewise.
5385         * math/libm-test.inc: Add tests for errors discovered in IBM long
5386         double versions of fmodl, remainderl, erfl and erfcl.
5387
5388 2013-10-04  Alan Modra  <amodra@gmail.com>
5389
5390         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5391         all uses of ieee854 long double macros and unions.  Simplify tests
5392         for long doubles that are fully specified by the high double.
5393         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5394         Likewise.
5395         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5396         Remove dead code too.
5397         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5398         (__ieee754_ynl): Likewise.
5399         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5400         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5401         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5402         Remove dead code too.
5403         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5404         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5405         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5406         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5407         Simplify.
5408         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5409         Simplify.
5410         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5411         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5412         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5413         Comment on variable precision.
5414         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5415         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5416         Likewise.
5417         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5418         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5419         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5420         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5421         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5422
5423 2013-10-04  Alan Modra  <amodra@gmail.com>
5424
5425         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5426         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5427         all uses of ieee854 long double macros and unions.
5428         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5429         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5430         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5431         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5432         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5433         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5434         Likewise.
5435         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5436         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5437         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5438         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5439         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5440         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5441         Simplify sign and nan test too.
5442         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5443         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5444         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5445         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5446         Likewise.
5447         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5448         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5449         Likewise.
5450         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5451         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5452         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5453         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5454         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5455         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5456
5457 2013-10-04  Alan Modra  <amodra@gmail.com>
5458
5459         * stdio-common/printf_size.c (__printf_size): Don't use
5460         union ieee854_long_double in fpnum union.
5461         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5462         signbit macro to retrieve sign from long double.
5463         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5464         retrieve sign from long double.
5465         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5466         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5467         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5468         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5469         * math/test-misc.c (main): Don't use union ieee854_long_double.
5470
5471 2013-10-04  Alan Modra  <amodra@gmail.com>
5472
5473         [BZ #15680]
5474         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5475         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5476         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5477         calculation.  Remove unnecessary test for denormal exponent.
5478         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5479         Correct handling of denormals.  Avoid undefined shift behaviour.
5480         Correct normalisation of low mantissa when low double is denormal.
5481         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5482         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5483         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5484         Correct normalisation of low mantissa.  Test for overflow of high
5485         mantissa and normalise.
5486         (ldbl_nearbyint): Use more readable constant for two52.
5487         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5488         (__mpn_construct_long_double): Fix test for overflow of high
5489         mantissa and correct normalisation.  Avoid undefined shift.
5490
5491 2013-10-04  Alan Modra  <amodra@gmail.com>
5492
5493         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5494         (union ibm_extended_long_double): Define as an array of ieee754_double.
5495         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5496         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5497         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5498         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5499         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5500         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5501         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5502         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5503         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5504         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5505         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5506
5507 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5508
5509         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5510         page size instead of calling getpagesize.
5511
5512         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5513         (LOCFILE_ALIGN_MASK): Likewise.
5514         (LOCFILE_ALIGN_UP): Likewise.
5515         (LOCFILE_ALIGNED_P): Likewise.
5516         * locale/programs/ld-collate.c (collate_output): Use the new
5517         macros instead of __alignof__ (int32_t).
5518         * locale/weight.h (findidx): Likewise.
5519
5520 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5521
5522         [BZ #431]
5523         * manual/string.texi: Fix strncat and wcsncat.
5524
5525 2013-10-03  Brooks Moses  <bmoses@google.com>
5526
5527         [BZ #15915]
5528         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5529         * Makerules: ...here, and adjust associated comments.
5530
5531 2013-10-02  Will Newton  <will.newton@linaro.org>
5532
5533         * malloc/Makefile: Add tst-pvalloc.
5534         * malloc/tst-pvalloc.c: New file.
5535
5536 2013-10-02  Will Newton  <will.newton@linaro.org>
5537
5538         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5539         improve test coverage.
5540
5541 2013-10-02  Will Newton  <will.newton@linaro.org>
5542
5543         * malloc/Makefile: Add tst-posix_memalign.
5544         * malloc/tst-posix_memalign.c: New file.
5545
5546 2013-10-01  Eric Blake  <eblake@redhat.com>
5547
5548         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5549         Use __THROWNL rather than __THROW on static functions.
5550
5551 2013-09-30  Petr Machata  <pmachata@redhat.com>
5552
5553         * elf/elf.h (R_AARCH64_ABS16): New macro.
5554         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5555         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5556         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5557         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5558         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5559         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5560         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5561         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5562         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5563         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5564         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5565         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5566         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5567         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5568         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5569         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5570         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5571         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5572         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5573         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5574         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5575         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5576         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5577         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5578         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5579         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5580         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5581         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5582         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5583         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5584         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5585         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5586         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5587         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5588         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5589         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5590         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5591         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5592         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5593         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5594         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5595         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5596         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5597         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5598         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5599         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5600         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5601         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5602         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5603         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5604         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5605         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5606         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5607         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5608         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5609         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5610         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5611         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5612         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5613         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5614         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5615         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5616         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5617         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5618         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5619         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5620         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5621         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5622         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5623         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5624         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5625         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5626         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5627         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5628         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5629         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5630         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5631         (R_AARCH64_TLSDESC_LDR): Likewise.
5632         (R_AARCH64_TLSDESC_ADD): Likewise.
5633         (R_AARCH64_TLSDESC_CALL): Likewise.
5634
5635 2013-09-30  Andreas Schwab  <schwab@suse.de>
5636
5637         [BZ #15048]
5638         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5639         the nss database lookup.
5640         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5641         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5642
5643 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5644
5645         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5646
5647 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5648
5649         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5650         ${Bash-specific parameter/pattern/string} parameter expansion.
5651         * sysdeps/unix/make-syscalls.sh: Likewise.
5652
5653 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5654
5655         * sysdeps/sh/stackguard-macros.h: New file.
5656
5657 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5658
5659         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5660         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5661         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5662         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5663         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5664         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5665
5666 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5667
5668         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5669         Fix thread ID register.
5670
5671 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5672
5673         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5674         [POSIX || UNIX98]: Require rather than permitting all symbols from
5675         <time.h>.
5676         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5677         element of struct sched_param.
5678         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5679         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5680         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5681         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5682         constant.
5683
5684 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5685
5686         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5687         argument calculation.
5688
5689 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5690
5691         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5692         Expect macro.
5693         [POSIX] (pthread_attr_t): Do not require type.
5694         [POSIX] (pthread_cond_t): Likewise.
5695         [POSIX] (pthread_condattr_t): Likewise.
5696         [POSIX] (pthread_key_t): Likewise.
5697         [POSIX] (pthread_mutex_t): Likewise.
5698         [POSIX] (pthread_mutexattr_t): Likewise.
5699         [POSIX] (pthread_once_t): Likewise.
5700         [POSIX] (pthread_t): Likewise.
5701         [POSIX-based standards] (pthread_atfork): Expect function.
5702
5703 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5704             Richard Sandiford  <richard@codesourcery.com>
5705
5706         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5707         (swap_endianness_p): New extern variable.
5708         (set_big_endian): New inline function.
5709         (maybe_swap_uint32): Likewise.
5710         (maybe_swap_uint32_array): Likewise.
5711         (maybe_swap_uint32_obstack): Likewise.
5712         * locale/programs/locfile.c: Include <stdbool.h>.
5713         (swap_endianness_p): New variable.
5714         (add_locale_uint32): Call maybe_swap_uint32.
5715         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5716         (write_locale_data): Call maybe_swap_uint32_array.
5717         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5718         maybe_swap_uint32.
5719         (obstack_int32_grow_fast): Likewise.
5720         (output_weightwc): Call maybe_swap_uint32_obstack.
5721         (collate_output): Likewise.
5722         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5723         (OPT_LITTLE_ENDIAN): Likewise.
5724         (options): Add --little-endian and --big-endian options.
5725         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5726         * locale/programs/locarchive.c: Include "locfile.h".
5727         (GET): New macro.
5728         (SET): Likewise.
5729         (INC): Likewise.
5730         (create_archive): Use the new macros to access fields of
5731         structures directly mapped from or written to locale archives.
5732         (oldlocrecentcmp): Likewise.
5733         (enlarge_archive): Likewise.
5734         (insert_name): Likewise.
5735         (add_alias): Likewise.
5736         (add_locale): Likewise.
5737         (delete_locales_from_archive): Likewise.
5738         (show_archive_content): Likewise.
5739         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5740         locale data.
5741
5742 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5743
5744         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5745         http://www.gnu.org/doc/freemanuals.texi.
5746         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5747
5748 2013-09-24  Will Newton  <will.newton@linaro.org>
5749
5750         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5751         macro.
5752
5753 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5754
5755         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5756         unsigned char.
5757
5758 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5759
5760         * manual/threads.texi (POSIX Threads): Fix a typo.
5761
5762 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5763
5764         [BZ #14547]
5765         * string/tst-strcoll-overflow.c: New test case.
5766         * string/Makefile (xtests): Add tst-strcoll-overflow.
5767         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5768         cache if string sizes may cause integer overflow.
5769
5770         [BZ #14547]
5771         * string/strcoll_l.c (coll_seq): New members rule, idx,
5772         save_idx and back_us.
5773         (get_next_seq_nocache): New function.
5774         (do_compare_nocache): New function.
5775         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5776         when malloc fails.
5777
5778 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5779
5780         [BZ #15754]
5781         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5782         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5783         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5784
5785         [BZ #15754]
5786         * elf/Makefile (tests): Add tst-ptrguard1.
5787         (tests-static): Add tst-ptrguard1-static.
5788         (tst-ptrguard1-ARGS): Define.
5789         (tst-ptrguard1-static-ARGS): Define.
5790         * elf/tst-ptrguard1.c: New file.
5791         * elf/tst-ptrguard1-static.c: New file.
5792         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5793         * sysdeps/i386/stackguard-macros.h: Likewise.
5794         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5795         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5796         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5797         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5798         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5799         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5800
5801 2013-09-23  Hector Marco  <hecmargi@upv.es>
5802             Ismael Ripoll  <iripoll@disca.upv.es>
5803             Carlos O'Donell  <carlos@redhat.com>
5804
5805         [BZ #15754]
5806         * sysdeps/generic/stackguard-macros.h: Define
5807         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5808         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5809         Define __pointer_chk_guard_local.
5810         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5811         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5812
5813 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5814
5815         [BZ #15859]
5816         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5817
5818 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5819
5820         * include/string.h (__ffs): Declare as hidden.
5821         * string/ffs.c (__ffs): Define as hidden.
5822         * sysdeps/i386/ffs.c (__ffs): Likewise.
5823         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5824         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5825         * sysdeps/s390/ffs.c (__ffs): Likewise.
5826         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5827
5828 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5829
5830         * NEWS: Mention malloc probes.
5831
5832         * malloc/arena.c (new_heap): New memory_heap_new probe.
5833         (grow_heap): New memory_heap_more probe.
5834         (shrink_heap): New memory_heap_less probe.
5835         (heap_trim): New memory_heap_free probe.
5836         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5837         (systrim): New memory_sbrk_less probe.
5838         * manual/probes.texi: Document them.
5839
5840         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5841         * manual/probes.texi: Document it.
5842
5843         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5844         (__libc_realloc): Add memory_realloc_retry probe.
5845         (__libc_memalign): Add memory_memalign_retry probe.
5846         (__libc_valloc): Add memory_valloc_retry probe.
5847         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5848         (__libc_calloc): Add memory_calloc_retry probe.
5849         * manual/probes.texi: Document them.
5850
5851         * malloc/arena.c (get_free_list): Add probe
5852         memory_arena_reuse_free_list.
5853         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5854         and memory_arena_reuse.
5855         (arena_get2) [!PER_THREAD]: Likewise.
5856         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5857         memory_arena_reuse_realloc.
5858         * manual/probes.texi: Document them.
5859
5860         * malloc/malloc.c (__libc_free): Add
5861         memory_mallopt_free_dyn_thresholds probe.
5862         (__libc_mallopt): Add multiple memory_mallopt probes.
5863         * manual/probes.texi: Document them.
5864
5865         * malloc/malloc.c: Include stap-probe.h.
5866         (__libc_mallopt): Add memory_mallopt probe.
5867         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5868         * manual/probes.texi: New.
5869         * manual/Makefile (chapters): Add probes.
5870         * manual/threads.texi: Set next node.
5871
5872 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5873
5874         [BZ #15963, #13985]
5875         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5876         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5877         Add `Chinese' to `nan' entry name.
5878
5879 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5880
5881         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5882         (POLYNOMIAL): Likewise.
5883         (TAYLOR_SINCOS): Likewise.
5884         (TAYLOR_SLOW): Likewise.
5885         (__sin): Use TAYLOR_SINCOS.
5886         (__cos): Likewise.
5887         (slow): Use TAYLOR_SLOW.
5888         (sloww): Likewise.
5889         (bsloww): Likewise.
5890         (csloww): Likewise.
5891
5892 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5893
5894         * stdlib/strtod_l.c: Fix buffer overrun.
5895
5896 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5897
5898         * benchtests/Makefile (bench): Add sincos.
5899         * benchtests/bench-sincos.c: New file.
5900
5901         * math/libm-test.inc (cos_test_data): New test inputs.
5902         (sin_test_data): Likewise.
5903
5904         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5905         macro.
5906         (__sin): Use it.
5907         (__cos): Likewise.
5908         (slow1): Likewise.
5909         (slow2): Likewise.
5910         (sloww1): Likewise.
5911         (sloww2): Likewise.
5912         (bsloww1): Likewise.
5913         (bsloww2): Likewise.
5914         (cslow2): Likewise.
5915         (csloww1): Likewise.
5916         (csloww2): Likewise.
5917
5918         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5919         function.
5920         (__sin): Use it.
5921         (__cos): Likewise.
5922
5923         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5924         gotos.
5925         (__cos): Likewise.
5926
5927 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5928
5929         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5930         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5931         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5932         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5933         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5934         * elf/cache.c (print_entry): Handle the new cache flags.
5935
5936 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5937             Aldy Hernandez  <aldyh@redhat.com>
5938
5939         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5940         Change condition to [_SOFT_FLOAT].
5941         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5942         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5943         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5944         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5945         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5946         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5947         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5948         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5949         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5950         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5951         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5952         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5953         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5954         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5955         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5956         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5957         declaration.
5958
5959 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5960
5961         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5962         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5963         (__longjmp): Use LOAD_GP to load saved GPRs.
5964         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5965         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5966         (__sigsetjmp): Use SAVE_GP to save GPRs.
5967
5968         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5969         Do not append -msoft-float.
5970         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5971
5972 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5973
5974         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5975
5976 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5977
5978         [BZ #15966]
5979         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5980         (_FPU_GETCW): Use initial "__" on variable and field names but not
5981         on macro parameter name.
5982         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5983         parentheses around reference to macro parameter.
5984
5985 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5986
5987         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5988         prototype.
5989         (ctype_startup): Use uint32_t in cast and sizeof for
5990         ctype->charnames.
5991
5992 2013-09-11  Jia Liu  <proljc@gmail.com>
5993
5994         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
5995         __daddr_t_defined.
5996         [__FreeBSD__]: Likewise.
5997
5998 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
5999
6000         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
6001         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
6002         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
6003         (strchr): Remove __strchr_sse42 ifunc selection.
6004         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
6005         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
6006
6007 2013-09-11  Will Newton  <will.newton@linaro.org>
6008
6009         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
6010         parameter to RES. Remove hardcoded 1000 value.
6011         * benchtests/bench-skeleton.c (main): Pass RES parameter
6012         to TIMING_INIT and multiply result by 1000.
6013
6014 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6015
6016         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6017
6018 2013-09-11  Andreas Schwab  <schwab@suse.de>
6019
6020         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
6021         if not defined.
6022         (O_TMPFILE) [__USE_GNU]: Define.
6023         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
6024         Define.
6025
6026 2013-09-11  Will Newton  <will.newton@linaro.org>
6027
6028         [BZ #15857]
6029         * malloc/malloc.c (__libc_memalign): Check the value of bytes
6030         does not overflow.
6031
6032 2013-09-11  Will Newton  <will.newton@linaro.org>
6033
6034         [BZ #15856]
6035         * malloc/malloc.c (__libc_valloc): Check the value of bytes
6036         does not overflow.
6037
6038 2013-09-11  Will Newton  <will.newton@linaro.org>
6039
6040         [BZ #15855]
6041         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
6042         does not overflow.
6043
6044 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
6045
6046         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
6047         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6048         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6049         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6050         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6051
6052 2013-09-10  Allan McRae  <allan@archlinux.org>
6053
6054         [BZ #15748]
6055         * manual/arith.texi (Parsing of Floats): Clarify
6056         cross-reference.
6057
6058         [BZ #15849]
6059         * manual/install.texi (Running make install): Mention
6060         --enable-pt-chown.
6061         * INSTALL: Regenerated.
6062
6063 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
6064
6065         * csu/init-first.c (_init): Remove the !SHARED condition around
6066         FPU control word initialization.
6067         * elf/dl-support.c (_dl_fpu_control): New variable.
6068         (_dl_aux_init) <AT_FPUCW>: Initialize it.
6069         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
6070         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
6071         * math/test-fpucw-static.c: New file.
6072         * math/test-fpucw-ieee.c: New file.
6073         * math/test-fpucw-ieee-static.c: New file.
6074         * math/Makefile (tests): Add `test-fpucw-ieee' and
6075         `$(tests-static)'.
6076         (tests-static): New variable.
6077         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
6078         dependency to...
6079         [($(build-shared),yes)]
6080         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
6081         ... this.
6082         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
6083         New dependency.
6084
6085 2013-09-09  Allan McRae  <allan@archlinux.org>
6086
6087         [BZ #15939]
6088         * manual/string.texi (Collation Functions): Fix typo in
6089         strcoll example.
6090         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
6091
6092         [BZ #15893]
6093         * stdlib/isomac.c (get_null_defines): Fix memory leak.
6094
6095         [BZ #15892]
6096         * libio/memstream.c (open_memstream): Fix memory leak.
6097         * libio/wmemstream.c (open_wmemstream): Likewise.
6098
6099         [BZ #15895]
6100         * nscd/netgroupcache.c: Fix nesting of ifdefs.
6101
6102 2013-09-09  Will Newton  <will.newton@linaro.org>
6103
6104         * malloc/Makefile: Add tst-realloc to tests.
6105         * malloc/tst-realloc.c: New file.
6106
6107 2013-09-09  Allan McRae  <allan@archlinux.org>
6108
6109         [BZ #15844]
6110         * COPYING: Update from GNU website to fix FSF address.
6111         * COPYING.LIB: Likewise.
6112
6113 2013-09-06  David S. Miller  <davem@davemloft.net>
6114
6115         * po/zh_TW.po: Update Chinese (traditional) translation from
6116         translation project.
6117
6118 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
6119             Joseph Myers  <joseph@codesourcery.com>
6120
6121         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
6122         "localeinfo.h".
6123         (obstack_chunk_alloc): New macro.
6124         (obstack_chunk_free): Likewise.
6125         (record_offset): New function.
6126         (init_locale_data): Likewise.
6127         (align_locale_data): Likewise.
6128         (add_locale_empty): Likewise.
6129         (add_locale_raw_data): Likewise.
6130         (add_locale_raw_obstack): Likewise.
6131         (add_locale_string): Likewise.
6132         (add_locale_wstring): Likewise.
6133         (add_locale_uint32): Likewise.
6134         (add_locale_uint32_array): Likewise.
6135         (add_locale_char): Likewise.
6136         (start_locale_structure): Likewise.
6137         (end_locale_structure): Likewise.
6138         (start_locale_prelude): Likewise.
6139         (end_locale_prelude): Likewise.
6140         (write_locale_data): Take locale_file structure rather than an
6141         iovec.
6142         * locale/programs/locfile.h: Include "obstack.h".
6143         (struct locale_file): Change to store locale file contents instead
6144         of header.
6145         (init_locale_data): New prototype.
6146         (align_locale_data): Likewise.
6147         (add_locale_empty): Likewise.
6148         (add_locale_raw_data): Likewise.
6149         (add_locale_raw_obstack): Likewise.
6150         (add_locale_string): Likewise.
6151         (add_locale_wstring): Likewise.
6152         (add_locale_uint32): Likewise.
6153         (add_locale_uint32_array): Likewise.
6154         (add_locale_char): Likewise.
6155         (start_locale_structure): Likewise.
6156         (end_locale_structure): Likewise.
6157         (start_locale_prelude): Likewise.
6158         (end_locale_prelude): Likewise.
6159         (write_locale_data): Update prototype.
6160         * locale/programs/3level.h (struct TABLE): Remove result field.
6161         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
6162         Use new locale_file interface.
6163         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
6164         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
6165         * locale/programs/ld-address.c (address_output): Use new
6166         locale_file interface.
6167         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
6168         NO_ADD_LOCALE.
6169         (collate_finish): Don't call collseq_table_finalize.
6170         (collate_output): Use new locale_file interface.
6171         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
6172         in file.
6173         (NO_FINALIZE): Change to NO_ADD_LOCALE.
6174         (TABLE): Move defines earlier in file.
6175         (ELEMENT): Likewise.
6176         (DEFAULT): Likewise.
6177         (wctrans_table_add): Move macro and inline function earlier in
6178         file.
6179         (struct wctype_table): Move type earlier in file.
6180         (add_locale_wctype_table): New static prototype.
6181         (struct locale_ctype_t): Use logical types instead of struct iovec
6182         pointers for members.
6183         (ctype_output): Use new locale_file interface.
6184         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
6185         new locale_file interface.
6186         (allocate_arrays): Update for use of new locale_file interface.
6187         * locale/programs/ld-identification.c (identification_output): Use
6188         new locale_file interface.
6189         * locale/programs/ld-measurement.c (measurement_output): Likewise.
6190         * locale/programs/ld-messages.c (messages_output): Likewise.
6191         * locale/programs/ld-monetary.c (monetary_output): Likewise.
6192         * locale/programs/ld-name.c (name_output): Likewise.
6193         * locale/programs/ld-numeric.c (numeric_output): Likewise.
6194         * locale/programs/ld-paper.c (paper_output): Likewise.
6195         * locale/programs/ld-telephone.c (telephone_output): Likewise.
6196         * locale/programs/ld-time.c (time_output): Likewise.
6197
6198 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6199
6200         * benchtests/Makefile: Add memrchr benchmark.
6201         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
6202         benchmark as memrchr.
6203         * benchtests/bench-memrchr-ifunc.c: New file.
6204         * benchtests/bench-memrchr.c: New file.
6205
6206 2013-09-06   Will Newton  <will.newton@linaro.org>
6207
6208         * benchtests/Makefile (string-bench): Add memcpy.
6209
6210 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
6211             Cong Wang  <amwang@redhat.com>
6212
6213         [BZ #15850]
6214         * sysdeps/unix/sysv/linux/bits/in.h
6215         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
6216         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
6217         before __USE_KERNEL_IPV6_DEFS uses.
6218         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
6219         IPPROTO_BEETPH.
6220         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
6221         sockaddr_in6, or ipv6_mreq.
6222
6223 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6224
6225         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
6226         memory access for final bytes in some large inputs.
6227         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
6228
6229 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6230
6231         * string/test-memrchr.c: New file.
6232         * string/test-memrchr-ifunc.c: New file.
6233         * string/Makefile: Add new memrchr testcase.
6234
6235 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
6236
6237         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
6238         fanotify_init returns EPERM.
6239
6240 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6241
6242         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
6243         errors.
6244         (top level): Treat second token from macro or constant entries for
6245         allowed headers as allowed.
6246         * include/complex.h: Condition internal declarations on
6247         [!_ISOMAC].
6248         * include/fenv.h: Condition include of <stdbool.h> and internal
6249         declarations on [!_ISOMAC].
6250
6251 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
6252
6253         [BZ #15923]
6254         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
6255
6256 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6257
6258         * configure.in (--enable-versioning): Remove configure option.
6259         (libc_cv_asm_symver_directive): Remove configure test.
6260         (libc_cv_ld_version_script_option): Likewise.
6261         (VERSIONING): Remove variable and AC_SUBST.
6262         (DO_VERSIONING): Remove AC_DEFINE.
6263         * configure: Regenerated.
6264         * config.h.in (DO_VERSIONING): Remove macro.
6265         * Makerules [$(versioning) = yes]: Change conditionals to
6266         [$(build-shared) = yes].
6267         * config.make.in (versioning): Remove variable.
6268         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
6269         [$(build-shared) = yes].
6270         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
6271         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
6272         * elf/Makefile [$(versioning) = yes]: Change conditionals to
6273         [$(build-shared) = yes].
6274         * extra-lib.mk [$(versioning) = yes]: Likewise.
6275         * hurd/Makefile [$(versioning) = yes]: Likewise.
6276         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
6277         [SHARED].
6278         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
6279         [SHARED].
6280         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6281         [SHARED && !NO_HIDDEN].
6282         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
6283         [SHARED].
6284         [SHARED && DO_VERSIONING]: Likewise..
6285         * libio/Makefile [$(versioning) = yes]: Change conditionals to
6286         [$(build-shared) = yes].
6287         * manual/install.texi (--disable-versioning): Remove
6288         documentation.
6289         * INSTALL: Regenerated.
6290         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
6291         to [SHARED].
6292         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
6293         [$(build-shared) = yes].
6294         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
6295         * sysdeps/i386/i686/multiarch/strstr-c.c
6296         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6297         [SHARED && !NO_HIDDEN].
6298         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
6299         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
6300         * sysdeps/powerpc/powerpc32/dl-machine.c
6301         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
6302         * sysdeps/powerpc/powerpc32/sysdep.h
6303         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
6304         to [SHARED && PIC && !NO_HIDDEN].
6305         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
6306         conditional to [SHARED].
6307
6308 2013-09-04   Will Newton  <will.newton@linaro.org>
6309
6310         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
6311         * benchtests/bench-string.h: Include bench-timing.h instead
6312         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
6313         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
6314         call to HP_TIMING_DIFF_INIT.
6315         * benchtests/bench-memccpy.c: Use bench-timing.h macros
6316         instead of hp-timing.h macros.
6317         * benchtests/bench-memchr.c: Likewise.
6318         * benchtests/bench-memcmp.c: Likewise.
6319         * benchtests/bench-memcpy.c: Likewise.
6320         * benchtests/bench-memmem.c: Likewise.
6321         * benchtests/bench-memmove.c: Likewise.
6322         * benchtests/bench-memset.c: Likewise.
6323         * benchtests/bench-rawmemchr.c: Likewise.
6324         * benchtests/bench-strcasecmp.c: Likewise.
6325         * benchtests/bench-strcasestr.c: Likewise.
6326         * benchtests/bench-strcat.c: Likewise.
6327         * benchtests/bench-strchr.c: Likewise.
6328         * benchtests/bench-strcmp.c: Likewise.
6329         * benchtests/bench-strcpy.c: Likewise.
6330         * benchtests/bench-strcpy_chk.c: Likewise.
6331         * benchtests/bench-strlen.c: Likewise.
6332         * benchtests/bench-strncasecmp.c: Likewise.
6333         * benchtests/bench-strncat.c: Likewise.
6334         * benchtests/bench-strncmp.c: Likewise.
6335         * benchtests/bench-strncpy.c: Likewise.
6336         * benchtests/bench-strnlen.c: Likewise.
6337         * benchtests/bench-strpbrk.c: Likewise.
6338         * benchtests/bench-strrchr.c: Likewise.
6339         * benchtests/bench-strspn.c: Likewise.
6340         * benchtests/bench-strstr.c: Likewise.
6341
6342 2013-09-04  Will Newton  <will.newton@linaro.org>
6343
6344         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
6345
6346 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
6347
6348         [BZ #15427]
6349         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
6350         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
6351         * math/libm-test.inc (lgamma_test_data): Add more tests.
6352         * sysdeps/i386/fpu/libm-test-ulps: Update.
6353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6354
6355 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
6356
6357         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
6358         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6359         Add ifunc.
6360         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6361         Add strcmp-sse2-unaligned
6362         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6363
6364 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6365
6366         * Versions.def (libc): Add GLIBC_2.19.
6367
6368 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6369
6370         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6371         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6372
6373 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6374
6375         [BZ #14155]
6376         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6377         intermediate calculations in recurrence.
6378         (__ieee754_ynf): Likewise.
6379         * math/libm-test.inc (jn_test_data): Do not allow spurious
6380         underflow exception.  Add more tests.
6381         (yn_test_data): Add more tests.
6382         * sysdeps/i386/fpu/libm-test-ulps: Update.
6383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6384
6385 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6386
6387         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6388
6389 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6390
6391         * csu/init-first.c: Fix then/than typos.
6392         * locale/programs/ld-collate.c: Likewise.
6393         * locale/programs/linereader.h: Likewise.
6394         * manual/charset.texi: Likewise.
6395         * manual/filesys.texi: Likewise.
6396         * manual/stdio.texi: Likewise.
6397         * manual/string.texi: Likewise.
6398         * stdlib/fmtmsg.c: Likewise.
6399         * sysdeps/i386/stpncpy.S: Likewise.
6400         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6401         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6402         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6403         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6404
6405 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6406
6407         * elf/dl-open.c: Fix typos.
6408         * iconvdata/gbbig5.c: Likewise.
6409         * iconvdata/iso-2022-jp.c: Likewise.
6410         * iconv/gconv_int.h: Likewise.
6411         * iconv/loop.c: Likewise.
6412         * nis/rpcsvc/nis.h: Likewise.
6413         * resolv/ns_name.c: Likewise.
6414         * stdio-common/vfscanf.c: Likewise.
6415         * streams/stropts.h: Likewise.
6416         * sunrpc/rpc_thread.c: Likewise.
6417         * sysdeps/i386/strpbrk.S: Likewise.
6418         * sysdeps/ieee754/k_standard.c: Likewise.
6419         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6420         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6421         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6422         * sysdeps/mach/hurd/profil.c: Likewise.
6423         * sysdeps/s390/dl-procinfo.h: Likewise.
6424         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6425         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6426         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6427         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6428         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6429
6430 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6431
6432         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6433         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6434
6435 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6436
6437         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6438         aix specific files.
6439         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6440         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6441         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6442         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6443         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6444         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6445         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6446         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6447
6448 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6449             Roland McGrath  <roland@hack.frob.com>
6450
6451         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6452         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6453
6454 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6455
6456         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6457         __executable_start symbol instead of _start.
6458
6459 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6460
6461         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6462         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6463         Move macros to...
6464         * sysdeps/gnu/ldsodefs.h: ... this new file.
6465
6466         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6467         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6468         instead of ELFOSABI_LINUX.
6469
6470         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6471         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6472         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6473         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6474         Likewise.
6475         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6476         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6477         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6478         Likewise.
6479         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6480         (ibm_extended_long_double): Add ieee_nan member.
6481         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6482         (do_test): New function.
6483
6484         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6485         TEST_TRUNC.
6486         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6487         functions, renamed from truncdfsf_test, trunctfsf_test,
6488         trunctfdf_test.
6489         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6490         functions.
6491         (do_test): Run all these.
6492
6493 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6494
6495         * argp/argp-help.c: Fix typos.
6496         * argp/argp-parse.c: Likewise.
6497         * debug/backtracesyms.c: Likewise.
6498         * elf/elf.h: Likewise.
6499         * malloc/malloc.c: Likewise.
6500         * nis/nis_print.c: Likewise.
6501         * resolv/res_comp.c: Likewise.
6502         * stdlib/stdlib.h: Likewise.
6503         * sunrpc/clnt_tcp.c: Likewise.
6504         * sunrpc/clnt_udp.c: Likewise.
6505         * sunrpc/clnt_unix.c: Likewise.
6506         * sysdeps/unix/bsd/ptsname.c: Likewise.
6507         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6508         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6510         Likewise.
6511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6512         Likewise.
6513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6514         Likewise.
6515         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6516
6517 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6518
6519         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6520         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6521
6522 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6523
6524         [BZ #15897]
6525         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6526         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6527         ($(objpfx)bug-dl-leaf): New rule.
6528         ($(objpfx)bug-dl-leaf.so): Likewise.
6529         ($(objpfx)bug-dl-leaf.out): Likewise.
6530         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6531         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6532         * dlfcn/bug-dl-leaf.c: New test.
6533         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6534         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6535         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6536         (dlclose): Likewise.
6537         (dlmopen): Likewise.
6538
6539 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6540
6541         * include/netdb.h [!_ISOMAC]:
6542         Don't include <tls.h>.
6543         (h_errno, __libc_h_errno): Move declaration and macros out of
6544         [_LIBC_REENTRANT].
6545
6546         * include/resolv.h [_RESOLV_H_]:
6547         Don't include <tls.h>.
6548         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6549         * resolv/res_libc.c: Don't include <tls.h>.
6550         (_res): Use __attribute__ ((nocommon)) in place of
6551         __attribute__ ((section (".bss"))).
6552
6553         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6554         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6555
6556         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6557
6558         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6559         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6560
6561         * resolv/res_mkquery.c: Include <sys/time.h>.
6562
6563         * inet/ifreq.c: Moved to ...
6564         * sysdeps/unix/ifreq.c: ... here.
6565         * inet/ifreq.c: New file, true stub version.
6566
6567         * socket/sa_len.c: New file.
6568         * socket/Makefile (aux): Add it.
6569         * sysdeps/unix/sysv/linux/Makefile
6570         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6571         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6572         and #include <socket/sa_len.c>.
6573         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6574         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6575
6576         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6577         * bits/socket.h: ... here.
6578
6579         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6580         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6581         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6582
6583 2013-08-27  Andreas Schwab  <schwab@suse.de>
6584
6585         [BZ #15736]
6586         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6587         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6588         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6589         * string/test-strcasecmp.c (test_main): Run tests in several
6590         locales.
6591         * string/test-strncasecmp.c (test_main): Likewise.
6592
6593         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6594         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6595         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6596         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6597         (__strncasecmp_ssse3) [PIC]: Likewise.
6598
6599 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6600
6601         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6602
6603         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6604         instead of explicitly declaring xdecrypt.
6605         * nis/nss_nis/nis-publickey.c: Likewise.
6606
6607 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6608
6609         [BZ #15890]
6610         * nscd/aicache.c: Include res_hconf.h.
6611         (addhstaiX): Initialize res_hconf.
6612
6613 2013-08-26  Andreas Schwab  <schwab@suse.de>
6614
6615         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6616         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6617
6618 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6619
6620         * nscd/aicache.c (addhstaiX): Fix indentation.
6621
6622 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6623
6624         * configure.ac: Quote $build_pt_chown test.
6625         * configure: Regenerated.
6626
6627 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6628
6629         [BZ #15532]
6630         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6631         * math/s_cexpf.c (__cexpf): Likewise.
6632         * math/s_cexpl.c (__cexpl): Likewise.
6633         * math/libm-test.inc (cexp_test_data): Correct expected return
6634         value for NaN + i0.  Add another test.
6635
6636 2013-08-22  David S. Miller  <davem@davemloft.net>
6637
6638         * po/ca.po: Update Catalan translation from translation project.
6639         * po/uk.po: Add Ukrainian translations from translation project.
6640
6641 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6642
6643         [BZ #15797]
6644         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6645         is infinite, not alongside NaN test.
6646         * math/s_fdimf.c (__fdimf): Likewise.
6647         * math/s_fdiml.c (__fdiml): Likewise.
6648         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6649         errno is unchanged.
6650
6651 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6652
6653         * argp/argp-help.c: Fix typos.
6654         * crypt/speeds.c: Likewise.
6655         * csu/check_fds.c: Likewise.
6656         * elf/dl-load.c: Likewise.
6657         * elf/dl-open.c: Likewise.
6658         * elf/reldep3.c: Likewise.
6659         * elf/reldep.c: Likewise.
6660         * elf/sprof.c: Likewise.
6661         * iconv/iconv_charmap.c: Likewise.
6662         * iconv/skeleton.c: Likewise.
6663         * iconv/strtab.c: Likewise.
6664         * io/lockf64.c: Likewise.
6665         * libio/libioP.h: Likewise.
6666         * resolv/gai_notify.c: Likewise.
6667         * resolv/ns_name.c: Likewise.
6668         * resolv/ns_samedomain.c: Likewise.
6669         * resolv/res_send.c: Likewise.
6670         * stdlib/random.c: Likewise.
6671         * sunrpc/rpc/xdr.h: Likewise.
6672         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6673         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6674         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6675         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6676         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6677         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6678         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6679         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6680         * sysdeps/mach/hurd/check_fds.c: Likewise.
6681         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6682         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6683         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6684         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6685         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6686         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6687         * sysdeps/pthread/aio_notify.c: Likewise.
6688         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6689         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6690         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6691         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6692         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6693
6694 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6695
6696         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6697         version if bit_Slow_SSE4_2 is set.
6698         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6699         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6700
6701 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6702
6703         [BZ #15867]
6704         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6705         trampoline stack frame information.
6706         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6707         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6708         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6709         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6710         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6711         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6712         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6713         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6714         sa_flags value.
6715         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6716         interrupting a syscall and set with option SA_SIGINFO.
6717
6718 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6719
6720         [BZ #15531]
6721         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6722         argument is infinite.
6723         * math/s_cprojf.c (__cprojf): Likewise.
6724         * math/s_cprojl.c (__cprojl): Likewise.
6725         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6726         * math/libm-test.inc (cproj_test_data): Add more tests.
6727
6728         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6729
6730         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6731         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6732         size.  Use __ffs to determine corresponding shift.
6733
6734 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6735             Roland McGrath  <roland@hack.frob.com>
6736
6737         * Makefile (INSTALL): Remove trailing blank lines from output of
6738         makeinfo.
6739
6740 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6741
6742         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6743         Align 32 bit compat elf_greg to 8 bytes.
6744
6745 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6746
6747         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6748
6749 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6750
6751         * string/strcoll_l.c (coll_seq): New structure.
6752         (get_next_seq_cached): New function.
6753         (get_next_seq): New function.
6754         (do_compare): New function.
6755         (STRCOLL): Use GNU style definition.  Simplify implementation
6756         by using get_next_seq, get_next_seq_cached and do_compare.
6757
6758 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6759
6760         [BZ #14699]
6761         CVE-2013-4237
6762         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6763         member.
6764         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6765         member.
6766         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6767         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6768         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6769         conditional.
6770         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6771         GETDENTS_64BIT_ALIGNED.
6772         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6773         * manual/filesys.texi (Reading/Closing Directory): Document
6774         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6775         strongly.
6776         * manual/conf.texi (Limits for Files): Add portability note to
6777         NAME_MAX, PATH_MAX.
6778         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6779
6780 2013-08-13  Andreas Schwab  <schwab@suse.de>
6781
6782         [BZ #15749]
6783         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6784         of fabs.
6785         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6786         LDBL_MAX_EXP >= 16384]: Add tests for it.
6787
6788 2013-08-12  David S. Miller  <davem@davemloft.net>
6789
6790         * version.h (RELEASE): Set to "development".
6791         (VERSION): Set to "2.18.90".
6792         * NEWS: Add 2.19 section.
6793
6794 2013-08-03  David S. Miller  <davem@davemloft.net>
6795
6796         * po/ko.po: Update Korean translation from translation project.
6797
6798 2013-08-01  David S. Miller  <davem@davemloft.net>
6799
6800         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6801         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6802         Bilka.
6803
6804 2013-07-30  David S. Miller  <davem@davemloft.net>
6805
6806         * po/fr.po: Update French translation from translation project.
6807
6808 2013-07-28  David S. Miller  <davem@davemloft.net>
6809
6810         * po/cs.po: Update Czech translation from translation project.
6811
6812         * po/sv.po: Update Swedish translation from translation project.
6813
6814 2013-07-27  David S. Miller  <davem@davemloft.net>
6815
6816         * po/eo.po: Update Esperanto translation from translation project.
6817
6818         * po/vi.po: Update Vietnamese translation from translation project.
6819
6820         * po/de.po: Update German translation from translation project.
6821
6822 2013-07-26  David S. Miller  <davem@davemloft.net>
6823
6824         * po/bg.po: Update Bulgarian translation from translation project.
6825
6826         * po/nl.po: Update Dutch translation from translation project.
6827         * po/pl.po: Update Polish translation from translation project.
6828         * po/ru.po: Update Russian translation from translation project.
6829
6830 2013-07-24  David S. Miller  <davem@davemloft.net>
6831
6832         * po/libc.pot: Update.
6833
6834 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6835
6836         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6837         variable page size.
6838         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6839         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6840         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6841
6842 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6843
6844         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6845
6846 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6847             Andreas Schwab  <schwab@suse.de>
6848             Roland McGrath  <roland@hack.frob.com>
6849             Joseph Myers  <joseph@codesourcery.com>
6850             Carlos O'Donell  <carlos@redhat.com>
6851
6852         [BZ #15755]
6853         * config.h.in: Define HAVE_PT_CHOWN.
6854         * config.make.in (build-pt-chown): New variable.
6855         * configure.in (--enable-pt_chown): New configure option.
6856         * configure: Regenerate.
6857         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6858         build-pt-chown is enabled.
6859         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6860         pt_chown to fix pty ownership.
6861         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6862         CLOSE_ALL_FDS.
6863         * manual/install.texi (Configuring and compiling): Mention
6864         --enable-pt_chown. Add @findex for grantpt.
6865         * INSTALL: Regenerate.
6866
6867 2013-07-20  David S. Miller  <davem@davemloft.net>
6868
6869         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6870         difference between 32-bit and 64-bit.
6871
6872 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6873
6874         [BZ #15711]
6875         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6876         Avoid system header dependency with -ffreestanding.
6877         ($(objpfx)bits/syscall%d): Likewise.
6878
6879 2013-07-13  David S. Miller  <davem@davemloft.net>
6880
6881         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6882         underflows from atanl/atan2l due to bug 15319.
6883         (casinh_test_data): Likewise.
6884
6885 2013-07-07  David S. Miller  <davem@davemloft.net>
6886
6887         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6888
6889 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6890
6891         * sysdeps/i386/fpu/libm-test-ulps: Update.
6892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6893
6894 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6895
6896         * configure.in (--enable-lock-elision): Fix message text.
6897         * INSTALL: Regenerate.
6898         * configure: Regenerate.
6899
6900 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6901
6902         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6903
6904 2013-07-03  Andreas Jaeger  <aj@suse.de>
6905
6906         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6907         define.
6908         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6909         (ptrace_peeksiginfo_args): Add.
6910         (__ptrace_peeksiginfo_flags): Add.
6911         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6912         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6913         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6914
6915 2013-07-03  Allan McRae  <allan@archlinux.org>
6916
6917         * sysdeps/i386/fpu/libm-test-ulps: Update.
6918
6919 2013-07-02  David S. Miller  <davem@davemloft.net>
6920
6921         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6922
6923 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6924
6925         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6926
6927 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6928
6929         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6931
6932 2013-07-02  Andi Kleen <ak@linux.intel.com>
6933
6934         * config.h.in (ENABLE_LOCK_ELISION): Add.
6935         * configure.in (--enable-lock-elision): Add option.
6936         * manual/install.texi: Document --enable lock elision.
6937         * configure: Regenerate
6938         * INSTALL: Regenerate.
6939
6940 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6941
6942         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6943         SSE4.2 strcasecmp for libc.a.
6944         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6945
6946 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6947
6948         [BZ #13304]
6949         * soft-fp/op-common.h (_FP_FMA): New macro.
6950         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6951         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6952         (_FP_MUL_MEAT_1_imm): ... here.
6953         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6954         (_FP_MUL_MEAT_1_wide): ... here.
6955         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6956         (_FP_MUL_MEAT_1_hard): ... here.
6957         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6958         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6959         (_FP_MUL_MEAT_2_wide): ... here.
6960         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6961         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6962         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6963         (_FP_MUL_MEAT_2_gmp): ... here.
6964         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6965         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6966         (_FP_MUL_MEAT_4_wide): ... here.
6967         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6968         (_FP_MUL_MEAT_4_gmp): ... here.
6969         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6970         (_FP_WFRACBITS_DW_S): Likewise.
6971         (_FP_WFRACXBITS_DW_S): Likewise.
6972         (_FP_HIGHBIT_DW_S): Likewise.
6973         (FP_FMA_S): Likewise.
6974         (_FP_FRAC_HIGH_DW_S): Likewise.
6975         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6976         (_FP_WFRACBITS_DW_D): Likewise.
6977         (_FP_WFRACXBITS_DW_D): Likewise.
6978         (_FP_HIGHBIT_DW_D): Likewise.
6979         (FP_FMA_D): Likewise.
6980         (_FP_FRAC_HIGH_DW_D): Likewise.
6981         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6982         (_FP_WFRACBITS_DW_E): Likewise.
6983         (_FP_WFRACXBITS_DW_E): Likewise.
6984         (_FP_HIGHBIT_DW_E): Likewise.
6985         (FP_FMA_E): Likewise.
6986         (_FP_FRAC_HIGH_DW_E): Likewise.
6987         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6988         (_FP_WFRACBITS_DW_Q): Likewise.
6989         (_FP_WFRACXBITS_DW_Q): Likewise.
6990         (_FP_HIGHBIT_DW_Q): Likewise.
6991         (FP_FMA_Q): Likewise.
6992         (_FP_FRAC_HIGH_DW_Q): Likewise.
6993         * soft-fp/fmasf4.c: New file.
6994         * soft-fp/fmadf4.c: Likewise.
6995         * soft-fp/fmatf4.c: Likewise.
6996
6997 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6998
6999         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
7000         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
7001         Silvermont.
7002         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
7003         macro.
7004         (index_Slow_SSE4_2): Likewise.
7005         (index_Prefer_PMINUB_for_stringop): Likewise.
7006         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
7007         bit_Slow_SSE4_2 is set.
7008         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
7009         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7010
7011 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7012
7013         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
7014         rtld_global._dl_hwcap2.
7015         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
7016         POWER8.
7017         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
7018         POWER8 feature descriptions defined in _dl_hwcap2.
7019         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
7020         string handling for POWER8 feature bits.
7021         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
7022         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
7023         _dl_powerpc_cap_flags.
7024         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
7025         * sysdeps/powerpc/rtld-global-offsets.sym
7026         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
7027         _dl_hwcap2 in the rtld_global_ro structure.
7028
7029 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7030
7031         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
7032         hardware capabilities in support of AT_HWCAP2.
7033         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
7034         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
7035         GLRO(dl_hwcap2).
7036         (_dl_show_auxv): Add support for calling _dl_procinfo to display
7037         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
7038         explicitly the unknown a_type display mechanism is used.
7039         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
7040         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
7041         struct member.
7042         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
7043         to macro prototype for AT_HWCAP2 support.
7044         * sysdeps/i386/dl-procinfo.h: Likewise.
7045         * sysdeps/s390/dl-procinfo.h: Likewise.
7046         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
7047         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
7048         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
7049         return -1 for unknown a_type display fallback.
7050         * sysdeps/sparc/dl-procinfo.h: Likewise.
7051         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7052         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
7053
7054 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
7055
7056         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
7057         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
7058
7059 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
7060
7061         [BZ #12492]
7062         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
7063         mprotect making __stack_prot writable.
7064
7065 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7066             Joseph Myers  <joseph@codesourcery.com>
7067
7068         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
7069         as being properly aligned.
7070
7071 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
7072
7073         * dlfcn/modstatic5.c: New file.
7074         * dlfcn/tststatic5.c: New file.
7075         * dlfcn/Makefile (tests): Add tststatic5.
7076         (tests-static): Likewise.
7077         (modules-names): Add modstatic5.
7078         (tststatic5-ENV): New variable.
7079         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
7080
7081         [BZ #15022]
7082         * elf/dl-support.c (_dl_main_map): New variable.
7083         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
7084         (_dl_nns, _dl_load_adds): Set to 1.
7085         (_dl_initial_searchlist): Refer to _dl_main_map.
7086         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
7087         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
7088         call to _dl_get_origin.
7089         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
7090         around call_map.
7091         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
7092         * dlfcn/modstatic3.c: New file.
7093         * dlfcn/tststatic3.c: New file.
7094         * dlfcn/tststatic4.c: New file.
7095         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
7096         (tests-static): Likewise.
7097         (modules-names): Add modstatic3.
7098         (tststatic3-ENV, tststatic4-ENV): New variables.
7099         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
7100         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
7101
7102 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
7103
7104         * configure.in (CC): Require GCC version 4.4 or later.
7105         * configure: Regenerated.
7106         * manual/install.texi (Tools for Compilation): Update GCC version
7107         requirement.
7108         * INSTALL: Regenerated.
7109
7110 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7111
7112         [BZ #15674]
7113         * string/test-memcmp.c (check2): New.
7114         (main): Call check2.
7115
7116         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
7117
7118 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
7119
7120         [BZ #15022]
7121         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
7122         over to...
7123         (dl_open_worker) [!SHARED]: ... here.
7124
7125 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7126
7127         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
7128
7129 2013-06-25  Richard Henderson  <rth@redhat.com>
7130
7131         * locale/programs/locarchive.c: Include <libc-internal.h>
7132
7133 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
7134
7135         * manual/texinfo.tex: Update to version 2013-06-21.17, with
7136         trailing whitespace removed.
7137
7138 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7139
7140         [BZ #10283]
7141         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
7142         * locale/programs/locarchive.c: Include libc-mmap.h.
7143         (prepare_address_space): Take two new outputs (the mmap base and len).
7144         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
7145         values.
7146         (create_archive): Declare new mmap base and len values for
7147         prepare_address_space, and store the result in ah.
7148         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
7149         (enlarge_archive): If ah->mmap_base is not NULL, use that and
7150         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7151         Declare new mmap base and len values for
7152         prepare_address_space, and store the result in new_ah.
7153         (open_archive): Declare new mmap base and len values for
7154         prepare_address_space, and store the result in ah.
7155         (close_archive): If ah->mmap_base is not NULL, use that and
7156         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7157         * sysdeps/generic/libc-mmap.h: New file.
7158
7159 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7160
7161         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
7162         (ALIGN_UP): Likewise.
7163         (PTR_ALIGN_DOWN): Likewise.
7164         (PTR_ALIGN_UP): Likewise.
7165
7166 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7167
7168         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
7169         entry mapped to PPC_PLATFORM_POWER8.
7170         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
7171         POWER8.
7172         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
7173         (_dl_string_platform): Add case for exporting platform position for
7174         POWER8.
7175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
7176         search path to sysdeps/powerpc/powerpc32/power8 directory.
7177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
7178         search path to sysdeps/powerpc/powerpc64/power8 directory.
7179         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
7180         power7 directories.
7181         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
7182         power7 directories.
7183
7184 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7185
7186         * INSTALL: Regenerate.
7187
7188         * nscd/connections.c (nscd_init): Fix comment.
7189
7190 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
7191
7192         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
7193
7194         [BZ #15667]
7195         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
7196         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
7197
7198 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7199
7200         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
7201         DL_DST_REQ_STATIC.
7202         (DL_DST_REQ_STATIC): Remove macro.
7203
7204 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
7205
7206         [BZ #7006]
7207         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
7208         with a shift of 0 bits.
7209
7210 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7211
7212         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
7213         $(tststatic-ENV).
7214
7215 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7216
7217         [BZ #15655]
7218         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
7219
7220 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7221
7222         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
7223         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
7224         accepts -fno-tree-loop-distribute-patterns.
7225         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
7226         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
7227         recursive call.
7228         * string/memset.c (memset): Likewise.
7229         * string/test-memmove.c (simple_memmove): Disable loop transformation
7230         to library calls.
7231         * string/test-memset.c (simple_memset): Likewise.
7232         * benchtests/bench-memmove.c (simple_memmove): Likewise.
7233         * benchtests/bench-memset.c (simple_memset): Likewise.
7234         * configure: Regenerated.
7235
7236 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
7237
7238         * math/test-misc.c (main): Ignore fesetround failure when failures
7239         of subsequent rounding tests would be ignored.
7240
7241         [BZ #15654]
7242         * math/fedisblxcpt.c (fedisableexcept): Return 0.
7243         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
7244         * math/fegetenv.c (__fegetenv): Return 0.
7245         * math/fegetexcept.c (fegetexcept): Return 0.
7246         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
7247         FE_TONEAREST.
7248         * math/feholdexcpt.c (feholdexcept): Return 0.
7249         * math/fesetenv.c (__fesetenv): Return 0.
7250         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
7251         argument FE_TONEAREST.
7252         * math/feupdateenv.c (__feupdateenv): Return 0.
7253         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
7254
7255 2013-06-18  Roland McGrath  <roland@hack.frob.com>
7256
7257         * elf/rtld-Rules (rtld-compile-command.S): New variable.
7258         (rtld-compile-command.s, rtld-compile-command.c): New variables.
7259         ($(objpfx)rtld-%.os rules): Use them.
7260
7261 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7262
7263         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
7264         fields.
7265
7266 2013-06-17  Roland McGrath  <roland@hack.frob.com>
7267
7268         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
7269         length of target pattern, then descending length of dependency pattern.
7270         * configure.in (AWK): Require gawk 3.1.2 or newer.
7271         * manual/install.texi (Tools for Compilation): Say that we do.
7272         * configure: Regenerated.
7273
7274         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
7275         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
7276         * scripts/sysd-rules.awk: ... this new script.
7277         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
7278         than a glob-style pattern.
7279
7280 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
7281
7282         * math/test-misc.c (main): Do not treat incorrectly rounded
7283         conversions as failure unless ROUNDING_TESTS passes.
7284
7285 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
7286
7287         [BZ #15631]
7288         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
7289         restore exception state around main square root computation, then
7290         check for inexactness explicitly.
7291
7292         * math/libm-test.inc (fma_test_data): Add another test.
7293
7294 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7295
7296         * manual/threads.texi (Non-POSIX Extensions): New document
7297         node.  Document pthread_getattr_default_np and
7298         pthread_setattr_default_np.
7299
7300         * Versions.def (libpthread): Add GLIBC_2.18.
7301         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
7302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7303         Likewise.
7304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7305         Likewise.
7306         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7307         Likewise.
7308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7309         Likewise.
7310         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
7311         Likewise.
7312         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7313         Likewise.
7314         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7315         Likewise.
7316         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7317         Likewise.
7318         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7319         Likewise.
7320
7321 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7322
7323         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7324         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
7325
7326 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7327             H.J. Lu  <hjl.tools@gmail.com>
7328
7329         [BZ #15627]
7330         * sysdeps/x86_64/rtld-memset.c: Remove file.
7331         * sysdeps/x86_64/rtld-memset.S: New file.
7332
7333 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
7334
7335         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
7336         (test_in_one_mode): Take arguments for whether the rounding mode
7337         is supported for each floating-point type.
7338         (do_test): Pass new arguments to test_in_one_mode using
7339         ROUNDING_TESTS.
7340
7341 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7342
7343         * posix/tst-waitid.c (do_test): Distinguish different instances of
7344         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
7345         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
7346         before entering the kernel for waitpid.
7347
7348 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7349
7350         * NEWS: Fix note on clock function precision.  Text by Roland
7351         McGrath.
7352
7353 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7354
7355         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
7356         it into place only when and if the sanity check passes.
7357
7358 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
7359
7360         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
7361         output for whether conversion result is exact.  Take argument
7362         indicating whether type is IBM long double.
7363         (round_for_all): Change need_exact field to ibm_ld.
7364         * stdlib/tst-strtod-round.c (struct exactness): New type.
7365         (struct test): Change bool ld_ok field to struct exactness exact.
7366         (TEST): Update all definitions for change to field.
7367         (tests): Regenerate array contents.
7368         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7369         field value.  Check for IBM long double here.
7370         (do_test): Update calls to test_in_one_mode.
7371
7372 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7373
7374         [BZ #12515]
7375         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7376         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7377
7378 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7379
7380         [BZ #15605]
7381         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7382         generated by the compiler on loop optimizations.
7383         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7384         general definitions.
7385
7386 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7387
7388         * math/bug-nextafter.c: Include <math-tests.h>.
7389         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7390         the relevant type.
7391         * math/bug-nexttoward.c: Include <math-tests.h>.
7392         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7393         the relevant type.
7394         * math/test-misc.c: Include <math-tests.h>.
7395         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7396         the relevant type.
7397
7398 2013-06-12  Andreas Jaeger  <aj@suse.de>
7399
7400         * po/ia.po: Update Interlingua translation from translation
7401         project.
7402
7403 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7404
7405         * include/fenv.h: Include stdbool.h.
7406         (struct rm_ctx): New structure.
7407         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7408         Define macro.
7409         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7410         (SET_RESTORE_ROUNDF): Likewise.
7411         (SET_RESTORE_ROUNDL): Likewise.
7412         (SET_RESTORE_ROUND_NOEX): Likewise.
7413         (SET_RESTORE_ROUND_NOEXF): Likewise.
7414         (SET_RESTORE_ROUND_NOEXL): Likewise.
7415         (SET_RESTORE_ROUND_53BIT): Likewise.
7416         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7417         (libc_feresetround_noexf_ctx): Likewise.
7418         (libc_feresetround_noexl_ctx): Likewise.
7419         (libc_feholdsetround_53bit_ctx): Likewise.
7420         (libc_feresetround_53bit_ctx): Likewise.
7421         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7422         (libc_feholdexcept_setround_sse_ctx): New function.
7423         (libc_fesetenv_sse_ctx): Likewise.
7424         (libc_feupdateenv_sse_ctx): Likewise.
7425         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7426         (libc_feholdexcept_setround_387_ctx): Likewise.
7427         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7428         (libc_feholdsetround_387_prec_ctx): Likewise.
7429         (libc_feholdsetround_387_ctx): Likewise.
7430         (libc_feholdsetround_387_53bit_ctx): Likewise.
7431         (libc_feholdsetround_sse_ctx): Likewise.
7432         (libc_feresetround_sse_ctx): Likewise.
7433         (libc_feresetround_387_ctx): Likewise.
7434         (libc_feupdateenv_387_ctx): Likewise.
7435         (libc_feholdexcept_setroundf_ctx): Define macro.
7436         (libc_fesetenvf_ctx): Likewise.
7437         (libc_feupdateenvf_ctx): Likewise.
7438         (libc_feholdsetroundf_ctx): Likewise.
7439         (libc_feresetroundf_ctx): Likewise.
7440         (libc_feholdexcept_setround_ctx): Likewise.
7441         (libc_fesetenv_ctx): Likewise.
7442         (libc_feupdateenv_ctx): Likewise.
7443         (libc_feholdsetround_ctx): Likewise.
7444         (libc_feresetround_ctx): Likewise.
7445         (libc_feholdexcept_setroundl_ctx): Likewise.
7446         (libc_feupdateenvl_ctx): Likewise.
7447         (libc_feholdsetroundl_ctx): Likewise.
7448         (libc_feresetroundl_ctx): Likewise.
7449         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7450         (libc_feresetround_53bit_ctx): Likewise.
7451
7452 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7453
7454         * locale/iso-639.def: Convert to UTF-8.
7455
7456 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7457
7458         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7459         (EXCEPTION_TESTS_double): Likewise.
7460         (EXCEPTION_TESTS_long_double): Likewise.
7461         (EXCEPTION_TESTS): Likewise.
7462         * math/libm-test.inc (test_exceptions): Only test exceptions if
7463         EXCEPTION_TESTS (FLOAT).
7464
7465 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7466
7467         * benchtests/Makefile (string-bench): Add strcpy_chk and
7468         stpcpy_chk.
7469         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7470         * benchtests/bench-stpcpy_chk.c: New file.
7471         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7472         * benchtests/bench-strcpy_chk.c: New file.
7473         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7474         code.
7475         (do_test): Likewise.
7476
7477 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7478
7479         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7480         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7481         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7482         with tabs where appropriate.
7483         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7484         dl-procinfo.h.
7485         [PPC_PLATFORM_PPC440]: Likewise.
7486         [PPC_PLATFORM_PPC464]: Likewise.
7487         [PPC_PLATFORM_PPC476]: Likewise.
7488         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7489         ppc464, and ppc476 platform strings merging from ports/
7490         dl-procinfo.h.
7491
7492 2013-06-11  Andreas Schwab  <schwab@suse.de>
7493
7494         [BZ #14991]
7495         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7496         (from_ucs4_idx): Regenerate.
7497         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7498         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7499         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7500         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7501         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7502         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7503         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7504         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7505         from FROM_LOOP and TO_LOOP specific macros.
7506         (BODY): Handle combining characters.
7507         * iconvdata/BIG5HKSCS.irreversible: Update.
7508         * iconvdata/BIG5HKSCS.precomposed: New file.
7509         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7510         characters.
7511         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7512
7513 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7514
7515         * include/sys/time.h: Fix indentation and add copyright header.
7516
7517         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7518         (do_test): Likewise.
7519         * string/test-memchr.c (do_one_test): Likewise.
7520         (do_test): Likewise.
7521         * string/test-memcmp.c (do_one_test): Likewise.
7522         (do_test): Likewise.
7523         * string/test-memcpy.c (do_one_test): Likewise.
7524         (do_test): Likewise.
7525         * string/test-memmem.c (do_one_test): Likewise.
7526         (do_test): Likewise.
7527         (do_random_tests): Likewise.
7528         * string/test-memmove.c (do_one_test): Likewise.
7529         (do_test): Likewise.
7530         * string/test-memset.c (do_one_test): Likewise.
7531         (do_test): Likewise.
7532         * string/test-rawmemchr.c (do_one_test): Likewise.
7533         (do_test): Likewise.
7534         * string/test-strcasecmp.c (do_one_test): Likewise.
7535         (do_test): Likewise.
7536         * string/test-strcasestr.c (do_one_test): Likewise.
7537         (do_test): Likewise.
7538         * string/test-strcat.c (do_one_test): Likewise.
7539         (do_test): Likewise.
7540         * string/test-strchr.c (do_one_test): Likewise.
7541         (do_test): Likewise.
7542         * string/test-strcmp.c (do_one_test): Likewise.
7543         (do_test): Likewise.
7544         * string/test-strcpy.c (do_one_test): Likewise.
7545         (do_test): Likewise.
7546         * string/test-string.h: Likewise.
7547         (test_init): Likewise.
7548         * string/test-strlen.c (do_one_test): Likewise.
7549         (do_test): Likewise.
7550         * string/test-strncasecmp.c (do_one_test): Likewise.
7551         (do_test): Likewise.
7552         * string/test-strncat.c (do_one_test): Likewise.
7553         (do_test): Likewise.
7554         * string/test-strncmp.c (do_one_test): Likewise.
7555         (do_test_limit): Likewise.
7556         (do_test): Likewise.
7557         * string/test-strncpy.c (do_one_test): Likewise.
7558         (do_test): Likewise.
7559         * string/test-strnlen.c (do_one_test): Likewise.
7560         (do_test): Likewise.
7561         * string/test-strpbrk.c (do_one_test): Likewise.
7562         (do_test): Likewise.
7563         * string/test-strrchr.c (do_one_test): Likewise.
7564         (do_test): Likewise.
7565         * string/test-strspn.c (do_one_test): Likewise.
7566         (do_test): Likewise.
7567         * string/test-strstr.c (do_one_test): Likewise.
7568         (do_test): Likewise.
7569
7570         * benchtests/Makefile (string-bench): Add string benchmarks.
7571         * benchtests/bench-bcopy-ifunc.c: New file.
7572         * benchtests/bench-bcopy.c: New file.
7573         * benchtests/bench-bzero-ifunc.c: New file.
7574         * benchtests/bench-bzero.c: New file.
7575         * benchtests/bench-memccpy-ifunc.c: New file.
7576         * benchtests/bench-memccpy.c: New file.
7577         * benchtests/bench-memchr-ifunc.c: New file.
7578         * benchtests/bench-memchr.c: New file.
7579         * benchtests/bench-memcmp-ifunc.c: New file.
7580         * benchtests/bench-memcmp.c: New file.
7581         * benchtests/bench-memmem-ifunc.c: New file.
7582         * benchtests/bench-memmem.c: New file.
7583         * benchtests/bench-memmove-ifunc.c: New file.
7584         * benchtests/bench-memmove.c: New file.
7585         * benchtests/bench-mempcpy-ifunc.c: New file.
7586         * benchtests/bench-mempcpy.c: New file.
7587         * benchtests/bench-memset-ifunc.c: New file.
7588         * benchtests/bench-memset.c: New file.
7589         * benchtests/bench-rawmemchr-ifunc.c: New file.
7590         * benchtests/bench-rawmemchr.c: New file.
7591         * benchtests/bench-stpcpy-ifunc.c: New file.
7592         * benchtests/bench-stpcpy.c: New file.
7593         * benchtests/bench-stpncpy-ifunc.c: New file.
7594         * benchtests/bench-stpncpy.c: New file.
7595         * benchtests/bench-strcasecmp-ifunc.c: New file.
7596         * benchtests/bench-strcasecmp.c: New file.
7597         * benchtests/bench-strcasestr-ifunc.c: New file.
7598         * benchtests/bench-strcasestr.c: New file.
7599         * benchtests/bench-strcat-ifunc.c: New file.
7600         * benchtests/bench-strcat.c: New file.
7601         * benchtests/bench-strchr-ifunc.c: New file.
7602         * benchtests/bench-strchr.c: New file.
7603         * benchtests/bench-strchrnul-ifunc.c: New file.
7604         * benchtests/bench-strchrnul.c: New file.
7605         * benchtests/bench-strcmp-ifunc.c: New file.
7606         * benchtests/bench-strcmp.c: New file.
7607         * benchtests/bench-strcpy-ifunc.c: New file.
7608         * benchtests/bench-strcpy.c: New file.
7609         * benchtests/bench-strcspn-ifunc.c: New file.
7610         * benchtests/bench-strcspn.c: New file.
7611         * benchtests/bench-strlen-ifunc.c: New file.
7612         * benchtests/bench-strlen.c: New file.
7613         * benchtests/bench-strncasecmp-ifunc.c: New file.
7614         * benchtests/bench-strncasecmp.c: New file.
7615         * benchtests/bench-strncat-ifunc.c: New file.
7616         * benchtests/bench-strncat.c: New file.
7617         * benchtests/bench-strncmp-ifunc.c: New file.
7618         * benchtests/bench-strncmp.c: New file.
7619         * benchtests/bench-strncpy-ifunc.c: New file.
7620         * benchtests/bench-strncpy.c: New file.
7621         * benchtests/bench-strnlen-ifunc.c: New file.
7622         * benchtests/bench-strnlen.c: New file.
7623         * benchtests/bench-strpbrk-ifunc.c: New file.
7624         * benchtests/bench-strpbrk.c: New file.
7625         * benchtests/bench-strrchr-ifunc.c: New file.
7626         * benchtests/bench-strrchr.c: New file.
7627         * benchtests/bench-strspn-ifunc.c: New file.
7628         * benchtests/bench-strspn.c: New file.
7629         * benchtests/bench-strstr-ifunc.c: New file.
7630         * benchtests/bench-strstr.c: New file.
7631
7632         * benchtests/Makefile: Disable parallel execution of targets.
7633         (string-bench): Add memcpy.
7634         (benchset): New variable to store a list of benchmark sets.
7635         (bench-func): Renamed from bench.
7636         (bench-set): New target.
7637         (bench): Depend on bench-func and bench-set.
7638         * benchtests/README: Add section on benchmark sets.
7639         * benchtests/bench-memcpy-ifunc.c: New file.
7640         * benchtests/bench-memcpy.c: New file.
7641         * benchtests/bench-string.h: New file.
7642
7643 2013-06-11  Andreas Schwab  <schwab@suse.de>
7644
7645         [BZ #15577]
7646         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7647         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7648         values in the triple.
7649         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7650         terminator in the group key.
7651
7652 2013-06-11  Andreas Jaeger  <aj@suse.de>
7653
7654         * po/zh_TW.po: Update Chinese (traditional) translation from
7655         translation project.
7656
7657 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7658
7659         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7660         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7661         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7662         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7663         (clock_getcpuclockid): Likewise.
7664         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7665         Add weak_alias and libc_hidden_def.
7666         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7667         * rt/clock_gettime.c (clock_gettime): Rename to
7668         __clock_gettime.  Add weak_alias and libc_hidden_def.
7669         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7670         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7671         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7672         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7673         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7674         Likewise.
7675         * rt/clock_settime.c (clock_settime): Rename to
7676         __clock_settime.  Add weak_alias and libc_hidden_def.
7677         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7678
7679 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7680
7681         * mach/err_boot.sub: Remove trailing whitespace.
7682         * mach/err_ipc.sub: Likewise.
7683         * mach/err_mach.sub: Likewise.
7684
7685         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7686         (ROUNDING_TESTS_double): Likewise.
7687         (ROUNDING_TESTS_long_double): Likewise.
7688         (ROUNDING_TESTS): Likewise.
7689         * math/libm-test.inc: Include <math-tests.h>.
7690         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7691         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7692         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7693         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7694
7695 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7696
7697         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7698         of assigning.
7699
7700 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7701
7702         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7703         otherwise empty TRANS lines.
7704         * sysdeps/gnu/errlist.c: Regenerated.
7705
7706         * catgets/gencat.c (error_print): Use (void) in function
7707         definition.
7708         * crypt/crypt_util.c (__init_des): Likewise.
7709         * crypt/speeds.c (Stop): Likewise.
7710         (main): Likewise.
7711         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7712         * inet/ruserpass.c (token): Likewise.
7713         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7714         * intl/localealias.c (extend_alias_table): Likewise.
7715         * intl/plural-exp.c (init_germanic_plural): Likewise.
7716         * libio/fcloseall.c (__fcloseall): Likewise.
7717         * libio/genops.c (_IO_flush_all): Likewise.
7718         (_IO_flush_all_linebuffered): Likewise.
7719         (_IO_cleanup): Likewise.
7720         (_IO_iter_begin): Likewise.
7721         (_IO_iter_end): Likewise.
7722         (_IO_list_lock): Likewise.
7723         (_IO_list_unlock): Likewise.
7724         (_IO_list_resetlock): Likewise.
7725         * libio/getchar.c (getchar): Likewise.
7726         * libio/getchar_u.c (getchar_unlocked): Likewise.
7727         * libio/getwchar.c (getwchar): Likewise.
7728         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7729         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7730         * login/getpt.c (__getpt): Likewise.
7731         * login/tst-utmp.c (main): Likewise.
7732         * malloc/hooks.c (__malloc_check_init): Likewise.
7733         * malloc/malloc.c (__malloc_stats): Likewise.
7734         * malloc/mtrace.c (tr_break): Likewise.
7735         (mtrace): Likewise.
7736         (muntrace): Likewise.
7737         * misc/fstab.c (endfsent): Likewise.
7738         * misc/getclktck.c (__getclktck): Likewise.
7739         * misc/getdtsz.c (__getdtablesize): Likewise.
7740         * misc/gethostid.c (gethostid): Likewise.
7741         * misc/getpagesize.c (__getpagesize): Likewise.
7742         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7743         (__get_nprocs): Likewise.
7744         (__get_phys_pages): Likewise.
7745         (__get_avphys_pages): Likewise.
7746         * misc/getttyent.c (getttyent): Likewise.
7747         (setttyent): Likewise.
7748         (endttyent): Likewise.
7749         * misc/getusershell.c (getusershell): Likewise.
7750         (endusershell): Likewise.
7751         (setusershell): Likewise.
7752         (initshells): Likewise.
7753         * misc/hsearch.c (__hdestroy): Likewise.
7754         * misc/sync.c (sync): Likewise.
7755         * misc/syslog.c (closelog_internal): Likewise.
7756         (closelog): Likewise.
7757         * misc/ttyslot.c (ttyslot): Likewise.
7758         * misc/vhangup.c (vhangup): Likewise.
7759         * posix/fork.c (__fork): Likewise.
7760         * posix/getegid.c (__getegid): Likewise.
7761         * posix/geteuid.c (__geteuid): Likewise.
7762         * posix/getgid.c (__getgid): Likewise.
7763         * posix/getpid.c (__getpid): Likewise.
7764         * posix/getppid.c (__getppid): Likewise.
7765         * posix/getuid.c (__getuid): Likewise.
7766         * posix/pause.c (pause): Likewise.
7767         * posix/setpgrp.c (setpgrp): Likewise.
7768         * posix/setsid.c (__setsid): Likewise.
7769         * posix/test-vfork.c (noop): Likewise.
7770         * resolv/gethnamaddr.c (_endhtent): Likewise.
7771         (_gethtent): Likewise.
7772         (ht_endhostent): Likewise.
7773         (gethostent): Likewise.
7774         (dns_service): Likewise.
7775         * stdlib/drand48.c (drand48): Likewise.
7776         * stdlib/lrand48.c (lrand48): Likewise.
7777         * stdlib/mrand48.c (mrand48): Likewise.
7778         * stdlib/rand.c (rand): Likewise.
7779         * stdlib/random.c (__random): Likewise.
7780         * stdlib/setenv.c (clearenv): Likewise.
7781         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7782         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7783         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7784         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7785         (__get_nprocs): Likewise.
7786         (__get_phys_pages): Likewise.
7787         (__get_avphys_pages): Likewise.
7788         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7789         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7790         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7791         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7792         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7793         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7794         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7795         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7796         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7797         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7798         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7799         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7800         * sysdeps/posix/clock.c (clock): Likewise.
7801         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7802         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7803         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7804         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7805         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7806         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7807         (__get_nprocs_conf): Likewise.
7808         (__get_phys_pages): Likewise.
7809         (__get_avphys_pages): Likewise.
7810         * time/clock.c (clock): Likewise.
7811         * time/tzset.c (__tzname_max): Likewise.
7812
7813 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7814
7815         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7816         (__bswap_32): Do not use "register".
7817         * crypt/crypt.c (_ufc_doit_r): Likewise.
7818         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7819         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7820         * gmon/gmon.c (__monstartup): Likewise.
7821         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7822         * hurd/hurdmalloc.c (more_memory): Likewise.
7823         (malloc): Likewise.
7824         (free): Likewise.
7825         (realloc): Likewise.
7826         (malloc_fork_prepare): Likewise.
7827         (malloc_fork_parent): Likewise.
7828         (malloc_fork_child): Likewise.
7829         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7830         (_svcauth_des): Likewise.
7831         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7832         * inet/inet_net.c (inet_network): Likewise.
7833         * inet/inet_netof.c (inet_netof): Likewise.
7834         * inet/rcmd.c (__validuser2_sa): Likewise.
7835         * io/fts.c (fts_open): Likewise.
7836         (fts_load): Likewise.
7837         (fts_close): Likewise.
7838         (fts_read): Likewise.
7839         (fts_children): Likewise.
7840         (fts_build): Likewise.
7841         (fts_stat): Likewise.
7842         (fts_sort): Likewise.
7843         (fts_alloc): Likewise.
7844         (fts_lfree): Likewise.
7845         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7846         (_IO_file_xsgetn): Likewise.
7847         (_IO_file_xsgetn_mmap): Likewise.
7848         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7849         (_IO_cookie_write): Likewise.
7850         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7851         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7852         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7853         * malloc/obstack.c (_obstack_begin): Likewise.
7854         (_obstack_begin_1): Likewise.
7855         (_obstack_newchunk): Likewise.
7856         (_obstack_allocated_p): Likewise.
7857         (obstack_free): Likewise.
7858         (_obstack_memory_used): Likewise.
7859         * misc/getttyent.c (getttynam): Likewise.
7860         (getttyent): Likewise.
7861         (skip): Likewise.
7862         (value): Likewise.
7863         * misc/getusershell.c (initshells): Likewise.
7864         * misc/syslog.c (__vsyslog_chk): Likewise.
7865         * misc/ttyslot.c (ttyslot): Likewise.
7866         * nis/nis_hash.c (__nis_hash): Likewise.
7867         * posix/fnmatch_loop.c (FCT): Likewise.
7868         * posix/getconf.c (print_all): Likewise.
7869         (main): Likewise.
7870         * posix/getopt.c (exchange): Likewise.
7871         * posix/glob.c (globfree): Likewise.
7872         (prefix_array): Likewise.
7873         (__glob_pattern_type): Likewise.
7874         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7875         (NS_GET32): Likewise.
7876         (NS_PUT16): Likewise.
7877         (NS_PUT32): Likewise.
7878         * resolv/gethnamaddr.c (getanswer): Likewise.
7879         (gethostbyname2): Likewise.
7880         (gethostbyaddr): Likewise.
7881         (_gethtent): Likewise.
7882         (_gethtbyname2): Likewise.
7883         (_gethtbyaddr): Likewise.
7884         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7885         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7886         * resolv/res_init.c (__res_vinit): Likewise.
7887         (net_mask): Likewise.
7888         * resolv/res_mkquery.c (outchar): Likewise.
7889         (PRINT): Likewise.
7890         * stdio-common/printf_fp.c (outchar): Likewise.
7891         (PRINT): Likewise.
7892         * stdio-common/printf_fphex.c (outchar): Likewise.
7893         (PRINT): Likewise.
7894         * stdio-common/printf_size.c (outchar): Likewise.
7895         (PRINT): Likewise.
7896         * stdio-common/test_rdwr.c (main): Likewise.
7897         * stdio-common/tfformat.c (matches): Likewise.
7898         * stdio-common/vfprintf.c (outchar): Likewise.
7899         (printf_unknown): Likewise.
7900         (buffered_vfprintf): Likewise.
7901         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7902         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7903         (ReadFile): Likewise.
7904         * stdlib/qsort.c (SWAP): Likewise.
7905         (_quicksort): Likewise.
7906         * stdlib/setenv.c (__add_to_environ): Likewise.
7907         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7908         * stdlib/strtol_l.c (__strtol_l): Likewise.
7909         * stdlib/tst-strtod.c (main): Likewise.
7910         * stdlib/tst-strtol.c (main): Likewise.
7911         * stdlib/tst-strtoll.c (main): Likewise.
7912         * string/bits/string2.h (__strcmp_cc): Likewise.
7913         (__strcmp_cg): Likewise.
7914         (__strcspn_c1): Likewise.
7915         (__strcspn_c2): Likewise.
7916         (__strcspn_c3): Likewise.
7917         (__strspn_c1): Likewise.
7918         (__strspn_c2): Likewise.
7919         (__strspn_c3): Likewise.
7920         (__strsep_1c): Likewise.
7921         (__strsep_2c): Likewise.
7922         (__strsep_3c): Likewise.
7923         * string/memccpy.c (__memccpy): Likewise.
7924         * string/stpcpy.c (__stpcpy): Likewise.
7925         * string/strcmp.c (strcmp): Likewise.
7926         * string/strrchr.c (strrchr): Likewise.
7927         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7928         Likewise.
7929         * sysdeps/mach/hurd/getcwd.c
7930         (_hurd_canonicalize_directory_name_internal): Likewise.
7931         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7932         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7933         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7934         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7935         Likewise, in both definitions.
7936         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7937         definitions.
7938         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7939         64] (__bswap_64): Likewise.
7940         * time/test_time.c (main): Likewise.
7941         * time/tzfile.c (__tzfile_read): Likewise.
7942         (__tzfile_compute): Likewise.
7943         * time/tzset.c (__tzset_parse_tz): Likewise.
7944         (tzset_internal): Likewise.
7945         (compute_change): Likewise.
7946         * wcsmbs/wcscat.c (__wcscat): Likewise.
7947         * wcsmbs/wcschr.c (wcschr): Likewise.
7948         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7949         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7950         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7951         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7952         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7953         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7954         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7955         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7956         * wcsmbs/wmemset.c (wmemset): Likewise.
7957
7958 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7959
7960         * scripts/config.guess: Update to version 2013-05-16.
7961         * scripts/config.sub: Update to version 2013-04-24.
7962         * scripts/install-sh: Update to version 2011-11-20.07.
7963         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7964         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7965
7966 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7967
7968         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7969         * elf/sln.c: Likewise.
7970         * hurd/hurd/ioctl.h: Likewise.
7971         * hurd/hurdmalloc.c: Likewise.
7972         * hurd/xattr.c: Likewise.
7973         * include/shlib-compat.h: Likewise.
7974         * inet/ruserpass.c: Likewise.
7975         * libio/iofgets_u.c: Likewise.
7976         * libio/iofgetws_u.c: Likewise.
7977         * locale/programs/ld-identification.c: Likewise.
7978         * locale/programs/ld-time.c: Likewise.
7979         * mach/msg-destroy.c: Likewise.
7980         * nss/nss_files/files-netgrp.c: Likewise.
7981         * resolv/res_data.c: Likewise.
7982         * soft-fp/op-1.h: Likewise.
7983         * soft-fp/op-2.h: Likewise.
7984         * soft-fp/op-4.h: Likewise.
7985         * soft-fp/op-common.h: Likewise.
7986         * stdio-common/printf_fphex.c: Likewise.
7987         * stdlib/strtod_l.c: Likewise.
7988         * sunrpc/rpc/clnt.h: Likewise.
7989         * sysdeps/generic/framestate.c: Likewise.
7990         * sysdeps/i386/bsd-_setjmp.S: Likewise.
7991         * sysdeps/i386/bsd-setjmp.S: Likewise.
7992         * sysdeps/i386/__longjmp.S: Likewise.
7993         * sysdeps/i386/setjmp.S: Likewise.
7994         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7995         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7996         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7997         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7998         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7999         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
8000         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8001         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8002         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8003         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
8004         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8005         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8006         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8007         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8008         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8009         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8010         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8011         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
8012         * sysdeps/ieee754/support.c: Likewise.
8013         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8014         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
8015         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
8016         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
8017         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
8018         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
8019         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
8020         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
8021         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
8022         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
8023         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
8024         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
8025         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
8026         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
8027         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
8028         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
8029         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
8030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8031
8032 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
8033
8034         * posix/transbug.c: Remove executable mode.
8035
8036 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
8037
8038         * crypt/speeds.c: Remove trailing whitespace.
8039         * dlfcn/default.c: Likewise.
8040         * elf/ifuncdep2.c: Likewise.
8041         * elf/ifuncmain1.c: Likewise.
8042         * elf/ifuncmain1vis.c: Likewise.
8043         * elf/testobj.h: Likewise.
8044         * elf/tst-stackguard1.c: Likewise.
8045         * gmon/sys/gmon.h: Likewise.
8046         * hurd/hurdmsg.c: Likewise.
8047         * hurd/new-fd.c: Likewise.
8048         * hurd/ports-get.c: Likewise.
8049         * iconvdata/ibm1008_420.c: Likewise.
8050         * inet/tst-getni1.c: Likewise.
8051         * inet/tst-getni2.c: Likewise.
8052         * libio/ioungetc.c: Likewise.
8053         * libio/wfiledoalloc.c: Likewise.
8054         * manual/libm-err-tab.pl: Likewise.
8055         * math/w_dremf.c: Likewise.
8056         * misc/ftruncate.c: Likewise.
8057         * posix/bug-glob2.c: Likewise.
8058         * posix/tst-pcre.c: Likewise.
8059         * posix/wait4.c: Likewise.
8060         * resolv/README: Likewise.
8061         * resolv/res_debug.h: Likewise.
8062         * resolv/tst-inet_ntop.c: Likewise.
8063         * setjmp/bug269-setjmp.c: Likewise.
8064         * soft-fp/extended.h: Likewise.
8065         * soft-fp/op-1.h: Likewise.
8066         * soft-fp/op-2.h: Likewise.
8067         * soft-fp/op-4.h: Likewise.
8068         * soft-fp/op-8.h: Likewise.
8069         * soft-fp/testit.c: Likewise.
8070         * stdio-common/bug16.c: Likewise.
8071         * stdlib/random.c: Likewise.
8072         * sunrpc/rpcsvc/rquota.x: Likewise.
8073         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
8074         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8075         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8076         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8077         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8078         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8079         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8080         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8081         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8082         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8083         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8084         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8085         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8086         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8087         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8088         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8089         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8090         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8091         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8092         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8093         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8094         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8095         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
8096         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8097         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8098         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8099         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8100         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8101         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8102         * sysdeps/ieee754/s_lib_version.c: Likewise.
8103         * sysdeps/mach/hurd/check_fds.c: Likewise.
8104         * sysdeps/mach/hurd/getsockname.c: Likewise.
8105         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
8106         * sysdeps/mach/hurd/recvfrom.c: Likewise.
8107         * sysdeps/powerpc/bits/link.h: Likewise.
8108         * sysdeps/powerpc/dl-procinfo.c: Likewise.
8109         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
8110         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
8111         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
8112         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
8113         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8114         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
8115         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
8116         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
8117         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8118         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
8119         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
8120         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
8121         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8122         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8123         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8124         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
8125         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
8126         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8127         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8128         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8129         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
8130         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
8131         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
8132         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8133         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
8134         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
8135         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8136         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8137         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
8138         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
8139         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
8140         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8141         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8142         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
8143         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
8144         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
8145         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
8146         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
8147         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
8148         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
8149         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
8150         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
8151         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
8152         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
8153         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
8154         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
8155         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
8156         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
8157         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
8158         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8159         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8160         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8161         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8162         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
8163         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
8164         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
8165         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
8166         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
8167         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
8168         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
8169         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
8170         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
8171         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
8172         * sysdeps/powerpc/sysdep.h: Likewise.
8173         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8174         * sysdeps/s390/s390-64/sub_n.S: Likewise.
8175         * sysdeps/sh/dl-trampoline.S: Likewise.
8176         * sysdeps/sh/memset.S: Likewise.
8177         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
8178         * sysdeps/sh/strlen.S: Likewise.
8179         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
8180         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
8181         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8182         * sysdeps/sparc/sparc32/rem.S: Likewise.
8183         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
8184         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
8185         * sysdeps/sparc/sparc32/strchr.S: Likewise.
8186         * sysdeps/sparc/sparc32/udiv.S: Likewise.
8187         * sysdeps/sparc/sparc32/urem.S: Likewise.
8188         * sysdeps/sparc/sparc64/add_n.S: Likewise.
8189         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8190         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
8191         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
8192         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
8193         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8194         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8195         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8196         * sysdeps/unix/bsd/times.c: Likewise.
8197         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
8198         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
8199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
8200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
8201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
8202         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8203         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
8204         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8205         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
8206         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
8207         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
8208         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8209         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
8210         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8211         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8212         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8213         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8214         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8215         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
8216         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
8217         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8218         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
8219         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8220         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
8221         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
8222         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8223         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
8224         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8225         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
8226         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
8227         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
8228         * sysdeps/x86_64/strcspn.S: Likewise.
8229
8230 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8231
8232         * locale/C-translit.h: Revert #include <stdint.h> because this is a
8233         generated file.  Regenerate properly from gen-translit.pl.
8234         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
8235         locale/C-translit.h.
8236
8237 2013-06-05  Andreas Schwab  <schwab@suse.de>
8238
8239         [BZ #15100]
8240         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
8241         week as 6 instead of -1.
8242         * time/tst-strptime.c (day_tests): Add test case.
8243
8244 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8245
8246         * sysdeps/generic/math_private.h
8247         (libc_feholdexcept_setround_53bit): Replace with
8248         libc_feholdsetround_53bit.
8249         (libc_feupdateenv_53bit): Replace with
8250         libc_feresetround_53bit.
8251         (SET_RESTORE_ROUND_53BIT): Adjust.
8252
8253 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8254
8255         * string/test-strchrnul.c: Add copyright header.
8256
8257         * posix/tst-getaddrinfo4.c: Increase test timeout.
8258
8259 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
8260
8261         [BZ #15536]
8262         * math/libm-test.inc (MAX_EXP): Remove
8263         (MIN_EXP): Define.
8264         (ulp): Use MIN_EXP - MANT_DIG.
8265         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
8266
8267 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
8268
8269         * po/be.po: Revert last change.
8270         * po/zh_CN.po: Likewise.
8271         * po/header.pot: Likewise.
8272
8273 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
8274
8275         * Makefile ($(common-objpfx)linkobj/libc.so): Define
8276         link-libc-deps to empty as target-specific variable.
8277         * Makerules (link-libc-args): New variable.
8278         (libc-for-link): Likewise.
8279         (link-libc-deps): Likewise.
8280         (lib%.so): Depend on $(link-libc-deps).  Link with
8281         $(link-libc-args).
8282         (build-module): Link with $(link-libc-args).
8283         (build-module-asneeded): Likewise.
8284         (build-module-helper-objlist): Filter out $(link-libc-deps) from
8285         list of objects.
8286         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
8287         target-specific variable.
8288         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
8289         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
8290         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
8291         libc.
8292         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
8293         libc and ld.so.
8294         ($(objpfx)libpcprofile.so): Likewise.
8295         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
8296         libc_nonshared.a.
8297         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
8298         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
8299         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
8300         $(link-libc-deps).
8301         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
8302         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
8303         * login/Makefile ($(objpfx)libutil.so): Likewise.
8304         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
8305         * math/Makefile ($(objpfx)libm.so): Likewise.
8306         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
8307         $(objpfx)libnsl.so): Define libc-for-link as target-specific
8308         variable instead of depending directly on libc.
8309         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
8310         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
8311         $(link-libc-deps).
8312         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
8313         libc.
8314         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
8315         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
8316         ($(objpfx)libanl.so): Likewise.
8317         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
8318         ld.so.
8319         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
8320         $(link-libc-deps).
8321         * sysdeps/i386/fpu/Makefile: Remove file.
8322         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
8323         ($(objpfx)libm.so): Remove dependency on ld.so.
8324
8325 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
8326
8327         [BZ # 15553]
8328         * nis/yp_xdr.c (XDRMAXNAME): Define.
8329         (XDRMAXRECORD): Define.
8330         (xdr_domainname): Use XDRMAXNAME.
8331         (xdr_mapname): Likewise.
8332         (xdr_peername): Likewise.
8333         (xdr_keydat): Use XDRMAXRECORD.
8334         (xdr_valdat): Likewise.
8335
8336 2013-05-30  Jeff Law  <law@redhat.com>
8337
8338         [BZ #14256]
8339         * manual/errno.texi (ESTALE): Update to account for more than
8340         just NFS file systems.
8341         * sysdeps/gnu/errlist.c: Regenerated.
8342
8343 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8344
8345         [BZ #15465]
8346         * elf/Makefile (tests): Add tst-null-argv.
8347         (modules-names):  Add tst-null-argv-lib.
8348         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
8349         (tst-null-argv-ENV): Set environment for tst-null-argv.
8350         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
8351         (RTLD_PROGNAME): New macro.
8352         * elf/tst-null-argv.c: New test case.
8353         * elf/tst-null-argv-lib.c: Library for test case.
8354         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
8355         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8356         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
8357         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
8358         * elf/dl-init.c (call_init): Likewise.
8359         (_dl_init): Likewise.
8360         * elf/dl-load.c (print_search_path): Likewise.
8361         (_dl_map_object): Likewise.
8362         * elf/dl-lookup.c (do_lookup_x): Likewise.
8363         (add_dependency): Likewise.
8364         (_dl_lookup_symbol_x): Likewise.
8365         (_dl_debug_bindings): Likewise.
8366         * elf/dl-open.c (_dl_show_scope): Likewise.
8367         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8368         * elf/dl-version.c (match_symbol): Likewise.
8369         (_dl_check_map_versions): Likewise.
8370         * elf/rtld.c (dl_main): Likewise.
8371         (print_unresolved): Use RTLD_PROGNAME.
8372         (print_missing_version): Likewise.
8373         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8374         (elf_machine_rela): Likewise.
8375         * sysdeps/powerpc/powerpc32/dl-machine.c
8376         (__process_machine_rela): Likewise.
8377         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8378         Likewise.
8379         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8380         Likewise.
8381         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8382         Likewise.
8383         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8384         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8385         Likewise.
8386         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8387         Likewise.
8388         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8389
8390 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8391
8392         * po/be.po: Add descriptive title.
8393         * po/zh_CN.po: Likewise.
8394         * po/header.pot: Likewise.
8395
8396 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8397
8398         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8399         error message.
8400         (enlarge_archive): Likewise.
8401
8402 2013-05-28  Ben North  <ben@redfrontdoor.org>
8403
8404         * manual/arith.texi (frexp): It is the magnitude of the return
8405         value which lies in [0.5, 1), not the return value itself.
8406
8407 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8408
8409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8410
8411 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8412
8413         * stdio-common/bug26.c (main): Correct fscanf template.
8414
8415         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8416         declare _dl_skip_args.
8417
8418         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8419         Don't declare.
8420
8421         * manual/platform.texi: Add missing @end deftypefun.
8422
8423 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8424
8425         [BZ #15529]
8426         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8427         bit of mantissa of 2^16382.
8428         * math/libm-test.inc (hypot_test_data): Add more tests.
8429
8430         * math/libm-test.inc: Add drem and pow10 to list of tested
8431         functions.
8432         (pow10_test): New function.
8433         (drem_test): Likewise.
8434         (drem_test_tonearest): Likewise.
8435         (drem_test_towardzero): Likewise.
8436         (drem_test_downward): Likewise.
8437         (drem_test_upward): Likewise.
8438         (main): Call the new functions.
8439
8440         * math/libm-test.inc (finite_test_data): Remove.
8441         (finite_test): Run tests from isfinite_test_data.
8442         (gamma_test_data): Remove.
8443         (gamma_test): Run tests from lgamma_test_data.
8444         * sysdeps/i386/fpu/libm-test-ulps: Update.
8445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8446
8447 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8448
8449         * manual/platform.texi: Add PowerPC PPR function set documentation.
8450         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8451         implementation.
8452
8453 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8454
8455         * math/libm-test.inc (MAX_EXP): Define.
8456         (ULPDIFF): Define.
8457         (ulp): New function.
8458         (check_float_internal): Use ULPDIFF.
8459         (cpow_test): Disable failing test.
8460         (check_ulp): Test ulp() implemetnation.
8461         (main): Call check_ulp before starting tests.
8462
8463 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8464
8465         * math/gen-libm-test.pl (generate_testfile): Do not handle
8466         START_DATA and END_DATA.
8467         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8468         END_DATA.
8469         (acos_tonearest_test_data): Likewise.
8470         (acos_towardzero_test_data): Likewise.
8471         (acos_downward_test_data): Likewise.
8472         (acos_upward_test_data): Likewise.
8473         (acosh_test_data): Likewise.
8474         (asin_test_data): Likewise.
8475         (asin_tonearest_test_data): Likewise.
8476         (asin_towardzero_test_data): Likewise.
8477         (asin_downward_test_data): Likewise.
8478         (asin_upward_test_data): Likewise.
8479         (asinh_test_data): Likewise.
8480         (atan_test_data): Likewise.
8481         (atanh_test_data): Likewise.
8482         (atan2_test_data): Likewise.
8483         (cabs_test_data): Likewise.
8484         (cacos_test_data): Likewise.
8485         (cacosh_test_data): Likewise.
8486         (carg_test_data): Likewise.
8487         (casin_test_data): Likewise.
8488         (casinh_test_data): Likewise.
8489         (catan_test_data): Likewise.
8490         (catanh_test_data): Likewise.
8491         (cbrt_test_data): Likewise.
8492         (ccos_test_data): Likewise.
8493         (ccosh_test_data): Likewise.
8494         (ceil_test_data): Likewise.
8495         (cexp_test_data): Likewise.
8496         (cimag_test_data): Likewise.
8497         (clog_test_data): Likewise.
8498         (clog10_test_data): Likewise.
8499         (conj_test_data): Likewise.
8500         (copysign_test_data): Likewise.
8501         (cos_test_data): Likewise.
8502         (cos_tonearest_test_data): Likewise.
8503         (cos_towardzero_test_data): Likewise.
8504         (cos_downward_test_data): Likewise.
8505         (cos_upward_test_data): Likewise.
8506         (cosh_test_data): Likewise.
8507         (cosh_tonearest_test_data): Likewise.
8508         (cosh_towardzero_test_data): Likewise.
8509         (cosh_downward_test_data): Likewise.
8510         (cosh_upward_test_data): Likewise.
8511         (cpow_test_data): Likewise.
8512         (cproj_test_data): Likewise.
8513         (creal_test_data): Likewise.
8514         (csin_test_data): Likewise.
8515         (csinh_test_data): Likewise.
8516         (csqrt_test_data): Likewise.
8517         (ctan_test_data): Likewise.
8518         (ctan_tonearest_test_data): Likewise.
8519         (ctan_towardzero_test_data): Likewise.
8520         (ctan_downward_test_data): Likewise.
8521         (ctan_upward_test_data): Likewise.
8522         (ctanh_test_data): Likewise.
8523         (ctanh_tonearest_test_data): Likewise.
8524         (ctanh_towardzero_test_data): Likewise.
8525         (ctanh_downward_test_data): Likewise.
8526         (ctanh_upward_test_data): Likewise.
8527         (erf_test_data): Likewise.
8528         (erfc_test_data): Likewise.
8529         (exp_test_data): Likewise.
8530         (exp_tonearest_test_data): Likewise.
8531         (exp_towardzero_test_data): Likewise.
8532         (exp_downward_test_data): Likewise.
8533         (exp_upward_test_data): Likewise.
8534         (exp10_test_data): Likewise.
8535         (exp2_test_data): Likewise.
8536         (expm1_test_data): Likewise.
8537         (fabs_test_data): Likewise.
8538         (fdim_test_data): Likewise.
8539         (finite_test_data): Likewise.
8540         (floor_test_data): Likewise.
8541         (fma_test_data): Likewise.
8542         (fma_towardzero_test_data): Likewise.
8543         (fma_downward_test_data): Likewise.
8544         (fma_upward_test_data): Likewise.
8545         (fmax_test_data): Likewise.
8546         (fmin_test_data): Likewise.
8547         (fmod_test_data): Likewise.
8548         (fpclassify_test_data): Likewise.
8549         (frexp_test_data): Likewise.
8550         (gamma_test_data): Likewise.
8551         (hypot_test_data): Likewise.
8552         (ilogb_test_data): Likewise.
8553         (isfinite_test_data): Likewise.
8554         (isgreater_test_data): Likewise.
8555         (isgreaterequal_test_data): Likewise.
8556         (isinf_test_data): Likewise.
8557         (isless_test_data): Likewise.
8558         (islessequal_test_data): Likewise.
8559         (islessgreater_test_data): Likewise.
8560         (isnan_test_data): Likewise.
8561         (isnormal_test_data): Likewise.
8562         (issignaling_test_data): Likewise.
8563         (isunordered_test_data): Likewise.
8564         (j0_test_data): Likewise.
8565         (j1_test_data): Likewise.
8566         (jn_test_data): Likewise.
8567         (ldexp_test_data): Likewise.
8568         (lgamma_test_data): Likewise.
8569         (lrint_test_data): Likewise.
8570         (lrint_tonearest_test_data): Likewise.
8571         (lrint_towardzero_test_data): Likewise.
8572         (lrint_downward_test_data): Likewise.
8573         (lrint_upward_test_data): Likewise.
8574         (llrint_test_data): Likewise.
8575         (llrint_tonearest_test_data): Likewise.
8576         (llrint_towardzero_test_data): Likewise.
8577         (llrint_downward_test_data): Likewise.
8578         (llrint_upward_test_data): Likewise.
8579         (log_test_data): Likewise.
8580         (log10_test_data): Likewise.
8581         (log1p_test_data): Likewise.
8582         (log2_test_data): Likewise.
8583         (logb_test_data): Likewise.
8584         (logb_downward_test_data): Likewise.
8585         (lround_test_data): Likewise.
8586         (llround_test_data): Likewise.
8587         (modf_test_data): Likewise.
8588         (nearbyint_test_data): Likewise.
8589         (nextafter_test_data): Likewise.
8590         (nexttoward_test_data): Likewise.
8591         (pow_test_data): Likewise.
8592         (pow_tonearest_test_data): Likewise.
8593         (pow_towardzero_test_data): Likewise.
8594         (pow_downward_test_data): Likewise.
8595         (pow_upward_test_data): Likewise.
8596         (remainder_test_data): Likewise.
8597         (remainder_tonearest_test_data): Likewise.
8598         (remainder_towardzero_test_data): Likewise.
8599         (remainder_downward_test_data): Likewise.
8600         (remainder_upward_test_data): Likewise.
8601         (remquo_test_data): Likewise.
8602         (rint_test_data): Likewise.
8603         (rint_tonearest_test_data): Likewise.
8604         (rint_towardzero_test_data): Likewise.
8605         (rint_downward_test_data): Likewise.
8606         (rint_upward_test_data): Likewise.
8607         (round_test_data): Likewise.
8608         (scalb_test_data): Likewise.
8609         (scalbn_test_data): Likewise.
8610         (scalbln_test_data): Likewise.
8611         (signbit_test_data): Likewise.
8612         (sin_test_data): Likewise.
8613         (sin_tonearest_test_data): Likewise.
8614         (sin_towardzero_test_data): Likewise.
8615         (sin_downward_test_data): Likewise.
8616         (sin_upward_test_data): Likewise.
8617         (sincos_test_data): Likewise.
8618         (sinh_test_data): Likewise.
8619         (sinh_tonearest_test_data): Likewise.
8620         (sinh_towardzero_test_data): Likewise.
8621         (sinh_downward_test_data): Likewise.
8622         (sinh_upward_test_data): Likewise.
8623         (sqrt_test_data): Likewise.
8624         (tan_test_data): Likewise.
8625         (tan_tonearest_test_data): Likewise.
8626         (tan_towardzero_test_data): Likewise.
8627         (tan_downward_test_data): Likewise.
8628         (tan_upward_test_data): Likewise.
8629         (tanh_test_data): Likewise.
8630         (tgamma_test_data): Likewise.
8631         (trunc_test_data): Likewise.
8632         (y0_test_data): Likewise.
8633         (y1_test_data): Likewise.
8634         (yn_test_data): Likewise.
8635         (significand_test_data): Likewise.
8636
8637         * math/gen-libm-test.pl (@functions): Remove variable.
8638         (generate_testfile): Don't handle START and END lines.
8639         * math/libm-test.inc (START): New macro.
8640         (END): Likewise.
8641         (END_COMPLEX): Likewise.
8642         (acos_test): Use END macro without arguments.
8643         (acos_test_tonearest): Likewise.
8644         (acos_test_towardzero): Likewise.
8645         (acos_test_downward): Likewise.
8646         (acos_test_upward): Likewise.
8647         (acosh_test): Likewise.
8648         (asin_test): Likewise.
8649         (asin_test_tonearest): Likewise.
8650         (asin_test_towardzero): Likewise.
8651         (asin_test_downward): Likewise.
8652         (asin_test_upward): Likewise.
8653         (asinh_test): Likewise.
8654         (atan_test): Likewise.
8655         (atanh_test): Likewise.
8656         (atan2_test): Likewise.
8657         (cabs_test): Likewise.
8658         (cacos_test): Use END_COMPLEX macro without arguments.
8659         (cacosh_test): Likewise.
8660         (carg_test): Use END macro without arguments.
8661         (casin_test): Use END_COMPLEX macro without arguments.
8662         (casinh_test): Likewise.
8663         (catan_test): Likewise.
8664         (catanh_test): Likewise.
8665         (cbrt_test): Use END macro without arguments.
8666         (ccos_test): Use END_COMPLEX macro without arguments.
8667         (ccosh_test): Likewise.
8668         (ceil_test): Use END macro without arguments.
8669         (cexp_test): Use END_COMPLEX macro without arguments.
8670         (cimag_test): Use END macro without arguments.
8671         (clog_test): Use END_COMPLEX macro without arguments.
8672         (clog10_test): Likewise.
8673         (conj_test): Likewise.
8674         (copysign_test): Use END macro without arguments.
8675         (cos_test): Likewise.
8676         (cos_test_tonearest): Likewise.
8677         (cos_test_towardzero): Likewise.
8678         (cos_test_downward): Likewise.
8679         (cos_test_upward): Likewise.
8680         (cosh_test): Likewise.
8681         (cosh_test_tonearest): Likewise.
8682         (cosh_test_towardzero): Likewise.
8683         (cosh_test_downward): Likewise.
8684         (cosh_test_upward): Likewise.
8685         (cpow_test): Use END_COMPLEX macro without arguments.
8686         (cproj_test): Likewise.
8687         (creal_test): Use END macro without arguments.
8688         (csin_test): Use END_COMPLEX macro without arguments.
8689         (csinh_test): Likewise.
8690         (csqrt_test): Likewise.
8691         (ctan_test): Likewise.
8692         (ctan_test_tonearest): Likewise.
8693         (ctan_test_towardzero): Likewise.
8694         (ctan_test_downward): Likewise.
8695         (ctan_test_upward): Likewise.
8696         (ctanh_test): Likewise.
8697         (ctanh_test_tonearest): Likewise.
8698         (ctanh_test_towardzero): Likewise.
8699         (ctanh_test_downward): Likewise.
8700         (ctanh_test_upward): Likewise.
8701         (erf_test): Use END macro without arguments.
8702         (erfc_test): Likewise.
8703         (exp_test): Likewise.
8704         (exp_test_tonearest): Likewise.
8705         (exp_test_towardzero): Likewise.
8706         (exp_test_downward): Likewise.
8707         (exp_test_upward): Likewise.
8708         (exp10_test): Likewise.
8709         (exp2_test): Likewise.
8710         (expm1_test): Likewise.
8711         (fabs_test): Likewise.
8712         (fdim_test): Likewise.
8713         (finite_test): Likewise.
8714         (floor_test): Likewise.
8715         (fma_test): Likewise.
8716         (fma_test_towardzero): Likewise.
8717         (fma_test_downward): Likewise.
8718         (fma_test_upward): Likewise.
8719         (fmax_test): Likewise.
8720         (fmin_test): Likewise.
8721         (fmod_test): Likewise.
8722         (fpclassify_test): Likewise.
8723         (frexp_test): Likewise.
8724         (gamma_test): Likewise.
8725         (hypot_test): Likewise.
8726         (ilogb_test): Likewise.
8727         (isfinite_test): Likewise.
8728         (isgreater_test): Likewise.
8729         (isgreaterequal_test): Likewise.
8730         (isinf_test): Likewise.
8731         (isless_test): Likewise.
8732         (islessequal_test): Likewise.
8733         (islessgreater_test): Likewise.
8734         (isnan_test): Likewise.
8735         (isnormal_test): Likewise.
8736         (issignaling_test): Likewise.
8737         (isunordered_test): Likewise.
8738         (j0_test): Likewise.
8739         (j1_test): Likewise.
8740         (jn_test): Likewise.
8741         (ldexp_test): Likewise.
8742         (lgamma_test): Likewise.
8743         (lrint_test): Likewise.
8744         (lrint_test_tonearest): Likewise.
8745         (lrint_test_towardzero): Likewise.
8746         (lrint_test_downward): Likewise.
8747         (lrint_test_upward): Likewise.
8748         (llrint_test): Likewise.
8749         (llrint_test_tonearest): Likewise.
8750         (llrint_test_towardzero): Likewise.
8751         (llrint_test_downward): Likewise.
8752         (llrint_test_upward): Likewise.
8753         (log_test): Likewise.
8754         (log10_test): Likewise.
8755         (log1p_test): Likewise.
8756         (log2_test): Likewise.
8757         (logb_test): Likewise.
8758         (logb_test_downward): Likewise.
8759         (lround_test): Likewise.
8760         (llround_test): Likewise.
8761         (modf_test): Likewise.
8762         (nearbyint_test): Likewise.
8763         (nextafter_test): Likewise.
8764         (nexttoward_test): Likewise.
8765         (pow_test): Likewise.
8766         (pow_test_tonearest): Likewise.
8767         (pow_test_towardzero): Likewise.
8768         (pow_test_downward): Likewise.
8769         (pow_test_upward): Likewise.
8770         (remainder_test): Likewise.
8771         (remainder_test_tonearest): Likewise.
8772         (remainder_test_towardzero): Likewise.
8773         (remainder_test_downward): Likewise.
8774         (remainder_test_upward): Likewise.
8775         (remquo_test): Likewise.
8776         (rint_test): Likewise.
8777         (rint_test_tonearest): Likewise.
8778         (rint_test_towardzero): Likewise.
8779         (rint_test_downward): Likewise.
8780         (rint_test_upward): Likewise.
8781         (round_test): Likewise.
8782         (scalb_test): Likewise.
8783         (scalbn_test): Likewise.
8784         (scalbln_test): Likewise.
8785         (signbit_test): Likewise.
8786         (sin_test): Likewise.
8787         (sin_test_tonearest): Likewise.
8788         (sin_test_towardzero): Likewise.
8789         (sin_test_downward): Likewise.
8790         (sin_test_upward): Likewise.
8791         (sincos_test): Likewise.
8792         (sinh_test): Likewise.
8793         (sinh_test_tonearest): Likewise.
8794         (sinh_test_towardzero): Likewise.
8795         (sinh_test_downward): Likewise.
8796         (sinh_test_upward): Likewise.
8797         (sqrt_test): Likewise.
8798         (tan_test): Likewise.
8799         (tan_test_tonearest): Likewise.
8800         (tan_test_towardzero): Likewise.
8801         (tan_test_downward): Likewise.
8802         (tan_test_upward): Likewise.
8803         (tanh_test): Likewise.
8804         (tgamma_test): Likewise.
8805         (trunc_test): Likewise.
8806         (y0_test): Likewise.
8807         (y1_test): Likewise.
8808         (yn_test): Likewise.
8809         (significand_test): Likewise.
8810
8811 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8812
8813         [BZ #15381]
8814         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8815
8816 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8817
8818         [BZ #14894]
8819         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8820         __ppc_mdoio and __ppc_mdoom.
8821         * manual/platform.texi: Document new functions __ppc_yield,
8822         __ppc_mdoio and __ppc_mdoom.
8823
8824 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8825
8826         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8827         (main): Mention "tls" pseudo-hwcap is legacy.
8828         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8829
8830 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8831
8832         * math/gen-libm-test.pl (parse_args): Output only string of
8833         arguments as text for test name, not full call or descriptions of
8834         tests for extra outputs.
8835         (generate_testfile): Do not pass function name to parse_args.
8836         Generate this_func variable from START.
8837         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8838         field to arg_str.
8839         (struct test_ff_f_data): Likewise.
8840         (test_ff_f_data_nexttoward): Likewise.
8841         (struct test_fi_f_data): Likewise.
8842         (struct test_fl_f_data): Likewise.
8843         (struct test_if_f_data): Likewise.
8844         (struct test_fff_f_data): Likewise.
8845         (struct test_c_f_data): Likewise.
8846         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8847         (struct test_fF_f1_data): Likewise.
8848         (struct test_ffI_f1_data): Likewise.
8849         (struct test_c_c_data): Rename test_name field to arg_str.
8850         (struct test_cc_c_data): Likewise.
8851         (struct test_f_i_data): Likewise.
8852         (struct test_ff_i_data): Likewise.
8853         (struct test_f_l_data): Likewise.
8854         (struct test_f_L_data): Likewise.
8855         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8856         and extra2_name.
8857         (COMMON_TEST_SETUP): New macro.
8858         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8859         (COMMON_TEST_CLEANUP): Likewise.
8860         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8861         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8862         macros.
8863         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8864         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8865         macros.
8866         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8867         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8868         cleanup macros.
8869         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8870         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8871         macros.
8872         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8873         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8874         macros.
8875         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8876         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8877         cleanup macros.
8878         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8879         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8880         cleanup macros.
8881         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8882         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8883         cleanup macros.
8884         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8885         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8886         macros.
8887         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8888         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8889         macros.
8890         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8891         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8892         macros.
8893         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8894         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8895         cleanup macros.
8896         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8897         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8898         cleanup macros.
8899         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8900         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8901         macros.
8902         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8903         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8904         cleanup macros.
8905         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8906         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8907         macros.
8908         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8909         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8910         macros.
8911         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8912         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8913         cleanup macros.
8914         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8915
8916 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8917
8918         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8919         to _sifields.sigfault.
8920         (si_addr_lsb): Define new macro.
8921         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8922         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8923         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8924
8925 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8926
8927         [BZ #15441]
8928         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8929         returns -1.
8930         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8931         null return -1.
8932         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8933         loading the domain.
8934
8935 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8936
8937         * math/gen-libm-test.pl (parse_args): Do not include expected
8938         result in test name.
8939         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8940         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8941         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8942         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8943         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8945
8946 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8947
8948         * benchtests/Makefile: Sort function entries.
8949
8950         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8951         tanh, asinh, acosh, atanh.
8952         * benchtests/acos-inputs: New file.
8953         * benchtests/acosh-inputs: New file.
8954         * benchtests/asin-inputs: New file.
8955         * benchtests/asinh-inputs: New file.
8956         * benchtests/atanh-inputs: New file.
8957         * benchtests/cosh-inputs: New file.
8958         * benchtests/log-inputs: New file.
8959         * benchtests/sinh-inputs: New file.
8960         * benchtests/tanh-inputs: New file.
8961
8962 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8963
8964         [BZ #15339]
8965         * posix/tst-getaddrinfo4.c: New test.
8966         * posix/Makefile (tests): Add it.
8967
8968 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8969
8970         [BZ #15339]
8971         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8972         when no services were used.
8973         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8974         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8975
8976 2013-05-21  Andreas Schwab  <schwab@suse.de>
8977
8978         [BZ #15014]
8979         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8980         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8981         successful.
8982         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8983         redundant variable declarations and reallocation of buffer when
8984         parsing as IPv6 address.  Always set NSS status when called from
8985         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8986         buffer too small.  Correct computation of needed size.
8987         * nss/Makefile (tests): Add test-digits-dots.
8988         * nss/test-digits-dots.c: New test.
8989
8990 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8991
8992         * benchtests/Makefile: Remove instructions for adding
8993         benchmark tests.
8994         * benchtests/README: New file to explain how to execute and
8995         enhance the benchmark tests.
8996
8997 2013-05-21  Andreas Schwab  <schwab@suse.de>
8998
8999         [BZ #15493]
9000         * setjmp/Makefile (tests): Add tst-sigsetjmp.
9001         * setjmp/tst-sigsetjmp.c: New test.
9002
9003 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
9004
9005         * sysdeps/x86_64/memset.S (memset): New implementation.
9006         (__bzero): Likewise.
9007         (__memset_tail): New function.
9008
9009 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
9010
9011         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
9012         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
9013         __memcpy_sse2_unaligned ifunc selection.
9014         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
9015         Add memcpy-sse2-unaligned.S.
9016         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
9017         Add: __memcpy_sse2_unaligned.
9018
9019 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
9020
9021         [BZ #15490]
9022         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
9023         math_force_eval before restoring floating-point envrionment.
9024         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
9025         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9026         Likewise.
9027         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
9028         <math_private.h>.
9029         (__nearbyintl): Use math_force_eval before restoring
9030         floating-point environment.
9031         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
9032
9033         * math/gen-libm-test.pl (special_functions): Remove.
9034         (parse_args): Don't handle TEST_extra.  Handle functions with no
9035         return value.
9036         * math/libm-test.inc (struct test_sincos_data): Replace with
9037         struct test_fFF_11_data.
9038         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
9039         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
9040         (sincos_test_data): Change element type to struct
9041         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
9042         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
9043         RUN_TEST_LOOP_sincos.
9044         * math/README.libm-test: Don't mention special handling of
9045         individual functions.
9046         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
9047         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9048         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
9049         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
9050         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
9051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9052
9053         * math/gen-libm-test.pl (get_variable): Remove function.
9054         (parse_args): Don't show pointer parameters to call in test
9055         names.  Use "extra output N" in test names for extra outputs
9056         rather than naming variables.
9057
9058 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
9059
9060         [BZ #15488]
9061         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
9062         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
9063         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
9064         double tests.
9065         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
9066         disable.
9067         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
9068         check_long_double.
9069
9070         * math/gen-libm-test.pl (@tests): Remove variable.
9071         ($count): Likewise.
9072         (new_test): Remove function.
9073         (show_exceptions): New function.
9074         (special_functions): Use show_exceptions instead of new_test.
9075         (parse_args): Likewise.
9076         (generate_testfile): Pass only function name in generated call to
9077         print_max_error or print_complex_max_error.
9078         (get_ulps): Do not handle complex tests specially.
9079         (output_test): Rename to ...
9080         (get_all_ulps_for_test): ... this.  Return a string rather than
9081         printing to a file.  Require ulps to be present.
9082         (output_ulps): Generate arrays rather than #defines.
9083         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
9084         (struct ulp_data): New type.
9085         (BUILD_COMPLEX_ULP): Remove macro.
9086         (compare_ulp_data): New function.
9087         (find_ulps): Likewise.
9088         (find_test_ulps): Likewise.
9089         (find_function_ulps): Likewise.
9090         (find_complex_function_ulps): Likewise.
9091         (print_max_error): Determine allowed ulps using
9092         find_function_ulps.
9093         (print_complex_max_error): Determine allowed ulps using
9094         find_complex_function_ulps.
9095         (check_float_internal): Determine max ulps using find_test_ulps.
9096         (check_float): Do not take max_ulp parameter.  Update call to
9097         check_float_internal.
9098         (check_complex): Likewise.
9099         (check_int): Do not take max_ulp parameter.
9100         (check_long): Likewise.
9101         (check_bool): Likewise.
9102         (check_longlong): Likewise.
9103         (struct test_f_f_data): Remove max_ulp field.
9104         (struct test_ff_f_data): Likewise.
9105         (struct test_ff_f_data_nexttoward): Likewise.
9106         (struct test_fi_f_data): Likewise.
9107         (struct test_fl_f_data): Likewise.
9108         (struct test_if_f_data): Likewise.
9109         (struct test_fff_f_data): Likewise.
9110         (struct test_c_f_data): Likewise.
9111         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
9112         (struct test_fF_f1_data): Likewise.
9113         (struct test_ffI_f1_data): Likewise.
9114         (struct test_c_c_data): Remove max_ulp field.
9115         (struct test_cc_c_data): Likewise.
9116         (struct test_f_i_data): Likewise.
9117         (struct test_ff_i_data): Likewise.
9118         (struct test_f_l_data): Likewise.
9119         (struct test_f_L_data): Likewise.
9120         (struct test_sincos_data): Likewise.
9121         (RUN_TEST_f_f): Do not handle ulps.
9122         (RUN_TEST_LOOP_f_f): Likewise.
9123         (RUN_TEST_2_f): Likewise.
9124         (RUN_TEST_LOOP_2_f): Likewise.
9125         (RUN_TEST_fff_f): Likewise.
9126         (RUN_TEST_LOOP_fff_f): Likewise.
9127         (RUN_TEST_c_f): Likewise.
9128         (RUN_TEST_LOOP_c_f): Likewise.
9129         (RUN_TEST_f_f1): Likewise.
9130         (RUN_TEST_LOOP_f_f1): Likewise.
9131         (RUN_TEST_fF_f1): Likewise.
9132         (RUN_TEST_LOOP_fF_f1): Likewise.
9133         (RUN_TEST_fI_f1): Likewise.
9134         (RUN_TEST_LOOP_fI_f1): Likewise.
9135         (RUN_TEST_ffI_f1): Likewise.
9136         (RUN_TEST_LOOP_ffI_f1): Likewise.
9137         (RUN_TEST_c_c): Likewise.
9138         (RUN_TEST_LOOP_c_c): Likewise.
9139         (RUN_TEST_cc_c): Likewise.
9140         (RUN_TEST_LOOP_cc_c): Likewise.
9141         (RUN_TEST_f_i): Likewise.
9142         (RUN_TEST_LOOP_f_i): Likewise.
9143         (RUN_TEST_f_i_tg): Likewise.
9144         (RUN_TEST_LOOP_f_i_tg): Likewise.
9145         (RUN_TEST_ff_i_tg): Likewise.
9146         (RUN_TEST_LOOP_ff_i_tg): Likewise.
9147         (RUN_TEST_f_b): Likewise.
9148         (RUN_TEST_LOOP_f_b): Likewise.
9149         (RUN_TEST_f_b_tg): Likewise.
9150         (RUN_TEST_LOOP_f_b_tg): Likewise.
9151         (RUN_TEST_f_l): Likewise.
9152         (RUN_TEST_LOOP_f_l): Likewise.
9153         (RUN_TEST_f_L): Likewise.
9154         (RUN_TEST_LOOP_f_L): Likewise.
9155         (RUN_TEST_sincos): Likewise.
9156         (RUN_TEST_LOOP_sincos): Likewise.
9157
9158 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
9159
9160         [BZ #15480]
9161         [BZ #15485]
9162         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
9163         main case of finite arguments, set rounding mode to FE_TONEAREST
9164         and discard exceptions.
9165         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
9166         exceptions.
9167         (remainder_tonearest_test_data): New variable.
9168         (remainder_test_tonearest): New function.
9169         (remainder_towardzero_test_data): New variable.
9170         (remainder_test_towardzero): New function.
9171         (remainder_downward_test_data): New variable.
9172         (remainder_test_downward): New function.
9173         (remainder_upward_test_data): New variable.
9174         (remainder_test_upward): New function.
9175         (main): Call the new test functions.
9176
9177         * math/libm-test.inc (struct test_f_f1_data): Remove field
9178         extra_init.
9179         (struct test_fF_f1_data): Likewise.
9180         (struct test_ffI_f1_data): Likewise.
9181         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
9182         based on value of EXTRA_EXPECTED.
9183         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
9184         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
9185         EXTRA_VAR based on value of EXTRA_EXPECTED.
9186         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
9187         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
9188         EXTRA_VAR based on value of EXTRA_EXPECTED.
9189         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
9190         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
9191         EXTRA_VAR based on value of EXTRA_EXPECTED.
9192         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
9193         * math/gen-libm-test.pl (parse_args): Don't output initializers
9194         for extra output values.
9195
9196         * math/libm-test.inc (check_int): Expect result to be exactly
9197         equal to expected value and do not handle ulps.
9198         (check_long): Likewise.
9199         (check_longlong): Likewise.
9200
9201         * math/libm-test.inc (ceil_test_data): Test for "inexact"
9202         exceptions.
9203         (cimag_test_data): Likewise.
9204         (conj_test_data): Likewise.
9205         (copysign_test_data): Likewise.
9206         (cproj_test_data): Likewise.
9207         (creal_test_data): Likewise.
9208         (fabs_test_data): Likewise.
9209         (fdim_test_data): Likewise.
9210         (finite_test_data): Likewise.
9211         (floor_test_data): Likewise.
9212         (fmax_test_data): Likewise.
9213         (fmin_test_data): Likewise.
9214         (fmod_test_data): Likewise.
9215         (fpclassify_test_data): Likewise.
9216         (frexp_test_data): Likewise.
9217         (ilogb_test_data): Likewise.
9218         (isfinite_test_data): Likewise.
9219         (isgreater_test_data): Likewise.
9220         (isgreaterequal_test_data): Likewise.
9221         (isinf_test_data): Likewise.
9222         (isless_test_data): Likewise.
9223         (islessequal_test_data): Likewise.
9224         (islessgreater_test_data): Likewise.
9225         (isnan_test_data): Likewise.
9226         (isnormal_test_data): Likewise.
9227         (issignaling_test_data): Likewise.
9228         (isunordered_test_data): Likewise.
9229         (ldexp_test_data): Likewise.
9230         (lrint_test_data): Likewise.
9231         (lrint_test_data) [TEST_FLOAT]: Disable one test.
9232         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
9233         (lrint_tonearest_test_data): Test for "inexact" exceptions.
9234         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9235         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
9236         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9237         test input.
9238         (lrint_towardzero_test_data): Test for "inexact" exceptions.
9239         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9240         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
9241         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
9242         that test input.
9243         (lrint_downward_test_data): Test for "inexact" exceptions.
9244         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9245         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
9246         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9247         test input.
9248         (lrint_upward_test_data): Test for "inexact" exceptions.
9249         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
9250         test input.
9251         (llrint_test_data): Test for "inexact" exceptions.
9252         (llrint_test_data) [TEST_FLOAT]: Disable one test.
9253         (llrint_tonearest_test_data): Test for "inexact" exceptions.
9254         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9255         (llrint_towardzero_test_data): Test for "inexact" exceptions.
9256         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9257         (llrint_downward_test_data): Test for "inexact" exceptions.
9258         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9259         (llrint_upward_test_data): Test for "inexact" exceptions.
9260         (logb_test_data): Likewise.
9261         (logb_downward_test_data): Likewise.
9262         (nextafter_test_data): Likewise.
9263         (nexttoward_test_data): Likewise.
9264         (remainder_test_data): Likewise.
9265         (remquo_test_data): Likewise.
9266         (scalbn_test_data): Likewise.
9267         (scalbln_test_data): Likewise.
9268         (signbit_test_data): Likewise.
9269         (sqrt_test_data): Likewise.
9270         (significand_test_data): Likewise.
9271
9272 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9273
9274         [BZ #15424]
9275         * benchtests/bench-modf.c (struct args): Mark arg0 as
9276         volatile.
9277         * scripts/bench.pl: Mark members of struct args as volatile.
9278
9279 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9280
9281         [BZ # 15497]
9282         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
9283         negative infinity on POWER6 or lower.
9284         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
9285
9286 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9287
9288         [BZ #15442]
9289         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
9290         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
9291         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
9292         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
9293         (_FP_SETQNAN): New macro.
9294         (_FP_SETQNAN_SEMIRAW): Likewise.
9295         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
9296         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
9297         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
9298         (FP_EXTEND): Use _FP_FRAC_SNANP.
9299         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
9300         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
9301         into account.
9302         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9303         New macro.
9304         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9305         Likewise.
9306
9307 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9308
9309         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
9310         with DIVIDE_BY_ZERO_EXCEPTION.
9311         (gamma_test_data): Likewise.
9312         (lgamma_test_data): Likewise.
9313         (log_test_data): Likewise.
9314         (log10_test_data): Likewise.
9315         (log2_test_data): Likewise.
9316         (tgamma_test_data): Likewise.
9317
9318         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
9319         (acos_test_tonearest): Likewise.
9320         (acos_test_towardzero): Likewise.
9321         (acos_test_downward): Likewise.
9322         (acos_test_upward): Likewise.
9323         (acosh_test): Likewise.
9324         (asin_test): Likewise.
9325         (asin_test_tonearest): Likewise.
9326         (asin_test_towardzero): Likewise.
9327         (asin_test_downward): Likewise.
9328         (asin_test_upward): Likewise.
9329         (asinh_test): Likewise.
9330         (atan_test): Likewise.
9331         (atanh_test): Likewise.
9332         (atan2_test): Likewise.
9333         (cabs_test): Likewise.
9334         (cacos_test): Likewise.
9335         (cacosh_test): Likewise.
9336         (casin_test): Likewise.
9337         (casinh_test): Likewise.
9338         (catan_test): Likewise.
9339         (catanh_test): Likewise.
9340         (cbrt_test): Likewise.
9341         (ccos_test): Likewise.
9342         (ccosh_test): Likewise.
9343         (cexp_test): Likewise.
9344         (clog_test): Likewise.
9345         (clog10_test): Likewise.
9346         (cos_test): Likewise.
9347         (cos_test_tonearest): Likewise.
9348         (cos_test_towardzero): Likewise.
9349         (cos_test_downward): Likewise.
9350         (cos_test_upward): Likewise.
9351         (cosh_test): Likewise.
9352         (cosh_test_tonearest): Likewise.
9353         (cosh_test_towardzero): Likewise.
9354         (cosh_test_downward): Likewise.
9355         (cosh_test_upward): Likewise.
9356         (cpow_test): Likewise.
9357         (csin_test): Likewise.
9358         (csinh_test): Likewise.
9359         (csqrt_test): Likewise.
9360         (ctan_test): Likewise.
9361         (ctan_test_tonearest): Likewise.
9362         (ctan_test_towardzero): Likewise.
9363         (ctan_test_downward): Likewise.
9364         (ctan_test_upward): Likewise.
9365         (ctanh_test): Likewise.
9366         (ctanh_test_tonearest): Likewise.
9367         (ctanh_test_towardzero): Likewise.
9368         (ctanh_test_downward): Likewise.
9369         (ctanh_test_upward): Likewise.
9370         (erf_test): Likewise.
9371         (erfc_test): Likewise.
9372         (exp_test): Likewise.
9373         (exp_test_tonearest): Likewise.
9374         (exp_test_towardzero): Likewise.
9375         (exp_test_downward): Likewise.
9376         (exp_test_upward): Likewise.
9377         (exp10_test): Likewise.
9378         (exp2_test): Likewise.
9379         (expm1_test): Likewise.
9380         (fmod_test): Likewise.
9381         (gamma_test): Likewise.
9382         (hypot_test): Likewise.
9383         (j0_test): Likewise.
9384         (j1_test): Likewise.
9385         (jn_test): Likewise.
9386         (lgamma_test): Likewise.
9387         (log_test): Likewise.
9388         (log10_test): Likewise.
9389         (log1p_test): Likewise.
9390         (log2_test): Likewise.
9391         (logb_test_downward): Likewise.
9392         (pow_test): Likewise.
9393         (pow_test_tonearest): Likewise.
9394         (pow_test_towardzero): Likewise.
9395         (pow_test_downward): Likewise.
9396         (pow_test_upward): Likewise.
9397         (remainder_test): Likewise.
9398         (remquo_test): Likewise.
9399         (sin_test): Likewise.
9400         (sin_test_tonearest): Likewise.
9401         (sin_test_towardzero): Likewise.
9402         (sin_test_downward): Likewise.
9403         (sin_test_upward): Likewise.
9404         (sincos_test): Likewise.
9405         (sinh_test): Likewise.
9406         (sinh_test_tonearest): Likewise.
9407         (sinh_test_towardzero): Likewise.
9408         (sinh_test_downward): Likewise.
9409         (sinh_test_upward): Likewise.
9410         (sqrt_test): Likewise.
9411         (tan_test): Likewise.
9412         (tan_test_tonearest): Likewise.
9413         (tan_test_towardzero): Likewise.
9414         (tan_test_downward): Likewise.
9415         (tan_test_upward): Likewise.
9416         (tanh_test): Likewise.
9417         (tgamma_test): Likewise.
9418         (y0_test): Likewise.
9419         (y1_test): Likewise.
9420         (yn_test): Likewise.
9421
9422         * math/gen-libm-test.pl (adjust_arg): Remove function.
9423         (special_function): Remove argument $in_func.  Only handle
9424         generating output for tables of tests, not inside functions.
9425         (parse_args): Likewise.
9426         (generate_testfile): Remove variable $in_func.  Update call to
9427         parse_args.
9428         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9429         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9430         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9431         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9432         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9433         (MAX_VALUE_INIT): Rename macro to max_value.
9434         (MIN_VALUE_INIT): Rename macro to min_value.
9435         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9436         (plus_zero): Remove variable.
9437         (minus_zero): Likewise.
9438         (plus_infty): Likewise.
9439         (minus_infty): Likewise.
9440         (qnan_value): Likewise.
9441         (max_value): Likewise.
9442         (min_value): Likewise.
9443         (min_subnorm_value): Likewise.
9444
9445 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9446
9447         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9448         uint64_t or uint32_t usage.
9449         * crypt/sha256-block.c: Likewise.
9450         * crypt/sha256-crypt.c: Likewise.
9451         * crypt/sha256.c: Likewise.
9452         * crypt/sha512-block.c: Likewise.
9453         * crypt/sha512-crypt.c: Likewise.
9454         * crypt/sha512.c: Likewise.
9455         * debug/backtrace-tst.c: Likewise.
9456         * debug/pcprofiledump.c: Likewise.
9457         * elf/cache.c: Likewise.
9458         * elf/dl-cache.c: Likewise.
9459         * elf/dl-misc.c: Likewise.
9460         * elf/dl-profile.c: Likewise.
9461         * elf/dl-support.c: Likewise.
9462         * elf/ldconfig.c: Likewise.
9463         * elf/sprof.c: Likewise.
9464         * iconv/dummy-repertoire.c: Likewise.
9465         * iconv/iconv_charmap.c: Likewise.
9466         * iconv/skeleton.c: Likewise.
9467         * iconvdata/8bit-generic.c: Likewise.
9468         * iconvdata/cp737.h: Likewise.
9469         * iconvdata/cp775.h: Likewise.
9470         * iconvdata/ibm1008.h: Likewise.
9471         * iconvdata/ibm1025.h: Likewise.
9472         * iconvdata/ibm1046.h: Likewise.
9473         * iconvdata/ibm1097.h: Likewise.
9474         * iconvdata/ibm1112.h: Likewise.
9475         * iconvdata/ibm1122.h: Likewise.
9476         * iconvdata/ibm1123.h: Likewise.
9477         * iconvdata/ibm1124.h: Likewise.
9478         * iconvdata/ibm1129.h: Likewise.
9479         * iconvdata/ibm1130.h: Likewise.
9480         * iconvdata/ibm1132.h: Likewise.
9481         * iconvdata/ibm1133.h: Likewise.
9482         * iconvdata/ibm1137.h: Likewise.
9483         * iconvdata/ibm1140.h: Likewise.
9484         * iconvdata/ibm1141.h: Likewise.
9485         * iconvdata/ibm1142.h: Likewise.
9486         * iconvdata/ibm1143.h: Likewise.
9487         * iconvdata/ibm1144.h: Likewise.
9488         * iconvdata/ibm1145.h: Likewise.
9489         * iconvdata/ibm1146.h: Likewise.
9490         * iconvdata/ibm1147.h: Likewise.
9491         * iconvdata/ibm1148.h: Likewise.
9492         * iconvdata/ibm1149.h: Likewise.
9493         * iconvdata/ibm1153.h: Likewise.
9494         * iconvdata/ibm1154.h: Likewise.
9495         * iconvdata/ibm1155.h: Likewise.
9496         * iconvdata/ibm1156.h: Likewise.
9497         * iconvdata/ibm1157.h: Likewise.
9498         * iconvdata/ibm1158.h: Likewise.
9499         * iconvdata/ibm1160.h: Likewise.
9500         * iconvdata/ibm1161.h: Likewise.
9501         * iconvdata/ibm1162.h: Likewise.
9502         * iconvdata/ibm1163.h: Likewise.
9503         * iconvdata/ibm1164.h: Likewise.
9504         * iconvdata/ibm1166.h: Likewise.
9505         * iconvdata/ibm1167.h: Likewise.
9506         * iconvdata/ibm12712.h: Likewise.
9507         * iconvdata/ibm1390.h: Likewise.
9508         * iconvdata/ibm1399.h: Likewise.
9509         * iconvdata/ibm16804.h: Likewise.
9510         * iconvdata/ibm4517.h: Likewise.
9511         * iconvdata/ibm4899.h: Likewise.
9512         * iconvdata/ibm4909.h: Likewise.
9513         * iconvdata/ibm4971.h: Likewise.
9514         * iconvdata/ibm5347.h: Likewise.
9515         * iconvdata/ibm803.h: Likewise.
9516         * iconvdata/ibm856.h: Likewise.
9517         * iconvdata/ibm901.h: Likewise.
9518         * iconvdata/ibm902.h: Likewise.
9519         * iconvdata/ibm9030.h: Likewise.
9520         * iconvdata/ibm9066.h: Likewise.
9521         * iconvdata/ibm921.h: Likewise.
9522         * iconvdata/ibm922.h: Likewise.
9523         * iconvdata/ibm9448.h: Likewise.
9524         * iconvdata/isiri-3342.h: Likewise.
9525         * iconvdata/jis0201.h: Likewise.
9526         * include/link.h: Likewise.
9527         * include/netdb.h: Likewise.
9528         * inet/check_native.c: Likewise.
9529         * inet/check_pf.c: Likewise.
9530         * inet/getipv4sourcefilter.c: Likewise.
9531         * inet/getnameinfo.c: Likewise.
9532         * inet/getsourcefilter.c: Likewise.
9533         * inet/htonl.c: Likewise.
9534         * inet/setipv4sourcefilter.c: Likewise.
9535         * inet/setsourcefilter.c: Likewise.
9536         * inet/test-inet6_opt.c: Likewise.
9537         * inet/tst-network.c: Likewise.
9538         * locale/C-collate.c: Likewise.
9539         * locale/C-ctype.c: Likewise.
9540         * locale/C-time.c: Likewise.
9541         * locale/C-translit.h: Likewise.
9542         * locale/loadarchive.c: Likewise.
9543         * locale/programs/3level.h: Likewise.
9544         * locale/programs/charmap.c: Likewise.
9545         * locale/programs/charmap.h: Likewise.
9546         * locale/programs/ld-address.c: Likewise.
9547         * locale/programs/ld-collate.c: Likewise.
9548         * locale/programs/ld-ctype.c: Likewise.
9549         * locale/programs/ld-identification.c: Likewise.
9550         * locale/programs/ld-measurement.c: Likewise.
9551         * locale/programs/ld-messages.c: Likewise.
9552         * locale/programs/ld-monetary.c: Likewise.
9553         * locale/programs/ld-name.c: Likewise.
9554         * locale/programs/ld-numeric.c: Likewise.
9555         * locale/programs/ld-paper.c: Likewise.
9556         * locale/programs/ld-telephone.c: Likewise.
9557         * locale/programs/ld-time.c: Likewise.
9558         * locale/programs/linereader.c: Likewise.
9559         * locale/programs/locale.c: Likewise.
9560         * locale/programs/locarchive.c: Likewise.
9561         * locale/programs/locfile.h: Likewise.
9562         * locale/programs/repertoire.c: Likewise.
9563         * locale/programs/simple-hash.c: Likewise.
9564         * locale/programs/simple-hash.h: Likewise.
9565         * malloc/memusage.c: Likewise.
9566         * malloc/memusagestat.c: Likewise.
9567         * nis/nis_defaults.c: Likewise.
9568         * nis/nis_hash.c: Likewise.
9569         * nis/nis_print.c: Likewise.
9570         * nis/nis_xdr.c: Likewise.
9571         * nscd/connections.c: Likewise.
9572         * nscd/hstcache.c: Likewise.
9573         * nscd/nscd_gethst_r.c: Likewise.
9574         * nscd/nscd_getserv_r.c: Likewise.
9575         * nscd/nscd_helper.c: Likewise.
9576         * nscd/servicescache.c: Likewise.
9577         * nss/makedb.c: Likewise.
9578         * nss/nss_db/db-XXX.c: Likewise.
9579         * nss/nss_db/db-initgroups.c: Likewise.
9580         * nss/nss_db/db-netgrp.c: Likewise.
9581         * nss/nss_files/files-network.c: Likewise.
9582         * nss/nss_files/files-parse.c: Likewise.
9583         * posix/bug-regex5.c: Likewise.
9584         * posix/fnmatch_loop.c: Likewise.
9585         * posix/regcomp.c: Likewise.
9586         * posix/regexec.c: Likewise.
9587         * posix/tst-rfc3484-2.c: Likewise.
9588         * posix/tst-rfc3484-3.c: Likewise.
9589         * posix/tst-rfc3484.c: Likewise.
9590         * resolv/nss_dns/dns-canon.c: Likewise.
9591         * resolv/nss_dns/dns-network.c: Likewise.
9592         * resolv/res_init.c: Likewise.
9593         * resolv/res_mkquery.c: Likewise.
9594         * resolv/tst-aton.c: Likewise.
9595         * stdlib/cxa_atexit.c: Likewise.
9596         * stdlib/cxa_finalize.c: Likewise.
9597         * stdlib/gen-fpioconst.c: Likewise.
9598         * stdlib/strtol_l.c: Likewise.
9599         * string/tst-endian.c: Likewise.
9600         * sunrpc/auth_des.c: Likewise.
9601         * sunrpc/clnt_udp.c: Likewise.
9602         * sunrpc/rtime.c: Likewise.
9603         * sunrpc/svcauth_des.c: Likewise.
9604         * sunrpc/xdr.c: Likewise.
9605         * sunrpc/xdr_intXX_t.c: Likewise.
9606         * sunrpc/xdr_rec.c: Likewise.
9607         * sysdeps/generic/ldconfig.h: Likewise.
9608         * sysdeps/generic/ldsodefs.h: Likewise.
9609         * sysdeps/generic/memusage.h: Likewise.
9610         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9611         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9612         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9613         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9614         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9615         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9616         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9617         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9618         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9619         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9620         * sysdeps/posix/getaddrinfo.c: Likewise.
9621         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9622         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9623         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9624         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9625         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9626         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9627         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9628         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9629         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9630         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9631         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9632         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9633         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9634         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9635         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9636         * sysdeps/x86_64/dl-tls.h: Likewise.
9637         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9638         * time/alt_digit.c: Likewise.
9639         * time/era.c: Likewise.
9640         * wcsmbs/tst-c16c32-1.c: Likewise.
9641
9642 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9643
9644         * math/libm-test.inc (struct test_sincos_data): New type.
9645         (RUN_TEST_LOOP_sincos): New macro.
9646         (sincos_test_data): New variable.
9647         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9648
9649 2013-05-16  Richard Henderson  <rth@redhat.com>
9650
9651         * math/atest-exp2.c (LIMB64): New macro.
9652         (CONSTSZ): New macro.
9653         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9654         (hexdig): Move ...
9655         (print_mpn_fp): ... to function scope.
9656         (read_mpn_hex): Remove.
9657         (get_log2): Remove.
9658         (exp2_mpn): Use mp_log2.
9659         (main): Use mp_exp1.
9660
9661 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9662
9663         * math/libm-test.inc: Remove comment about not testing "inexact"
9664         exceptions.
9665         (INEXACT_EXCEPTION): New macro.
9666         (NO_INEXACT_EXCEPTION): Likewise.
9667         (INVALID_EXCEPTION_OK): Update value.
9668         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9669         (OVERFLOW_EXCEPTION_OK): Likewise.
9670         (UNDERFLOW_EXCEPTION_OK): Likewise.
9671         (IGNORE_ZERO_INF_SIGN): Likewise.
9672         (ERRNO_UNCHANGED): Likewise.
9673         (ERRNO_EDOM): Likewise.
9674         (ERRNO_ERANGE): Likewise.
9675         (test_exceptions): Handle testing "inexact" exceptions.
9676         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9677         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9678         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9679         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9680         INEXACT_EXCEPTION.
9681         (rint_towardzero_test_data): Likewise.
9682         (rint_downward_test_data): Likewise.
9683         (rint_upward_test_data): Likewise.
9684
9685         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9686         with OVERFLOW_EXCEPTION.
9687         (exp10_test_data): Likewise.
9688         (exp2_test_data): Likewise.
9689         (expm1_test_data): Likewise.
9690         (lgamma_test_data): Likewise.
9691         (pow_test_data): Likewise.
9692         (tgamma_test_data): Likewise.
9693         (yn_test_data): Remove duplicate test of overflow.
9694
9695         * math/libm-test.inc (struct test_cc_c_data): New type.
9696         (RUN_TEST_LOOP_cc_c): New macro.
9697         (cpow_test_data): New variable.
9698         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9699
9700         * math/libm-test.inc (struct test_f_L_data): New type.
9701         (RUN_TEST_LOOP_f_L): New macro.
9702         (llrint_test_data): New variable.
9703         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9704         (llrint_tonearest_test_data): New variable.
9705         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9706         (llrint_towardzero_test_data): New variable.
9707         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9708         (llrint_downward_test_data): New variable.
9709         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9710         (llrint_upward_test_data): New variable.
9711         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9712         (llround_test_data): New variable.
9713         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9714
9715 2013-05-13  Peter Collingbourne  <pcc@google.com>
9716
9717         * math/atest-exp2.c (get_log2): Remove const attribute.
9718
9719 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9720
9721         * math/libm-test.inc (struct test_f_l_data): New type.
9722         (RUN_TEST_LOOP_f_l): New macro.
9723         (lrint_test_data): New variable.
9724         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9725         (lrint_tonearest_test_data): New variable.
9726         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9727         (lrint_towardzero_test_data): New variable.
9728         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9729         (lrint_downward_test_data): New variable.
9730         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9731         (lrint_upward_test_data): New variable.
9732         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9733         (lround_test_data): New variable.
9734         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9735
9736 2013-05-15  Peter Collingbourne  <pcc@google.com>
9737
9738         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9739         (EXTRACT_WORDS64) Use where appropriate.
9740         (INSERT_WORDS64) Likewise.
9741
9742         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9743         constraints with x constraints.
9744         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9745
9746         * malloc/obstack.c (_obstack_compat): Add initializer.
9747
9748 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9749
9750         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9751         si_trapno and add si_addr_lsb to _sifields.sigfault.
9752         (si_trapno): Remove macro.
9753         (si_addr_lsb): Define new macro.
9754         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9755
9756 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9757
9758         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9759         instead of TEST_f_l.
9760         (llrint_test_tonearest): Likewise.
9761         (llrint_test_towardzero): Likewise.
9762         (llrint_test_downward): Likewise.
9763         (llrint_test_upward): Likewise.
9764         (llround_test): Likewise.
9765
9766         * math/libm-test.inc (struct test_f_i_data): Add comment.
9767         (RUN_TEST_LOOP_f_b): New macro.
9768         (RUN_TEST_LOOP_f_b_tg): Likewise.
9769         (finite_test_data): New variable.
9770         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9771         (isfinite_test_data): New variable.
9772         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9773         (isinf_test_data): New variable.
9774         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9775         (isnan_test_data): New variable.
9776         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9777         (isnormal_test_data): New variable.
9778         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9779         (issignaling_test_data): New variable.
9780         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9781         (signbit_test_data): New variable.
9782         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9783
9784         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9785         with INVALID_EXCEPTION.
9786         (acosh_test_data): Likewise.
9787         (asin_test_data): Likewise.
9788         (atanh_test_data): Likewise.
9789         (fmod_test_data): Likewise.
9790         (log_test_data): Likewise.
9791         (log10_test_data): Likewise.
9792         (log2_test_data): Likewise.
9793         (pow_test_data): Likewise.
9794         (sqrt_test_data): Likewise.
9795         (y0_test_data): Likewise.
9796         (y1_test_data): Likewise.
9797         (yn_test_data): Likewise.
9798
9799         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9800         function contents.
9801
9802         * math/libm-test.inc (struct test_ff_i_data): New type.
9803         (RUN_TEST_LOOP_ff_i_tg): New macro.
9804         (isgreater_test_data): New variable.
9805         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9806         (isgreaterequal_test_data): New variable.
9807         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9808         (isless_test_data): New variable.
9809         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9810         (islessequal_test_data): New variable.
9811         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9812         (islessgreater_test_data): New variable.
9813         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9814         (isunordered_test_data): New variable.
9815         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9816
9817 2013-05-14  David S. Miller  <davem@davemloft.net>
9818
9819         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9820
9821 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9822
9823         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9824
9825         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9826         extra_test to int.
9827         (struct test_f_i_data): Change type of max_ulp to int.
9828
9829         * math/libm-test.inc (test_ffI_f1_data): New type.
9830         (RUN_TEST_LOOP_ffI_f1): New macro.
9831         (remquo_test_data): New variable.
9832         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9833
9834         * setjmp/tst-setjmp-fp.c: New file.
9835         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9836         (link-libm): New variable.
9837         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9838
9839         * math/libm-test.inc (struct test_f_i_data): New type.
9840         (RUN_TEST_LOOP_f_i): New macro.
9841         (RUN_TEST_LOOP_f_i_tg): Likewise.
9842         (fpclassify_test_data): New variable.
9843         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9844         (ilogb_test_data): New variable.
9845         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9846
9847         * math/libm-test.inc (scalbln_test): Correct function name in END
9848         call.
9849
9850         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9851         (RUN_TEST_LOOP_fI_f1): New macro.
9852         (frexp_test_data): New variable.
9853         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9854
9855         * math/libm-test.inc (struct test_fF_f1_data): New type.
9856         (RUN_TEST_LOOP_fF_f1): New macro.
9857         (modf_test_data): New variable.
9858         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9859
9860         * math/libm-test.inc (struct test_f_f1_data): New type.
9861         (RUN_TEST_LOOP_f_f1): New macro.
9862         (gamma_test_data): New variable.
9863         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9864         (lgamma_test_data): New variable.
9865         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9866
9867 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9868
9869         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9870         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9871         (main): Comment "tls" pseudo-hwcap.
9872
9873 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9874
9875         * math/libm-test.inc (struct test_fl_f_data): New type.
9876         (RUN_TEST_LOOP_fl_f): New variable.
9877         (scalbln_test_data): New variable.
9878         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9879
9880         * math/libm-test.inc (struct test_fi_f_data): New type.
9881         (RUN_TEST_LOOP_fi_f): New macro.
9882         (ldexp_test_data): New variable.
9883         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9884         (scalbn_test_data): New variable.
9885         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9886
9887         * math/libm-test.inc (struct test_c_f_data): New type.
9888         (RUN_TEST_LOOP_c_f): New macro.
9889         (cabs_test_data): New variable.
9890         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9891         (carg_test_data): New variable.
9892         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9893         (cimag_test_data): New variable.
9894         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9895         (creal_test_data): New variable.
9896         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9897
9898         * math/libm-test.inc (struct test_if_f_data): New type.
9899         (RUN_TEST_LOOP_if_f): New macro.
9900         (jn_test_data): New variable.
9901         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9902         (yn_test_data): New variable.
9903         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9904
9905         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9906
9907 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9908
9909         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9910         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9911
9912 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9913
9914         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9915         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9916         (bench-deps): Add bench-timing.h.
9917         * benchtests-bench-skeleton.c: Include bench-timing.h.
9918         (main): Use TIMING_* macros instead of clock_gettime.
9919         * benchtests/bench-timing.h: New file.
9920
9921         [BZ #14582]
9922         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9923         Renamed from _LIB_VERSION.
9924         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9925
9926 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9927
9928         * math/libm-test.inc (struct test_fff_f_data): New type.
9929         (RUN_TEST_LOOP_fff_f): New macro.
9930         (fma_test_data): New variable.
9931         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9932         (fma_towardzero_test_data): New variable.
9933         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9934         (fma_downward_test_data): New variable.
9935         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9936         (fma_upward_test_data): New variable.
9937         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9938
9939         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9940         (struct test_c_c_data): New type.
9941         (RUN_TEST_LOOP_c_c): New macro.
9942         (cacos_test_data): New variable.
9943         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9944         (cacosh_test_data): New variable.
9945         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9946         (casin_test_data): New variable.
9947         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9948         (casinh_test_data): New variable.
9949         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9950         (catan_test_data): New variable.
9951         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9952         (catanh_test_data): New variable.
9953         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9954         (ccos_test_data): New variable.
9955         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9956         (ccosh_test_data): New variable.
9957         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9958         (cexp_test_data): New variable.
9959         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9960         (clog_test_data): New variable.
9961         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9962         (clog10_test_data): New variable.
9963         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9964         (conj_test_data): New variable.
9965         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9966         (cproj_test_data): New variable.
9967         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9968         (csin_test_data): New variable.
9969         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9970         (csinh_test_data): New variable.
9971         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9972         (csqrt_test_data): New variable.
9973         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9974         (ctan_test_data): New variable.
9975         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9976         (ctan_tonearest_test_data): New variable.
9977         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9978         (ctan_towardzero_test_data): New variable.
9979         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9980         (ctan_downward_test_data): New variable.
9981         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9982         (ctan_upward_test_data): New variable.
9983         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9984         (ctanh_test_data): New variable.
9985         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9986         (ctanh_tonearest_test_data): New variable.
9987         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9988         (ctanh_towardzero_test_data): New variable.
9989         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9990         (ctanh_downward_test_data): New variable.
9991         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9992         (ctanh_upward_test_data): New variable.
9993         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9994         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
9995         of BUILD_COMPLEX.
9996
9997         * math/libm-test.inc (struct test_ff_f_data): New type.
9998         (struct test_ff_f_data_nexttoward): Likewise.
9999         (RUN_TEST_LOOP_2_f): New macro.
10000         (RUN_TEST_LOOP_ff_f): Likewise.
10001         (atan2_test_data): New variable.
10002         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
10003         (copysign_test_data): New variable.
10004         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
10005         (fdim_test_data): New variable.
10006         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
10007         (fmax_test_data): New variable.
10008         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
10009         (fmin_test_data): New variable.
10010         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
10011         (fmod_test_data): New variable.
10012         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
10013         (hypot_test_data): New variable.
10014         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
10015         (nextafter_test_data): New variable.
10016         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
10017         (nexttoward_test_data): New variable.
10018         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
10019         (pow_test_data): New variable.
10020         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
10021         (pow_tonearest_test_data): New variable.
10022         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
10023         (pow_towardzero_test_data): New variable.
10024         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
10025         (pow_downward_test_data): New variable.
10026         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
10027         (pow_upward_test_data): New variable.
10028         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
10029         (remainder_test_data): New variable.
10030         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
10031         (scalb_test_data): New variable.
10032         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
10033         * sysdeps/i386/fpu/libm-test-ulps: Update.
10034
10035 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
10036
10037         * math/libm-test.inc (fma_test): Use max_value instead of local
10038         variable fltmax.
10039         (nextafter_test): Likewise.
10040
10041         * math/libm-test.inc (acos_towardzero_test_data): New variable.
10042         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10043         (acos_downward_test_data): New variable.
10044         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10045         (acos_upward_test_data): New variable.
10046         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10047         (acosh_test_data): New variable.
10048         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
10049         (asin_test_data): New variable.
10050         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
10051         (asin_tonearest_test_data): New variable.
10052         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10053         (asin_towardzero_test_data): New variable.
10054         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10055         (asin_downward_test_data): New variable.
10056         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10057         (asin_upward_test_data): New variable.
10058         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10059         (asinh_test_data): New variable.
10060         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
10061         (atan_test_data): New variable.
10062         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
10063         (atanh_test_data): New variable.
10064         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
10065         (cbrt_test_data): New variable.
10066         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
10067         (ceil_test_data): New variable.
10068         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
10069         (cos_test_data): New variable.
10070         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
10071         (cos_tonearest_test_data): New variable.
10072         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10073         (cos_towardzero_test_data): New variable.
10074         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10075         (cos_downward_test_data): New variable.
10076         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10077         (cos_upward_test_data): New variable.
10078         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10079         (cosh_test_data): New variable.
10080         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
10081         (cosh_tonearest_test_data): New variable.
10082         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10083         (cosh_towardzero_test_data): New variable.
10084         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10085         (cosh_downward_test_data): New variable.
10086         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10087         (cosh_upward_test_data): New variable.
10088         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10089         (erf_test_data): New variable.
10090         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
10091         (erfc_test_data): New variable.
10092         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
10093         (exp_test_data): New variable.
10094         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
10095         (exp_tonearest_test_data): New variable.
10096         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10097         (exp_towardzero_test_data): New variable.
10098         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10099         (exp_downward_test_data): New variable.
10100         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10101         (exp_upward_test_data): New variable.
10102         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10103         (exp10_test_data): New variable.
10104         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
10105         (exp2_test_data): New variable.
10106         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
10107         (expm1_test_data): New variable.
10108         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
10109         (fabs_test_data): New variable.
10110         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
10111         (floor_test_data): New variable.
10112         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
10113         (j0_test_data): New variable.
10114         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
10115         (j1_test_data): New variable.
10116         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
10117         (log_test_data): New variable.
10118         (log_test): Run tests with RUN_TEST_LOOP_f_f.
10119         (log10_test_data): New variable.
10120         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
10121         (log1p_test_data): New variable.
10122         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
10123         (log2_test_data): New variable.
10124         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
10125         (logb_test_data): New variable.
10126         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
10127         (logb_downward_test_data): New variable.
10128         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10129         (nearbyint_test_data): New variable.
10130         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
10131         (rint_test_data): New variable.
10132         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
10133         (rint_tonearest_test_data): New variable.
10134         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10135         (rint_towardzero_test_data): New variable.
10136         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10137         (rint_downward_test_data): New variable.
10138         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10139         (rint_upward_test_data): New variable.
10140         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10141         (round_test_data): New variable.
10142         (round_test): Run tests with RUN_TEST_LOOP_f_f.
10143         (sin_test_data): New variable.
10144         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
10145         (sin_tonearest_test_data): New variable.
10146         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10147         (sin_towardzero_test_data): New variable.
10148         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10149         (sin_downward_test_data): New variable.
10150         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10151         (sin_upward_test_data): New variable.
10152         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10153         (sinh_test_data): New variable.
10154         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
10155         (sinh_tonearest_test_data): New variable.
10156         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10157         (sinh_towardzero_test_data): New variable.
10158         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10159         (sinh_downward_test_data): New variable.
10160         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10161         (sinh_upward_test_data): New variable.
10162         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10163         (sqrt_test_data): New variable.
10164         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
10165         (tan_test_data): New variable.
10166         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
10167         (tan_tonearest_test_data): New variable.
10168         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10169         (tan_towardzero_test_data): New variable.
10170         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10171         (tan_downward_test_data): New variable.
10172         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10173         (tan_upward_test_data): New variable.
10174         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10175         (tanh_test_data): New variable.
10176         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
10177         (tgamma_test_data): New variable.
10178         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
10179         (trunc_test_data): New variable.
10180         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
10181         (y0_test_data): New variable.
10182         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
10183         (y1_test_data): New variable.
10184         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
10185         (significand_test_data): New variable.
10186         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
10187
10188 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
10189
10190         [BZ #12387]
10191         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
10192
10193 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10194
10195         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
10196
10197 2013-05-10  Andreas Jaeger  <aj@suse.de>
10198
10199         [BZ #15448]
10200         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
10201         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
10202
10203 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10204
10205         * math/gen-libm-test.pl (adjust_arg): New function.
10206         (special_functions): Handle generating output in both functions
10207         and arrays.
10208         (parse_args): Likewise.
10209         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
10210         $in_func argument to parse_args.
10211         * math/libm-test.inc (struct test_f_f_data): New type.
10212         (IF_ROUND_INIT_): New macro.
10213         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
10214         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
10215         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10216         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10217         (ROUND_RESTORE_): Likewise.
10218         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
10219         (ROUND_RESTORE_FE_TONEAREST): Likewise.
10220         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
10221         (ROUND_RESTORE_FE_UPWARD): Likewise.
10222         (RUN_TEST_LOOP_f_f): New macro.
10223         (acos_test_data): New variable.
10224         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
10225         (acos_tonearest_test_data): New variable.
10226         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10227
10228 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10229
10230         * benchtests/bench-skeleton.c (startup): Fix coding style.
10231
10232 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10233
10234         [BZ #6809]
10235         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
10236         negative infinity argument.
10237         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
10238         negative infinity argument.
10239         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
10240         negative infinity argument.
10241         * math/libm-test.inc (tgamma_test): Expect errno to be set for
10242         domain errors.
10243
10244 2013-05-10  Florian Weimer  <fweimer@redhat.com>
10245
10246         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
10247         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
10248         * iconv/iconv_prog.c (main): Likewise.
10249         * locale/programs/charmap-dir.c (charmap_readdir)
10250         (fopen_uncompressed): Likewise.
10251         * locale/programs/locfile.c (siblings_uncached)
10252         (write_locale_data): Use lstat64 instead of lstat.
10253         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
10254         stat.
10255
10256 2013-05-10  Andreas Jaeger  <aj@suse.de>
10257
10258         [BZ #15395]
10259         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
10260         localization.
10261         Include <locale.h>.
10262
10263 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
10264
10265         * elf/dl-close.c (_dl_close_worker): Add comments.
10266
10267 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
10268
10269         [BZ #15359]
10270         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
10271         high part of pi/2.
10272         (__ieee754_rem_pio2l): Update comments.
10273
10274         [BZ #15429]
10275         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
10276         high part of pi/2.
10277         (__ieee754_rem_pio2l): Update comments.
10278
10279         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
10280         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
10281
10282         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
10283         M_PI_4l.
10284
10285         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
10286         (M_PI_34_LOG10El): Likewise.
10287         (M_PI2_LOG10El): Likewise.
10288         (M_PI4_LOG10El): Likewise.
10289         (M_PI_LOG10El): Likewise.
10290
10291 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10292
10293         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10294
10295 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
10296
10297         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
10298         (MINUS_ZERO_INIT): Likewise.
10299         (PLUS_INFTY_INIT): Likewise.
10300         (MINUS_INFTY_INIT): Likewise.
10301         (QNAN_VALUE_INIT): Likewise.
10302         (MAX_VALUE_INIT): Likewise.
10303         (MIN_VALUE_INIT): Likewise.
10304         (MIN_SUBNORM_VALUE_INIT): Likewise.
10305         (plus_zero): Initialize with PLUS_ZERO_INIT.
10306         (minus_zero): Initialize with MINUS_ZERO_INIT.
10307         (plus_infty): Initialize with PLUS_INFTY_INIT.
10308         (minus_infty): Initialize with MINUS_INFTY_INIT.
10309         (qnan_value): Initialize with QNAN_VALUE_INIT.
10310         (max_value): Initialize with MAX_VALUE_INIT.
10311         (min_value): Initialize with MIN_VALUE_INIT.
10312         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
10313
10314         * math/libm-test.inc (RUN_TEST_if_f): New macro.
10315         (jn_test): Use TEST_if_f instead of TEST_ff_f.
10316         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
10317         (yn_test): Use TEST_if_f instead of TEST_ff_f.
10318
10319         * math/libm-test.inc (RUN_TEST_f_f): New macro.
10320         (RUN_TEST_2_f): Likewise.
10321         (RUN_TEST_ff_f): Likewise.
10322         (RUN_TEST_fi_f): Likewise.
10323         (RUN_TEST_fl_f): Likewise.
10324         (RUN_TEST_fff_f): Likewise.
10325         (RUN_TEST_c_f): Likewise.
10326         (RUN_TEST_f_f1): Likewise.
10327         (RUN_TEST_fF_f1): Likewise.
10328         (RUN_TEST_fI_f1): Likewise.
10329         (RUN_TEST_ffI_f1): Likewise.
10330         (RUN_TEST_c_c): Likewise.
10331         (RUN_TEST_cc_c): Likewise.
10332         (RUN_TEST_f_i): Likewise.
10333         (RUN_TEST_f_i_tg): Likewise.
10334         (RUN_TEST_ff_i_tg): Likewise.
10335         (RUN_TEST_f_b): Likewise.
10336         (RUN_TEST_f_b_tg): Likewise.
10337         (RUN_TEST_f_l): Likewise.
10338         (RUN_TEST_f_L): Likewise.
10339         (RUN_TEST_sincos): Likewise.
10340         * math/gen-libm-test.pl (new_test): Take new argument to indicate
10341         whether to show exceptions.  Do not include ");\n" in return
10342         value.
10343         (special_functions): Output call to RUN_TEST_sincos instead of
10344         check_float calls.  Update calls to new_test.
10345         (parse_args): Output call to single RUN_TEST_* macro instead of
10346         check_* calls and other assignments.  Update calls to new_test.
10347
10348         [BZ #2546]
10349         [BZ #2560]
10350         [BZ #5159]
10351         [BZ #15426]
10352         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
10353         input to result for tgamma overflow.
10354         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
10355         (gamma_coeff): New variable.
10356         (NCOEFF): New macro.
10357         (gamma_positive): New function.
10358         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
10359         underflow here.  Use gamma_positive instead of exp (lgamma) for
10360         other arguments.
10361         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10362         (gamma_coeff): New variable.
10363         (NCOEFF): New macro.
10364         (gammaf_positive): New function.
10365         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10366         underflow here.  Use gamma_positive instead of exp (lgamma) for
10367         other arguments.
10368         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10369         (gamma_coeff): New variable.
10370         (NCOEFF): New macro.
10371         (gammal_positive): New function.
10372         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10373         underflow here.  Use gamma_positive instead of exp (lgamma) for
10374         other arguments.
10375         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10376         (gamma_coeff): New variable.
10377         (NCOEFF): New macro.
10378         (gammal_positive): New function.
10379         (__ieee754_gammal_r): Handle positive infinity, overflow and
10380         underflow here.  Handle NaN the same as positive infinity.  Remove
10381         check x < 0xffffffff for negative integers.  Use gamma_positive
10382         instead of exp (lgamma) for other arguments.
10383         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10384         (gamma_coeff): New variable.
10385         (NCOEFF): New macro.
10386         (gammal_positive): New function.
10387         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10388         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10389         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10390         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10391         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10392         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10393         * sysdeps/generic/math_private.h (__gamma_productf): New
10394         prototype.
10395         (__gamma_product): Likewise.
10396         (__gamma_productl): Likewise.
10397         * math/Makefile (libm-calls): Add gamma_product.
10398         * math/libm-test.inc (tgamma_test): Add more tests.
10399         * sysdeps/i386/fpu/libm-test-ulps: Update.
10400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10401
10402 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10403
10404         * benchtests/bench-skeleton.c (main): Preheat CPU.
10405
10406 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10407
10408         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10409
10410 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10411
10412         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10413         and _dl_skip_args_internal.
10414
10415 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10416
10417         * manual/message.texi (Message Translation): Talk about users.
10418         Message to key mapping impacts design.
10419
10420 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10421
10422         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10423
10424         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10425
10426         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10427         * sysdeps/wordsize-64/glob64.c: ... here.
10428
10429         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10430         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10431         New macros.
10432
10433         * debug/getlogin_r_chk.c: Moved to ...
10434         * login/getlogin_r_chk.c: ... here.
10435         * debug/Makefile (routines): Move getlogin_r_chk to ...
10436         * login/Makefile (routines): ... here.
10437         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10438         * login/Versions (libc: GLIBC_2.4): ... here.
10439
10440         * io/poll.c (__poll): Renamed from poll.
10441         Add libc_hidden_def.
10442         (poll): Define as weak alias.
10443
10444         * debug/ptsname_r_chk.c: Moved to ...
10445         * login/ptsname_r_chk.c: ... here.
10446         * debug/Makefile (routines): Move ptsname_r_chk to ...
10447         * login/Makefile (routines): ... here.
10448         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10449         * login/Versions (libc: GLIBC_2.4): ... here.
10450
10451         * posix/getlogin.c: Moved to ...
10452         * login/getlogin.c: ... here.
10453         * posix/getlogin_r.c: Moved to ...
10454         * login/getlogin_r.c: ... here.
10455         * posix/getlogin_r.c: Moved to ...
10456         * login/getlogin_r.c: ... here.
10457         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10458         * login/Makefile (routines): ... here.
10459         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10460         * login/Versions (libc: GLIBC_2.0): ... here.
10461
10462         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10463         (setrlimit): Define as weak alias.
10464
10465         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10466         Call __ names for open, ftruncate, and close.
10467         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10468         (truncate): Define as weak alias.
10469
10470 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10471
10472         * math/gen-libm-test.pl (parse_args): Initialize x before each
10473         test of frexp, modf and remquo.
10474
10475         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10476         test signgam value.
10477
10478 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10479
10480         [BZ #15418]
10481         [BZ #15419]
10482         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10483         internal tests.
10484         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10485
10486 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10487
10488         * elf/dl-writev.h: New file.
10489         * elf/dl-misc.c: Include it.
10490         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10491         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10492
10493 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10494
10495         * math/libm-test.inc (noXFails): Remove variable.
10496         (noXPasses): Likewise.
10497         (BUILD_COMPLEX_INT): Remove macro.
10498         (print_screen): Remove xfail argument.
10499         (print_screen_max_error): Likewise.
10500         (update_stats): Likewise.
10501         (print_max_error): Likewise.  Update calls to other affected
10502         functions.
10503         (print_complex_max_error): Likewise.
10504         (test_single_exception): Update calls to print_screen.
10505         (test_single_errno): Likewise.
10506         (check_float_internal): Remove xfail argument.  Update calls to
10507         other affected functions.
10508         (check_float): Likewise.
10509         (check_complex): Likewise.
10510         (check_int): Likewise.
10511         (check_long): Likewise.
10512         (check_bool): Likewise.
10513         (check_longlong): Likewise.
10514         (main): Don't print noXFails and noXPasses.
10515         * math/gen-libm-test.pl (top level): Don't mention expected
10516         failure handling in comment.
10517         (new_test): Don't handle expected failures.
10518         (parse_args): Don't mention expected failure handling in comment.
10519         (generate_testfile): Don't handle expected failures.
10520         (parse_ulps): Likewise.
10521         (print_ulps_file): Likewise.
10522         (get_failure): Remove function.
10523         (output_test): Don't handle expected failures.
10524         * make/README.libm-test: Don't mention expected failure handling.
10525
10526         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10527         (minus_zero): Likewise.
10528         (plus_infty): Likewise.
10529         (minus_infty): Likewise.
10530         (qnan_value): Likewise.
10531         (max_value): Likewise.
10532         (min_value): Likewise.
10533         (min_subnorm_value): Likewise.
10534         (initialize): Do not initialize those variables dynamically.
10535
10536 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10537
10538         * io/open.c (__open_2): Moved to ...
10539         * io/open_2.c: ... this new file.
10540         * io/open64.c (__open64_2): Moved to ...
10541         * io/open64_2.c: ... this new file.
10542         * io/openat.c (__openat_2): Moved to ...
10543         * io/openat_2.c: ... this new file.
10544         * io/openat64.c (__openat64_2): Moved to ...
10545         * io/openat64_2.c: ... this new file.
10546         * io/Makefile (routines): Add them.
10547         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10548         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10549         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10550         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10551         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10552         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10553         (__openat64): Add hidden_ver.
10554         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10555         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10556
10557         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10558         Separately conditionalize setting of GLRO(dl_sysinfo) so
10559         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10560         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10561
10562 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10563
10564         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10565         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10566         definition.
10567         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10568         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10569         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10570         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10571         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10572
10573 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10574
10575         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10576         test signgam value.
10577
10578         * math/libm-test.inc (hypot_test): Do not use
10579         IGNORE_ZERO_INF_SIGN.
10580
10581 2013-05-03  Andreas Jaeger  <aj@suse.de>
10582
10583         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10584         Linux 3.9.
10585         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10586         (PF_MAX): Adjust for VSOCK change.
10587
10588 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10589
10590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10591
10592 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10593
10594         [BZ #15264]
10595         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10596         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10597         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10598
10599 2013-05-02  David S. Miller  <davem@davemloft.net>
10600
10601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10602
10603 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10604
10605         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10606
10607 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10608
10609         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10610
10611 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10612
10613         [BZ #14952]
10614         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10615         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10616         Use __attribute__ ((__gnu_inline__)).
10617         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10618         Don't use __attribute__ ((__gnu_inline__)).
10619
10620 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10621
10622         [BZ #15423]
10623         * math/s_catan.c (__catan): Handle small real or imaginary part of
10624         input specially to avoid spurious underflow.
10625         * math/s_catanf.c (__catanf): Likewise.
10626         * math/s_catanh.c (__catanh): Likewise.
10627         * math/s_catanhf.c (__catanhf): Likewise.
10628         * math/s_catanhl.c (__catanhl): Likewise.
10629         * math/s_catanl.c (__catanl): Likewise.
10630         * math/libm-test.inc (catan_test): Add more tests.
10631         (catanh_test): Likewise.
10632         * sysdeps/i386/fpu/libm-test-ulps: Update.
10633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10634
10635 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10636
10637         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10638
10639 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10640
10641         [BZ #15416]
10642         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10643         accurately for denominator in atan2.
10644         * math/s_catanf.c (__catanf): Likewise.
10645         * math/s_catanh.c (__catanh): Likewise.
10646         * math/s_catanhf.c (__catanhf): Likewise.
10647         * math/s_catanhl.c (__catanhl): Likewise.
10648         * math/s_catanl.c (__catanl): Likewise.
10649         * math/libm-test.inc (catan_test): Add more tests.
10650         (catanh_test): Likewise.
10651         * sysdeps/i386/fpu/libm-test-ulps: Update.
10652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10653
10654 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10655
10656         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10657
10658         * benchtests/Makefile (bench): Remove slow benchmarks.
10659         * benchtests/atan-inputs: Add slow benchmark inputs.
10660         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10661         (BENCH_FUNC): Accept variant offset.
10662         (VARIANT): Define.
10663         * benchtests/bench-skeleton.c (main): Run benchmark for each
10664         variant.
10665         * benchtests/cos-inputs: Add slow benchmark inputs.
10666         * benchtests/exp-inputs: Likewise.
10667         * benchtests/pow-inputs: Likewise.
10668         * benchtests/sin-inputs: Likewise.
10669         * benchtests/slowatan-inputs: Remove.
10670         * benchtests/slowatan.c: Remove.
10671         * benchtests/slowcos-inputs: Remove.
10672         * benchtests/slowcos.c: Remove.
10673         * benchtests/slowexp-inputs: Remove.
10674         * benchtests/slowexp.c: Remove.
10675         * benchtests/slowpow-inputs: Remove.
10676         * benchtests/slowpow.c: Remove.
10677         * benchtests/slowsin-inputs: Remove.
10678         * benchtests/slowsin.c: Remove.
10679         * benchtests/slowtan-inputs: Remove.
10680         * benchtests/slowtan.c: Remove.
10681         * benchtests/tan-inputs: Add slow benchmark inputs.
10682         * scripts/bench.pl: Parse comments and directives.
10683
10684         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10685         in CPPFLAGS.
10686         ($(objpfx)bench-%.c): Remove *-ITER.
10687         * benchtests/bench-modf.c: Remove definition of ITER.
10688         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10689         (main): Loop for DURATION seconds instead of fixed number of
10690         iterations.
10691         * scripts/bench.pl: Don't expect iterations in parameters.
10692
10693 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10694
10695         * io/fchdir.c (__fchdir): Renamed from fchdir.
10696         (fchdir): Define as weak alias.
10697
10698 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10699
10700         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10701         (ERRNO_EDOM): Likewise.
10702         (ERRNO_ERANGE): Likewise.
10703         (noErrnoTests): New variable.
10704         (init_max_error): Set errno to 0.
10705         (test_single_errno): New function.
10706         (test_errno): Likewise.
10707         (check_float_internal): Call test_errno.  Set errno to 0.
10708         (check_complex): Refer to errno tests in comment.
10709         (check_int): Call test_errno.  Set errno to 0.
10710         (check_long): Likewise.
10711         (check_bool): Likewise.
10712         (check_longlong): Likewise.
10713         (cos_test): Use ERRNO_* flags for errno tests instead of
10714         check_int.
10715         (expm1_test): Likewise.
10716         (fmod_test): Likewise.
10717         (ilogb_test): Likewise.
10718         (lgamma_test): Likewise.
10719         (pow_test): Likewise.
10720         (remainder_test): Likewise.
10721         (sin_test): Likewise.
10722         (tan_test): Likewise.
10723         (yn_test): Likewise.
10724         (initialize): Set errno to 0.
10725         (main): Print number of errno tests.
10726         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10727
10728 2013-04-29  Andreas Jaeger  <aj@suse.de>
10729
10730         [BZ #15084]
10731         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10732         and RES_USEVC.
10733
10734         [BZ #15085]
10735         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10736         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10737         unimplemented.
10738
10739         [BZ #15380]
10740         * stdlib/random.c (__initstate): Return NULL if
10741         __initstate fails.
10742
10743         [BZ #15086]
10744         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10745         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10746         RES_SNGLKUPREOP.
10747
10748 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10749
10750         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10751
10752 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10753
10754         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10755         of individual tests.
10756         (casin_test): Likewise.
10757         (casinh_test): Likewise.
10758
10759 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10760
10761         [BZ #15409]
10762         * math/s_catan.c (__catan): Handle arguments with large real or
10763         imaginary part separately without squaring.
10764         * math/s_catanf.c (__catanf): Likewise.
10765         * math/s_catanh.c (__catanh): Likewise.
10766         * math/s_catanhf.c (__catanhf): Likewise.
10767         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10768         and redefine.
10769         (__catanhl): Handle arguments with large real or imaginary part
10770         separately without squaring.
10771         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10772         and redefine.
10773         (__catanl): Handle arguments with large real or imaginary part
10774         separately without squaring.
10775         * math/libm-test.inc (catan_test): Add more tests.
10776         (catanh_test): Likewise.
10777         * sysdeps/i386/fpu/libm-test-ulps: Update.
10778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10779
10780 2013-04-27  Andreas Jaeger  <aj@suse.de>
10781
10782         [BZ #15007]
10783         * stdlib/stdlib.h: Update guards for qecvt.
10784         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10785         <stdlib.h>.
10786
10787 2013-04-27  Allan McRae  <allan@archlinux.org>
10788
10789         * sysdeps/i386/fpu/libm-test-ulps: Update.
10790
10791 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10792
10793         [BZ #15406]
10794         * math/s_catan.c: Include <float.h>.
10795         (__catan): Ensure underflow exception occurs for underflowed
10796         result.
10797         * math/s_catanf.c: Include <float.h>.
10798         (__catanf): Ensure underflow exception occurs for underflowed
10799         result.
10800         * math/s_catanh.c: Include <float.h>.
10801         (__catanh): Ensure underflow exception occurs for underflowed
10802         result.
10803         * math/s_catanhf.c: Include <float.h>.
10804         (__catanhf): Ensure underflow exception occurs for underflowed
10805         result.
10806         * math/s_catanhl.c: Include <float.h>.
10807         (__catanhl): Ensure underflow exception occurs for underflowed
10808         result.
10809         * math/s_catanl.c: Include <float.h>.
10810         (__catanl): Ensure underflow exception occurs for underflowed
10811         result.
10812         * math/libm-test.inc (catan_test): Add more tests.
10813         (catanh_test): Likewise.
10814
10815         [BZ #15405]
10816         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10817         underflowed result.
10818         * math/s_ccoshf.c (__ccoshf): Likewise.
10819         * math/s_ccoshl.c (__ccoshl): Likewise.
10820         * math/s_csin.c (__csin): Likewise.
10821         * math/s_csinf.c (__csinf): Likewise.
10822         * math/s_csinh.c (__csinh): Likewise.
10823         * math/s_csinhf.c (__csinhf): Likewise.
10824         * math/s_csinhl.c (__csinhl): Likewise.
10825         * math/s_csinl.c (__csinl): Likewise.
10826         * math/libm-test.inc (ccos_test): Add more tests.
10827         (ccosh_test): Likewise.
10828         (csin_test): Likewise.
10829         (csinh_test): Likewise.
10830
10831 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10832
10833         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10834         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10835         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10836         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10837         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10838         powerpc/power5+/fpu folders.
10839         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10840
10841
10842 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10843
10844         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10845
10846 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10847
10848         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10849         additions to variable.
10850         [$(config-machine) = x86_64] (modules-names): Likewise.
10851         ($(objpfx)tst-audit3): Remove dependency.
10852         ($(objpfx)tst-audit3.out): Likewise.
10853         ($(objpfx)tst-audit4): Likewise.
10854         ($(objpfx)tst-audit4.out): Likewise.
10855         ($(objpfx)tst-audit5): Likewise.
10856         ($(objpfx)tst-audit5.out): Likewise.
10857         ($(objpfx)tst-audit6): Likewise.
10858         ($(objpfx)tst-audit6.out): Likewise.
10859         ($(objpfx)tst-audit7): Likewise.
10860         ($(objpfx)tst-audit7.out): Likewise.
10861         (tst-audit3-ENV): Remove variable.
10862         (tst-audit4-ENV): Likewise.
10863         (tst-audit5-ENV): Likewise.
10864         (tst-audit6-ENV): Likewise.
10865         (tst-audit7-ENV): Likewise.
10866         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10867         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10868         addition to variable.
10869         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10870         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10871         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10872         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10873         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10874         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10875         tst-audit3, tst-audit4 and tst-audit5.
10876         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10877         tst-audit6 and tst-audit7.
10878         [$(subdir) = elf] (modules-names): Add audit modules for those
10879         tests.
10880         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10881         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10882         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10883         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10884         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10885         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10886         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10887         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10888         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10889         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10890         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10891         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10892         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10893         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10894         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10895         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10896         Likewise.
10897         [$(subdir) = elf && $(config-cflags-avx) = yes]
10898         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10899         [$(subdir) = elf && $(config-cflags-avx) = yes]
10900         (CFLAGS-tst-auditmod4a.c): Likewise.
10901         [$(subdir) = elf && $(config-cflags-avx) = yes]
10902         (CFLAGS-tst-auditmod4b.c): Likewise.
10903         [$(subdir) = elf && $(config-cflags-avx) = yes]
10904         (CFLAGS-tst-auditmod6b.c): Likewise.
10905         [$(subdir) = elf && $(config-cflags-avx) = yes]
10906         (CFLAGS-tst-auditmod6c.c): Likewise.
10907         [$(subdir) = elf && $(config-cflags-avx) = yes]
10908         (CFLAGS-tst-auditmod7b.c): Likewise.
10909         * elf/tst-audit3.c: Move to ...
10910         * sysdeps/x86_64/tst-audit3.c: ... here.
10911         * elf/tst-audit4.c: Move to ...
10912         * sysdeps/x86_64/tst-audit4.c: ... here.
10913         * elf/tst-audit5.c: Move to ...
10914         * sysdeps/x86_64/tst-audit5.c: ... here.
10915         * elf/tst-audit6.c: Move to ...
10916         * sysdeps/x86_64/tst-audit6.c: ... here.
10917         * elf/tst-audit7.c: Move to ...
10918         * sysdeps/x86_64/tst-audit7.c: ... here.
10919         * elf/tst-auditmod3a.c: Move to ...
10920         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10921         * elf/tst-auditmod3b.c: Move to ...
10922         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10923         * elf/tst-auditmod4a.c: Move to ...
10924         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10925         * elf/tst-auditmod4b.c: Move to ...
10926         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10927         * elf/tst-auditmod5a.c: Move to ...
10928         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10929         * elf/tst-auditmod5b.c: Move to ...
10930         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10931         * elf/tst-auditmod6a.c: Move to ...
10932         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10933         * elf/tst-auditmod6b.c: Move to ...
10934         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10935         * elf/tst-auditmod6c.c: Move to ...
10936         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10937         * elf/tst-auditmod7a.c: Move to ...
10938         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10939         * elf/tst-auditmod7b.c: Move to ...
10940         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10941
10942 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10943
10944         [BZ #15366]
10945         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10946         define unconditionally.
10947         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10948         define unconditionally.
10949         (INT8_C, INT16_C, etc.): Likewise.
10950
10951 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10952
10953         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10954         __ehdr_start with hidden visibility.
10955
10956         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10957
10958 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10959
10960         * math/libm-test.inc (cos_test): Use accurate hex constants.
10961         (sincost_test): Likewise.
10962
10963 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10964
10965         * math/libm-test.inc (catan_test): Add more tests.
10966         (catanh_test): Likewise.
10967
10968         * math/s_catanf.c (__catanf): Use suffixed floating-point
10969         constants.
10970         * math/s_catanhf.c (__catanhf): Likewise.
10971         * math/s_catanhl.c (__catanhl): Likewise.
10972         * math/s_catanl.c (__catanl): Likewise.
10973
10974         [BZ #15394]
10975         * math/s_catan.c (__catan): Calculate imaginary part of result
10976         with log1p not log unless computing log of number close to 0.
10977         * math/s_catanf.c (__catanf): Likewise.
10978         * math/s_catanl.c (__catanl): Likewise.
10979         * math/s_catanh.c (__catanh): Calculate real part of result with
10980         log1p not log unless computing log of number close to 0.
10981         * math/s_catanhf.c (__catanhf): Likewise.
10982         * math/s_catanhl.c (__catanhl): Likewise.
10983         * math/libm-test.inc (catan_test): Add more tests.
10984         (catanh_test): Likewise.
10985         * sysdeps/i386/fpu/libm-test-ulps: Update.
10986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10987
10988 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10989
10990         * benchtests/Makefile: Mention files in which fast and slow
10991         paths of math functions are implemented.
10992
10993 2013-04-23  Roland McGrath  <roland@hack.frob.com>
10994
10995         * sysdeps/posix/timespec_get.c: New file.
10996
10997 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10998
10999         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
11000         POWER.
11001         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
11002         for POWER.
11003         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
11004         powerpc/power5/fpu folders.
11005         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
11006         * benchtests/Makefile: Add modf testcase.
11007         * benchtests/bench-modf.c: New file: Benchmark test for mo
11008
11009 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
11010
11011         [BZ #14888]
11012         * time/Makefile (tests): Add tst-strptime-whitespace.
11013         * time/strptime_l.c (get_number): Use ISSPACE.
11014         (__strptime_internal): Likewise.
11015         * time/tst-strptime-whitespace.c: New test case.
11016
11017 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
11018
11019         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
11020         member.
11021         (_nss_files_init): Set it here.
11022
11023 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
11024
11025         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
11026         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
11027         unsigned.
11028
11029 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
11030
11031         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
11032
11033 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11034
11035         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
11036         size just once.
11037
11038 2013-04-21  David S. Miller  <davem@davemloft.net>
11039
11040         * po/ru.po: Update Russion translation from translation project.
11041
11042 2013-04-17  Adam Conrad  <adconrad@0c3.net>
11043
11044         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
11045         and setfsgid.
11046
11047 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
11048
11049         * configure.in: Remove i386 configure warning. Remove i386 case.
11050         * configure: Regenerate.
11051         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
11052         Add example to error message.
11053         * sysdeps/i386/configure: Regenerate.
11054
11055 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
11056
11057         * benchtests/Makefile (bench): Add cos, tan, slowcos and
11058         slowtan.
11059         * benchtests/cos-inputs: New file.
11060         * benchtests/slowcos-inputs: New file.
11061         * benchtests/slowcos.c: New file.
11062         * benchtests/slowtan-inputs: New file.
11063         * benchtests/slowtan.c: New file.
11064         * benchtests/tan-inputs: New file.
11065
11066 2013-04-16  Roland McGrath  <roland@hack.frob.com>
11067
11068         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
11069         considered kosher.
11070
11071 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11072
11073         * benchtests/Makefile: Include cppflags-iterator.mk to add
11074         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
11075
11076         * Makefile.in (bench-clean): New target.
11077         * benchtests/Makefile (bench-clean): Likewise.
11078
11079 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
11080
11081         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
11082
11083 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
11084
11085         * stdio-common/tstdiomisc.c: Fix coding-style violation.
11086
11087 2013-04-15  Andreas Schwab  <schwab@suse.de>
11088
11089         * nscd/grpcache.c (cache_addgr): Properly check for short write.
11090         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11091         * nscd/pwdcache.c (cache_addpw): Likewise.
11092         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
11093         more than recsize.
11094
11095 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11096
11097         * benchtests/Makefile (bench): Write all output to
11098         bench-out.tmp together.
11099
11100 2013-04-15  Andreas Schwab  <schwab@suse.de>
11101
11102         * nscd/nscd.c (main): Don't fork again after closing files.
11103
11104 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11105
11106         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
11107
11108         * benchtests/Rules (bench-deps): Collect dependencies into a
11109         single variable.  Add Makefile to dependencies.
11110         ($(objpfx)bench-%.c): Depend on bench-deps.
11111
11112 2013-04-12  Roland McGrath  <roland@hack.frob.com>
11113             Xavier Roche  <roche+kml2@exalead.com>
11114
11115         [BZ #15361]
11116         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
11117         just that it's a file descriptor.
11118         * manual/llio.texi (Synchronizing AIO Operations): Update description
11119         for EBADF error from aio_fsync.
11120
11121 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
11122
11123         * Rules (bench): Move target definition...
11124         * benchtests/Makefile: ... here.
11125
11126 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
11127
11128         * math/libm-test.inc (cos_test): Fix PI/2 test.
11129         (sincos_test): Likewise.
11130         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
11131         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
11132
11133 2013-04-11  Andreas Schwab  <schwab@suse.de>
11134
11135         [BZ #13988]
11136         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
11137         accept exponent character only when digits were seen.
11138         * stdio-common/Makefile (tests): Add bug26.
11139         * stdio-common/bug26.c: New file.
11140
11141         [BZ #14293]
11142         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
11143         non-freeable.
11144
11145 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11146
11147         * Makeconfig (rtld-prefix): Define built linker prefix.
11148         * Rules (run-bench): Use it.
11149         * math/Makefile (run-regen-ulps): Likewise.
11150
11151         * Rules (bench): Remove eval.
11152
11153 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11154             Roland McGrath  <roland@hack.frob.com>
11155             Ondrej Bilka  <neleai@seznam.cz>
11156
11157         [BZ #15346]
11158         * time/getdate.c: Include ctype.h and alloca.h.
11159         (__getdate_r): Trim leading and trailing spaces of input.
11160         * time/tst-getdate.c (tests): Add tests with leading and
11161         trailing spaces.
11162
11163 2013-04-08  Roland McGrath  <roland@hack.frob.com>
11164
11165         [BZ #14280]
11166         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
11167         when computing value.
11168
11169 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11170
11171         * math/README.libm-test (How can I generate "libm-test-ulps"?):
11172         Use testrun.sh to run libm tests.
11173
11174         [BZ #15309]
11175         * elf/dl-open.c (dl_open_worker): memset all of seen array.
11176
11177 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
11178
11179         [BZ #15264]
11180         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
11181
11182 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11183
11184         * Makefile.in (regen-ulps): New target.
11185         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
11186         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
11187         [ifneq (no,$(PERL)] (regen-ulps): New target.
11188         [ifeq (no,$(PERL)] (regen-ulps): New target.
11189         * math/libm-test.inc (ulps_file_name): Define.
11190         (output_dir): New variable.
11191         (options): Add "output-dir" option.
11192         (parse_opt): Handle 'o' case.
11193         (main): If output_dir is non-NULL use it as a prefix
11194         otherwise use "".
11195         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
11196
11197 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11198
11199         [BZ #10060, #10062]
11200         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
11201         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
11202         fail configure if __sync_val_compare_and_swap is not inlined.
11203         * sysdeps/i386/configure: Regenerate.
11204         * configure.in: Build for i686 when configured for i386.
11205         * configure: Regenerate.
11206         * README: Remove i386 reference.
11207
11208 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11209
11210         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
11211         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11212
11213 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11214
11215         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
11216         (lmsnanval): New variables.
11217         (F): Add conversion tests.
11218         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
11219         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
11220
11221         * stdio-common/tstdiomisc.c (F): Properly collect individual
11222         tests' results.
11223
11224         [BZ #14686, #15336]
11225         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
11226         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
11227         Instead, use input NaN values or generate a qNaN by arithmetic
11228         operation.  Also fix bugs to comply with the standard.
11229         * math/libm-test.inc (remainder_test): Add more tests.
11230
11231         [BZ #15335, #15342]
11232         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
11233         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
11234         input NaN values or generate a qNaN by arithmetic operation.
11235
11236         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
11237         unreachable code.
11238
11239         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
11240         definitions.
11241
11242 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
11243
11244         [BZ #14478]
11245         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
11246         underflowed result.
11247         * math/s_cexpf.c (__cexpf): Likewise.
11248         * math/s_cexpl.c (__cexpl): Likewise.
11249         * math/libm-test.inc (cexp_test): Add more tests.
11250
11251 2013-04-03  Andreas Schwab  <schwab@suse.de>
11252
11253         [BZ #15330]
11254         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
11255         order arrays from heap if bigger than alloca cutoff.
11256
11257 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
11258
11259         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
11260         (SNAN_TESTS_double): Refer to GCC PR56831.
11261         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
11262         GCC PR56828.
11263
11264 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11265
11266         * Rules (bench): Move bench.out after the run is complete.
11267
11268         * Rules (bench): Echo currently running benchmark.
11269
11270         * benchtests/Makefile (bench): Add atan and slowatan.
11271         * benchtests/atan-inputs: New file.
11272         * benchtests/slowatan-inputs: New file.
11273         * benchtests/slowatan.c: New file.
11274
11275         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
11276         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
11277         its value.
11278
11279         [BZ #15305]
11280         * sysdeps/unix/sysv/linux/kernel-features.h
11281         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
11282         __ASSUME_XFS_RESTRICTED_CHOWN.
11283         * sysdeps/unix/sysv/linux/pathconf.c
11284         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
11285         Save and restore errno.
11286
11287 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
11288
11289         [BZ #15327]
11290         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
11291         arguments using __kernel_casinh.
11292         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
11293         arguments using __kernel_casinhf.
11294         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
11295         arguments using __kernel_casinhl.
11296         * math/libm-test.inc (cacosh_test): Add more tests.
11297         * sysdeps/i386/fpu/libm-test-ulps: Update.
11298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11299
11300 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11301
11302         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
11303         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
11304
11305         * bench/Makefile (bench): Add sin and slowsin.
11306         * benchtests/sin-inputs: New file.
11307         * benchtests/slowsin-inputs: New file.
11308         * benchtests/slowsin.c: New file.
11309
11310         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
11311         (bench): Add slowexp and slowpow.
11312         (exp-ITER): Increase iterations.
11313         (pow-ITER): Likewise.
11314         * benchtests/exp-inputs: Change input.
11315         * benchtests/pow-inputs: Likewise.
11316         * benchtests/slowexp-inputs: New file.
11317         * benchtests/slowexp.c: New file.
11318         * benchtests/slowpow-inputs: New file.
11319         * benchtests/slowpow.c: New file.
11320
11321 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11322
11323         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
11324         instructions.
11325         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11326         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
11327         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11328         * benchtests/Makefile: Add rint benchtest.
11329         * benchtests/rint-inputs: Input for rint benchtest.
11330
11331 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11332
11333         * Versions.def (libm): Add GLIBC_2.18.
11334         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
11335         hidden libm prototypes.
11336         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
11337         * math/Makefile (libm-calls): Add s_issignaling.
11338         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
11339         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
11340         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
11341         declaration.
11342         * math/math.h [__USE_GNU] (issignaling): New macro.
11343         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
11344         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
11346         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
11347         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11348         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
11349         * manual/arith.texi (issignaling): New section.
11350         * manual/libm-err-tab.pl (@all_functions): Update comment.
11351         * math/gen-libm-test.pl (parse_args): Apply special handling for
11352         issignaling.
11353         * math/libm-test.inc (print_float, issignaling_test): New
11354         functions.
11355         (check_float_internal): Add issignaling checks.
11356         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
11357         default definition.
11358         * sysdeps/powerpc/math-tests.h: New file.
11359         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
11360         tests.
11361         * math/test-snan.c (TEST_FUNC): Likewise.
11362
11363 2013-03-30  David S. Miller  <davem@davemloft.net>
11364
11365         * po/de.po: Update from translation team.
11366
11367 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11368
11369         [BZ #10357]
11370         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11371         imaginary part less than 1.0 and real part less than 0.5
11372         specially.
11373         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11374         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11375         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11376         (cacos_test): Add more tests.
11377         (casin_test): Likewise.
11378         (casinh_test): Likewise.
11379         * sysdeps/i386/fpu/libm-test-ulps: Update.
11380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11381
11382 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11383
11384         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11385         ONE with its value.
11386
11387         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11388         (__pow_mp): Replace ONE and MONE with their values.
11389         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11390         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11391         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11392         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11393         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11394         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11395
11396         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11397
11398         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11399         (__pow_mp): Replace ZERO and MZERO with their values.
11400         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11401         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11402         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11403         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11404         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11405         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11406         (__sqr): Likewise.
11407
11408         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11409
11410         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11411
11412 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11413
11414         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11415         Declare with __attribute__ ((weak)).
11416         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11417         Call __call_tls_dtors only if it's not NULL.
11418
11419 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11420
11421         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11422         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11423         magic __ehdr_start linker symbol if it's defined.
11424         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11425         them up here if it was already done.
11426
11427         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11428         (_dl_aux_init): Use const in cast when setting it.
11429         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11430         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11431         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11432
11433         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11434         Declare them here.
11435         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11436         * csu/libc-tls.c: Nor here.
11437         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11438
11439         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11440         (__libc_message): Never call vsyslog.
11441
11442 2013-03-28  Alan Modra  <amodra@gmail.com>
11443
11444         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11445         Define as empty.
11446         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11447         Likewise.
11448
11449 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11450
11451         [BZ #15214]
11452         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11453         underflow.
11454         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11455
11456 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11457
11458         [BZ #15304]
11459         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11460         Don't add gid passed as argument.
11461
11462         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11463
11464 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11465
11466         [BZ #15307]
11467         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11468         imaginary part between 1.0 and 1.5 and real part less than 0.5
11469         specially.
11470         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11471         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11472         * math/libm-test.inc (cacos_test): Add more tests.
11473         (casin_test): Likewise.
11474         (casinh_test): Likewise.
11475         * sysdeps/i386/fpu/libm-test-ulps: Update.
11476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11477
11478 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11479
11480         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11481         constants.
11482         (norm): Likewise.
11483         (denorm): Likewise.
11484         (__dbl_mp): Likewise.
11485         (add_magnitudes): Likewise.
11486         (sub_magnitudes): Likewise.
11487         (__add): Likewise.
11488         (__sub): Likewise.
11489         (__mul): Likewise.
11490         (__sqr): Likewise.
11491         (__inv): Likewise.
11492         (__dvd): Likewise.
11493
11494         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11495         commented code.
11496         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11497         (__dubcos): Likewise.
11498         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11499         (__ieee754_acos): Likewise.
11500         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11501         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11502         (__exp1): Likewise.
11503         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11504         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11505         (log1): Likewise.
11506         (my_log2): Likewise.
11507         (checkint): Likewise.
11508         * sysdeps/ieee754/dbl-64/e_remainder.c
11509         (__ieee754_remainder): Likewise.
11510         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11511         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11512         (bsloww): Likewise.
11513         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11514
11515         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11516         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11517         MANTISSA_STORE_T to store computations on mantissa.  Use
11518         macros for rounding and division.
11519         (denorm): Likewise.
11520         (__dbl_mp): Likewise.
11521         (add_magnitudes): Likewise.
11522         (sub_magnitudes): Likewise.
11523         (__mul): Likewise.
11524         (__sqr): Likewise.
11525         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11526         powers of two in terms of TWOPOW macro.
11527         (mp_no): Make type of mantissa as MANTISSA_T.
11528         [!RADIXI]: Define RADIXI.
11529         [!TWO52]: Define TWO52.
11530         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11531
11532 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11533
11534         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11535         llroundl symbol when building for PPC32.
11536
11537 2013-03-24  Mark H Weaver  <mhw@netris.org>
11538
11539         * manual/arith.texi (Normalization Functions): Fix prototypes for
11540         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11541
11542 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11543
11544         [BZ #13889]
11545         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11546         high value to check if expl overflow.
11547         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11548         to check for underflow and overflow.
11549         * math/libm-test.inc: Add exp test.
11550
11551 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11552
11553         [BZ #11120]
11554         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11555         with NOT_IN_libc.
11556
11557 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11558
11559         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11560         symbol.
11561
11562 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11563
11564         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11565         wrap blocks consisting of several statements.
11566
11567         * sysdeps/generic/math-tests.h: New file.
11568         * sysdeps/i386/fpu/math-tests.h: Likewise.
11569         * math/test-snan.c: Include it.
11570         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11571
11572 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11573
11574         [BZ #15285]
11575         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11576         (__ieee754_j0l): Do not improve calculations using cos of twice
11577         input for inputs above LDBL_MAX / 2.0L.
11578         (__ieee754_y0l): Likewise.
11579         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11580         (__ieee754_j1l): Do not improve calculations using cos of twice
11581         input for inputs above LDBL_MAX / 2.0L.
11582         (__ieee754_y1l): Likewise.
11583         * math/libm-test.inc (j0_test): Add another test.
11584         (j1_test): Likewise.
11585         (y0_test): Likewise.
11586         (y1_test): Likewise.
11587         * sysdeps/i386/fpu/libm-test-ulps: Update.
11588
11589 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11590
11591         * Rules ($(objpfx)bench-%.c): Include code from a C source
11592         file.
11593
11594 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11595
11596         [BZ #15287]
11597         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11598         imaginary part 1.0 and real part less than 0.5 specially.
11599         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11600         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11601         * math/libm-test.inc (cacos_test): Add more tests.
11602         (casin_test): Likewise.
11603         (casinh_test): Likewise.
11604         * sysdeps/i386/fpu/libm-test-ulps: Update.
11605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11606
11607 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11608
11609         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11610         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11611
11612 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11613
11614         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11615         * config.make.in (config-cflags-sse4): Remove variable.
11616         (config-cflags-avx): Likewise.
11617         (config-cflags-sse2avx): Likewise.
11618         (config-cflags-novzeroupper): Likewise.
11619         (config-asflags-i686): Likewise.
11620         (have-mfma4): Likewise.
11621         (have-as-vis3): Likewise.
11622         (MIG): Likewise.
11623         * configure.in (MIG): Do not AC_SUBST.
11624         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11625         (libc_cv_cc_sse4): Do not AC_SUBST.
11626         (libc_cv_cc_avx): Likewise.
11627         (libc_cv_cc_sse2avx): Likewise.
11628         (libc_cv_cc_novzeroupper): Likewise.
11629         (libc_cv_cc_fma4): Likewise.
11630         (libc_cv_as_i686): Likewise.
11631         (libc_cv_sparc_as_vis3): Likewise.
11632         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11633         LIBC_CONFIG_VAR.
11634         (config-asflags-i686): Likewise.
11635         (config-cflags-avx): Likewise.
11636         (config-cflags-sse2avx): Likewise.
11637         (have-mfma4): Likewise.
11638         (config-cflags-novzeroupper): Likewise.
11639         * sysdeps/mach/configure.in (MIG): Likewise.
11640         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11641         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11642         LIBC_CONFIG_VAR.
11643         (config-cflags-avx): Likewise.
11644         (config-cflags-sse2avx): Likewise.
11645         (have-mfma4): Likewise.
11646         (config-cflags-novzeroupper): Likewise.
11647         * configure: Regenerated.
11648         * sysdeps/i386/configure: Likewise.
11649         * sysdeps/mach/configure: Likewise.
11650         * sysdeps/sparc/configure: Likewise.
11651         * sysdeps/x86_64/configure: Likewise.
11652
11653 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11654
11655         [BZ #14812]
11656         * locale/programs/localedef.c (options): Put N_ translation marker
11657         on argument names, not just descriptions.
11658
11659 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11660
11661         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11662
11663 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11664
11665         [BZ #14176]
11666         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11667
11668 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11669
11670         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11671         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11672         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11673         [!BEFORE_ABORT] (before_abort): New function.
11674         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11675         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11676         (writev_for_fatal): New function.
11677         (WRITEV_FOR_FATAL): New macro; call that.
11678         (backtrace_and_maps): New function.
11679         (BEFORE_ABORT): New macro; call that.
11680         (struct str_list): Type removed.
11681         (__libc_message, __libc_fatal): Functions removed.
11682         Include <sysdeps/posix/libc_fatal.c> instead.
11683
11684 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11685
11686         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11687         constants.
11688         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11689         double constants.
11690
11691 2013-03-19  Andreas Schwab  <schwab@suse.de>
11692
11693         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11694         * sysdeps/gnu/configure: Regenerate.
11695
11696         * configure.in: Substitute libc_cv_rtlddir.
11697         * configure: Regenerate.
11698         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11699         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11700         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11701         * elf/Makefile (install-others, CFLAGS-interp.c)
11702         (ldso_install, common-ldd-rewrite): Likewise.
11703         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11704         $(inst_slibdir)/$(rtld-installed-name).
11705         * scripts/rellns-sh: Add -p option.
11706         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11707         for source.
11708
11709 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11710
11711         * manual/nptl.texi: Renamed to ...
11712         * manual/threads.texi: ... this.
11713         * manual/Makefile (chapters): Update.
11714
11715 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11716
11717         [BZ #14812]
11718         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11719         on argument names, not just descriptions.
11720         * malloc/memusagestat.c (options): Likewise.
11721         * nss/getent.c (options): Likewise.
11722
11723 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11724
11725         [BZ #14812]
11726         * iconv/iconv_prog.c (options): Put N_ translation marker
11727         on argument names, not just descriptions.
11728         * iconv/iconvconfig.c (options): Likewise.
11729
11730 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11731
11732         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11733         implementation which is faster on all x86_64 architectures.
11734         Tested on AMD, Intel Nehalem, SNB, IVB.
11735         * sysdeps/x86_64/strnlen.S: Likewise.
11736
11737         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11738         Remove all multiarch strlen and strnlen versions.
11739         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11740         Remove strlen and strnlen related parts.
11741
11742         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11743         Inline strlen part.
11744         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11745
11746         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11747         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11748         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11749         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11750         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11751         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11752
11753 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11754
11755         * manual/memory.texi (Malloc Tunable Parameters):
11756         Sort parameters alphabetically. Add comments for missing entries.
11757
11758 2013-03-17  David S. Miller  <davem@davemloft.net>
11759
11760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11761
11762 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11763
11764         [BZ #15283]
11765         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11766         for arguments at most half maximum finite value.
11767         * math/libm-test.inc (j0_test): Add more tests.
11768         (j1_test): Likewise.
11769         (y0_test): Likewise.
11770         (y1_test): Likewise.
11771         * sysdeps/i386/fpu/libm-test-ulps: Update.
11772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11773
11774         [BZ #14155]
11775         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11776         1 / x and functions P and Q for arguments above 0x1p256L.
11777         (__ieee754_y0l): Likewise.
11778         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11779         (__ieee754_y1l): Likewise.
11780         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11781         (j1_test): Likewise.
11782         (y0_test): Likewise.
11783         (y1_test): Likewise.
11784
11785 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11786
11787         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11788         variable.
11789
11790 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11791
11792         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11793         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11794         zero since it's initialized to EXEC_PAGESIZE.
11795
11796         * sysdeps/unix/sysv/linux/ldsodefs.h
11797         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11798         * sysdeps/generic/ldsodefs.h: ... here.
11799
11800 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11801
11802         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11803
11804         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11805         math/test-snan.c.
11806         * math/test-snan.c: Renamed from
11807         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11808         * math/Makefile (tests): Add test-snan.
11809         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11810         test-powerpc-snan.
11811
11812         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11813         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11814         functions.
11815         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11816         __builtin_nan family of functions.
11817         * math/libm-test.inc (initialize): Initialize qnan_value with
11818         __builtin_nan family of functions.
11819         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11820         Remove variables.
11821         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11822         Remove functions.
11823         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11824         storage class.  Initialize qNaN_var and sNaN_var with
11825         __builtin_nan and __builtin_nans families of functions,
11826         respectively.
11827
11828         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11829         (sqrt_test): Remove duplicate test with qNaN input.
11830         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11831         (round_test, signbit_test, significand_test): Note missing +/-Inf
11832         as well as qNaN tests.
11833
11834         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11835         qNaN_var.  Fix a few strings, too.
11836         * math/libm-test.inc (nan_value): Rename to qnan_value.
11837         * math/gen-libm-test.pl (%beautify): Adjust to that.
11838         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11839         * math/test-misc.c (main): Likewise.
11840         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11841         to __qnan_bytes, and __qnan_union, respectively.
11842         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11843         Likewise.
11844         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11845         and lqnanval, respectively.
11846         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11847         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11848         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11849         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11850
11851         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11852         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11853         doubles.
11854
11855         * math/test-misc.c (main): Fix copy'n'pastos.
11856         * misc/tst-efgcvt.c (special): Likewise.
11857
11858         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11859         Remove declarations.
11860
11861 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11862
11863         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11864         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11865         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11866         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11867
11868 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11869
11870         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11871         macro to return vdso values correctly in IFUNC implementations.
11872         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11873         Optimization by using IFUNC.
11874
11875 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11876             Richard Henderson  <rth@redhat.com>
11877             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11878
11879         * Makefile.in (bench): New target.
11880         * NEWS: Mention the benchmark framework.
11881         * Rules (bench): Likewise.
11882         (binaries-bench): Generate binaries for functions to
11883         benchmark.
11884         * benchtests/Makefile: New makefile for benchmark tests.
11885         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11886         programs.
11887         * benchtests/exp-inputs: New input file for EXP function.
11888         * benchtests/pow-inputs: New input file for POW function.
11889         * scripts/bench.pl: New script to generate source files for
11890         benchmark programs.
11891
11892 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11893
11894         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11895         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11896         computations on mantissa.  Use macros for rounding and
11897         division.
11898         (denorm): Likewise.
11899         (__dbl_mp): Likewise.
11900         (add_magnitudes): Likewise.
11901         (sub_magnitudes): Likewise.
11902         (__mul): Likewise.
11903         (__sqr): Likewise.
11904         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11905         powers of two in terms of TWOPOW macro.
11906         (mp_no): Make type of mantissa as MANTISSA_T.
11907         [!RADIXI]: Define RADIXI.
11908         [!TWO52]: Define TWO52.
11909         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11910
11911         * manual/nptl.texi (cindex): Modify threads to pthreads.
11912
11913 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11914
11915         * sysdeps/x86_64/preconfigure: Regenerated.
11916
11917 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11918
11919         [BZ #14155]
11920         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11921         0x1p28 and above.
11922         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11923         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11924         0x1p28 and above.
11925         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11926         * math/libm-test.inc (j0_test): Do not allow one spurious
11927         underflow exception.
11928         (y1_test): Likewise.
11929
11930 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11931
11932         * manual/Makefile (chapters): Add nptl.
11933         * manual/debug.texi (Debugging Support): Add link to Threads
11934         chapter.
11935         * manual/nptl.texi: New file.
11936
11937         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11938
11939 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11940
11941         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11942         for non-NULL pointer before the memory validity test. Pointed
11943         out by Holger Brunck <holger.brunck@keymile.com>.
11944
11945 2013-03-13  Andreas Schwab  <schwab@suse.de>
11946
11947         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11948         instead of .os.
11949
11950 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11951
11952         * timezone/zic.c: Update from tzcode 2013b.
11953
11954 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11955
11956         * manual/install.texi (Configuring and compiling):
11957         Mention i686 and i586.
11958         * INSTALL: Regenerate.
11959
11960 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11961
11962         * sysdeps/init_array/elf-init.c: New file.
11963         * csu/elf-init.c
11964         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11965         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11966
11967         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11968         __gmon_start__ as global, but as static with a .preinit_array pointer.
11969         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11970         * sysdeps/init_array/crti.S: New file, empty except for comments.
11971         * sysdeps/init_array/crtn.S: Likewise.
11972
11973 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11974
11975         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11976         definining bcopy.
11977         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11978         Remove Prefer_SSE_for_memop.
11979         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11980         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11981         HAS_PREFER_SSE_FOR_MEMOP.
11982         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11983         memset-x86-64.
11984         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11985         Remove bzero, memset ifunc support.
11986         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11987         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11988         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11989         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11990
11991 2013-03-11  Andreas Schwab  <schwab@suse.de>
11992
11993         [BZ #15234]
11994         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
11995         by SHLIB_COMPAT.
11996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
11997         (GLIBC_2.16): Remove pthread_atfork.
11998
11999 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
12000
12001         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
12002         (ptestcases.h): Likewise.
12003
12004 2013-03-08  Roland McGrath  <roland@hack.frob.com>
12005
12006         * Makeconfig ($(common-objpfx)config.status): Depend on
12007         sysdeps/*/preconfigure{,.in} too.
12008
12009 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
12010
12011         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
12012         (__free_hook): Use void * instead of __malloc_ptr_t.
12013         (__malloc_hook): Likewise.
12014         (__realloc_hook): Likewise.
12015         (__memalign_hook): Likewise.
12016         (__after_morecore_hook): Likewise.
12017         * malloc/arena.c (save_malloc_hook): Likewise.
12018         (save_free_hook): Likewise.
12019         * malloc/hooks.c (malloc_hook_ini): Likewise.
12020         (realloc_hook_ini): Likewise.
12021         (memalign_hook_ini): Likewise.
12022         * malloc/malloc.c (malloc_hook_ini): Likewise.
12023         (realloc_hook_ini): Likewise.
12024         (memalign_hook_ini): Likewise.
12025         (__free_hook): Likewise.
12026         (__malloc_hook): Likewise.
12027         (__realloc_hook): Likewise.
12028         (__memalign_hook): Likewise.
12029         (__libc_malloc): Likewise.
12030         (__libc_free): Likewise.
12031         (__libc_realloc): Likewise.
12032         (__libc_memalign): Likewise.
12033         (__libc_valloc): Likewise.
12034         (__libc_pvalloc): Likewise.
12035         (__libc_calloc): Likewise.
12036         (__posix_memalign): Likewise.
12037         * malloc/morecore.c (__sbrk): Likewise.
12038         (__default_morecore): Likewise.
12039
12040         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
12041
12042         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
12043         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
12044         __malloc_ptrdiff_t.
12045
12046         * malloc/malloc.h (__malloc_size_t): Remove macro.
12047         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
12048         __malloc_size_t.
12049         (old_memalign_hook): Likewise.
12050         (old_realloc_hook): Likewise.
12051         (struct hdr): Likewise.
12052         (flood): Likewise.
12053         (mallochook): Likewise.
12054         (memalignhook): Likewise.
12055         (reallochook): Likewise.
12056         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
12057         (tr_old_realloc_hook): Likewise.
12058         (tr_old_memalign_hook): Likewise.
12059         (tr_mallochook): Likewise.
12060         (tr_reallochook): Likewise.
12061         (tr_memalignhook): Likewise.
12062
12063 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12064
12065         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
12066         default_ldbl_pack and using as default implementation.
12067         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
12068         implementation.
12069         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
12070         redundant definition.
12071         (ldbl_insert_mantissa): Likewise.
12072         (ldbl_canonicalize): Likewise.
12073         (ldbl_nearbyint): Likewise.
12074         (ldbl_pack): Rename to ldbl_pack_ppc.
12075         (ldbl_unpack): Rename to ldbl_unpack_ppc.
12076         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
12077         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
12078
12079 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12080
12081         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
12082         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
12083         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
12084         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
12085         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
12086         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
12087         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
12088         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
12089
12090 2013-03-07  Andreas Jaeger  <aj@suse.de>
12091
12092         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12093         bits/mman-linux.h.
12094
12095 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12096
12097         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
12098         Include mpa.h and declare __MPEXP.
12099         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
12100         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12101         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12102         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
12103         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12104         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12105         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
12106
12107         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
12108         (__slowpow): Use long double EXPL and LOGL functions to
12109         compute POW.
12110         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12111         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12112         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
12113         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12114         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12115         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
12116
12117         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
12118         intermediate variable to calculate exponent.
12119         (__sqr): Likewise.
12120         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12121         Likewise.
12122         (__sqr): Likewise.
12123
12124         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
12125         [!NO__SQR]: Define __sqr.
12126         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
12127         and NO__SQR.  Remove all code except __mul and __sqr.  Include
12128         sysdeps/ieee754/dbl-64/mpa.c.
12129         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
12130
12131         [BZ #12723]
12132         * posix/Makefile (tests): Add tst-pathconf.
12133         * posix/tst-pathconf.c: New test case.
12134         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
12135         _PC_PIPE_BUF.
12136         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12137
12138 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
12139
12140         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
12141
12142 2013-03-06  Andreas Jaeger  <aj@suse.de>
12143
12144         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
12145         definition via __MAP_ANONYMOUS.
12146
12147         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
12148         it's not part of Linux headers.
12149
12150         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
12151         (MAP_HUGE_MASK): Define.
12152
12153         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12154         Define.
12155         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12156         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12157         Define.
12158         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12159         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12160         Define.
12161         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12162         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
12163         Define.
12164         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12165
12166         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
12167         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
12168         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
12169         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
12170         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
12171         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
12172
12173         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12174         Handle f2fs.
12175
12176         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12177         Handle f2fs and efivarfs.
12178
12179         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
12180         f2fs.
12181
12182         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
12183         (EFIVARFS_MAGIC): Add.
12184         (F2FS_LINK_MAX): Add.
12185
12186 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12187
12188         * stdio-common/vfprintf.c: Replace __builtin_expect with
12189         __glibc_unlikely.
12190
12191 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
12192
12193         [BZ #13550]
12194         * sysdeps/generic/bp-sym.h: Remove file.
12195         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
12196         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
12197         <bp-sym.h> and <bp-asm.h>.
12198         (__longjmp): Don't use BP_SYM.
12199         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
12200         and <bp-asm.h>.
12201         (memcpy): Don't use BP_SYM.
12202         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
12203         <bp-sym.h> and <bp-asm.h>.
12204         (memcpy): Don't use BP_SYM.
12205         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
12206         <bp-asm.h>.
12207         (memcpy): Don't use BP_SYM.
12208         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
12209         <bp-asm.h>.
12210         (memset): Don't use BP_SYM.
12211         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12212         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12213         (__bzero): Don't use BP_SYM.
12214         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12215         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12216         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
12217         <bp-sym.h> and <bp-asm.h>.
12218         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12219         pointers.
12220         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
12221         <bp-sym.h> and <bp-asm.h>.
12222         (memcpy): Don't use BP_SYM.
12223         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
12224         <bp-sym.h> and <bp-asm.h>.
12225         (memset): Don't use BP_SYM.
12226         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12227         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12228         (__bzero): Don't use BP_SYM.
12229         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12230         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12231         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
12232         <bp-sym.h> and <bp-asm.h>.
12233         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12234         pointers.
12235         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
12236         <bp-sym.h> and <bp-asm.h>.
12237         (memcpy): Don't use BP_SYM.
12238         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
12239         <bp-sym.h> and <bp-asm.h>.
12240         (memset): Don't use BP_SYM.
12241         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12242         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12243         (__bzero): Don't use BP_SYM.
12244         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12245         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12246         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
12247         <bp-sym.h> and <bp-asm.h>.
12248         (__memchr): Don't use BP_SYM.
12249         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
12250         <bp-sym.h> and <bp-asm.h>.
12251         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12252         pointers.
12253         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
12254         <bp-sym.h> and <bp-asm.h>.
12255         (memcpy): Don't use BP_SYM.
12256         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
12257         <bp-sym.h> and <bp-asm.h>.
12258         (__mempcpy): Don't use BP_SYM.
12259         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
12260         <bp-sym.h> and <bp-asm.h>.
12261         (__memrchr): Don't use BP_SYM.
12262         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
12263         <bp-sym.h> and <bp-asm.h>.
12264         (memset): Don't use BP_SYM.
12265         (__bzero): Likewise.
12266         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
12267         <bp-sym.h> and <bp-asm.h>.
12268         (__rawmemchr): Don't use BP_SYM.
12269         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
12270         <bp-sym.h> and <bp-asm.h>.
12271         (__STRCMP): Don't use BP_SYM.
12272         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
12273         <bp-sym.h> and <bp-asm.h>.
12274         (strchr): Don't use BP_SYM.
12275         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
12276         <bp-sym.h> and <bp-asm.h>.
12277         (__strchrnul): Don't use BP_SYM.
12278         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
12279         <bp-sym.h> and <bp-asm.h>.
12280         (strlen): Don't use BP_SYM.
12281         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
12282         <bp-sym.h> and <bp-asm.h>.
12283         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12284         pointers.
12285         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
12286         <bp-sym.h> and <bp-asm.h>.
12287         (__strnlen): Don't use BP_SYM.
12288         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
12289         <bp-sym.h> and <bp-asm.h>.
12290         (__GI__setjmp): Don't use BP_SYM.
12291         (_setjmp): Likewise.
12292         (__sigsetjmp): Likewise.
12293         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
12294         (L(start_addresses)): Don't use BP_SYM.
12295         (_start): Likewise.
12296         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
12297         <bp-asm.h>.
12298         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
12299         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
12300         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12301         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12302         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
12303         <bp-asm.h>.
12304         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
12305         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
12306         about bounded pointers.
12307         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12308         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12309         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
12310         <bp-asm.h>.
12311         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12312         about bounded pointers.  Remove GKM FIXME comments.
12313         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12314         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
12315         <bp-asm.h>.
12316         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
12317         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
12318         Remove GKM FIXME comments.
12319         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12320         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12321         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
12322         <bp-asm.h>.
12323         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12324         about bounded pointers.  Remove GKM FIXME comment.
12325         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
12326         and <bp-asm.h>.
12327         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12328         pointers.
12329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
12330         <bp-sym.h> and <bp-asm.h>.
12331         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
12333         <bp-sym.h> and <bp-asm.h>.
12334         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12335         comment.
12336
12337 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12338
12339         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
12340         call free(NULL).
12341
12342 2013-03-05  David S. Miller  <davem@davemloft.net>
12343
12344         * po/es.po: Update from translation team.
12345
12346 2013-03-05  Andreas Jaeger  <aj@suse.de>
12347
12348         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
12349         <bits/mman-linux.h>.
12350         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12351         is fine.
12352         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
12353         <bits/mman-linux.h> to end of file.
12354         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12355         is fine.
12356         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
12357         <bits/mman-linux.h> to end of file.
12358         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12359         is fine.
12360         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
12361         <bits/mman-linux.h> to end of file.
12362
12363         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12364         (MCL_CURRENT, MCL_FUTURE): Define here.
12365
12366 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12367
12368         [BZ #15232]
12369         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12370         attribute_hidden.
12371         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12372
12373 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12374
12375         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12376         fourth parameter needed for rt_sigprocmask syscall.
12377         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12378         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12379         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12380         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12381         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12382         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12383
12384 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12385
12386         [BZ #13550]
12387         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12388         comment about bounded pointers.
12389         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12390         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12391
12392 2013-03-04  Andreas Jaeger  <aj@suse.de>
12393
12394         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12395         common definitions.
12396
12397         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12398         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12399         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12400         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12401         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12402         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12403
12404 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12405
12406         [BZ #15055]
12407         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12408         __ieee754_sqrl instead of __sqrl.
12409
12410 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12411
12412         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12413         * sysdeps/powerpc/fpu_control.h: ... here.
12414         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12415         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12416         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12417         * sysdeps/powerpc/bits/mathinline.h: ... here.
12418
12419 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12420
12421         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12422         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12423         to just [NEED_DL_SYSINFO_DSO].
12424         * elf/dl-support.c: Likewise.
12425         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12426         * elf/rtld.c (dl_main): Likewise.
12427         * elf/setup-vdso.h (setup_vdso): Likewise.
12428         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12429         * sysdeps/unix/sysv/linux/dl-sysdep.c
12430         (_dl_discover_osversion): Likewise.
12431
12432 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12433
12434         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12435         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12436
12437 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12438
12439         * NEWS: Mention libm performance improvements and non-x86 PI
12440         futex support.
12441
12442         * csu/libc-start.c (__pthread_initialize_minimal): Change
12443         function arguments.
12444         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12445
12446 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12447
12448         [BZ #13550]
12449         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12450         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12451         <bp-sym.h> and <bp-asm.h>.
12452         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12453         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12454         and <bp-asm.h>.
12455         (memcpy): Don't use BP_SYM.
12456         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12457         <bp-asm.h>.
12458         (__mpn_add_n): Don't use BP_SYM.
12459         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12460         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12461         and <bp-asm.h>.
12462         (__mpn_addmul_1): Don't use BP_SYM.
12463         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12464         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12465         <bp-sym.h>.
12466         (_setjmp): Don't use BP_SYM.
12467         (__novmx_setjmp): Likewise.
12468         (__GI__setjmp): Likewise.
12469         (__vmx_setjmp): Likewise.
12470         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12471         <bp-sym.h>.
12472         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12473         (__bzero): Don't use BP_SYM.
12474         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12475         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12476         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12477         <bp-sym.h> and <bp-asm.h>.
12478         (memcpy): Don't use BP_SYM.
12479         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12480         <bp-sym.h> and <bp-asm.h>.
12481         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12482         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12483         <bp-sym.h> and <bp-asm.h>.
12484         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12485         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12486         <bp-asm.h>.
12487         (__mpn_lshift): Don't use BP_SYM.
12488         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12489         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12490         <bp-asm.h>.
12491         (memset): Don't use BP_SYM.
12492         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12493         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12494         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12495         <bp-asm.h>.
12496         (__mpn_mul_1): Don't use BP_SYM.
12497         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12498         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12499         <bp-sym.h> and <bp-asm.h>.
12500         (memcmp): Don't use BP_SYM.
12501         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12502         <bp-sym.h> and <bp-asm.h>.
12503         (memcpy): Don't use BP_SYM.
12504         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12505         <bp-sym.h> and <bp-asm.h>.
12506         (memset): Don't use BP_SYM.
12507         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12508         <bp-sym.h> and <bp-asm.h>.
12509         (strncmp): Don't use BP_SYM.
12510         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12511         <bp-sym.h> and <bp-asm.h>.
12512         (memcpy): Don't use BP_SYM.
12513         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12514         <bp-sym.h> and <bp-asm.h>.
12515         (memset): Don't use BP_SYM.
12516         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12517         <bp-sym.h> and <bp-asm.h>.
12518         (__memchr): Don't use BP_SYM.
12519         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12520         <bp-sym.h> and <bp-asm.h>.
12521         (memcmp): Don't use BP_SYM.
12522         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12523         <bp-sym.h> and <bp-asm.h>.
12524         (memcpy): Don't use BP_SYM.
12525         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12526         <bp-sym.h> and <bp-asm.h>.
12527         (__mempcpy): Don't use BP_SYM.
12528         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12529         <bp-sym.h> and <bp-asm.h>.
12530         (__memrchr): Don't use BP_SYM.
12531         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12532         <bp-sym.h> and <bp-asm.h>.
12533         (memset): Don't use BP_SYM.
12534         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12535         <bp-sym.h> and <bp-asm.h>.
12536         (__rawmemchr): Don't use BP_SYM.
12537         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12538         <bp-sym.h> and <bp-asm.h>.
12539         (__STRCMP): Don't use BP_SYM.
12540         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12541         <bp-sym.h> and <bp-asm.h>.
12542         (strchr): Don't use BP_SYM.
12543         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12544         <bp-sym.h> and <bp-asm.h>.
12545         (__strchrnul): Don't use BP_SYM.
12546         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12547         <bp-sym.h> and <bp-asm.h>.
12548         (strlen): Don't use BP_SYM.
12549         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12550         <bp-sym.h> and <bp-asm.h>.
12551         (strncmp): Don't use BP_SYM.
12552         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12553         <bp-sym.h> and <bp-asm.h>.
12554         (__strnlen): Don't use BP_SYM.
12555         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12556         <bp-asm.h>.
12557         (__mpn_rshift): Don't use BP_SYM.
12558         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12559         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12560         <bp-sym.h> and <bp-asm.h>.
12561         (__sigsetjmp): Don't use BP_SYM.
12562         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12563         (L(start_addresses)): Don't use BP_SYM.
12564         (_start): Likewise.
12565         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12566         <bp-asm.h>.
12567         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12568         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12569         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12570         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12571         <bp-asm.h>.
12572         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12573         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12574         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12575         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12576         <bp-asm.h>.
12577         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12578         comments.
12579         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12580         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12581         <bp-asm.h>.
12582         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12583         FIXME comments.
12584         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12585         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12586         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12587         <bp-asm.h>.
12588         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12589         comment.
12590         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12591         and <bp-asm.h>.
12592         (strncmp): Don't use BP_SYM,
12593         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12594         <bp-asm.h>.
12595         (__mpn_sub_n): Don't use BP_SYM.
12596         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12597         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12598         and <bp-asm.h>.
12599         (__mpn_submul_1): Don't use BP_SYM.
12600         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12602         <bp-sym.h> and <bp-asm.h>.
12603         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12605         <bp-sym.h> and <bp-asm.h>.
12606         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12607         comment.
12608
12609 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12610
12611         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12612         Use ZK to minimize writes to Z.
12613         (sub_magnitudes): Simplify code a bit.
12614         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12615         Use ZK to minimize writes to Z.
12616         (sub_magnitudes): Simplify code a bit.
12617
12618 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12619
12620         * csu/gmon-start.c: Add special exception to license text.
12621
12622 2013-02-27  Richard Henderson  <rth@redhat.com>
12623
12624         * scripts/config.guess: Update from config.git.
12625         * scripts/config.sub: Likewise.
12626
12627 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12628
12629         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12630
12631         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12632
12633         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12634
12635         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12636
12637         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12638
12639 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12640
12641         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12642         [$(build-shared = yes].
12643
12644 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12645
12646         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12647         (__mul): Reduce iterations for calculating mantissa.
12648
12649         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12650         MPTWO.
12651         (__mpranred): Likewise.
12652
12653         [BZ #15160]
12654         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12655         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12656
12657 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12658
12659         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12660         Define __attribute__.
12661
12662 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12663
12664         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12665         unused.
12666         * posix/regex_internal.h (__attribute): Remove.
12667         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12668         (re_string_context_at): Likewise.
12669         (bitset_not): Use __attribute__ and mark function as possibly
12670         unused.
12671         (bitset_merge): Likewise.
12672         (bitset_mask): Likewise.
12673         (re_string_char_size_at): Likewise.
12674         (re_string_wchar_at): Likewise.
12675         (re_string_elem_size_at): Likewise.
12676
12677 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12678
12679         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12680         code.
12681         (cc32): Likewise.
12682
12683         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12684         (__acr): Likewise.
12685         (__cpy): Likewise.
12686         (norm): Likewise.
12687         (denorm): Likewise.
12688         (__dbl_mp): Likewise.
12689         (add_magnitudes): Likewise.
12690         (sub_magnitudes): Likewise.
12691         (__mul): Likewise.
12692         (__inv): Likewise.
12693
12694         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12695         style.
12696
12697         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12698         style.
12699
12700         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12701         code.
12702
12703         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12704         up changes with default code.
12705         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12706         Likewise.
12707
12708 2013-02-24  Allan McRae  <allan@archlinux.org>
12709
12710         * manual/socket.texi (The Internet Namespace): Order menu items
12711         to match that in the file.
12712
12713         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12714         node listing of the info page menu.
12715
12716 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12717
12718         [BZ #13550]
12719         * sysdeps/i386/bp-asm.h: Remove file.
12720         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12721         (PARMS): Do not use macros from bp-asm.h.
12722         (S1): Likewise.
12723         (S2): Likewise.
12724         (SIZE): Likewise.
12725         (__mpn_add_n): Do not use BP_SYM
12726         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12727         "bp-asm.h".
12728         (PARMS): Do not use macros from bp-asm.h.
12729         (S1): Likewise.
12730         (SIZE): Likewise.
12731         (__mpn_addmul_1): Do not use BP_SYM
12732         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12733         "bp-asm.h".
12734         (PARMS): Do not use macros from bp-asm.h.
12735         (SIGMSK): Likewise.
12736         (_setjmp): Likewise.  Do not use BP_SYM.
12737         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12738         "bp-asm.h".
12739         (PARMS): Do not use macros from bp-asm.h.
12740         (SIGMSK): Likewise.
12741         (setjmp): Likewise.  Do not use BP_SYM.
12742         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12743         "bp-asm.h".
12744         (PARMS): Do not use macros from bp-asm.h.
12745         (__frexp): Do not use BP_SYM.
12746         (frexp): Likewise.
12747         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12748         "bp-asm.h".
12749         (PARMS): Do not use macros from bp-asm.h.
12750         (__frexpf): Do not use BP_SYM.
12751         (frexpf): Likewise.
12752         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12753         "bp-asm.h".
12754         (PARMS): Do not use macros from bp-asm.h.
12755         (__frexpl): Do not use BP_SYM.
12756         (frexpl): Likewise.
12757         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12758         "bp-asm.h".
12759         (PARMS): Do not use macros from bp-asm.h.
12760         (__remquo): Do not use BP_SYM.
12761         (remquo): Likewise.
12762         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12763         "bp-asm.h".
12764         (PARMS): Do not use macros from bp-asm.h.
12765         (__remquof): Do not use BP_SYM.
12766         (remquof): Likewise.
12767         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12768         "bp-asm.h".
12769         (PARMS): Do not use macros from bp-asm.h.
12770         (__remquol): Do not use BP_SYM.
12771         (remquol): Likewise.
12772         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12773         "bp-asm.h".
12774         (PARMS): Do not use macros from bp-asm.h.
12775         (DEST): Likewise.
12776         (SRC): Likewise.
12777         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12778         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12779         "bp-asm.h".
12780         (PARMS): Do not use macros from bp-asm.h.
12781         (strlen): Do not use BP_SYM.
12782         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12783         "bp-asm.h".
12784         (PARMS): Do not use macros from bp-asm.h.
12785         (S1): Likewise.
12786         (S2): Likewise.
12787         (SIZE): Likewise.
12788         (__mpn_add_n): Do not use BP_SYM.
12789         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12790         "bp-asm.h".
12791         (PARMS): Do not use macros from bp-asm.h.
12792         (S1): Likewise.
12793         (SIZE): Likewise.
12794         (__mpn_addmul_1): Do not use BP_SYM.
12795         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12796         weak_alias.
12797         (bzero): Likewise.
12798         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12799         "bp-asm.h".
12800         (PARMS): Do not use macros from bp-asm.h.
12801         (S): Likewise.
12802         (SIZE): Likewise.
12803         (__mpn_lshift): Do not use BP_SYM.
12804         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12805         "bp-asm.h".
12806         (PARMS): Do not use macros from bp-asm.h.
12807         (DEST): Likewise.
12808         (SRC): Likewise.
12809         (LEN): Likewise.
12810         (memcpy): Likewise.  Do not use BP_SYM.
12811         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12812         libc_hidden_def and weak_alias.
12813         (mempcpy): Do not use BP_SYM in weak_alias.
12814         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12815         "bp-asm.h".
12816         (PARMS): Do not use macros from bp-asm.h.
12817         (DEST): Likewise.
12818         (LEN): Likewise.
12819         [!BZERO_P] (CHR): Likewise.
12820         (memset): Likewise.  Do not use BP_SYM.
12821         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12822         "bp-asm.h".
12823         (PARMS): Do not use macros from bp-asm.h.
12824         (S1): Likewise.
12825         (SIZE): Likewise.
12826         (__mpn_mul_1): Do not use BP_SYM.
12827         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12828         "bp-asm.h".
12829         (PARMS): Do not use macros from bp-asm.h.
12830         (S): Likewise.
12831         (SIZE): Likewise.
12832         (__mpn_rshift): Do not use BP_SYM.
12833         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12834         "bp-asm.h".
12835         (PARMS): Do not use macros from bp-asm.h.
12836         (STR): Likewise.
12837         (CHR): Likewise.
12838         (strchr): Likewise.  Do not use BP_SYM.
12839         (index): Do not use BP_SYM in weak_alias.
12840         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12841         "bp-asm.h".
12842         (PARMS): Do not use macros from bp-asm.h.
12843         (DEST): Likewise.
12844         (SRC): Likewise.
12845         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12846         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12847         "bp-asm.h".
12848         (PARMS): Do not use macros from bp-asm.h.
12849         (strlen): Do not use BP_SYM.
12850         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12851         "bp-asm.h".
12852         (PARMS): Do not use macros from bp-asm.h.
12853         (S1): Likewise.
12854         (S2): Likewise.
12855         (SIZE): Likewise.
12856         (__mpn_sub_n): Do not use BP_SYM.
12857         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12858         "bp-asm.h".
12859         (PARMS): Do not use macros from bp-asm.h.
12860         (S1): Likewise.
12861         (SIZE): Likewise.
12862         (__mpn_submul_1): Do not use BP_SYM.
12863         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12864         "bp-asm.h".
12865         (PARMS): Do not use macros from bp-asm.h.
12866         (S1): Likewise.
12867         (S2): Likewise.
12868         (SIZE): Likewise.
12869         (__mpn_add_n): Do not use BP_SYM.
12870         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12871         weak_alias.
12872         (bzero): Likewise.
12873         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12874         "bp-asm.h".
12875         (PARMS): Do not use macros from bp-asm.h.
12876         (BLK2): Likewise.
12877         (LEN): Likewise.
12878         (memcmp): Do not use BP_SYM.
12879         (bcmp): Do not use BP_SYM in weak_alias.
12880         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12881         "bp-asm.h".
12882         (PARMS): Do not use macros from bp-asm.h.
12883         (DEST): Likewise.
12884         (SRC): Likewise.
12885         (LEN): Likewise.
12886         (memcpy): Likewise.  Do not use BP_SYM.
12887         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12888         "bp-asm.h".
12889         (PARMS): Do not use macros from bp-asm.h.
12890         (DEST): Likewise.
12891         (SRC): Likewise.
12892         (LEN): Likewise.
12893         (memmove): Likewise.  Do not use BP_SYM.
12894         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12895         "bp-asm.h".
12896         (PARMS): Do not use macros from bp-asm.h.
12897         (DEST): Likewise.
12898         (SRC): Likewise.
12899         (LEN): Likewise.
12900         (__mempcpy): Likewise.  Do not use BP_SYM.
12901         (mempcpy): Do not use BP_SYM in weak_alias.
12902         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
12903         "bp-asm.h".
12904         (PARMS): Do not use macros from bp-asm.h.
12905         (DEST): Likewise.
12906         (LEN): Likewise.
12907         [!BZERO_P] (CHR): Likewise.
12908         (memset): Likewise.  Do not use BP_SYM.
12909         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12910         "bp-asm.h".
12911         (PARMS): Do not use macros from bp-asm.h.
12912         (STR2): Likewise.
12913         (strcmp): Do not use BP_SYM.
12914         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12915         "bp-asm.h".
12916         (PARMS): Do not use macros from bp-asm.h.
12917         (STR): Likewise.
12918         (DELIM): Likewise.
12919         [USE_AS_STRTOK_R] (SAVE): Likewise.
12920         (FUNCTION): Likewise.  Do not use BP_SYM.
12921         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12922         aliases.
12923         (strtok_r): Likewise.
12924         (__GI___strtok_r): Likewise.
12925         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12926         (PARMS): Do not use macros from bp-asm.h.
12927         (S): Likewise.
12928         (SIZE): Likewise.
12929         (__mpn_lshift): Do not use BP_SYM.
12930         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12931         (PARMS): Do not use macros from bp-asm.h.
12932         (STR): Likewise.
12933         (CHR): Likewise.
12934         (__memchr): Do not use BP_SYM.
12935         (memchr): Do not use BP_SYM in weak_alias.
12936         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12937         (PARMS): Do not use macros from bp-asm.h.
12938         (BLK2): Likewise.
12939         (LEN): Likewise.
12940         (memcmp): Do not use BP_SYM.
12941         (bcmp): Do not use BP_SYM in weak_alias.
12942         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12943         (PARMS): Do not use macros from bp-asm.h.
12944         (S1): Likewise.
12945         (SIZE): Likewise.
12946         (__mpn_mul_1): Do not use BP_SYM.
12947         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12948         "bp-asm.h".
12949         (PARMS): Do not use macros from bp-asm.h.
12950         (STR): Likewise.
12951         (CHR): Likewise.
12952         (__rawmemchr): Do not use BP_SYM.
12953         (rawmemchr): Do not use BP_SYM in weak_alias.
12954         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12955         (PARMS): Do not use macros from bp-asm.h.
12956         (S): Likewise.
12957         (SIZE): Likewise.
12958         (__mpn_rshift): Do not use BP_SYM.
12959         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12960         (PARMS): Do not use macros from bp-asm.h.
12961         (SIGMSK): Likewise.
12962         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12963         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12964         (_start): Do not use BP_SYM.
12965         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12966         (PARMS): Do not use macros from bp-asm.h.
12967         (DEST): Likewise.
12968         (SRC): Likewise.
12969         (__stpcpy): Likewise.  Do not use BP_SYM.
12970         (stpcpy): Do not use BP_SYM in weak_alias.
12971         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12972         "bp-asm.h".
12973         (PARMS): Do not use macros from bp-asm.h.
12974         (DEST): Likewise.
12975         (SRC): Likewise.
12976         (LEN): Likewise.
12977         (__stpncpy): Likewise.  Do not use BP_SYM.
12978         (stpncpy): Do not use BP_SYM in weak_alias.
12979         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12980         (PARMS): Do not use macros from bp-asm.h.
12981         (STR): Likewise.
12982         (CHR): Likewise.
12983         (strchr): Likewise.  Do not use BP_SYM.
12984         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12985         "bp-asm.h".
12986         (PARMS): Do not use macros from bp-asm.h.
12987         (STR): Likewise.
12988         (CHR): Likewise.
12989         (__strchrnul): Likewise.  Do not use BP_SYM.
12990         (strchrnul): Do not use BP_SYM in weak_alias.
12991         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
12992         "bp-asm.h".
12993         (PARMS): Do not use macros from bp-asm.h.
12994         (STOP): Likewise.
12995         (strcspn): Do not use BP_SYM.
12996         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
12997         "bp-asm.h".
12998         (PARMS): Do not use macros from bp-asm.h.
12999         (STR): Likewise.
13000         (STOP): Likewise.
13001         (strpbrk): Likewise.  Do not use BP_SYM.
13002         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
13003         "bp-asm.h".
13004         (PARMS): Do not use macros from bp-asm.h.
13005         (STR): Likewise.
13006         (CHR): Likewise.
13007         (strrchr): Likewise.  Do not use BP_SYM.
13008         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
13009         (PARMS): Do not use macros from bp-asm.h.
13010         (SKIP): Likewise.
13011         (strspn): Do not use BP_SYM.
13012         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
13013         (PARMS): Do not use macros from bp-asm.h.
13014         (STR): Likewise.
13015         (DELIM): Likewise.
13016         (SAVE): Likewise.
13017         (FUNCTION): Likewise.  Do not use BP_SYM.
13018         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
13019         aliases.
13020         (strtok_r): Likewise.
13021         (__GI___strtok_r): Likewise.
13022         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
13023         (PARMS): Do not use macros from bp-asm.h.
13024         (S1): Likewise.
13025         (S2): Likewise.
13026         (SIZE): Likewise.
13027         (__mpn_sub_n): Do not use BP_SYM.
13028         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
13029         "bp-asm.h".
13030         (PARMS): Do not use macros from bp-asm.h.
13031         (S1): Likewise.
13032         (SIZE): Likewise.
13033         (__mpn_submul_1): Do not use BP_SYM.
13034         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
13035         <bp-sym.h>.
13036         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
13037         and <bp-asm.h>.
13038         (PARMS): Do not use macros from bp-asm.h.
13039         (FLAGS): Likewise.
13040         (PTID): Likewise.
13041         (TLS): Likewise.
13042         (CTID): Likewise.
13043         (__clone): Do not use BP_SYM.
13044         (clone): Do not use BP_SYM in weak_alias.
13045         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
13046         and <bp-asm.h>.
13047         (PARMS): Do not use macros from bp-asm.h.
13048         (LEN): Likewise.
13049         (__mmap64): Do not use BP_SYM.
13050         (mmap64): Do not use BP_SYM in weak_alias.
13051         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
13052         <bp-sym.h> and <bp-asm.h>.
13053         (PARMS): Do not use macros from bp-asm.h.
13054         (__posix_fadvise64_l64): Do not use BP_SYM.
13055         * sysdeps/unix/sysv/linux/i386/semtimedop.S
13056         (PARMS): Do not use macros from bp-asm.h.
13057         (NSOPS): Likewise.
13058         (semtimedop): Do not use BP_SYM.
13059         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
13060         and <bp-asm.h>.
13061
13062 2013-02-21  Allan McRae  <allan@archlinux.org>
13063
13064         * manual/message.texi (Charset conversion in gettext):
13065         Move @end statement to beginning of line.
13066
13067 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
13068
13069         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
13070         static.
13071         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
13072         Likewise.
13073
13074         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
13075         (denorm): Likewise.
13076         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
13077         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
13078
13079 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13080
13081         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
13082         tail-call to the resolved function if pltexit isn't needed.
13083
13084 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
13085
13086         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
13087         or Y being zero as being unlikely.
13088         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
13089         Likewise.
13090
13091 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
13092
13093         * manual/nss.texi (System Databases and Name Service Switch):
13094         Remove frobnicate @pxref.
13095
13096 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13097
13098         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13099         __attribute__ ((unused)) to __attribute__ ((__unused__)).
13100
13101 2013-02-20  Petr Machata  <pmachata@redhat.com>
13102
13103         * elf/elf.h (R_ARM_TARGET1): New macro.
13104         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
13105         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
13106         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
13107         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
13108         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
13109         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
13110         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
13111         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
13112         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
13113         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
13114         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
13115         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
13116         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
13117         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
13118         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
13119         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
13120         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
13121         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
13122         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
13123         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
13124         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
13125         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
13126         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
13127         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
13128         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
13129         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
13130         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
13131         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
13132         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
13133         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
13134         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
13135         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
13136         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
13137         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
13138         (R_ARM_THM_GOT_BREL12): Likewise.
13139         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
13140         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
13141         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
13142         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
13143         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
13144         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
13145         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
13146         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
13147         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
13148
13149 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13150
13151         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13152         __attribute_used__ to __attribute__ ((unused)).
13153
13154 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13155
13156         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
13157         powerpc mpa.c.
13158         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
13159         comment formatting.
13160         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
13161
13162 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
13163
13164         [BZ #13550]
13165         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
13166         Remove macro.
13167         (ENTER): Remove both macro definitions.
13168         (LEAVE): Likewise.
13169         (CHECK_BOUNDS_LOW): Likewise.
13170         (CHECK_BOUNDS_HIGH): Likewise.
13171         (CHECK_BOUNDS_BOTH): Likewise.
13172         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
13173         (RETURN_BOUNDED_POINTER): Likewise.
13174         (RETURN_NULL_BOUNDED_POINTER): Likewise.
13175         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
13176         (POP_ERRNO_LOCATION_RETURN): Likewise.
13177         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
13178         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13179         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
13180         macros.
13181         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13182         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
13183         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
13184         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
13185         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
13186         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
13187         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
13188         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
13189         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
13190         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
13191         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
13192         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
13193         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13194         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
13195         removed macros.
13196         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13197         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
13198         macros.
13199         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13200         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
13201         * sysdeps/i386/i586/memset.S (memset): Likewise.
13202         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
13203         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13204         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
13205         macros.
13206         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13207         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
13208         Change uses of L(2) to L(out).
13209         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
13210         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
13211         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
13212         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13213         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
13214         removed macros.
13215         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13216         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
13217         macros.
13218         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13219         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
13220         (RETURN): Do not use macro LEAVE.
13221         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
13222         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
13223         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
13224         * sysdeps/i386/i686/memset.S (memset): Likewise.
13225         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
13226         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
13227         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
13228         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
13229         Likewise.
13230         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13231         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
13232         L(1_2) and L(1_3) into L(1).
13233         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13234         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
13235         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13236         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
13237         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
13238         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
13239         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
13240         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13241         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
13242         macros.
13243         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
13244         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13245         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
13246         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
13247         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
13248         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
13249         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
13250         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
13251         * sysdeps/i386/strcspn.S (strcspn): Likewise.
13252         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
13253         * sysdeps/i386/strrchr.S (strrchr): Likewise.
13254         * sysdeps/i386/strspn.S (strspn): Likewise.
13255         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
13256         conditional code.
13257         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13258         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
13259         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13260         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
13261         L(1_3) into L(1_1).
13262         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
13263         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13264         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
13265         macros.
13266         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13267
13268 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
13269
13270         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
13271         macro.
13272
13273 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13274
13275         * math/atest-exp.c (exp_mpn): Remove ROUND.
13276         * math/atest-exp2.c (exp_mpn): Likewise.
13277         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
13278
13279         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
13280         * stdlib/tst-tls-atexit-lib.c: Likewise.
13281         * stdlib/tst-tls-atexit.c: Likewise.
13282
13283 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13284
13285         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
13286         and __attribute_alloc_size__.
13287
13288 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13289
13290         * include/programs/xmalloc.h: Change __attribute_alloc_size to
13291         __attribute_alloc_size__.
13292         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
13293         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
13294
13295 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13296
13297         * include/programs/xmalloc.h: New file.
13298         * catgets/gencat.c: Include it.
13299         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
13300         * elf/pldd.c: Likewise.
13301         * iconv/iconv_charmap.c: Likewise.
13302         * iconv/iconvconfig.c: Likewise.
13303         * iconv/strtab.c: Likewise.
13304         * locale/programs/locale.c: Likewise.
13305         * locale/programs/localedef.h: Likewise.
13306         * locale/programs/simple-hash.c: Likewise.
13307         * nscd/nscd.h: Likewise.
13308         * nss/makedb.c: Likewise.
13309         * sysdeps/generic/ldconfig.h: Likewise.
13310
13311 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13312
13313         * Versions.def: Add GLIBC_2.18.
13314         * include/link.h (struct link_map): New member l_tls_dtor_count.
13315         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
13316         (__call_tls_dtors): Likewise.
13317         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
13318         __cxa_thread_atexit_impl.
13319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13320         Likewise.
13321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13322         Likewise.
13323         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
13324         Likewise.
13325         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
13326         Likewise.
13327         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13328         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
13329         Likewise.
13330         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
13331         Likewise.
13332         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13333         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13334         Likewise.
13335         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
13336         (tests): Add test case tst-tls-atexit.
13337         (modules-names): Add shared library for tst-tls-atexit.
13338         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
13339         (GLIBC_PRIVATE): Add __call_tls_dtors.
13340         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
13341         for libstdc++.
13342         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
13343         * stdlib/tst-tls-atexit.c: New test case.
13344         * stdlib/tst-tls-atexit-lib.c: New test case.
13345
13346         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
13347
13348         * elf/Versions (ld): Add _dl_find_dso_for_object.
13349         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
13350         * elf/dl-open.c (_dl_find_dso_for_object): New function.
13351         (dl_open_worker): Use _dl_find_dso_for_object.
13352         * elf/dl-sym.c (do_sym): Likewise.
13353         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
13354
13355 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13356
13357         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
13358         Syntactic changes only.
13359         (_dl_runtime_profile): Do a tail-call to the resolved function.
13360
13361 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13362
13363         [BZ #13550]
13364         * sysdeps/x86_64/bp-asm.h: Remove file.
13365         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13366         <bp-sym.h> and <bp-asm.h>.
13367         (__clone): Do not use BP_SYM.
13368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13369         <bp-sym.h> and <bp-asm.h>.
13370         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13371         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13372         "bp-asm.h".
13373         (_setjmp): Do not use BP_SYM.
13374         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13375         "bp-asm.h".
13376         (setjmp): Do not use BP_SYM.
13377         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13378         libc_hidden_def.
13379         (mempcpy): Do not use BP_SYM in weak_alias.
13380         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13381         "bp-asm.h".
13382         (strchr): Do not use BP_SYM.
13383         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13384         "bp-asm.h".
13385         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13386         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13387         (_start): Do not use BP_SYM.
13388         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13389         "bp-asm.h".
13390         (strcat): Do not use BP_SYM.
13391         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13392         "bp-asm.h".
13393         (STRCMP): Do not use BP_SYM.
13394         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13395         "bp-asm.h".
13396         (STRCPY): Do not use BP_SYM.
13397         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13398         "bp-asm.h".
13399         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13400         "bp-asm.h".
13401         (FUNCTION): Do not use BP_SYM.
13402         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13403         weak_alias.
13404         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13405
13406 2013-02-17  Andreas Jaeger  <aj@suse.de>
13407
13408         * time/Versions: Sort entries.
13409         * string/Versions: Likewise.
13410         * resolv/Versions: Likewise.
13411         * posix/Versions: Likewise.
13412         * iconv/Versions: Likewise.
13413         * elf/Versions: Likewise.
13414         * wcsmbs/Versions: Likewise.
13415
13416 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13417
13418         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13419         loop termination condition.
13420
13421         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13422         variable to calculate EZ.
13423         (__sqr): Likewise.
13424
13425         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13426         the lower precision input.
13427
13428 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13429
13430         [BZ #13550]
13431         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13432         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13433         (run-via-rtld-prefix): Do not handle %-bp tests.
13434         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13435         (all-object-suffixes): Remove .ob.
13436         (bppfx): Remove variable.
13437         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13438         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13439         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13440         [$(build-bounded) = yes] (libtype.ob): Likewise.
13441         * Makerules (elide-routines.ob): Remove variable.
13442         (do-tests-clean): Do not handle *-bp.out.
13443         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13444         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13445         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13446         (tests): Do not include $(tests-bp.out).
13447         (xtests): Do not include $(xtests-bp.out).
13448         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13449         [$(build-bounded) = yes] ($(addprefix
13450         $(objpfx),$(binaries-bounded))): Remove rule.
13451         ($(objpfx)%-bp.out): Remove rule.
13452         * config.make.in (build-bounded): Remove variable.
13453         * crypt/Makefile [$(build-bounded) = yes]
13454         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13455         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13456         append to variable.
13457         [$(build-bounded) = yes] (install-lib): Likewise.
13458         [$(build-bounded) = yes] (generated): Likewise.
13459         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13460         Remove rule.
13461         * intl/Makefile [$(build-bounded) = yes]
13462         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13463         * math/Makefile [$(build-bounded) = yes]
13464         ($(tests:%=$(objpfx)%-bp): Likewise.
13465         * misc/Makefile [$(build-bounded) = yes]
13466         ($(objpfx)tst-tsearch-bp): Likewise.
13467         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13468         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13469         Remove dependency.
13470         * string/Makefile (o-objects.ob): Remove variable.
13471         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13472         (CFLAGS-.ob): Remove variable.
13473         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13474         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13475         both definitions of variable.
13476         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13477         (ASFLAGS-.ob): Remove variable.
13478
13479 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13480
13481         [BZ #13550]
13482         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13483         Remove __BOUNDED_POINTERS__ from condition.
13484         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13485         * string/bits/string2.h [!__NO_STRING_INLINES &&
13486         !__BOUNDED_POINTERS__]: Likewise.
13487         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13488         Likewise.
13489         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13490         Remove conditional code.
13491         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13492         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13493         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13494         condition.
13495
13496         [BZ #13550]
13497         * csu/libc-start.c: Do not include <bp-sym.h>.
13498         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13499         * elf/dl-open.c: Do not include <bp-sym.h>.
13500         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13501         * math/fegetenv.c: Do not include <bp-sym.h>.
13502         (fegetenv): Do not use BP_SYM in versioned symbols.
13503         * nptl/sysdeps/pthread/bits/libc-lockP.h
13504         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13505         <bp-sym.h>.
13506         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13507         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13508         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13509         (__pthread_mutex_destroy): Likewise.
13510         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13511         (__pthread_mutex_lock): Likewise.
13512         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13513         (__pthread_mutex_trylock): Likewise.
13514         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13515         (__pthread_mutex_unlock): Likewise.
13516         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13517         (__pthread_mutexattr_init): Likewise.
13518         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13519         (__pthread_mutexattr_destroy): Likewise.
13520         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13521         (__pthread_mutexattr_settype): Likewise.
13522         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13523         (__pthread_rwlock_init): Likewise.
13524         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13525         (__pthread_rwlock_destroy): Likewise.
13526         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13527         (__pthread_rwlock_rdlock): Likewise.
13528         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13529         (__pthread_rwlock_tryrdlock): Likewise.
13530         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13531         (__pthread_rwlock_wrlock): Likewise.
13532         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13533         (__pthread_rwlock_trywrlock): Likewise.
13534         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13535         (__pthread_rwlock_unlock): Likewise.
13536         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13537         (__pthread_key_create): Likewise.
13538         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13539         (__pthread_setspecific): Likewise.
13540         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13541         (__pthread_getspecific): Likewise.
13542         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13543         Likewise.
13544         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13545         (_pthread_cleanup_push_defer): Likewise.
13546         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13547         (_pthread_cleanup_pop_restore): Likewise.
13548         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13549         (pthread_setcancelstate): Likewise.
13550         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13551         <bp-sym.h>.
13552         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13553         (memchr): Do not use BP_SYM in weak_alias.
13554         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13555         (fegetenv): Do not use BP_SYM in versioned symbols.
13556         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13557         (fesetenv): Do not use BP_SYM in versioned symbols.
13558         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13559         (feupdateenv): Do not use BP_SYM in versioned symbols.
13560         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13561         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13562         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13563         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13564         (open64): Do not use BP_SYM in weak_alias.
13565         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13566         (fegetenv): Do not use BP_SYM in versioned symbols.
13567         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13568         (fesetenv): Do not use BP_SYM in versioned symbols.
13569         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13570         (feupdateenv): Do not use BP_SYM in versioned symbols.
13571         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13572         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13573         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13574         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13575         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13576         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13577         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13578         <bp-sym.h>.
13579         (__libc_start_main): Do not use BP_SYM.
13580
13581 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13582
13583         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13584         redundant return line.
13585         (norm): Likewise.
13586         (denorm): Likewise.
13587         (dbl_mp): Likewise.
13588         (sub_magnitudes): Likewise.
13589         (__add): Likewise.
13590         (__sub): Likewise.
13591         (__mul): Likewise.
13592         (__inv): Likewise.
13593         (__dvd): Likewise.
13594         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13595         (norm): Likewise.
13596         (denorm): Likewise.
13597         (dbl_mp): Likewise.
13598         (sub_magnitudes): Likewise.
13599         (__add): Likewise.
13600         (__sub): Likewise.
13601         (__mul): Likewise.
13602         (__inv): Likewise.
13603         (__dvd): Likewise.
13604
13605         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13606         instead of __mul.
13607         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13608         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13609         (cc32): Likewise.
13610
13611         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13612         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13613         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13614         of __mul for squares.
13615         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13616         function
13617         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13618         Likewise.
13619         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13620         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13621
13622 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13623
13624         [BZ #13550]
13625         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13626         code.
13627         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13628         prototype or function definition.  Rename ubp_* variables and
13629         parameters.  Remove argv definitions conditional on
13630         [__BOUNDED_POINTERS__].
13631         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13632         * elf/dl-runtime.c (_dl_fixup): Likewise.
13633         * include/set-hooks.h (RUN_HOOK): Likewise.
13634         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13635         definition.
13636         * string/strcpy.c (strcpy): Do not use __unbounded.
13637         * sysdeps/generic/frame.h (struct layout): Likewise.
13638         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13639         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13640         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13641         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13642         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13643         (__backtrace): Likewise.
13644         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13645         use __ptrvalue.
13646         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13647         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13648         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13649         Likewise.
13650         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13651         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13652         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13653         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13654         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13655         Do not use __unbounded.
13656         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13657         Rename __unboundedrlimits parameter to rlimits in prototype.
13658         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13659         Do not use __unbounded.
13660         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13661         not use __ptrvalue.
13662         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13663         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13664         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13665         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13666         __ptrvalue or __unbounded.
13667         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13668         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13669         use __unbounded.
13670         (__new_msgctl): Do not use __ptrvalue.
13671         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13672         __unbounded.
13673         (__libc_msgrcv): Do not use __ptrvalue.
13674         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13675         startup_info): Do not use __unbounded.
13676         (__libc_start_main): Likewise.  Rename ubp_* variables and
13677         parameters.  Remove argv definitions conditional on
13678         [__BOUNDED_POINTERS__].
13679         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13680         __ptrvalue.
13681         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13682         use __unbounded.
13683         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13684         or __ptrvalue.
13685         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13686         use __unbounded.
13687         (__new_shmctl): Do not use __ptrvalue.
13688         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13689         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13690         Likewise.
13691         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13692         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13693         (__libc_sigaction): Likewise.
13694         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13695         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13696         Likewise.
13697         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13698
13699 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13700
13701         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13702
13703         * string/mempcpy.c: Implement by calling memcpy.
13704
13705 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13706
13707         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13708
13709         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13710         evaluation.
13711
13712         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13713         values in the mantissa.
13714
13715         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13716         minimize writes to Z.
13717         (sub_magnitudes): Simplify code a bit.
13718
13719 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13720
13721         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13722         from the message.  The linker prefixes all warnings with that already.
13723
13724 2013-02-12  Andreas Schwab  <schwab@suse.de>
13725
13726         [BZ #15078]
13727         * posix/regexec.c (extend_buffers): Add parameter min_len.
13728         (check_matching): Pass minimum needed length.
13729         (clean_state_log_if_needed): Likewise.
13730         (get_subexp): Likewise.
13731         * posix/Makefile (tests): Add bug-regex34.
13732         (bug-regex34-ENV): Define.
13733         * posix/bug-regex34.c: New file.
13734
13735         [BZ #11561]
13736         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13737         elements compare against the byte sequence of it, not its name.
13738         * posix/Makefile (tests): Add bug-regex35.
13739         (bug-regex35-ENV): Define.
13740         * posix/bug-regex35.c: New file.
13741
13742 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13743
13744         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13745         comment.
13746         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13747         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13748         (CHECK_EOL): Add undef.
13749
13750 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13751
13752         * bits/stdlib-bsearch.h: New file.
13753         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13754         * stdlib/stdlib.h: Likewise.
13755
13756 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13757
13758         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13759         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13760         declaration.
13761         * manual/search.texi (Array Search Function): Add missing const in
13762         lfind prototype.
13763         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13764         declaration to use rlim_t.
13765         (Basic Scheduling Functions): Remove erroneous const from
13766         sched_getparam prototype.  Remove erroneous * from
13767         sched_get_priority_max and sched_get_priority_min prototypes.
13768         (Resource Usage): Fix summary @comment on vtimes to refer to
13769         sys/vtimes.h rather than vtimes.h.
13770         Add missing *s in vtimes prototype.
13771         (Limits on Resources): Fix ulimit prototype to return long int.
13772         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13773         prototypes to use long int rather than double.
13774         (BSD Random): Fix initstate and setstate to use char *, not void *.
13775         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13776         prototype to make second argument 'struct aiocb64 *const[]'.
13777         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13778         (Status of AIO Operations): Remove erroneous const in aio_return and
13779         aio_return64 prototypes.
13780         (Synchronizing I/O): Fix sync prototype to return void.
13781         * manual/startup.texi (Suboptions): Remove an erroneous const in
13782         getsubopt prototype.
13783         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13784         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13785         use size_t rather than int.
13786         (Scanning All Users): Likewise for getpwent_r.
13787         (Setting Groups): Add missing const to setgroups prototype.
13788         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13789         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13790         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13791         'const void *' rather than 'const char *'.
13792         (Host Address Functions): Likewise for inet_ntop.
13793         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13794         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13795         ssize_t for return value.
13796         (Sending Data): Likewise for send, sendto, sendmsg.
13797         (Socket Option Functions): Add a missing const in setsockopt prototype.
13798         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13799         use wchar_t for the argument.
13800         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13801         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13802         take no arguments.
13803         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13804         double/float/long double for second argument.
13805         Fix return types of significand, significandf, significandl.
13806         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13807         argument in fchmod prototype.
13808         (File Owner): Use uid_t and gid_t in fchown prototype.
13809         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13810         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13811         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13812         use 'const struct dirent **' as argument types to CMP function pointer
13813         argument.
13814         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13815         (File Times): Fix summary magic @comment for struct utimbuf and utime
13816         to refer to utime.h, not time.h.
13817         * manual/string.texi (Argz Functions): Add missing const in
13818         argz_extract and argz_next prototypes.
13819         (Finding Tokens in a String): Likewise for basename.
13820         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13821         (Copying and Concatenation): Fix typo in wmemmove prototype.
13822         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13823         (Signal Stack): Remove erroneous const in sigstack prototype.
13824         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13825         prototype.
13826         (Simple Calendar Time): Likewise for stime.
13827         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13828         prototype.
13829         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13830         say sys/sysctl.h instead.
13831         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13832         and vsyslog prototypes.
13833
13834 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13835
13836         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13837         Remove.
13838
13839 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13840
13841         * misc/sys/mman.h: Fix typo in mremap comment.
13842
13843 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13844
13845         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13846         the '\0' terminator.
13847
13848 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13849
13850         [BZ #13550]
13851         * debug/segfault.c: Don't include <bp-checks.h>.
13852         * sysdeps/generic/bp-checks.h: Remove file.
13853         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13854         (__GETDENTS): Don't use CHECK_N.
13855         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13856         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13857         (__getgroups): Don't use CHECK_N.
13858         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13859         (setgroups): Don't use CHECK_N.
13860         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13861         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13862         (__libc_msgrcv): Don't use CHECK_N.
13863         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13864         (__libc_msgsnd): Don't use CHECK_N.
13865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13866         <bp-checks.h>.
13867         (__libc_pread): Don't use CHECK_N.
13868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13869         include <bp-checks.h>.
13870         (__libc_pread64): Don't use CHECK_N.
13871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13872         include <bp-checks.h>.
13873         (__libc_pwrite): Don't use CHECK_N.
13874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13875         include <bp-checks.h>.
13876         (__libc_pwrite64): Don't use CHECK_N.
13877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13878         <bp-checks.h>.
13879         (__libc_pread): Don't use CHECK_N.
13880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13881         include <bp-checks.h>.
13882         (__libc_pread64): Don't use CHECK_N.
13883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13884         include <bp-checks.h>.
13885         (__libc_pwrite): Don't use CHECK_N.
13886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13887         include <bp-checks.h>.
13888         (__libc_pwrite64): Don't use CHECK_N.
13889         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13890         (do_pread): Don't use CHECK_N.
13891         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13892         (do_pread64): Don't use CHECK_N.
13893         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13894         (do_pwrite): Don't use CHECK_N.
13895         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13896         (do_pwrite64): Don't use CHECK_N.
13897         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13898         (__libc_readv): Don't use CHECK_N.
13899         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13900         (semop): Don't use CHECK_N.
13901         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13902         <bp-checks.h>.
13903         (semtimedop): Don't use CHECK_N.
13904         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13905         (__libc_pread): Don't use CHECK_N.
13906         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13907         <bp-checks.h>.
13908         (__libc_pread64): Don't use CHECK_N.
13909         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13910         <bp-checks.h>.
13911         (__libc_pwrite): Don't use CHECK_N.
13912         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13913         <bp-checks.h>.
13914         (__libc_pwrite64): Don't use CHECK_N.
13915         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13916         <bp-checks.h>.
13917         (__libc_msgrcv): Don't use CHECK_N.
13918         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13919         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13920         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13921         (__libc_writev): Don't use CHECK_N.
13922
13923 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13924
13925         * string/strcpy.c: Removed unused variable.
13926
13927         * Makeconfig (+sysdep-includes): Define with := rather than =.
13928         Use an existing include/ subdir of each sysdeps dir before it.
13929
13930 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13931
13932         * nscd/connection.c (register_traced_file): Comment function.
13933         [HAVE_INOTIFY] (union __inev): Define.
13934         [HAVE_INOTIFY] (inotify_check_files): New function.
13935         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13936         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13937         clear_db_cache.
13938         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13939
13940 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13941
13942         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13943         loaded if not already and that a failure is permanent.
13944
13945 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13946
13947         [BZ #15006]
13948         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13949         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13950
13951 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13952
13953         [BZ #13550]
13954         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13955         (CHECK_1_NULL_OK): Likewise.
13956         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13957         (__fxstat): Do not use CHECK_1.
13958         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13959         <bp-checks.h>.
13960         (___fxstat64): Do not use CHECK_1.
13961         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13962         <bp-checks.h>.
13963         (__fxstatat): Do not use CHECK_1.
13964         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13965         <bp-checks.h>.
13966         (__fxstatat64): Do not use CHECK_1.
13967         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13968         <bp-checks.h>.
13969         (__fxstat): Do not use CHECK_1.
13970         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13971         <bp-checks.h>.
13972         (__fxstatat): Do not use CHECK_1.
13973         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13974         <bp-checks.h>.
13975         (__getresgid): Do not use CHECK_1.
13976         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13977         <bp-checks.h>.
13978         (__getresuid): Do not use CHECK_1.
13979         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13980         <bp-checks.h>.
13981         (__lxstat): Do not use CHECK_1.
13982         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13983         <bp-checks.h>.
13984         (__old_msgctl): Do not use CHECK_1.
13985         (__new_msgctl): Likewise.
13986         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13987         <bp-checks.h>.
13988         (__new_setrlimit): Do not use CHECK_1.
13989         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13990         <bp-checks.h>.
13991         (__old_shmctl): Do not use CHECK_1.
13992         (__new_shmctl): Likewise.
13993         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
13994         <bp-checks.h>.
13995         (__xstat): Do not use CHECK_1.
13996         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
13997         (__lxstat): Do not use CHECK_1.
13998         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
13999         <bp-checks.h>.
14000         (___lxstat64): Do not use CHECK_1.
14001         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
14002         (__old_msgctl): Do not use CHECK_1.
14003         (__new_msgctl): Likewise.
14004         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
14005         <bp-checks.h>.
14006         (__gettimeofday): Do not use CHECK_1.
14007         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
14008         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
14009         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
14010         <bp-checks.h>.
14011         (__gettimeofday): Do not use CHECK_1.
14012         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
14013         (__old_shmctl): Do not use CHECK_1_NULL_OK.
14014         (__new_shmctl): Do not use CHECK_1.
14015         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
14016         <bp-checks.h>.
14017         (do_sigtimedwait): Do not use CHECK_1.
14018         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
14019         <bp-checks.h>.
14020         (do_sigwaitinfo): Do not use CHECK_1.
14021         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
14022         <bp-checks.h>.
14023         (msgctl): Do not use CHECK_1.
14024         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
14025         <bp-checks.h>.
14026         (shmctl): Do not use CHECK_1.
14027         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
14028         (ustat): Do not use CHECK_1.
14029         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
14030         <bp-checks.h>.
14031         (__fxstat): Do not use CHECK_1.
14032         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
14033         <bp-checks.h>.
14034         (__fxstatat): Do not use CHECK_1.
14035         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
14036         <bp-checks.h>.
14037         (__lxstat): Do not use CHECK_1.
14038         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
14039         <bp-checks.h>.
14040         (__xstat): Do not use CHECK_1.
14041         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
14042         (__xstat): Do not use CHECK_1.
14043         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
14044         (___xstat64): Do not use CHECK_1.
14045
14046         [BZ #13550]
14047         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
14048         definitions.
14049         (CHECK_BOUNDS_HIGH): Likewise.
14050         * string/strcpy.c: Do not include <bp-checks.h>.
14051         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
14052
14053 2013-02-07  Roland McGrath  <roland@hack.frob.com>
14054
14055         * nscd/nscd-client.h (__nscd_drop_map_ref):
14056         Add __attribute__ ((unused)).
14057         * nis/nss-nisplus.h (niserr2nss): Likewise.
14058
14059         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
14060         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
14061
14062         * csu/libc-tls.c (init_static_tls, init_slotinfo):
14063         Remove inline keyword.
14064         * include/rounding-mode.h (round_away): Likewise.
14065         * libio/wfileops.c (adjust_wide_data): Likewise.
14066         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
14067         (__m128i_strloadu_tolower): Likewise.
14068         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
14069         (__m128i_strloadu_tolower): Likewise.
14070         * time/mktime.c (ydhms_diff): Likewise.
14071         * locale/elem-hash.h (elem_hash): Likewise.
14072         * locale/setlocale.c (setdata): Likewise.
14073         * posix/regex_internal.h (re_string_char_size_at): Likewise.
14074         (re_string_wchar_at): Likewise.
14075         (bitset_not, bitset_merge, bitset_mask): Likewise.
14076         [!(__GNUC__ > 3)] (inline): Remove macro.
14077         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
14078         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
14079         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
14080         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
14081         * string/memcmp.c (memcmp_bytes): Likewise.
14082         * locale/programs/locarchive.c (compute_hashval): Likewise.
14083         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
14084         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
14085         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
14086         * nss/getent.c (print_rpc, print_protocols): Likewise.
14087         (print_passwd, print_group, print_aliases): Likewise.
14088         * nis/nss-nisplus.h (niserr2nss): Likewise.
14089         * nscd/connections.c (restart_p): Likewise.
14090         Change return type to bool.
14091
14092 2013-02-05  Roland McGrath  <roland@hack.frob.com>
14093
14094         * Makeconfig (all-Depend-files): Add existing
14095         $(sorted-subdirs:=/Depend) files.
14096         (all-subdirs): Remove nss.
14097         * sysdeps/unix/inet/Subdirs: Add it here instead.
14098         * hesiod/Depend: New file.
14099
14100         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
14101         instead of calling alloca.
14102
14103         * io/lseek.c (__lseek): Rename to __libc_lseek.
14104         Define __lseek as an alias.
14105
14106         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
14107
14108 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
14109
14110         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
14111         else clause and remove check for non-standard endianness.
14112
14113 2013-02-04  David S. Miller  <davem@davemloft.net>
14114
14115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14116
14117 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
14118
14119         [BZ #13550]
14120         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
14121         (__ubp_memchr): Remove prototype.
14122         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
14123         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14124         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
14125         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14126         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
14127         Remove alias.
14128         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
14129         (__ubp_memchr): Likewise.
14130         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
14131         (__ubp_memchr): Likewise.
14132         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
14133         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
14134         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
14135         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
14136         CHECK_STRING.
14137         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
14138         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
14139         (__getcwd): Do not use CHECK_STRING.
14140         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
14141         <bp-checks.h>.
14142         (__real_chown): Do not use CHECK_STRING.
14143         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
14144         <bp-checks.h>.
14145         (fchownat): Do not use CHECK_STRING.
14146         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
14147         CHECK_STRING.
14148         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
14149         <bp-checks.h>.
14150         (__lchown): Do not use CHECK_STRING.
14151         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14152         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14153         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
14154         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
14155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
14156         include <bp-checks.h>.
14157         (truncate64): Do not use CHECK_STRING.
14158         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14159         <bp-checks.h>.
14160         (__real_chown): Do not use CHECK_STRING.
14161         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14162         <bp-checks.h>.
14163         (__lchown): Do not use CHECK_STRING.
14164         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14165         <bp-checks.h>.
14166         (__chown): Do not use CHECK_STRING.
14167         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
14168         <bp-checks.h>.
14169         (truncate64): Do not use CHECK_STRING.
14170         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
14171         Likewise.
14172         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
14173         (__xmknod): Do not use CHECK_STRING.
14174         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
14175         <bp-checks.h>.
14176         (__xmknodat): Do not use CHECK_STRING.
14177         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
14178         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
14179
14180 2013-02-04  Andreas Schwab  <schwab@suse.de>
14181
14182         [BZ #14142]
14183         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
14184         * include/netdb.h: Likewise for h_errno.
14185         * elf/tst-stackguard1.c: Include <tls.h>.
14186
14187 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
14188
14189         * elf/link.h (struct link_map): Extend the l_addr comment.
14190         * include/link.h (struct link_map): Likewise.
14191
14192 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
14193
14194         [BZ #13550]
14195         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
14196         (BOUNDED_1): Remove macro.
14197         * debug/backtrace.c: Don't include <bp-checks.h>.
14198         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
14199         (__backtrace): Likewise.
14200         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
14201         <bp-checks.h>.
14202         (__backtrace): Don't use BOUNDED_1.
14203         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
14204         <bp-checks.h>.
14205         (__backtrace): Don't use BOUNDED_1.
14206         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
14207         (__backtrace): Don't use BOUNDED_1.
14208         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
14209         (shmat): Don't use BOUNDED_N.
14210
14211 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
14212
14213         [BZ #13550]
14214         * sysdeps/generic/bp-start.h: Remove file.
14215         * csu/libc-start.c: Don't include <bp-start.h>.
14216         (LIBC_START_MAIN): Set up __environ directly instead of using
14217         INIT_ARGV_and_ENVIRON.
14218         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
14219         <bp-start.h>.
14220
14221         [BZ #13550]
14222         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
14223         definitions.
14224         (CHECK_FCNTL): Likewise.
14225         (CHECK_N_PAGES): Likewise.
14226
14227         [BZ #13550]
14228         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
14229         definitions.
14230         (CHECK_SIGSET_NULL_OK): Likewise.
14231         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
14232         <bp-checks.h>.
14233         (sigpending): Don't use CHECK_SIGSET.
14234         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
14235         <bp-checks.h>.
14236         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14237         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
14238         <bp-checks.h>.
14239         (do_sigsuspend): Don't use CHECK_SIGSET.
14240         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
14241         use CHECK_SIGSET.
14242         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
14243         (do_sigwait): Don't use CHECK_SIGSET.
14244         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
14245         use CHECK_SIGSET.
14246         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
14247         include <bp-checks.h>.
14248         (sigpending): Don't use CHECK_SIGSET.
14249         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
14250         include <bp-checks.h>.
14251         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14252         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
14253         <bp-checks.h>.
14254         (sigpending): Don't use CHECK_SIGSET.
14255         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
14256         <bp-checks.h>.
14257         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14258
14259         [BZ #13550]
14260         * sysdeps/generic/bp-semctl.h: Remove file.
14261         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
14262         <bp-checks.h> and <bp-semctl.h>.
14263         (__old_semctl): Don't use CHECK_SEMCTL.
14264         (__new_semctl): Likewise.
14265         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
14266         and <bp-semctl.h>.
14267         (__old_semctl): Don't use CHECK_SEMCTL.
14268         (__new_semctl): Likewise.
14269         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
14270         <bp-checks.h> and <bp-semctl.h>.
14271         (__old_semctl): Don't use CHECK_SEMCTL.
14272         (__new_semctl): Likewise.
14273         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
14274         <bp-checks.h> and <bp-semctl.h>.
14275         (semctl): Don't use CHECK_SEMCTL.
14276
14277         [BZ #13550]
14278         * Makerules (elide-bp-thunks): Remove variable.
14279         (elide-routines.oS): Don't use $(elide-bp-thunks).
14280         (elide-routines.os): Likewise.
14281         (elide-routines.o): Likewise.
14282         (elide-routines.op): Likewise.
14283         (elide-routines.og): Likewise.
14284         (objects): Don't use $(bp-thunks).
14285         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
14286         include.
14287         (common-generated): Do not add s-proto-bp.d.
14288         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
14289         (int): Likewise.
14290         (typ): Likewise.
14291         Do not generate makefile rules for bounded-pointer thunks.
14292         * sysdeps/generic/bp-thunks.h: Remove file.
14293         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
14294         * sysdeps/unix/s-proto-bp.S: Likewise.
14295
14296         [BZ #15062]
14297         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
14298         parts of result separately when argument is not close to line from
14299         -i to i and one part of argument is small.
14300         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14301         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14302         * math/libm-test.inc (cacos_test): Add more tests.
14303         (casin_test): Likewise.
14304         (casinh_test): Likewise.
14305         * sysdeps/i386/fpu/libm-test-ulps: Update.
14306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14307
14308 2013-01-31  David S. Miller  <davem@davemloft.net>
14309
14310         * po/de.po: Update from translation team.
14311
14312 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
14313
14314         * time/tzfile.c: Include stdint.h for SIZE_MAX.
14315
14316 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
14317
14318         * configure.in (_AC_PROG_CC_C89): New definition.
14319         * configure: Regenerate.
14320
14321         * configure.in (AC_PROG_CPP): New definition.
14322         * configure: Regenerate.
14323
14324 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14325
14326         * debug/tst-backtrace.h: New file.
14327         * debug/tst-backtrace2.c: Include tst-backtrace.h.
14328         (ret): Remove variable.
14329         (x): Likewise.
14330         (FAIL): Remove macro.
14331         (NO_INLINE): Likewise.
14332         (fn1): Use match function instead of strstr.
14333         * debug/tst-backtrace3.c: Include tst-backtrace.h.
14334         (ret): Remove variable.
14335         (x): Likewise.
14336         (FAIL): Remove macro.
14337         (NO_INLINE): Likewise.
14338         (fn): Use match function instead of strstr.
14339         * debug/tst-backtrace4.c: Include tst-backtrace.h.
14340         (ret): Remove variable.
14341         (x): Likewise.
14342         (FAIL): Remove macro.
14343         (NO_INLINE): Likewise.
14344         (handle_signal): Use match function instead of strstr.
14345         * debug/tst-backtrace5.c: Include tst-backtrace.h.
14346         (ret): Remove variable.
14347         (x): Likewise.
14348         (FAIL): Remove macro.
14349         (NO_INLINE): Likewise.
14350         (handle_signal): Use match function instead of strstr.
14351
14352 2013-01-23  Roland McGrath  <roland@hack.frob.com>
14353
14354         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
14355
14356 2013-01-23  David S. Miller  <davem@davemloft.net>
14357
14358         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
14359         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
14360         argument of CAS if possible.
14361         * sysdeps/sparc/sparc64/bits/atomic.h
14362         (__arch_compare_and_exchange_val_32_acq): Likewise.
14363         (__arch_compare_and_exchange_val_64_acq): Likewise.
14364
14365 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14366
14367         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14368         * sysdeps/posix/ulimit.c: ... this.
14369         Include <limits.h>.
14370         * sysdeps/unix/bsd/ulimit.c: Remove file.
14371
14372 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14373
14374         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14375         (LDFLAGS-tst-array5): Likewise.
14376
14377 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14378
14379         [BZ #15036]
14380         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14381         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14382         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14383         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14384
14385 2013-01-21  David S. Miller  <davem@davemloft.net>
14386
14387         * sysdeps/sparc/backtrace.c: New file.
14388         * sysdeps/sparc/sparc32/backtrace.h: New file.
14389         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14390         * sysdeps/sparc/sparc64/backtrace.h: New file.
14391         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14392         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14393         -funwind-tables.
14394
14395 2013-01-21  Andreas Schwab  <schwab@suse.de>
14396
14397         [BZ #15020]
14398         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14399         closed its stdout.
14400
14401 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14402
14403         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14404         "mpa2.h".
14405         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14406
14407 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14408             Mark Mitchell  <mark@codesourcery.com>
14409             Tom de Vries  <tom@codesourcery.com>
14410             Paul Pluzhnikov  <ppluzhnikov@google.com>
14411
14412         * debug/tst-backtrace2.c: New file.
14413         * debug/tst-backtrace3.c: Likewise.
14414         * debug/tst-backtrace4.c: Likewise.
14415         * debug/tst-backtrace5.c: Likewise.
14416         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14417         (CFLAGS-tst-backtrace3.c): Likewise.
14418         (CFLAGS-tst-backtrace4.c): Likewise.
14419         (CFLAGS-tst-backtrace5.c): Likewise.
14420         (LDFLAGS-tst-backtrace2): Likewise.
14421         (LDFLAGS-tst-backtrace3): Likewise.
14422         (LDFLAGS-tst-backtrace4): Likewise.
14423         (LDFLAGS-tst-backtrace5): Likewise.
14424         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14425         tst-backtrace4 and tst-backtrace5.
14426
14427 2013-01-18  Anton Blanchard  <anton@samba.org>
14428             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14429
14430         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14431         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14432         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14433         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14435         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14436         "+r" and remove output regs list as redundant.  Add explicit inline
14437         asm to specify register of return val to work around compiler codegen
14438         bug.  Remove (int) cast on return value.  Add return type parameter to
14439         use in macro so that this macro does not truncate return value for
14440         64-bit values.
14441         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14442         pass to INTERNAL_VSYSCALL_NCS.
14443         (INLINE_VSYSCALL): Add 'long int' as return type to
14444         INTERNAL_VSYSCALL_NCS macro invocation.
14445         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14446         INTERNAL_VSYSCALL_NCS macro invocation.
14447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14448
14449 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14450
14451         [BZ #14496]
14452         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14453         Fix application of SIMD FP exception mask.
14454
14455         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14456         mp_no from a power of two.
14457         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14458         __mpexp_twomm1.  Use __pow_mp.
14459
14460         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14461         multiplication.
14462
14463 2013-01-17  David S. Miller  <davem@davemloft.net>
14464
14465         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14466
14467 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14468
14469         [BZ #15023]
14470         * include/complex.h: Condition contents on [!_COMPLEX_H].
14471         (__kernel_casinhf): New prototype.
14472         (__kernel_casinh): Likewise.
14473         (__kernel_casinhl): Likewise.
14474         * math/Makefile (libm_calls): Add k_casinh.
14475         * math/k_casinh.c: New file.
14476         * math/k_casinhf.c: Likewise.
14477         * math/k_casinhl.c: Likewise.
14478         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14479         finite nonzero arguments.
14480         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14481         finite nonzero arguments.
14482         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14483         finite nonzero arguments.
14484         * math/s_casinh.c: Do not include <float.h>.
14485         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14486         * math/s_casinhf.c: Do not include <float.h>.
14487         (__casinhf): Move code for finite nonzero arguments to
14488         k_casinhf.c.
14489         * math/s_casinhl.c: Do not include <float.h>.
14490         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14491         redefine.
14492         (__casinhl): Move code for finite nonzero arguments to
14493         k_casinhl.c.
14494         * math/libm-test.inc (cacos_test): Add more tests.
14495         * sysdeps/i386/fpu/libm-test-ulps: Update.
14496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14497
14498 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14499
14500         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14501         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14502         [!HAVE_MREMAP]: Remove [defined linux] case.
14503         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14504
14505 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14506
14507         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14508
14509 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14510
14511         * elf/elf.h (R_386_SIZE32): New relocation.
14512         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14513         R_386_SIZE32.
14514         (elf_machine_rela): Likewise.
14515         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14516         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14517
14518 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14519
14520         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14521         (FP_FAST_FMA): Do not define.
14522         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14523         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14524         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14525         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14526         !_SOFT_FLOAT]: Likewise.
14527         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14528         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14529         value.
14530         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14531         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14532         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14533         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14534         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14535         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14536         file.
14537
14538 2013-01-16  Andreas Schwab  <schwab@suse.de>
14539
14540         [BZ #14327]
14541         * include/stdlib.h (__mktemp): Add declaration.
14542         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14543         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14544
14545 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14546
14547         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14548         definitions.
14549         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14550         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14551         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14552         definitions here.
14553         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14554         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14555         definitions.
14556         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14557         and ONE.
14558         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14559         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14560         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14561         definitions.
14562         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14563         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14564         definitions.
14565         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14566
14567         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14568
14569 2013-01-15  David S. Miller  <davem@davemloft.net>
14570
14571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14572         trunc{,f} to libm-sysdep_routes.
14573         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14575         file.
14576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14578         file.
14579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14580         file.
14581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14583         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14584         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14585         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14586         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14587         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14588         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14589
14590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14591         nearbyint{,f} to libm-sysdep_routes.
14592         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14594         New file.
14595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14596         file.
14597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14598         New file.
14599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14600         file.
14601         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14603         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14604         file.
14605         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14606         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14607         file.
14608         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14609         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14610         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14611
14612         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14613         libc_feholdexcept and libc_fesetenv.
14614
14615 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14616
14617         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14618
14619 2013-01-14  David S. Miller  <davem@davemloft.net>
14620
14621         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14622         (SPARC_ASM_VIS2_IFUNC): Likewise.
14623         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14625         use of 'siam' instruction.
14626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14627         Likewise.
14628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14629         Likewise.
14630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14631         Likewise.
14632         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14633         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14634         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14635         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14637         file.
14638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14639         file.
14640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14641         file.
14642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14643         file.
14644         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14645         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14646         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14647         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14649         new VIS2 routines.
14650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14653         Likewise.
14654         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14655         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14656         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14657         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14659         routines to libm-sysdep_routines.
14660         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14661
14662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14663         fdim/fdimf to libm-sysdep_routines.
14664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14665         file.
14666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14668         file.
14669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14672         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14673         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14674         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14675         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14676
14677 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14678
14679         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14680         to optimize copies.
14681
14682         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14683         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14684         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14685
14686         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14687         local variable MPTWO.
14688         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14689         Likewise.
14690
14691 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14692
14693         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14694         GLOB_NOESCAPE.
14695
14696 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14697
14698         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14699
14700 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14701
14702         * manual/pattern.texi (glob_t): Document gl_flags.
14703         (glob64_t): Likewise.
14704
14705 2013-01-11  David S. Miller  <davem@davemloft.net>
14706
14707         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14708         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14709         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14710         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14711         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14712         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14713         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14714         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14715         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14716         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14717         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14718         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14719         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14720
14721         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14722         sparc V9 rather than using V8 code.
14723         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14724         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14725
14726         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14727         Move to...
14728         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14729         Here.
14730
14731 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14732
14733         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14734         not in the main loop.
14735         * configure: Regenerated.
14736
14737 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14738
14739         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14740         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14741         to just #else.
14742         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14743         [!__GLIBC_HAVE_LONG_LONG] case.
14744         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14745         condition to just #else.
14746         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14747         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14748         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14749         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14750         unconditional.
14751         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14752         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14753         #elif condition to just #else.
14754         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14755         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14756         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14757         #elif condition to just #else.
14758
14759 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14760
14761         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14762         (EF_MIPS_ARCH_64): Fix value.
14763         (EF_MIPS_ARCH_32R2): New.
14764         (EF_MIPS_ARCH_64R2): New.
14765
14766 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         * Makeconfig (+link-pie-before-libc): New.
14769         (+link-pie-after-libc): Likewise.
14770         (+link-pie-tests): Likewise.
14771         (+link-pie): Rewritten.
14772         (link-before-libc): Remove $(config-LDFLAGS).
14773         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14774         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14775         (config-LDFLAGS): Renamed to ...
14776         (rtld-LDFLAGS): This.
14777         (rtld-tests-LDFLAGS): New macro.
14778         (link-libc-rpath-link): Likewise.
14779         (link-libc-tests-rpath-link): Likewise.
14780         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14781         (link-libc): Prepand $(link-libc-rpath-link).
14782         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14783         (test-program-prefix): New macro.
14784         (test-via-rtld-prefix): Likewise.
14785         (test-program-cmd): Likewise.
14786         (host-test-program-cmd): Likewise.
14787         * Makefile ($(common-objpfx)testrun.sh): Replace
14788         $(run-program-prefix) with $(test-program-prefix).
14789         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14790         $(rtld-LDFLAGS).
14791         ($(common-objpfx)shlib.lds): Likewise.
14792         (build-module-helper): Likewise.
14793         ($(common-objpfx)format.lds): Likewise.
14794         * Rules (binaries-pie-tests): New.
14795         (binaries-pie-notests): Likewise.
14796         (binaries-pie): Rewritten.
14797         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14798         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14799         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14800         (make-test-out): Replace $(host-built-program-cmd) with
14801         $(host-test-program-cmd).
14802         * config.make.in (build-hardcoded-path-in-tests): New variable.
14803         * configure.in (--enable-hardcoded-path-in-tests): New configure
14804         option.
14805         (hardcoded_path_in_tests): New AC_SUBST.
14806         * configure: Regenerated.
14807         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14808         $(built-program-cmd) with $(test-program-cmd).
14809         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14810         (test_program_cmd): This.
14811         * elf/Makefile ($(objpfx)order.out): Run test with
14812         $(test-program-prefix).
14813         ($(objpfx)order2.out): Likewise.
14814         ($(objpfx)tst-initorder.out): Likewise.
14815         ($(objpfx)tst-initorder2.out): Likewise.
14816         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14817         $(test-program-cmd).
14818         ($(objpfx)tst-array1-static.out): Likewise.
14819         ($(objpfx)tst-array2.out): Likewise.
14820         ($(objpfx)tst-array3.out): Likewise.
14821         ($(objpfx)tst-array4.out): Likewise.
14822         ($(objpfx)tst-array5.out): Likewise.
14823         ($(objpfx)tst-array5-static.out): Likewise.
14824         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14825         $(test-program-cmd).
14826         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14827         $(run-program-prefix) with $(test-program-prefix).
14828         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14829         (test_program_prefix): This.
14830         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14831         $(run-program-prefix) with $(test-program-prefix).
14832         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14833         (test_program_prefix): This.
14834         * iconvdata/tst-tables.sh: Likewise.
14835         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14836         $(run-program-prefix) with $(test-program-prefix).
14837         ($(objpfx)tst-translit.out): Likewise.
14838         ($(objpfx)tst-gettext2.out): Likewise.
14839         ($(objpfx)tst-gettext4.out): Likewise.
14840         ($(objpfx)tst-gettext6.out): Likewise.
14841         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14842         (test_program_prefix): This.
14843         * intl/tst-gettext2.sh: Likewise.
14844         * intl/tst-gettext4.sh  Likewise.
14845         * intl/tst-gettext6.sh: Likewise.
14846         * intl/tst-translit.sh: Likewise.
14847         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14848         with $(test-program-cmd).
14849         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14850         $(run-program-prefix) with $(test-program-prefix).
14851         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14852         (test_program_prefix): This.
14853         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14854         $(run-program-prefix) with $(test-program-prefix).
14855         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14856         (test_program_prefix): This.
14857         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14858         * posix/Makefile ($(objpfx)globtest.out): Replace
14859         $(run-via-rtld-prefix) and $(test-wrapper) with
14860         $(test-program-prefix) and $(test-via-rtld-prefix).
14861         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14862         $(test-program-prefix).
14863         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14864         $(host-test-program-cmd).
14865         (tst-spawn-ARGS): Likewise.
14866         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14867         $(test-program-prefix).
14868         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14869         (test_via_rtld_prefix): This.
14870         (test_wrapper): Renamed to ...
14871         (test_program_prefix): This.
14872         (run_program_prefix): Replaced by test_program_prefix.
14873         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14874         (test_program_prefix): This.
14875         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14876         with $(host-test-program-cmd).
14877         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14878         $(run-program-prefix) with $(test-program-prefix).
14879         ($(objpfx)tst-printf.out): Likewise.
14880         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14881         $(test-program-cmd).
14882         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14883         (test_program_prefix): This.
14884         * stdio-common/tst-unbputc.sh: Likewise.
14885         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14886         $(run-program-prefix) with $(test-program-prefix).
14887         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14888         (test_program_prefix): This.
14889         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14890         $(built-program-cmd) with $(test-program-cmd).
14891
14892 2013-01-11  Andreas Jaeger  <aj@suse.de>
14893
14894         [BZ #15003]
14895         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14896         value. Sync with Linux 3.7.
14897
14898 2013-01-10  David S. Miller  <davem@davemloft.net>
14899
14900         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14901         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14902         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14903
14904 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14905
14906         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14907         never set.
14908         * configure: Regenerated.
14909
14910 2013-01-10  David S. Miller  <davem@davemloft.net>
14911
14912         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14913         sparc V9 rather than using V8 code.
14914         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14915         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14916
14917 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14918
14919         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14920         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14921         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14922         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14923         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14924         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14925         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14926         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14927         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14928         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14929         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14930         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14931         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14932         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14933         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14934         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14935         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14936         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14937         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14938         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14939         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14940         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14941         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14942         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14943         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14944         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14945         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14946
14947 2013-01-10  David S. Miller  <davem@davemloft.net>
14948
14949         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14950
14951 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14952
14953         * posix/Makefile (tests-static): New variable.
14954         (tests): Add $(tests-static).
14955         (tst-exec-static-ARGS): New variable.
14956         (tst-spawn-static-ARGS): Likewise.
14957         * posix/tst-exec-static.c: New file.
14958         * posix/tst-spawn-static.c: Likewise.
14959         * posix/tst-exec.c: Support run directly.
14960         * posix/tst-spawn.c: Likewise.
14961
14962 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14963
14964         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14965         long.
14966         * math/bits/mathcalls.h (llrint): Likewise.
14967         (llround): Likewise.
14968         * stdlib/stdlib.h (struct drand48_data): Likewise.
14969         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14970         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14971         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14972         Likewise.
14973         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14974         Likewise.
14975         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14976         (elf_greg_t): Likewise.
14977         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14978         (__jmp_buf): Likewise.
14979         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14980         definitions.
14981         (llrint): Likewise, for all definitions.
14982         (llrintl): Likewise.
14983
14984         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14985         Remove [__GNUC__] condition.
14986         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14987         condition to just [__USE_ISOC99].
14988         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14989
14990 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14991
14992         [BZ #14200]
14993         * sysdeps/unix/sysv/linux/x86/bits/environments.h
14994         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
14995         defined.
14996         (_POSIX_V6_ILP32_OFF32): Likewise.
14997         (_XBS5_ILP32_OFF32): Likewise.
14998         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
14999         (__ILP32_OFFBIG_LDFLAGS): Likewise.
15000
15001 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15002
15003         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
15004
15005         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
15006         doubles __mpexp_twomm1.  Adjust usage.
15007         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
15008         Remove.
15009
15010 2013-01-10  Andreas Schwab  <schwab@suse.de>
15011
15012         [BZ #14964]
15013         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
15014         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
15015
15016 2013-01-09  David S. Miller  <davem@davemloft.net>
15017
15018         [BZ #15003]
15019         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
15020         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
15021         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
15022         TCP_FASTOPEN): Define.
15023         (tcp_repair_opt): New structure.
15024         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
15025         enum values.
15026         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
15027         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
15028         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
15029         (tcp_cookie_transactions): New structure.
15030
15031 2013-01-09  Anton Blanchard  <anton@samba.org>
15032
15033         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
15034         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
15035         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
15036         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
15037
15038 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
15039
15040         * include/features.h (__USE_ANSI): Remove.
15041
15042 2013-01-09  Roland McGrath  <roland@hack.frob.com>
15043
15044         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
15045
15046         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
15047
15048 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
15049
15050         * sysdeps/s390/fpu/libm-test-ulps: Update.
15051
15052         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15053
15054         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
15055         (__acr): Likewise.
15056         (__cpy): Likewise.
15057         (norm): Likewise.
15058         (denorm): Likewise.
15059         (__mp_dbl): Likewise.
15060         (__dbl_mp): Likewise.
15061         (add_magnitudes): Likewise.
15062         (sub_magnitudes): Likewise.
15063         (__add): Likewise.
15064         (__sub): Likewise.
15065         (__mul): Likewise.
15066         (__inv): Likewise.
15067         (__dvd): Likewise.
15068         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
15069         (__acr): Likewise.
15070         (__cpy): Likewise.
15071         (norm): Likewise.
15072         (denorm): Likewise.
15073         (__mp_dbl): Likewise.
15074         (__dbl_mp): Likewise.
15075         (add_magnitudes): Likewise.
15076         (sub_magnitudes): Likewise.
15077         (__add): Likewise.
15078         (__sub): Likewise.
15079         (__mul): Likewise.
15080         (__inv): Likewise.
15081         (__dvd): Likewise.
15082         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
15083         (__acr): Likewise.
15084         (__cpy): Likewise.
15085         (norm): Likewise.
15086         (denorm): Likewise.
15087         (__mp_dbl): Likewise.
15088         (__dbl_mp): Likewise.
15089         (add_magnitudes): Likewise.
15090         (sub_magnitudes): Likewise.
15091         (__add): Likewise.
15092         (__sub): Likewise.
15093         (__mul): Likewise.
15094         (__inv): Likewise.
15095         (__dvd): Likewise.
15096
15097 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
15098
15099         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
15100         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
15101         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
15102         2 && __USE_EXTERN_INLINES]: Likewise.
15103
15104 2013-01-08  Andreas Jaeger  <aj@suse.de>
15105
15106         [BZ# 14985]
15107         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
15108         Remove.
15109         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15110         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15111
15112 2013-01-07  Anton Blanchard  <anton@samba.org>
15113
15114         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
15115         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
15116         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
15117         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
15118         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15119         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15120         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
15121         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15122         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15123         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15124         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15125         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15126         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
15127         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15128         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
15129         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15130         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15131         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15132         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
15133         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15134         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
15135         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
15136         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15137         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
15138         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
15139         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15140         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15141         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
15142         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
15143         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
15144         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
15145         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15146         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15147         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
15148         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
15149         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15150         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15151         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15152         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
15153         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
15154         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
15155         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15156         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
15157
15158 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
15159
15160         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
15161         (__MALLOC_PMT): Likewise.
15162         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
15163         [__GNUC__], only on [_LIBC].
15164         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15165         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
15166         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15167         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
15168         forward declaration.
15169         (realloc_hook_ini): Likewise.
15170         (memalign_hook_ini): Likewise.
15171         (__libc_memalign): Do not use __MALLOC_PMT in variable
15172         declaration.
15173         (__libc_valloc): Likewise.
15174         (__libc_pvalloc): Likewise.
15175         (__libc_calloc): Likewise.
15176         (__posix_memalign): Likewise.
15177
15178         [BZ #14996]
15179         * math/s_casinh.c: Include <float.h>.
15180         (__casinh): Do not do computation with squaring and square root
15181         for large arguments.
15182         * math/s_casinhf.c: Include <float.h>.
15183         (__casinhf): Do not do computation with squaring and square root
15184         for large arguments.
15185         * math/s_casinhl.c: Include <float.h>.
15186         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
15187         (__casinhl): Do not do computation with squaring and square root
15188         for large arguments.
15189         * math/libm-test.inc (casin_test): Add more tests.
15190         (casinh_test): Likewise.
15191         * sysdeps/i386/fpu/libm-test-ulps: Update.
15192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15193
15194 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15195
15196         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
15197         (__x86_64_raw_data_cache_size): Likewise.
15198         (__x86_64_data_cache_size_half): Likewise.
15199         (__x86_64_raw_data_cache_size_half): Likewise.
15200         (__x86_64_shared_cache_size): Likewise.
15201         (__x86_64_raw_shared_cache_size): Likewise.
15202         (__x86_64_shared_cache_size_half): Likewise.
15203         (__x86_64_raw_shared_cache_size_half): Likewise.
15204         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
15205         to ...
15206         (__x86_data_cache_size): This.
15207         (__x86_64_raw_data_cache_size): Renamed to ...
15208         (__x86_raw_data_cache_size): This.
15209         (__x86_64_data_cache_size_half): Renamed to ...
15210         (__x86_data_cache_size_half): This.
15211         (__x86_64_raw_data_cache_size_half): Renamed to ...
15212         (__x86_raw_data_cache_size_half): This.
15213         (__x86_64_shared_cache_size): Renamed to ...
15214         (__x86_shared_cache_size): This.
15215         (__x86_64_raw_shared_cache_size): Renamed to ...
15216         (__x86_raw_shared_cache_size): This.
15217         (__x86_64_shared_cache_size_half): Renamed to ...
15218         (__x86_shared_cache_size_half): This.
15219         (__x86_64_raw_shared_cache_size_half): Renamed to ...
15220         (__x86_raw_shared_cache_size_half): This.
15221         * sysdeps/x86_64/memcpy.S: Updated.
15222         * sysdeps/x86_64/memset.S: Likewise.
15223         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
15224         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15225         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15226
15227 2013-01-04  David S. Miller  <davem@davemloft.net>
15228
15229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15230
15231 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
15232
15233         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
15234         1 to avoid redefinition warning.
15235         (__USE_GNU): Don't define.
15236         (init_signaling_nan): Protoize.
15237
15238         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15239
15240 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15241
15242         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
15243         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
15244         (__cpymn): Likewise.
15245         (norm): Remove commented code.
15246         (denorm): Likewise.
15247         (__mp_dbl): Likewise.
15248         (__inv): Likewise.
15249         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
15250         (__cpymn): Likewise.
15251         (norm): Remove commented code.
15252         (denorm): Likewise.
15253         (__mp_dbl): Likewise.
15254         (__inv): Likewise.
15255
15256         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
15257         mp_no value for 1.0 and 2.0.
15258         (norm): Use RADIXI instead of radixi.d.
15259         (denorm): Likewise.
15260         (__mul): Use 0.0 instead of zero.d.
15261         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
15262         mp_no value for 1.0 and 2.0.
15263         (norm): Use RADIXI instead of radixi.d.
15264         (denorm): Likewise.
15265         (__mul): Use 0.0 instead of zero.d.
15266
15267 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
15268
15269         [BZ #14994]
15270         * math/s_casinh.c (__casinh): Reduce finite argument to first
15271         quadrant then set signs of results at the end.
15272         * math/s_casinhf.c (__casinhf): Likewise.
15273         * math/s_casinhl.c (__casinhl): Likewise.
15274         * math/libm-test.inc (casin_test): Add more tests.
15275         (casinh_test): Likewise.
15276         * sysdeps/i386/fpu/libm-test-ulps: Update.
15277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15278
15279 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15280
15281         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
15282
15283         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
15284
15285         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
15286         declarations.
15287         (denorm): Likewise.
15288         (__mp_dbl): Likewise.
15289         (__inv): Likewise.
15290
15291         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
15292         and adjust the header comment.
15293
15294         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
15295         variable name from declaration.
15296
15297 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15298
15299         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15300         Initialize COMMON_CPUID_INDEX_7 element.
15301         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
15302         (CPUID_RTM): Likewise.
15303         (HAS_RTM): Likewise.
15304         (COMMON_CPUID_INDEX_7): New enum.
15305
15306 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
15307
15308         [BZ #14981]
15309         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
15310         size is zero, record memory as freed.
15311
15312 2013-01-03  Andreas Jaeger  <aj@suse.de>
15313
15314         * po/ia.po: Add new Interlingua translation.
15315
15316 2012-01-03  Allan McRae  <allan@archlinux.org>
15317
15318         * locale/programs/localedef.c: Fix description of '--posix' flag.
15319
15320 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
15321
15322         * NEWS: Update dates in second copyright notice.
15323         * README: Update copyright dates in example.
15324         * manual/libc.texinfo: Update copyright dates.
15325         * scripts/test-installation.pl: Update copyright date in --version
15326         output.
15327
15328         * hurd/ctty-input.c: Fix copyright notice formatting.
15329         * hurd/ctty-output.c: Likewise.
15330         * hurd/dtable.c: Likewise.
15331         * hurd/hurd-raise.c: Likewise.
15332         * hurd/hurdprio.c: Likewise.
15333         * hurd/msgportdemux.c: Likewise.
15334         * misc/sys/file.h: Likewise.
15335         * misc/sys/ioctl.h: Likewise.
15336         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
15337         * sysdeps/mach/hurd/chdir.c: Likewise.
15338         * sysdeps/mach/hurd/fchdir.c: Likewise.
15339         * sysdeps/mach/hurd/rename.c: Likewise.
15340         * sysdeps/mach/hurd/rmdir.c: Likewise.
15341         * sysdeps/mach/hurd/seekdir.c: Likewise.
15342         * sysdeps/mach/hurd/setsid.c: Likewise.
15343         * sysdeps/posix/wait3.c: Likewise.
15344
15345         * All files with FSF copyright notices: Update copyright dates
15346         using scripts/update-copyrights.
15347         * intl/plural.c: Regenerated.
15348         * locale/programs/charmap-kw.h: Likewise.
15349         * locale/programs/locfile-kw.h: Likewise.
15350
15351 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
15352
15353         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
15354         four values.
15355
15356         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
15357         calculation loop and add branch prediction.
15358
15359         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
15360         check access beyond bounds of m1np.
15361
15362         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15363         MPTWO.
15364         (__inv): Remove local variable MPTWO to use the global
15365         constant.
15366         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15367         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15368         variable MPTWO.
15369         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15370         MP3HALFS static const.
15371
15372 2013-01-01  David S. Miller  <davem@davemloft.net>
15373
15374         * po/ca.po: Update from translation team.
15375
15376 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15377
15378         * scripts/update-copyrights: New file.
15379         * Makeconfig: Reformat copyright notice.
15380         * ctype/ctype.h: Likewise.
15381         * debug/swprintf_chk.c: Likewise.
15382         * elf/dl-cache.c: Likewise.
15383         * elf/dl-debug.c: Likewise.
15384         * elf/dl-object.c: Likewise.
15385         * grp/initgroups.c: Likewise.
15386         * hurd/Makefile: Likewise.
15387         * hurd/hurd/signal.h: Likewise.
15388         * hurd/hurdfault.c: Likewise.
15389         * hurd/hurdioctl.c: Likewise.
15390         * hurd/hurdlookup.c: Likewise.
15391         * hurd/intr-msg.c: Likewise.
15392         * iconv/gconv_open.c: Likewise.
15393         * libio/swprintf.c: Likewise.
15394         * locale/lc-ctype.c: Likewise.
15395         * locale/nl_langinfo.c: Likewise.
15396         * mach/Machrules: Likewise.
15397         * mach/Makefile: Likewise.
15398         * malloc/obstack.h: Likewise.
15399         * manual/Makefile: Likewise.
15400         * manual/tsort.awk: Likewise.
15401         * misc/bits/stab.def: Likewise.
15402         * nis/nis_print_group_entry.c: Likewise.
15403         * nis/nis_table.c: Likewise.
15404         * nis/nss_compat/compat-pwd.c: Likewise.
15405         * nis/nss_compat/compat-spwd.c: Likewise.
15406         * po/Makefile: Likewise.
15407         * posix/fnmatch.c: Likewise.
15408         * posix/regex.h: Likewise.
15409         * resolv/Makefile: Likewise.
15410         * resolv/nss_dns/dns-network.c: Likewise.
15411         * resolv/res_hconf.c: Likewise.
15412         * scripts/gen-sorted.awk: Likewise.
15413         * soft-fp/soft-fp.h: Likewise.
15414         * stdio-common/printf.h: Likewise.
15415         * stdlib/monetary.h: Likewise.
15416         * stdlib/random.c: Likewise.
15417         * stdlib/random_r.c: Likewise.
15418         * sysdeps/generic/Makefile: Likewise.
15419         * sysdeps/gnu/Makefile: Likewise.
15420         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15421         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15422         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15423         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15424         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15425         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15426         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15427         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15428         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15429         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15430         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15431         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15432         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15433         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15434         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15435         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15436         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15437         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15438         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15439         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15440         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15441         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15442         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15443         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15444         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15445         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15446         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15447         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15448         * sysdeps/mach/hurd/errnos.awk: Likewise.
15449         * sysdeps/mach/hurd/fork.c: Likewise.
15450         * sysdeps/mach/hurd/getcwd.c: Likewise.
15451         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15452         * sysdeps/mach/hurd/mmap.c: Likewise.
15453         * sysdeps/mach/hurd/utimes.c: Likewise.
15454         * sysdeps/mach/hurd/xmknod.c: Likewise.
15455         * sysdeps/posix/profil.c: Likewise.
15456         * sysdeps/posix/readdir_r.c: Likewise.
15457         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15458         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15459         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15460         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15461         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15462         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15463         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15464         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15465         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15466         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15467         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15468         * sysdeps/pthread/lio_listio.c: Likewise.
15469         * sysdeps/sparc/dl-procinfo.h: Likewise.
15470         * sysdeps/unix/i386/sysdep.S: Likewise.
15471         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15472         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15473         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15474         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15476         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15477         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15478         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15479         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15480         * sysdeps/wordsize-32/divdi3.c: Likewise.
15481         * time/sys/time.h: Likewise.
15482         * wcsmbs/Makefile: Likewise.
15483
15484 2013-01-01  David S. Miller  <davem@davemloft.net>
15485
15486         * po/fr.po: Update from translation team.
15487
15488         * catgets/gencat.c: Update copyright year.
15489         * csu/version.c: Likewise.
15490         * debug/catchsegv.sh: Likewise.
15491         * debug/pcprofiledump.c: Likewise.
15492         * debug/xtrace.sh: Likewise.
15493         * elf/ldconfig.c: Likewise.
15494         * elf/ldd.bash.in: Likewise.
15495         * elf/pldd.c: Likewise.
15496         * elf/sotruss.ksh: Likewise.
15497         * elf/sprof.c: Likewise.
15498         * iconv/iconv_prog.c: Likewise.
15499         * iconv/iconvconfig.c: Likewise.
15500         * locale/programs/locale.c: Likewise.
15501         * locale/programs/localedef.c: Likewise.
15502         * login/programs/pt_chown.c: Likewise.
15503         * malloc/memusage.sh: Likewise.
15504         * malloc/memusagestat.c: Likewise.
15505         * malloc/mtrace.pl: Likewise.
15506         * nscd/nscd.c: Likewise.
15507         * nss/getent.c: Likewise.
15508         * nss/makedb.c: Likewise.
15509         * posix/getconf.c: Likewise.
15510
15511 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15512
15513         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15514         numbers.
15515
15516 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15517
15518         * math/bits/mathcalls.h (modf): Use __nonnull.
15519
15520 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15521
15522         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15523         (split): Use macro CN instead of the bare value.
15524         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15525         could be used.
15526         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15527         instead of the bare value.
15528         (power1): Likewise.
15529
15530 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15531
15532         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15533         __ATAN_TWOM.
15534         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15535
15536         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15537         their values.
15538         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15539         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15540         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15541         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15542
15543 2012-12-28  Andreas Jaeger  <aj@suse.de>
15544
15545         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15546         values are from Linux 3.7.
15547
15548         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15549         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15550
15551 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15552
15553         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15554         TRUE case.
15555
15556         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15557         (norm): Likewise.
15558         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15559         variables with preprocessor constants.
15560         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15561         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15562         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15563
15564 2012-12-27  Bruno Haible  <bruno@clisp.org>
15565
15566         [BZ #14317]
15567         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15568         only if needed.
15569
15570 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15571
15572         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15573         and use variable directly.
15574         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15575
15576         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15577         MPONE.
15578         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15579         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15580         variable MPONE.
15581         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15582         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15583         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15584         include directive.  Remove local variable MPONE.
15585         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15586         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15587         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15588
15589 2012-12-25  David S. Miller  <davem@davemloft.net>
15590
15591         * version.h (RELEASE): Set to "development".
15592         (VERSION): Set to "2.17.90".
15593         * NEWS: Add 2.18 section.
15594
15595 2012-12-21  David S. Miller  <davem@davemloft.net>
15596
15597         * po/hr.po: Update from translation team.
15598
15599 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15600
15601         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15602
15603 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15604
15605         * NEWS:  Mention new memcpy for MIPS.
15606
15607 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15608
15609         * manual/contrib.texi (Contributors): Spelling correction.
15610
15611 2012-12-15  David S. Miller  <davem@davemloft.net>
15612
15613         * po/ru.po: Update from translation team.
15614
15615 2012-12-13  David S. Miller  <davem@davemloft.net>
15616
15617         * NEWS: Mention IFUNC testsuite enhancements.
15618
15619         * po/pl.po: Update from translation team.
15620         * po/bg.po: Likewise.
15621
15622         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15623         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15624
15625 2012-12-11  David S. Miller  <davem@davemloft.net>
15626
15627         * po/sv.po: Update from translation team.
15628
15629         * po/vi.po: Update from translation team.
15630
15631         * po/cs.po: Update from translation team.
15632
15633         * po/de.po: Update from translation team.
15634         * po/eo.po: Likewise.
15635         * po/nl.po: Likewise.
15636
15637 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15638
15639         [BZ #14246]
15640         * manual/argp.texi (Argp Helper Functions): Move node to follow
15641         Argp Parsing State.
15642
15643         [BZ #14872]
15644         * manual/conf.texi (Limits on File System Capacity): Mention if
15645         terminating null is included in the max size.
15646
15647 2012-12-10  Andreas Jaeger  <aj@suse.de>
15648
15649         * po/cs.po: Update from translation team.
15650
15651 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15652
15653         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15654         void pointer and cast to uintptr_t.
15655         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15656         path.
15657         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15658         * sysdeps/s390/s390-64/memset.S: Likewise.
15659
15660 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15661
15662         [BZ #14833]
15663         * menual/message.texi (Message Translation): Fix typos.
15664         (Helper programs for gettext): Likewise.
15665
15666 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15667
15668         [BZ #14898]
15669         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15670         Change to -1.
15671
15672 2012-12-07  David S. Miller  <davem@davemloft.net>
15673
15674         * po/libc.pot: Update.
15675
15676 2012-12-07  Richard Henderson  <rth@redhat.com>
15677
15678         [BZ #10114]
15679         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15680         normal/normal case to before the switch.
15681         (_FP_DIV): Likewise.
15682
15683 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15684             Mike Frysinger  <vapier@gentoo.org>
15685
15686         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15687         check for __NR_fadvise64_64.
15688
15689 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15690
15691         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15692         0, not just to plain "0" as a statement.
15693         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15694         with cw.
15695
15696 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15697
15698         * NEWS: Use sourceware.org in Bugzilla URL.
15699
15700 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15701
15702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15703         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15704
15705         * stdio-common/tst-put-error.c (do_test): Add newline to the
15706         padded test to ensure flush.
15707
15708 2012-12-05  Jeff Law  <law@redhat.com>
15709
15710         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15711
15712 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15713
15714         * README: Don't refer to ports add-on as distributed separately.
15715         Mention AArch64 in list of systems supported in the ports add-on.
15716
15717         * LICENSES: Add more non-FSF copyright and license notices.
15718
15719         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15720         ((unused)).
15721
15722         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15723
15724         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15725         10000 as width of padded output.
15726
15727 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15728
15729         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15730
15731         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15732         variable LX with __attribute__ ((unused)).
15733         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15734         Likewise.
15735         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15736         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15737         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15738         with __attribute__ ((unused)).
15739
15740 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15741
15742         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15743
15744 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15745
15746         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15747         (CFLAGS-nldbl-acos.c): New variable.
15748         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15749         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15750         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15751         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15752         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15753         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15754         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15755         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15756         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15757         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15758         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15759         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15760         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15761         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15762         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15763         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15764         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15765         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15766         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15767         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15768         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15769         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15770         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15771         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15772         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15773         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15774         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15775         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15776         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15777         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15778         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15779         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15780         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15781         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15782         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15783         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15784         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15785         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15786         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15787         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15788         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15789         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15790         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15791         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15792         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15793         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15794         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15795         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15796         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15797         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15798         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15799         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15800         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15801         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15802         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15803         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15804         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15805         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15806         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15807         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15808         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15809         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15810         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15811         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15812         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15813         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15814         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15815         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15816         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15817         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15818         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15819         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15820         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15821         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15822         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15823         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15824         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15825         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15826         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15827         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15828         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15829         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15830         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15831         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15832         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15833         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15834         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15835         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15836         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15837         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15838         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15839         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15840         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15841         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15842         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15843         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15844         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15845
15846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15847         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15848
15849         [BZ #14914]
15850         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15851         whole low double instead of just low 47 bits when splitting values
15852         into two parts.
15853
15854 2012-12-03  Allan McRae  <allan@archlinux.org>
15855
15856         * manual/stdio.texi (Predefined Printf Handlers): Remove
15857         @hsep and @vsep usage.
15858
15859 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15860
15861         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15862         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15863
15864 2012-12-03  Jeff Law  <law@redhat.com>
15865
15866         * time/sys/time.h (settimeofday): Do not mark TV argument
15867         as __nonnull.
15868
15869 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15870
15871         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15872         when currently writing and seek to current position when not.
15873         * libio/Makefile (tests): Remove bug-fclose1.
15874         * libio/bug-fclose1.c: Delete.
15875
15876 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15877
15878         * manual/arith.texi (feenableexcept): Fix typo.
15879         (fedisableexcept): Likewise.
15880
15881 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15882
15883         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15884         second, differently-typed declaration, rather than a cast.
15885
15886 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15887
15888         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15889         * include/rpc/svc.h: ... here.
15890
15891 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15892
15893         [BZ #13013]
15894         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15895         depending n and resplen2 to catch cases where answer
15896         equals answerp2.
15897
15898 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15899
15900         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15901         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15902
15903 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15904
15905         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15906
15907 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15908
15909         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15910
15911 2012-11-28  Jeff Law  <law@redhat.com>
15912
15913         [BZ #13761]
15914         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15915         dataset_temporary.  Track alloca usage into alloca_used.
15916         If dataset is large allocate and release it via malloc/free.
15917
15918 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15919
15920         [BZ #14197]
15921         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15922
15923 2012-11-28  David S. Miller  <davem@davemloft.net>
15924
15925         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15926
15927 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15928
15929         [BZ #14803]
15930         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15931         of pi/2 rounded to nearest to 64 bits.
15932         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15933         nearest to 64 bits.
15934         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15935         bits.
15936
15937 2012-11-28  Jeff Law <law@redhat.com>
15938             Martin Osvald <mosvald@redhat.com>
15939
15940         [BZ #14889]
15941         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15942         * sunrpc/svc.c: Include time.h.
15943         (__svc_accept_failed): New function.
15944         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15945         any reason other than EINTR, call __svc_accept_failed.
15946         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15947         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15948
15949 2012-11-28  Andreas Schwab  <schwab@suse.de>
15950
15951         * scripts/abilist.awk: Also handle indirect functions in .opd
15952         section.
15953
15954 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15955
15956         [BZ #13881]
15957         * sysdeps/x86/fpu/powl_helper.c: New file.
15958         * sysdeps/x86/fpu/Makefile: Likewise.
15959         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15960         (p3): New object.
15961         (__ieee754_powl): Use __powl_helper for finite arguments except
15962         integer exponents below 8.
15963         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15964         (p3): New object.
15965         (__ieee754_powl): Use __powl_helper for finite arguments except
15966         integer exponents below 8.
15967         * math/libm-test.inc (pow_test): Add more tests and enable some
15968         previously disabled tests.
15969         * sysdeps/i386/fpu/libm-test-ulps: Update.
15970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15971
15972 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15973             Carlos O'Donell  <carlos_odonell@mentor.com>
15974
15975         * nss/makedb.c (is_prime): Assert that input is odd and greater
15976         than 4.  Note that fact in a comment too.
15977         (next_prime): Add 4 to input.
15978
15979 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15980
15981         [BZ #11741]
15982         * libio/Makefile (tests): Add test case tst-fwrite-error.
15983         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15984         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15985         * libio/tst-fwrite-error.c: New test case.
15986
15987 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15988
15989         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15990         before casting to void *.
15991         * include/libc-internal.h (__pointer_type): New macro.
15992         (__integer_if_pointer_type_sub): Likewise.
15993         (__integer_if_pointer_type): Likewise.
15994         (cast_to_integer): Likewise.
15995         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
15996         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
15997         before casting to atomic64_t.
15998         (atomic_exchange_acq): Likewise.
15999         (__arch_exchange_and_add_body): Likewise.
16000         (__arch_add_body): Likewise.
16001         (atomic_add_negative): Likewise.
16002         (atomic_add_zero): Likewise.
16003
16004 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
16005
16006         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
16007         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
16008         (add_fdes): Likewise.
16009         (linear_search_fdes): Likewise.
16010         (binary_search_unencoded_fdes): Likewise.
16011
16012 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
16013
16014         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
16015
16016 2012-11-24  Adam Conrad  <adconrad@0c3.net>
16017
16018         * configure.in: Autodetect C++ header directories.
16019         * configure: Regenerated.
16020
16021 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
16022
16023         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
16024
16025 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
16026
16027         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16028
16029 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
16030
16031         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
16032         LDBL_MANT_DIG == 106]: Disable some tests.
16033         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
16034         Likewise.
16035         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
16036         Likewise.
16037
16038         [BZ #14871]
16039         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
16040         input for small inputs.  Return +/- pi/2 for large inputs.
16041         * math/libm-test.inc (atan_test): Add more tests.
16042
16043         * sysdeps/generic/unwind-dw2-fde-glibc.c
16044         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
16045         __attribute__ ((unused)).
16046
16047         [BZ #14645]
16048         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
16049         x * y if x and y are nonzero and z is zero.
16050
16051         [BZ #14811]
16052         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
16053         nonzero exponents with absolute value below 0x1p-117 to +/-
16054         0x1p-117.
16055
16056         [BZ #14869]
16057         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
16058         up arguments below 2**-450, not just those below 2**-500.
16059         * math/libm-test.inc (hypot_test): Add another test.
16060
16061         [BZ #14868]
16062         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
16063         Return a+b for ratio over 2**120, not 2**60.
16064         * math/libm-test.inc (hypot_test): Add another test.
16065
16066         * math/libm-test.inc (clog_test): Use
16067         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
16068         (clog10_test): Likewise.
16069
16070         [BZ #6778]
16071         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
16072
16073 2012-11-22  Andreas Schwab  <schwab@suse.de>
16074
16075         * sysdeps/i386/fpu/libm-test-ulps: Update.
16076
16077 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
16078
16079         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
16080         printf output with newline.
16081
16082 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16083
16084         [BZ #14865]
16085         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
16086         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
16087         -z nodlopen, -z initfirst and -z execstack support.
16088         * configure: Regenerated.
16089
16090         * elf/elf.h (DF_1_NODIRECT): New macro.
16091         (DF_1_IGNMULDEF): Likewise.
16092         (DF_1_NOKSYMS): Likewise.
16093         (DF_1_NOHDR): Likewise.
16094         (DF_1_EDITED): Likewise.
16095         (DF_1_NORELOC): Likewise.
16096         (DF_1_SYMINTPOSE): Likewise.
16097         (DF_1_GLOBAUDIT): Likewise.
16098         (DF_1_SINGLETON): Likewise.
16099         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
16100         DT_1_SUPPORTED_MASK bits.
16101         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
16102
16103 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
16104
16105         * sysdeps/unix/make-syscalls.sh: Document prefixes.
16106
16107 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
16108
16109         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
16110         macro.
16111
16112         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
16113         (sendmmsg): Move declarations...
16114         * socket/sys/socket.h: ... here.
16115         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
16116         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
16117         include it from...
16118         * socket/recvmmsg.c: ... this new file.
16119         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
16120         (sendmmsg): Rename to __sendmmsg, create weak alias and make
16121         definition of __sendmmsg hidden.
16122         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16123         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
16124         Move ENOSYS stub into and include it from...
16125         * socket/sendmmsg.c: ... this new file.
16126         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
16127         (sysdep_routines): Move recvmmsg and sendmmsg...
16128         * socket/Makefile (routines): ... here.
16129         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
16130         (GLIBC_PRIVATE): Add __sendmmsg.
16131         * include/sys/socket.h (__sendmmsg): Add declarations.
16132         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
16133         sendmmsg.
16134
16135 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
16136
16137         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
16138         variable I1 with __attribute__ ((unused)).
16139         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
16140
16141 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16142
16143         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
16144         DUMMY variables with __attribute__ ((unused)).
16145
16146         * bits/byteswap.h: Include <bits/types.h>.
16147         (__bswap_64): Use __uint64_t instead of unsigned long long int.
16148
16149 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16150
16151         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
16152         string_t.  Do not manually set errno.
16153         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
16154         length with __strnlen.  Make sure to both set errno and return it on
16155         failure.
16156
16157 2012-11-19  David S. Miller  <davem@davemloft.net>
16158
16159         With help from Joseph Myers.
16160         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
16161         very large arguments properly.
16162         * math/libm-test.inc (atan_test): New tests.
16163         (atan2_test): New tests.
16164         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16165         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16166
16167 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16168
16169         [BZ #14856]
16170         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
16171         Define to 3.
16172
16173         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
16174         [POSIX] (EADDRNOTAVAIL): Likewise.
16175         [POSIX] (EAFNOSUPPORT): Likewise.
16176         [POSIX] (EALREADY): Likewise.
16177         [POSIX] (ECONNABORTED): Likewise.
16178         [POSIX] (ECONNREFUSED): Likewise.
16179         [POSIX] (ECONNRESET): Likewise.
16180         [POSIX] (EDESTADDRREQ): Likewise.
16181         [POSIX] (EDQUOT): Likewise.
16182         [POSIX] (EHOSTUNREACH): Likewise.
16183         [POSIX] (EIDRM): Likewise.
16184         [POSIX] (EISCONN): Likewise.
16185         [POSIX] (ELOOP): Likewise.
16186         [POSIX] (EMULTIHOP): Likewise.
16187         [POSIX] (ENETDOWN): Likewise.
16188         [POSIX] (ENETUNREACH): Likewise.
16189         [POSIX] (ENOBUFS): Likewise.
16190         [POSIX] (ENODATA): Likewise.
16191         [POSIX] (ENOLINK): Likewise.
16192         [POSIX] (ENOMSG): Likewise.
16193         [POSIX] (ENOPROTOOPT): Likewise.
16194         [POSIX] (ENOSR): Likewise.
16195         [POSIX] (ENOSTR): Likewise.
16196         [POSIX] (ENOTCONN): Likewise.
16197         [POSIX] (ENOTSOCK): Likewise.
16198         [POSIX] (EOPNOTSUPP): Likewise.
16199         [POSIX] (EOVERFLOW): Likewise.
16200         [POSIX] (EPROTO): Likewise.
16201         [POSIX] (EPROTONOSUPPORT): Likewise.
16202         [POSIX] (EPROTOTYPE): Likewise.
16203         [POSIX] (ESTALE): Likewise.
16204         [POSIX] (ETIME): Likewise.
16205         [POSIX] (ETXTBSY): Likewise.
16206         [POSIX] (EWOULDBLOCK): Likewise.
16207         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
16208         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
16209         [POSIX] (SEEK_CUR): Likewise.
16210         [POSIX] (SEEK_END): Likewise.
16211         [POSIX || UNIX98] (mode_t): Do not require.
16212         [POSIX] (off_t): Likewise.
16213         [POSIX] (pid_t): Likewise.
16214         [POSIX] (sys/stat.h): Do not allow header.
16215         [POSIX] (unistd.h): Likewise.
16216         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
16217         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
16218         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
16219         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
16220         require.
16221         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
16222         sigevent): Specify elements.
16223         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
16224         entry.
16225         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
16226         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
16227
16228         * conform/data/cpio.h-data [POSIX]: Disable whole file.
16229         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
16230         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
16231         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
16232         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
16233         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
16234         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
16235         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
16236         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
16237         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
16238         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
16239         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
16240         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
16241         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
16242         Likewise.
16243         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
16244         Likewise.
16245         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
16246         Likewise.
16247         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
16248         Likewise.
16249         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
16250         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
16251         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
16252         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
16253         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
16254         Specify lower bound on value.
16255         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
16256         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
16257         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
16258         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
16259         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
16260         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
16261         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
16262         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
16263         value.
16264         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
16265         as optional.
16266         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
16267         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
16268         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
16269         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
16270         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
16271         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
16272         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
16273         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
16274         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
16275         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
16276         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
16277         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
16278         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
16279         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
16280         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
16281         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
16282         entry.
16283         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
16284         optional.
16285         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
16286         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
16287         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
16288         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
16289         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
16290         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
16291         Likewise.
16292         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
16293         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
16294         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
16295         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
16296         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
16297         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
16298         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
16299         as optional.
16300         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
16301         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
16302         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
16303         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
16304         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
16305         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
16306         specify as optional.
16307         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
16308         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
16309         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
16310         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
16311         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
16312         [XPG3] (NL_LANGMAX): Likewise.
16313         [POSIX || XPG3] (NL_MSGMAX): Likewise.
16314         [POSIX || XPG3] (NL_NMAX): Likewise.
16315         [POSIX || XPG3] (NL_SETMAX): Likewise.
16316         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
16317         [XPG3] (NZERO): Likewise.
16318         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
16319         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
16320         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
16321         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
16322         (REG_ERANGE): Expect.
16323         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
16324         optional-constant.
16325         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
16326         Use (void) in prototype.
16327         [POSIX] (*_t): Allow.
16328         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
16329         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
16330         (WRDE_BADVAL): Expect.
16331
16332         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
16333         expect.
16334         [XPG3 || XPG4] (O_RSYNC): Likewise.
16335         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
16336         Likewise.
16337         [XPG3 || XPG4] (pthread_sigmask): Likewise.
16338         [XPG3 || XPG4] (sigqueue): Likewise.
16339         [XPG3 || XPG4] (sigtimedwait): Likewise.
16340         [XPG3 || XPG4] (sigwaitinfo): Likewise.
16341         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
16342         [XPG3 || XPG4] (vsnprintf): Likewise.
16343         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
16344         Likewise.
16345         [XPG3 || XPG4] (blksize_t): Likewise.
16346         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
16347         Likewise.
16348         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
16349         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
16350         [XPG3 || XPG4] (struct itimerspec): Likewise.
16351         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
16352         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
16353         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
16354         [XPG3 || XPG4] (clockid_t): Likewise.
16355         [XPG3 || XPG4] (timer_t): Likewise.
16356         [XPG3 || XPG4] (clock_getres): Likewise.
16357         [XPG3 || XPG4] (clock_gettime): Likewise.
16358         [XPG3 || XPG4] (clock_settime): Likewise.
16359         [XPG3 || XPG4] (nanosleep): Likewise.
16360         [XPG3 || XPG4] (timer_create): Likewise.
16361         [XPG3 || XPG4] (timer_delete): Likewise.
16362         [XPG3 || XPG4] (timer_gettime): Likewise.
16363         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16364         [XPG3 || XPG4] (timer_settime): Likewise.
16365         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16366         [XPG3 || XPG4] (getlogin_r): Likewise.
16367         [XPG3 || XPG4] (pread): Likewise.
16368         [XPG3 || XPG4] (pthread_atfork): Likewise.
16369         [XPG3 || XPG4] (pwrite): Likewise.
16370
16371         [BZ #14835]
16372         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16373         <bits/siginfo.h>.
16374
16375 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16376
16377         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16378         finalizing MALLSTREAM.
16379
16380         * sysdeps/mach/hurd/syncfs.c: New file.
16381
16382 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16383
16384         [BZ #14719]
16385         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16386         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16387         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16388         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16389         (_nss_dns_gethostbyname4_r): Likewise.
16390         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16391         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16392
16393 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16394
16395         [BZ #13763]
16396         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16397
16398 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16399
16400         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16401         * elf/cache.c (print_entry): Print ",AArch64" for
16402         FLAG_AARCH64_LIB64
16403
16404         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16405         * elf/cache.c (print_entry): Print ",hard-float" for
16406         FLAG_ARM_LIBHF.
16407
16408 2012-11-18  David S. Miller  <davem@davemloft.net>
16409
16410         With help from Joseph Myers.
16411         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16412         cutoff to 2**-13.
16413         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16414         cutoff to 2**-25.
16415         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16416         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16417         small.
16418         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16419         * math/libm-test.inc (y0_test): New tests.
16420         (y1_test): New tests.
16421         * sysdeps/i386/fpu/libm-test-ulps: Update.
16422         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16424
16425 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16426
16427         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16428         64-bit targets.
16429         * configure: Regenerated.
16430
16431 2012-11-17  David S. Miller  <davem@davemloft.net>
16432
16433         [BZ #14811]
16434         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16435         nonzero exponents with absolute value below 0x1p-128 to +/-
16436         0x1p-128.
16437
16438 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16439
16440         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16441
16442         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16443
16444         * posix/getconf-speclist.c: New file.
16445         * posix/posix-envs.def: Likewise.
16446         * posix/confstr.c (START_ENV_GROUP): New macro.
16447         (END_ENV_GROUP): Likewise.
16448         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16449         (KNOWN_PRESENT_ENV_STRING): Likewise.
16450         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16451         (UNKNOWN_ENVIRONMENT): Likewise.
16452         (confstr): Include posix-envs.def instead of handling
16453         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16454         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16455         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16456         (END_ENV_GROUP): Likewise.
16457         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16458         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16459         (UNKNOWN_ENVIRONMENT): Likewise.
16460         (__sysconf): Include posix-envs.def instead of handling associated
16461         cases directly here.
16462         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16463         preprocessing getconf-speclist.c rather than running getconf or
16464         generating empty file.
16465
16466 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16467
16468         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16469
16470 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16471
16472         [BZ #14672]
16473         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16474
16475 2012-11-16  David S. Miller  <davem@davemloft.net>
16476
16477         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16478         smaller than LDBL_EPSILON/2.0L, just return xm1.
16479
16480 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16481
16482         * elf/tst-array1.c (init): Set constructor priority to 1000.
16483         (fini): Set destructor priority to 1000.
16484         * elf/tst-array2dep.c: Likewise.
16485
16486 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16487
16488         [BZ #11741]
16489         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16490         (_IO_new_file_xsputn): Also return EOF if none of the input
16491         data was written when overflow failed.
16492         * libio/iopadn.c (_IO_padn): Likewise.
16493         * libio/iowpadn.c (_IO_wpadn): Likewise.
16494         * stdio-common/tst-put-error.c: Add copyright notice.
16495         (do_test): Add case for printing padded string.
16496         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16497         _IO_padn returned error.
16498         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16499         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16500         return EOF.
16501
16502 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16503
16504         * libio/libioP.h: Add comment note that the references to C++
16505         bits are now obsolete.
16506
16507 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16508
16509         * math/libm-test.inc (check_complex): Use asprintf.
16510
16511 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16512
16513         * debug/pcprofiledump.c (print_version): Update copyright year.
16514         * malloc/memusagestat.c (print_version): Likewise.
16515
16516 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16517
16518         [BZ #14831]
16519         * elf/Makefile (tests): Add tst-audit8.
16520         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16521         ($(objpfx)tst-audit8.out): New target.
16522         (tst-audit8-ENV): New variable.
16523         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16524         audit if l_reloc_result is NULL.
16525         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16526         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16527         * elf/tst-audit8.c: New file.
16528
16529 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16530
16531         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16532         * misc/Makefile (CFLAGS-select.c): Define.
16533         * posix/Makefile (CFLAGS-pause.c): Define.
16534
16535 2012-11-13  David S. Miller  <davem@davemloft.net>
16536
16537         * crypt/Makefile: Move test targets after toplevel Rules
16538         inclusion.  Grab any necessary sysdep routines when linking.
16539         * crypt/md5.c (md5_process_block): Remove define, we will always
16540         name it __md5_process_block.
16541         (md5_finish_ctx): Update md5_process_block call.
16542         (md5_stream): Likewise.
16543         (md5_process_bytes): Likewise.
16544         (md5_process_block): Rename to __md5_process_block and move to ...
16545         * crypt/md5-block.c: ... here.
16546         * crypt/sha256.c (sha256_process_block): Move to ...
16547         * crypt/sha256-block.c: ... here.
16548         * crypt/sha512.c (sha512_process_block): Move to ...
16549         * crypt/sha512-block.c: ... here.
16550         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16551         path.
16552         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16553         * sysdeps/sparc/sparc64/multiarch/Makefile
16554         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16555         crypt subdir.
16556         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16557         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16558         multiarch changes.
16559         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16560         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16561         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16562         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16563         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16564         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16565         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16566         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16567         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16568         file.
16569         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16570         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16571         file.
16572         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16573
16574 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16575
16576         * timezone/tzselect.ksh: Update from tzcode git revision
16577         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16578         * timezone/zdump.c: Likewise.
16579         * timezone/zic.c: Likewise.
16580         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16581         in TZVERSION setting, not $(PKGVERSION).
16582         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16583         REPORT_BUGS_TO settings.
16584
16585         [BZ #14838]
16586         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16587         macro.
16588
16589 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16590
16591         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16592         detection to immediately after _FP_ROUND().
16593         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16594         bits are 0.
16595
16596 2012-11-11  David S. Miller  <davem@davemloft.net>
16597
16598         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16599         inttypes.h
16600         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16601         __close rather than their public counterparts.
16602
16603 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16604
16605         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16606         file.
16607         [UNIX98] (sem_timedwait): Do not expect.
16608         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16609         [XPG4 || UNIX98] (sockatmark): Do not expect.
16610         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16611         (clock_getcpuclockid): Do not expect.
16612         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16613         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16614         Do not expect.
16615         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16616         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16617         [UNIX98] (vwscanf): Likewise.
16618         [UNIX98] (vswscanf): Likewise.
16619
16620 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16621
16622         * timezone/version.h: Remove file.
16623         * timezone/README: Do not refer to version.h.
16624         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16625         $(objpfx)version.h.
16626         ($(objpfx)zdump.o): Likewise.
16627         ($(objpfx)version.h): New target.
16628
16629         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16630         2012i.
16631         * timezone/README: Don't mention modification to tzselect.ksh.
16632         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16633         work on unmodified tzselect.ksh.  Substitute version numbers in
16634         tzselect.ksh.
16635
16636         * Makefile (format-me): Remove.
16637         (INSTALL): Adjust indentation.  Use commands directly instead of
16638         using $(format-me).
16639
16640         * aclocal.m4 (ACX_PKGVERSION): New macro.
16641         (ACX_BUGURL): Likewise.
16642         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16643         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16644         (REPORT_BUGS_TO): Likewise.
16645         * configure: Regenerated.
16646         * config.h.in (PKGVERSION): New macro.
16647         (REPORT_BUGS_TO): Likewise.
16648         * config.make.in (PKGVERSION): New variable.
16649         (PKGVERSION_TEXI): Likewise.
16650         (REPORT_BUGS_TO): Likewise.
16651         (REPORT_BUGS_TEXI): Likewise.
16652         * Makefile (format-me): Use -I$(common-objpfx)manual.
16653         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16654         ($(common-objpfx)manual/%): New target.
16655         (manual/%): Remove target.
16656         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16657         (print_version): Use PKGVERSION.
16658         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16659         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16660         and REPORT_BUGS_TO.
16661         ($(objpfx)xtrace): Likewise.
16662         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16663         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16664         (print_version): Use PKGVERSION.
16665         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16666         (do_version): Use PKGVERSION.
16667         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16668         REPORT_BUGS_TO.
16669         (common-ldd-rewrite): Likewise.
16670         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16671         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16672         (print_version): Use PKGVERSION.
16673         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16674         * elf/pldd.c (argp_program_bug_address): Remove variable.
16675         (more_help): New function.
16676         (argp): Use more_help.
16677         (print_version): Use PKGVERSION.
16678         * elf/sln.c (main): Use PKGVERSION.
16679         (usage): Use REPORT_BUGS_TO.
16680         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16681         (top level): Use PKGVERSION.
16682         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16683         (print_version): Use PKGVERSION.
16684         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16685         (print_version): Use PKGVERSION.
16686         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16687         (print_version): Use PKGVERSION.
16688         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16689         (print_version): Use PKGVERSION.
16690         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16691         (print_version): Use PKGVERSION.
16692         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16693         (print_version): Use PKGVERSION.
16694         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16695         and BUGURL.
16696         ($(objpfx)memusage): Likewise.
16697         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16698         (do_version): Use PKGVERSION.
16699         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16700         (print_version): Use PKGVERSION.
16701         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16702         ($PKGVERSION): New variable.
16703         ($REPORT_BUGS_TO): Likewise.
16704         (usage): Use $REPORT_BUGS_TO.
16705         (top level): Use $PKGVERSION.
16706         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16707         ($(objpfx)pkgvers.texi): New rule.
16708         ($(objpfx)stamp-pkgvers): Likewise.
16709         * manual/install.texi: Include pkgvers.texi.
16710         (--with-pkgversion): Document new configure option.
16711         (--with-bugurl): Likewise.
16712         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16713         than necessarily for this particular distribution.  Use
16714         REPORT_BUGS_TO for where to report bugs.
16715         * INSTALL: Regenerated.
16716         * manual/libc.texinfo: Include pkgvers.texi.
16717         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16718         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16719         (print_version): Use PKGVERSION.
16720         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16721         (print_version): Use PKGVERSION.
16722         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16723         (print_version): Use PKGVERSION.
16724         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16725         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16726         macro.
16727         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16728         (print_version): Use PKGVERSION.
16729         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16730         (print_version): Use PKGVERSION.
16731         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16732         and PKGVERSION.
16733
16734         * timezone/checktab.awk: Update from tzcode 2012i.
16735         * timezone/ialloc.c: Likewise.
16736         * timezone/private.h: Likewise.
16737         * timezone/scheck.c: Likewise.
16738         * timezone/tzfile.h: Likewise.
16739         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16740         (TZVERSION): Hardcode tzcode version number.
16741         * timezone/zdump.c: Update from tzcode 2012i.
16742         * timezone/zic.c: Likewise.
16743         * timezone/version.h: New file.
16744         * timezone/README: Describe version.h.  Update upstream location.
16745
16746         [BZ #14824]
16747         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16748         (mktemp): Enable declaration.
16749         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16750         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16751         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16752         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16753         Likewise.
16754         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16755         Likewise.
16756         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16757         Likewise.
16758         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16759         Likewise.
16760         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16761         Likewise.
16762         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16763         Likewise.
16764
16765         [BZ #14821]
16766         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16767         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16768         for copies of such integer values.
16769         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16770         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16771
16772 2012-11-09  Andreas Jaeger  <aj@suse.de>
16773
16774         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16775         definitions and declarations that are provided by
16776         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16777
16778 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16779
16780         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16781         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16782         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16783         definition.
16784
16785 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16786
16787         * elf/elf.h: Update comment before AArch64 relocations.
16788
16789 2012-11-07  David S. Miller  <davem@davemloft.net>
16790
16791         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16792         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16793         (__start_context): Declare.
16794         (__makecontext_ret): Delete.
16795         (__makecontext): Hook up __start_context instead of
16796         __makecontext_ret.
16797         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16798         (sysdep_routines): Add __start_context when in stdlib.
16799
16800 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16801
16802         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16803         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16804         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16805         hardcoded "nm".
16806         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16807         (READELF): New variable.  Use it instead of hardcoded "readelf".
16808
16809 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16810
16811         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16812         * sysdeps/x86/Makefile: Here.
16813         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16814         * sysdeps/x86/tst-xmmymm.sh: This.
16815
16816 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16817
16818         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16819         expectations.
16820         [UNIX98] (pthread_barrier_t): Do not expect.
16821         [UNIX98] (pthread_barrierattr_t): Likewise.
16822         [UNIX98] (pthread_spinlock_t): Likewise.
16823         [UNIX98] (pthread_barrier_destroy): Likewise.
16824         [UNIX98] (pthread_barrier_init): Likewise.
16825         [UNIX98] (pthread_barrier_wait): Likewise.
16826         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16827         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16828         [UNIX98] (pthread_barrierattr_init): Likewise.
16829         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16830         [UNIX98] (pthread_getcpuclockid): Likewise.
16831         [UNIX98] (pthread_mutex_timedlock): Likewise.
16832         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16833         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16834         [UNIX98] (pthread_sigmask): Likewise.
16835         [UNIX98] (pthread_spin_destroy): Likewise.
16836         [UNIX98] (pthread_spin_init): Likewise.
16837         [UNIX98] (pthread_spin_lock): Likewise.
16838         [UNIX98] (pthread_spin_trylock): Likewise.
16839         [UNIX98] (pthread_spin_unlock): Likewise.
16840         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16841         Do not expect.
16842         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16843         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16844         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16845         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16846         [XPG3 || XPG4] (pthread_key_t): Likewise.
16847         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16848         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16849         [XPG3 || XPG4] (pthread_once_t): Likewise.
16850         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16851         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16852         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16853         [XPG3 || XPG4] (pthread_t): Likewise.
16854
16855         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16856         not expect.
16857         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16858
16859         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16860         Change function return type to int.
16861
16862         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16863         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16864         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16865         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16866         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16867         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16868         [!POSIX] (posix_madvise): Likewise.
16869         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16870         && !UNIX98].
16871         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16872         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16873         (mode_t): Likewise.
16874         (posix_mem_offset): Likewise.
16875         (posix_typed_mem_get_info): Likewise.
16876         (posix_typed_mem_open): Likewise.
16877
16878         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16879         Change condition to [XOPEN2K8].
16880
16881         * conform/conformtest.pl: Preprocess allow-header data with -x c
16882         instead of from stdin.
16883         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16884         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16885         [C99-based standards] (cerfc): Likewise.
16886         [C99-based standards] (cexp2): Likewise.
16887         [C99-based standards] (cexpm1): Likewise.
16888         [C99-based standards] (clog10): Likewise.
16889         [C99-based standards] (clog1p): Likewise.
16890         [C99-based standards] (clog2): Likewise.
16891         [C99-based standards] (clgamma): Likewise.
16892         [C99-based standards] (ctgamma): Likewise.
16893         [C99-based standards] (cerff): Likewise.
16894         [C99-based standards] (cerfcf): Likewise.
16895         [C99-based standards] (cexp2f): Likewise.
16896         [C99-based standards] (cexpm1f): Likewise.
16897         [C99-based standards] (clog10f): Likewise.
16898         [C99-based standards] (clog1pf): Likewise.
16899         [C99-based standards] (clog2f): Likewise.
16900         [C99-based standards] (clgammaf): Likewise.
16901         [C99-based standards] (ctgammaf): Likewise.
16902         [C99-based standards] (cerfl): Likewise.
16903         [C99-based standards] (cerfcl): Likewise.
16904         [C99-based standards] (cexp2l): Likewise.
16905         [C99-based standards] (cexpm1l): Likewise.
16906         [C99-based standards] (clog10l): Likewise.
16907         [C99-based standards] (clog1pl): Likewise.
16908         [C99-based standards] (clog2l): Likewise.
16909         [C99-based standards] (clgammal): Likewise.
16910         [C99-based standards] (ctgammal): Likewise.
16911         * conform/data/inttypes.h-data [C99-based standards]: Include
16912         stdint.h-data.  Remove all expectations for stdint.h contents.
16913         [C99-based standards] (PRI*): Do not allow.
16914         [C99-based standards] (SCN*): Likewise.
16915         [C99-based standards] (*_t): Likewise.
16916         [C99-based-standards] (PRId8): Expect macro.
16917         [C99-based-standards] (PRIi8): Likewise.
16918         [C99-based-standards] (PRIo8): Likewise.
16919         [C99-based-standards] (PRIu8): Likewise.
16920         [C99-based-standards] (PRIx8): Likewise.
16921         [C99-based-standards] (PRIX8): Likewise.
16922         [C99-based-standards] (SCNd8): Likewise.
16923         [C99-based-standards] (SCNi8): Likewise.
16924         [C99-based-standards] (SCNo8): Likewise.
16925         [C99-based-standards] (SCNu8): Likewise.
16926         [C99-based-standards] (SCNx8): Likewise.
16927         [C99-based-standards] (PRIdLEAST8): Likewise.
16928         [C99-based-standards] (PRIiLEAST8): Likewise.
16929         [C99-based-standards] (PRIoLEAST8): Likewise.
16930         [C99-based-standards] (PRIuLEAST8): Likewise.
16931         [C99-based-standards] (PRIxLEAST8): Likewise.
16932         [C99-based-standards] (PRIXLEAST8): Likewise.
16933         [C99-based-standards] (SCNdLEAST8): Likewise.
16934         [C99-based-standards] (SCNiLEAST8): Likewise.
16935         [C99-based-standards] (SCNoLEAST8): Likewise.
16936         [C99-based-standards] (SCNuLEAST8): Likewise.
16937         [C99-based-standards] (SCNxLEAST8): Likewise.
16938         [C99-based-standards] (PRIdFAST8): Likewise.
16939         [C99-based-standards] (PRIiFAST8): Likewise.
16940         [C99-based-standards] (PRIoFAST8): Likewise.
16941         [C99-based-standards] (PRIuFAST8): Likewise.
16942         [C99-based-standards] (PRIxFAST8): Likewise.
16943         [C99-based-standards] (PRIXFAST8): Likewise.
16944         [C99-based-standards] (SCNdFAST8): Likewise.
16945         [C99-based-standards] (SCNiFAST8): Likewise.
16946         [C99-based-standards] (SCNoFAST8): Likewise.
16947         [C99-based-standards] (SCNuFAST8): Likewise.
16948         [C99-based-standards] (SCNxFAST8): Likewise.
16949         [C99-based-standards] (PRId16): Likewise.
16950         [C99-based-standards] (PRIi16): Likewise.
16951         [C99-based-standards] (PRIo16): Likewise.
16952         [C99-based-standards] (PRIu16): Likewise.
16953         [C99-based-standards] (PRIx16): Likewise.
16954         [C99-based-standards] (PRIX16): Likewise.
16955         [C99-based-standards] (SCNd16): Likewise.
16956         [C99-based-standards] (SCNi16): Likewise.
16957         [C99-based-standards] (SCNo16): Likewise.
16958         [C99-based-standards] (SCNu16): Likewise.
16959         [C99-based-standards] (SCNx16): Likewise.
16960         [C99-based-standards] (PRIdLEAST16): Likewise.
16961         [C99-based-standards] (PRIiLEAST16): Likewise.
16962         [C99-based-standards] (PRIoLEAST16): Likewise.
16963         [C99-based-standards] (PRIuLEAST16): Likewise.
16964         [C99-based-standards] (PRIxLEAST16): Likewise.
16965         [C99-based-standards] (PRIXLEAST16): Likewise.
16966         [C99-based-standards] (SCNdLEAST16): Likewise.
16967         [C99-based-standards] (SCNiLEAST16): Likewise.
16968         [C99-based-standards] (SCNoLEAST16): Likewise.
16969         [C99-based-standards] (SCNuLEAST16): Likewise.
16970         [C99-based-standards] (SCNxLEAST16): Likewise.
16971         [C99-based-standards] (PRIdFAST16): Likewise.
16972         [C99-based-standards] (PRIiFAST16): Likewise.
16973         [C99-based-standards] (PRIoFAST16): Likewise.
16974         [C99-based-standards] (PRIuFAST16): Likewise.
16975         [C99-based-standards] (PRIxFAST16): Likewise.
16976         [C99-based-standards] (PRIXFAST16): Likewise.
16977         [C99-based-standards] (SCNdFAST16): Likewise.
16978         [C99-based-standards] (SCNiFAST16): Likewise.
16979         [C99-based-standards] (SCNoFAST16): Likewise.
16980         [C99-based-standards] (SCNuFAST16): Likewise.
16981         [C99-based-standards] (SCNxFAST16): Likewise.
16982         [C99-based-standards] (PRId32): Likewise.
16983         [C99-based-standards] (PRIi32): Likewise.
16984         [C99-based-standards] (PRIo32): Likewise.
16985         [C99-based-standards] (PRIu32): Likewise.
16986         [C99-based-standards] (PRIx32): Likewise.
16987         [C99-based-standards] (PRIX32): Likewise.
16988         [C99-based-standards] (SCNd32): Likewise.
16989         [C99-based-standards] (SCNi32): Likewise.
16990         [C99-based-standards] (SCNo32): Likewise.
16991         [C99-based-standards] (SCNu32): Likewise.
16992         [C99-based-standards] (SCNx32): Likewise.
16993         [C99-based-standards] (PRIdLEAST32): Likewise.
16994         [C99-based-standards] (PRIiLEAST32): Likewise.
16995         [C99-based-standards] (PRIoLEAST32): Likewise.
16996         [C99-based-standards] (PRIuLEAST32): Likewise.
16997         [C99-based-standards] (PRIxLEAST32): Likewise.
16998         [C99-based-standards] (PRIXLEAST32): Likewise.
16999         [C99-based-standards] (SCNdLEAST32): Likewise.
17000         [C99-based-standards] (SCNiLEAST32): Likewise.
17001         [C99-based-standards] (SCNoLEAST32): Likewise.
17002         [C99-based-standards] (SCNuLEAST32): Likewise.
17003         [C99-based-standards] (SCNxLEAST32): Likewise.
17004         [C99-based-standards] (PRIdFAST32): Likewise.
17005         [C99-based-standards] (PRIiFAST32): Likewise.
17006         [C99-based-standards] (PRIoFAST32): Likewise.
17007         [C99-based-standards] (PRIuFAST32): Likewise.
17008         [C99-based-standards] (PRIxFAST32): Likewise.
17009         [C99-based-standards] (PRIXFAST32): Likewise.
17010         [C99-based-standards] (SCNdFAST32): Likewise.
17011         [C99-based-standards] (SCNiFAST32): Likewise.
17012         [C99-based-standards] (SCNoFAST32): Likewise.
17013         [C99-based-standards] (SCNuFAST32): Likewise.
17014         [C99-based-standards] (SCNxFAST32): Likewise.
17015         [C99-based-standards] (PRId64): Likewise.
17016         [C99-based-standards] (PRIi64): Likewise.
17017         [C99-based-standards] (PRIo64): Likewise.
17018         [C99-based-standards] (PRIu64): Likewise.
17019         [C99-based-standards] (PRIx64): Likewise.
17020         [C99-based-standards] (PRIX64): Likewise.
17021         [C99-based-standards] (SCNd64): Likewise.
17022         [C99-based-standards] (SCNi64): Likewise.
17023         [C99-based-standards] (SCNo64): Likewise.
17024         [C99-based-standards] (SCNu64): Likewise.
17025         [C99-based-standards] (SCNx64): Likewise.
17026         [C99-based-standards] (PRIdLEAST64): Likewise.
17027         [C99-based-standards] (PRIiLEAST64): Likewise.
17028         [C99-based-standards] (PRIoLEAST64): Likewise.
17029         [C99-based-standards] (PRIuLEAST64): Likewise.
17030         [C99-based-standards] (PRIxLEAST64): Likewise.
17031         [C99-based-standards] (PRIXLEAST64): Likewise.
17032         [C99-based-standards] (SCNdLEAST64): Likewise.
17033         [C99-based-standards] (SCNiLEAST64): Likewise.
17034         [C99-based-standards] (SCNoLEAST64): Likewise.
17035         [C99-based-standards] (SCNuLEAST64): Likewise.
17036         [C99-based-standards] (SCNxLEAST64): Likewise.
17037         [C99-based-standards] (PRIdFAST64): Likewise.
17038         [C99-based-standards] (PRIiFAST64): Likewise.
17039         [C99-based-standards] (PRIoFAST64): Likewise.
17040         [C99-based-standards] (PRIuFAST64): Likewise.
17041         [C99-based-standards] (PRIxFAST64): Likewise.
17042         [C99-based-standards] (PRIXFAST64): Likewise.
17043         [C99-based-standards] (SCNdFAST64): Likewise.
17044         [C99-based-standards] (SCNiFAST64): Likewise.
17045         [C99-based-standards] (SCNoFAST64): Likewise.
17046         [C99-based-standards] (SCNuFAST64): Likewise.
17047         [C99-based-standards] (SCNxFAST64): Likewise.
17048         [C99-based-standards] (PRIdMAX): Likewise.
17049         [C99-based-standards] (PRIiMAX): Likewise.
17050         [C99-based-standards] (PRIoMAX): Likewise.
17051         [C99-based-standards] (PRIuMAX): Likewise.
17052         [C99-based-standards] (PRIxMAX): Likewise.
17053         [C99-based-standards] (PRIXMAX): Likewise.
17054         [C99-based-standards] (SCNdMAX): Likewise.
17055         [C99-based-standards] (SCNiMAX): Likewise.
17056         [C99-based-standards] (SCNoMAX): Likewise.
17057         [C99-based-standards] (SCNuMAX): Likewise.
17058         [C99-based-standards] (SCNxMAX): Likewise.
17059         [C99-based-standards] (PRIdPTR): Likewise.
17060         [C99-based-standards] (PRIiPTR): Likewise.
17061         [C99-based-standards] (PRIoPTR): Likewise.
17062         [C99-based-standards] (PRIuPTR): Likewise.
17063         [C99-based-standards] (PRIxPTR): Likewise.
17064         [C99-based-standards] (PRIXPTR): Likewise.
17065         [C99-based-standards] (SCNdPTR): Likewise.
17066         [C99-based-standards] (SCNiPTR): Likewise.
17067         [C99-based-standards] (SCNoPTR): Likewise.
17068         [C99-based-standards] (SCNuPTR): Likewise.
17069         [C99-based-standards] (SCNxPTR): Likewise.
17070         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
17071         allow.
17072         * conform/data/stdint.h-data: Update comments to clarify
17073         requirements.
17074         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
17075         type.
17076         [C99-based standards] (INT8_MAX): Likewise.
17077         [C99-based standards] (INT16_MIN): Likewise.
17078         [C99-based standards] (INT16_MAX): Likewise.
17079         [C99-based standards] (INT32_MIN): Likewise.
17080         [C99-based standards] (INT32_MAX): Likewise.
17081         [C99-based standards] (INT64_MIN): Likewise.
17082         [C99-based standards] (INT64_MAX): Likewise.
17083         [C99-based standards] (UINT8_MAX): Likewise.
17084         [C99-based standards] (UINT16_MAX): Likewise.
17085         [C99-based standards] (UINT32_MAX): Likewise.
17086         [C99-based standards] (UINT64_MAX): Likewise.
17087         [C99-based standards] (INT_LEAST8_MIN): Likewise.
17088         [C99-based standards] (INT_LEAST8_MAX): Likewise.
17089         [C99-based standards] (INT_LEAST16_MIN): Likewise.
17090         [C99-based standards] (INT_LEAST16_MAX): Likewise.
17091         [C99-based standards] (INT_LEAST32_MIN): Likewise.
17092         [C99-based standards] (INT_LEAST32_MAX): Likewise.
17093         [C99-based standards] (INT_LEAST64_MIN): Likewise.
17094         [C99-based standards] (INT_LEAST64_MAX): Likewise.
17095         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
17096         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
17097         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
17098         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
17099         [C99-based standards] (INT_FAST8_MIN): Likewise.
17100         [C99-based standards] (INT_FAST8_MAX): Likewise.
17101         [C99-based standards] (INT_FAST16_MIN): Likewise.
17102         [C99-based standards] (INT_FAST16_MAX): Likewise.
17103         [C99-based standards] (INT_FAST32_MIN): Likewise.
17104         [C99-based standards] (INT_FAST32_MAX): Likewise.
17105         [C99-based standards] (INT_FAST64_MIN): Likewise.
17106         [C99-based standards] (INT_FAST64_MAX): Likewise.
17107         [C99-based standards] (UINT_FAST8_MAX): Likewise.
17108         [C99-based standards] (UINT_FAST16_MAX): Likewise.
17109         [C99-based standards] (UINT_FAST32_MAX): Likewise.
17110         [C99-based standards] (UINT_FAST64_MAX): Likewise.
17111         [C99-based standards] (INTPTR_MIN): Likewise.
17112         [C99-based standards] (INTPTR_MAX): Likewise.
17113         [C99-based standards] (UINTPTR_MAX): Likewise.
17114         [C99-based standards] (INTMAX_MIN): Likewise.
17115         [C99-based standards] (INTMAX_MAX): Likewise.
17116         [C99-based standards] (UINTMAX_MAX): Likewise.
17117         [C99-based standards] (PTRDIFF_MIN): Likewise.
17118         [C99-based standards] (PTRDIFF_MAX): Likewise.
17119         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
17120         [C99-based standards] (SIZE_MAX): Likewise.
17121         [C99-based standards] (WCHAR_MAX): Likewise.
17122         [C99-based standards] (WINT_MAX): Likewise.
17123         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
17124         constraint on value.
17125         [C99-based standards] (WCHAR_MIN): Likewise.
17126         [C99-based standards] (WINT_MIN): Likewise.
17127         [C99-based standards] (*_t): Allow.
17128         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
17129         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
17130         Include math.h-data and complex.h-data.  Remove all expectations
17131         of math.h and complex.h contents.
17132         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
17133         at end of line.
17134         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
17135         (struct tm): Expect tag.
17136         [C99-based-standards] (wcstof): Expect function.
17137         [C99-based-standards] (wcstold): Likewise.
17138         [C99-based-standards] (wcstoll): Likewise.
17139         [C99-based-standards] (wcstoull): Likewise.
17140         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
17141         macro-int-constant.  Specify type.
17142         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
17143         constraint on value.
17144         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17145         Specify type.
17146         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
17147         Specify value.
17148         [ISO C standards]: Do not allow headers.
17149         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
17150         wcs[abcdefghijklmnopqrstuvwxyz]*.
17151         [ISO C standards] (*_t): Do not allow.
17152         * conform/data/wctype.h-data [C99-based standards] (iswblank):
17153         Expect function.
17154         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
17155         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17156         Specify type.
17157         [ISO C standards]: Do not allow headers.
17158         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
17159         is[abcdefghijklmnopqrstuvwxyz]*.
17160         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
17161         to[abcdefghijklmnopqrstuvwxyz]*.
17162         [ISO C standards] (*_t): Do not allow.
17163         * conform/data/stdalign.h-data: New file.
17164         * conform/data/stdbool.h-data: Likewise.
17165         * conform/data/stdnoreturn.h-data: Likewise.
17166
17167 2012-11-07  Roland McGrath  <roland@hack.frob.com>
17168
17169         [BZ #14815]
17170         * manual/filesys.texi (Directory Entries): Typo fix.
17171         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
17172
17173 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
17174
17175         * elf/elf.h (EM_AARCH64): New macro.
17176         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
17177         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
17178         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
17179         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
17180         (R_AARCH64_TLSDESC): Likewise.
17181         (NT_ARM_TLS): Likewise.
17182         (NT_ARM_HW_BREAK): Likewise.
17183         (NT_ARM_HW_WATCH): Likewise.
17184
17185 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17186
17187         [BZ #14811]
17188         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
17189         (__ieee754_powl): Saturate nonzero exponents with absolute value
17190         below 0x1p-79 to +/- 0x1p-79.
17191         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
17192         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
17193         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
17194         nonzero exponents with absolute value below 0x1p-32 to +/-
17195         0x1p-32.
17196         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
17197         (__ieee754_powl): Saturate nonzero exponents with absolute value
17198         below 0x1p-79 to +/- 0x1p-79.
17199         * math/libm-test.inc (pow_test): Add more tests.
17200
17201 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17202
17203         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
17204         _dl_s390_cap_flags with kernel. Increase string length.
17205         (_dl_s390_platforms): Add z196 and zEC12.
17206
17207 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17208
17209         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
17210         Change XOPEN21K to XOPEN2K.
17211
17212 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17213
17214         * string/memmove.c: Use memcpy when possible.
17215
17216 2012-11-06  Andreas Jaeger  <aj@suse.de>
17217
17218         * po/eo.po: Update from translation team.
17219
17220 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
17221
17222         [BZ #14793]
17223         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
17224         exponent and small x and y exponents, scale x or y up.  Increase
17225         by 2 the exponent used in scaling up.
17226         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17227         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17228         * math/libm-test.inc (fma_test): Add more tests.
17229         (fma_test_towardzero): Likewise.
17230         (fma_test_downward): Likewise.
17231         (fma_test_upward): Likewise.
17232
17233 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
17234
17235         [BZ #14805]
17236         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
17237         fenv_t *.
17238
17239         [BZ #14801]
17240         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
17241         namespace for names of struct fields.
17242         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
17243         fenv_t fields.
17244         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
17245         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
17246
17247 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17248
17249         [BZ #3665]
17250         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
17251
17252 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17253
17254         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
17255         PTR_DEMANGLE.
17256
17257         [BZ #5246]
17258         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
17259         PTR_DEMANGLE.
17260
17261 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
17262
17263         [BZ #14797]
17264         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
17265         definitely overflow as x * y not x * y + z.
17266         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17267         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17268         * math/libm-test.inc (fma_test): Add more tests.
17269         (fma_test_towardzero): Likewise.
17270         (fma_test_downward): Likewise.
17271         (fma_test_upward): Likewise.
17272
17273 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17274
17275         [BZ #157]
17276
17277         * include/stub-tag.h: Remove file.
17278         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
17279         '#include' of it.
17280         * manual/maint.texi (Porting): Don't reference it.
17281         * Makerules ($(objpfx)stubs): Likewise.
17282         * dirent/closedir.c: Don't include <stub-tag.h>.
17283         * dirent/dirfd.c: Likewise.
17284         * dirent/fdopendir.c: Likewise.
17285         * dirent/getdents.c: Likewise.
17286         * dirent/getdents64.c: Likewise.
17287         * dirent/opendir.c: Likewise.
17288         * dirent/readdir.c: Likewise.
17289         * dirent/readdir64.c: Likewise.
17290         * dirent/readdir64_r.c: Likewise.
17291         * dirent/readdir_r.c: Likewise.
17292         * dirent/rewinddir.c: Likewise.
17293         * dirent/seekdir.c: Likewise.
17294         * dirent/telldir.c: Likewise.
17295         * gmon/profil.c: Likewise.
17296         * grp/setgroups.c: Likewise.
17297         * inet/if_index.c: Likewise.
17298         * io/access.c: Likewise.
17299         * io/chdir.c: Likewise.
17300         * io/chmod.c: Likewise.
17301         * io/chown.c: Likewise.
17302         * io/close.c: Likewise.
17303         * io/dup.c: Likewise.
17304         * io/dup2.c: Likewise.
17305         * io/dup3.c: Likewise.
17306         * io/euidaccess.c: Likewise.
17307         * io/faccessat.c: Likewise.
17308         * io/fchdir.c: Likewise.
17309         * io/fchmod.c: Likewise.
17310         * io/fchmodat.c: Likewise.
17311         * io/fchown.c: Likewise.
17312         * io/fchownat.c: Likewise.
17313         * io/fcntl.c: Likewise.
17314         * io/flock.c: Likewise.
17315         * io/fstatfs.c: Likewise.
17316         * io/fstatfs64.c: Likewise.
17317         * io/fstatvfs.c: Likewise.
17318         * io/fstatvfs64.c: Likewise.
17319         * io/futimens.c: Likewise.
17320         * io/fxstat.c: Likewise.
17321         * io/fxstat64.c: Likewise.
17322         * io/fxstatat.c: Likewise.
17323         * io/fxstatat64.c: Likewise.
17324         * io/getcwd.c: Likewise.
17325         * io/isatty.c: Likewise.
17326         * io/lchmod.c: Likewise.
17327         * io/lchown.c: Likewise.
17328         * io/link.c: Likewise.
17329         * io/linkat.c: Likewise.
17330         * io/lseek.c: Likewise.
17331         * io/lseek64.c: Likewise.
17332         * io/lxstat64.c: Likewise.
17333         * io/mkdir.c: Likewise.
17334         * io/mkdirat.c: Likewise.
17335         * io/mkfifo.c: Likewise.
17336         * io/mkfifoat.c: Likewise.
17337         * io/open.c: Likewise.
17338         * io/open64.c: Likewise.
17339         * io/openat.c: Likewise.
17340         * io/openat64.c: Likewise.
17341         * io/pipe.c: Likewise.
17342         * io/pipe2.c: Likewise.
17343         * io/poll.c: Likewise.
17344         * io/posix_fadvise.c: Likewise.
17345         * io/posix_fadvise64.c: Likewise.
17346         * io/posix_fallocate.c: Likewise.
17347         * io/posix_fallocate64.c: Likewise.
17348         * io/read.c: Likewise.
17349         * io/readlink.c: Likewise.
17350         * io/readlinkat.c: Likewise.
17351         * io/rmdir.c: Likewise.
17352         * io/sendfile.c: Likewise.
17353         * io/sendfile64.c: Likewise.
17354         * io/statfs.c: Likewise.
17355         * io/statfs64.c: Likewise.
17356         * io/statvfs.c: Likewise.
17357         * io/statvfs64.c: Likewise.
17358         * io/symlink.c: Likewise.
17359         * io/symlinkat.c: Likewise.
17360         * io/ttyname.c: Likewise.
17361         * io/ttyname_r.c: Likewise.
17362         * io/umask.c: Likewise.
17363         * io/unlink.c: Likewise.
17364         * io/unlinkat.c: Likewise.
17365         * io/utime.c: Likewise.
17366         * io/utimensat.c: Likewise.
17367         * io/write.c: Likewise.
17368         * io/xmknod.c: Likewise.
17369         * io/xmknodat.c: Likewise.
17370         * io/xstat.c: Likewise.
17371         * io/xstat64.c: Likewise.
17372         * login/getpt.c: Likewise.
17373         * login/grantpt.c: Likewise.
17374         * login/unlockpt.c: Likewise.
17375         * math/e_acoshl.c: Likewise.
17376         * math/e_acosl.c: Likewise.
17377         * math/e_asinl.c: Likewise.
17378         * math/e_atan2l.c: Likewise.
17379         * math/e_atanhl.c: Likewise.
17380         * math/e_coshl.c: Likewise.
17381         * math/e_expl.c: Likewise.
17382         * math/e_fmodl.c: Likewise.
17383         * math/e_gammal_r.c: Likewise.
17384         * math/e_hypotl.c: Likewise.
17385         * math/e_j0l.c: Likewise.
17386         * math/e_j1l.c: Likewise.
17387         * math/e_jnl.c: Likewise.
17388         * math/e_lgammal_r.c: Likewise.
17389         * math/e_log10l.c: Likewise.
17390         * math/e_log2l.c: Likewise.
17391         * math/e_logl.c: Likewise.
17392         * math/e_powl.c: Likewise.
17393         * math/e_rem_pio2l.c: Likewise.
17394         * math/e_sinhl.c: Likewise.
17395         * math/e_sqrtl.c: Likewise.
17396         * math/fclrexcpt.c: Likewise.
17397         * math/fedisblxcpt.c: Likewise.
17398         * math/feenablxcpt.c: Likewise.
17399         * math/fegetenv.c: Likewise.
17400         * math/fegetexcept.c: Likewise.
17401         * math/fegetround.c: Likewise.
17402         * math/feholdexcpt.c: Likewise.
17403         * math/fesetenv.c: Likewise.
17404         * math/fesetround.c: Likewise.
17405         * math/feupdateenv.c: Likewise.
17406         * math/fgetexcptflg.c: Likewise.
17407         * math/fraiseexcpt.c: Likewise.
17408         * math/fsetexcptflg.c: Likewise.
17409         * math/ftestexcept.c: Likewise.
17410         * math/k_cosl.c: Likewise.
17411         * math/k_rem_pio2l.c: Likewise.
17412         * math/k_sinl.c: Likewise.
17413         * math/k_tanl.c: Likewise.
17414         * math/s_asinhl.c: Likewise.
17415         * math/s_atanl.c: Likewise.
17416         * math/s_cbrtl.c: Likewise.
17417         * math/s_erfl.c: Likewise.
17418         * math/s_expm1l.c: Likewise.
17419         * math/s_log1pl.c: Likewise.
17420         * math/s_tanhl.c: Likewise.
17421         * misc/acct.c: Likewise.
17422         * misc/brk.c: Likewise.
17423         * misc/chflags.c: Likewise.
17424         * misc/chroot.c: Likewise.
17425         * misc/fchflags.c: Likewise.
17426         * misc/fgetxattr.c: Likewise.
17427         * misc/flistxattr.c: Likewise.
17428         * misc/fremovexattr.c: Likewise.
17429         * misc/fsetxattr.c: Likewise.
17430         * misc/fsync.c: Likewise.
17431         * misc/ftruncate.c: Likewise.
17432         * misc/futimes.c: Likewise.
17433         * misc/futimesat.c: Likewise.
17434         * misc/getdomain.c: Likewise.
17435         * misc/getdtsz.c: Likewise.
17436         * misc/gethostid.c: Likewise.
17437         * misc/gethostname.c: Likewise.
17438         * misc/getloadavg.c: Likewise.
17439         * misc/getpagesize.c: Likewise.
17440         * misc/getsysstats.c: Likewise.
17441         * misc/getxattr.c: Likewise.
17442         * misc/gtty.c: Likewise.
17443         * misc/ioctl.c: Likewise.
17444         * misc/lgetxattr.c: Likewise.
17445         * misc/listxattr.c: Likewise.
17446         * misc/llistxattr.c: Likewise.
17447         * misc/lremovexattr.c: Likewise.
17448         * misc/lsetxattr.c: Likewise.
17449         * misc/lutimes.c: Likewise.
17450         * misc/madvise.c: Likewise.
17451         * misc/mincore.c: Likewise.
17452         * misc/mlock.c: Likewise.
17453         * misc/mlockall.c: Likewise.
17454         * misc/mmap.c: Likewise.
17455         * misc/mprotect.c: Likewise.
17456         * misc/msync.c: Likewise.
17457         * misc/munlock.c: Likewise.
17458         * misc/munlockall.c: Likewise.
17459         * misc/munmap.c: Likewise.
17460         * misc/preadv.c: Likewise.
17461         * misc/preadv64.c: Likewise.
17462         * misc/ptrace.c: Likewise.
17463         * misc/pwritev.c: Likewise.
17464         * misc/pwritev64.c: Likewise.
17465         * misc/readv.c: Likewise.
17466         * misc/reboot.c: Likewise.
17467         * misc/remap_file_pages.c: Likewise.
17468         * misc/removexattr.c: Likewise.
17469         * misc/revoke.c: Likewise.
17470         * misc/select.c: Likewise.
17471         * misc/setdomain.c: Likewise.
17472         * misc/setegid.c: Likewise.
17473         * misc/seteuid.c: Likewise.
17474         * misc/sethostid.c: Likewise.
17475         * misc/sethostname.c: Likewise.
17476         * misc/setregid.c: Likewise.
17477         * misc/setreuid.c: Likewise.
17478         * misc/setxattr.c: Likewise.
17479         * misc/sstk.c: Likewise.
17480         * misc/stty.c: Likewise.
17481         * misc/swapoff.c: Likewise.
17482         * misc/swapon.c: Likewise.
17483         * misc/sync.c: Likewise.
17484         * misc/syncfs.c: Likewise.
17485         * misc/syscall.c: Likewise.
17486         * misc/truncate.c: Likewise.
17487         * misc/ualarm.c: Likewise.
17488         * misc/usleep.c: Likewise.
17489         * misc/ustat.c: Likewise.
17490         * misc/utimes.c: Likewise.
17491         * misc/vhangup.c: Likewise.
17492         * misc/writev.c: Likewise.
17493         * posix/_exit.c: Likewise.
17494         * posix/alarm.c: Likewise.
17495         * posix/execve.c: Likewise.
17496         * posix/fexecve.c: Likewise.
17497         * posix/fork.c: Likewise.
17498         * posix/fpathconf.c: Likewise.
17499         * posix/getaddrinfo.c: Likewise.
17500         * posix/getegid.c: Likewise.
17501         * posix/geteuid.c: Likewise.
17502         * posix/getgid.c: Likewise.
17503         * posix/getgroups.c: Likewise.
17504         * posix/getlogin.c: Likewise.
17505         * posix/getlogin_r.c: Likewise.
17506         * posix/getpgid.c: Likewise.
17507         * posix/getpid.c: Likewise.
17508         * posix/getppid.c: Likewise.
17509         * posix/getresgid.c: Likewise.
17510         * posix/getresuid.c: Likewise.
17511         * posix/getsid.c: Likewise.
17512         * posix/getuid.c: Likewise.
17513         * posix/glob64.c: Likewise.
17514         * posix/nanosleep.c: Likewise.
17515         * posix/pathconf.c: Likewise.
17516         * posix/pause.c: Likewise.
17517         * posix/posix_madvise.c: Likewise.
17518         * posix/pread.c: Likewise.
17519         * posix/pread64.c: Likewise.
17520         * posix/pwrite.c: Likewise.
17521         * posix/pwrite64.c: Likewise.
17522         * posix/sched_getaffinity.c: Likewise.
17523         * posix/sched_getp.c: Likewise.
17524         * posix/sched_gets.c: Likewise.
17525         * posix/sched_primax.c: Likewise.
17526         * posix/sched_primin.c: Likewise.
17527         * posix/sched_rr_gi.c: Likewise.
17528         * posix/sched_setaffinity.c: Likewise.
17529         * posix/sched_setp.c: Likewise.
17530         * posix/sched_sets.c: Likewise.
17531         * posix/sched_yield.c: Likewise.
17532         * posix/setgid.c: Likewise.
17533         * posix/setlogin.c: Likewise.
17534         * posix/setpgid.c: Likewise.
17535         * posix/setresgid.c: Likewise.
17536         * posix/setresuid.c: Likewise.
17537         * posix/setsid.c: Likewise.
17538         * posix/setuid.c: Likewise.
17539         * posix/sleep.c: Likewise.
17540         * posix/spawni.c: Likewise.
17541         * posix/sysconf.c: Likewise.
17542         * posix/times.c: Likewise.
17543         * posix/wait.c: Likewise.
17544         * posix/wait3.c: Likewise.
17545         * posix/wait4.c: Likewise.
17546         * posix/waitpid.c: Likewise.
17547         * resolv/gai_sigqueue.c: Likewise.
17548         * resource/getpriority.c: Likewise.
17549         * resource/getrlimit.c: Likewise.
17550         * resource/getrusage.c: Likewise.
17551         * resource/nice.c: Likewise.
17552         * resource/setpriority.c: Likewise.
17553         * resource/setrlimit.c: Likewise.
17554         * resource/ulimit.c: Likewise.
17555         * rt/aio_cancel.c: Likewise.
17556         * rt/aio_fsync.c: Likewise.
17557         * rt/aio_read.c: Likewise.
17558         * rt/aio_sigqueue.c: Likewise.
17559         * rt/aio_suspend.c: Likewise.
17560         * rt/aio_write.c: Likewise.
17561         * rt/clock_getres.c: Likewise.
17562         * rt/clock_gettime.c: Likewise.
17563         * rt/clock_nanosleep.c: Likewise.
17564         * rt/clock_settime.c: Likewise.
17565         * rt/lio_listio.c: Likewise.
17566         * rt/mq_close.c: Likewise.
17567         * rt/mq_getattr.c: Likewise.
17568         * rt/mq_notify.c: Likewise.
17569         * rt/mq_open.c: Likewise.
17570         * rt/mq_receive.c: Likewise.
17571         * rt/mq_send.c: Likewise.
17572         * rt/mq_setattr.c: Likewise.
17573         * rt/mq_timedreceive.c: Likewise.
17574         * rt/mq_timedsend.c: Likewise.
17575         * rt/mq_unlink.c: Likewise.
17576         * rt/shm_open.c: Likewise.
17577         * rt/shm_unlink.c: Likewise.
17578         * rt/timer_create.c: Likewise.
17579         * rt/timer_delete.c: Likewise.
17580         * rt/timer_getoverr.c: Likewise.
17581         * rt/timer_gettime.c: Likewise.
17582         * rt/timer_settime.c: Likewise.
17583         * setjmp/__longjmp.c: Likewise.
17584         * setjmp/setjmp.c: Likewise.
17585         * signal/kill.c: Likewise.
17586         * signal/killpg.c: Likewise.
17587         * signal/raise.c: Likewise.
17588         * signal/sigaction.c: Likewise.
17589         * signal/sigaltstack.c: Likewise.
17590         * signal/sigblock.c: Likewise.
17591         * signal/sigignore.c: Likewise.
17592         * signal/sigintr.c: Likewise.
17593         * signal/signal.c: Likewise.
17594         * signal/sigpause.c: Likewise.
17595         * signal/sigpending.c: Likewise.
17596         * signal/sigqueue.c: Likewise.
17597         * signal/sigreturn.c: Likewise.
17598         * signal/sigset.c: Likewise.
17599         * signal/sigsetmask.c: Likewise.
17600         * signal/sigstack.c: Likewise.
17601         * signal/sigsuspend.c: Likewise.
17602         * signal/sigtimedwait.c: Likewise.
17603         * signal/sigvec.c: Likewise.
17604         * signal/sigwait.c: Likewise.
17605         * signal/sigwaitinfo.c: Likewise.
17606         * signal/sysv_signal.c: Likewise.
17607         * socket/accept.c: Likewise.
17608         * socket/accept4.c: Likewise.
17609         * socket/bind.c: Likewise.
17610         * socket/connect.c: Likewise.
17611         * socket/getpeername.c: Likewise.
17612         * socket/getsockname.c: Likewise.
17613         * socket/getsockopt.c: Likewise.
17614         * socket/isfdtype.c: Likewise.
17615         * socket/listen.c: Likewise.
17616         * socket/recv.c: Likewise.
17617         * socket/recvfrom.c: Likewise.
17618         * socket/recvmsg.c: Likewise.
17619         * socket/send.c: Likewise.
17620         * socket/sendmsg.c: Likewise.
17621         * socket/sendto.c: Likewise.
17622         * socket/setsockopt.c: Likewise.
17623         * socket/shutdown.c: Likewise.
17624         * socket/sockatmark.c: Likewise.
17625         * socket/socket.c: Likewise.
17626         * socket/socketpair.c: Likewise.
17627         * stdio-common/ctermid.c: Likewise.
17628         * stdio-common/cuserid.c: Likewise.
17629         * stdio-common/remove.c: Likewise.
17630         * stdio-common/rename.c: Likewise.
17631         * stdio-common/renameat.c: Likewise.
17632         * stdio-common/tempname.c: Likewise.
17633         * stdlib/getcontext.c: Likewise.
17634         * stdlib/makecontext.c: Likewise.
17635         * stdlib/setcontext.c: Likewise.
17636         * stdlib/swapcontext.c: Likewise.
17637         * stdlib/system.c: Likewise.
17638         * streams/fattach.c: Likewise.
17639         * streams/fdetach.c: Likewise.
17640         * streams/getmsg.c: Likewise.
17641         * streams/getpmsg.c: Likewise.
17642         * streams/putmsg.c: Likewise.
17643         * streams/putpmsg.c: Likewise.
17644         * sysdeps/unix/bsd/getpt.c: Likewise.
17645         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17646         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17647         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17649         Likewise.
17650         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17651         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17652         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17653         * sysvipc/msgctl.c: Likewise.
17654         * sysvipc/msgget.c: Likewise.
17655         * sysvipc/msgrcv.c: Likewise.
17656         * sysvipc/msgsnd.c: Likewise.
17657         * sysvipc/semctl.c: Likewise.
17658         * sysvipc/semget.c: Likewise.
17659         * sysvipc/semop.c: Likewise.
17660         * sysvipc/semtimedop.c: Likewise.
17661         * sysvipc/shmat.c: Likewise.
17662         * sysvipc/shmctl.c: Likewise.
17663         * sysvipc/shmdt.c: Likewise.
17664         * sysvipc/shmget.c: Likewise.
17665         * termios/tcdrain.c: Likewise.
17666         * termios/tcflow.c: Likewise.
17667         * termios/tcflush.c: Likewise.
17668         * termios/tcgetattr.c: Likewise.
17669         * termios/tcgetpgrp.c: Likewise.
17670         * termios/tcsendbrk.c: Likewise.
17671         * termios/tcsetattr.c: Likewise.
17672         * termios/tcsetpgrp.c: Likewise.
17673         * time/adjtime.c: Likewise.
17674         * time/clock.c: Likewise.
17675         * time/getitimer.c: Likewise.
17676         * time/gettimeofday.c: Likewise.
17677         * time/setitimer.c: Likewise.
17678         * time/settimeofday.c: Likewise.
17679         * time/stime.c: Likewise.
17680         * time/time.c: Likewise.
17681
17682 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17683
17684         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17685         /usr/old/bin.
17686
17687         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17688         instead of spaces.
17689         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17690
17691 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17692
17693         [BZ #14796]
17694         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17695         FE_TONEAREST before applying Dekker multiplication and Knuth
17696         addition.  Clear inexact exceptions and check for exact zero
17697         results afterwards.
17698         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17699         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17700         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17701         * math/libm-test.inc (fma_test): Add more tests.
17702         (fma_test_towardzero): Likewise.
17703         (fma_test_downward): Likewise.
17704         (fma_test_upward): Likewise.
17705         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17706         function.
17707         (libc_fesetround): New macro.
17708         (libc_fesetroundf): Likewise.
17709         (libc_fesetroundl): Likewise.
17710         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17711         function.
17712         (libc_fesetround_387): Likewise.
17713         (libc_fesetroundf): New macro.
17714         (libc_fesetround): Likewise.
17715         (libc_fesetroundl): Likewise.
17716         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17717         function.
17718         (libc_fesetroundf): New macro.
17719         (libc_fesetround): Likewise.
17720         (libc_fesetroundl): Likewise.
17721         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17722         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17723         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17724         libm_hidden_ver.
17725         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17726         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17727         libm_hidden_def.
17728         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17729         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17730         libm_hidden_ver.
17731         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17732         libm_hidden_def.
17733
17734         [BZ #3439]
17735         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17736         integer constant usable in #if and use that to give value to enum
17737         constant.
17738         (FE_DIVBYZERO): Likewise.
17739         (FE_UNDERFLOW): Likewise.
17740         (FE_OVERFLOW): Likewise.
17741         (FE_INVALID): Likewise.
17742         (FE_INVALID_SNAN): Likewise.
17743         (FE_INVALID_ISI): Likewise.
17744         (FE_INVALID_IDI): Likewise.
17745         (FE_INVALID_ZDZ): Likewise.
17746         (FE_INVALID_IMZ): Likewise.
17747         (FE_INVALID_COMPARE): Likewise.
17748         (FE_INVALID_SOFTWARE): Likewise.
17749         (FE_INVALID_SQRT): Likewise.
17750         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17751         (FE_TONEAREST): Likewise.
17752         (FE_TOWARDZERO): Likewise.
17753         (FE_UPWARD): Likewise.
17754         (FE_DOWNWARD): Likewise.
17755         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17756         (FE_DIVBYZERO): Likewise.
17757         (FE_OVERFLOW): Likewise.
17758         (FE_UNDERFLOW): Likewise.
17759         (FE_INEXACT): Likewise.
17760         (FE_TONEAREST): Likewise.
17761         (FE_DOWNWARD): Likewise.
17762         (FE_UPWARD): Likewise.
17763         (FE_TOWARDZERO): Likewise.
17764         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17765         (FE_UNDERFLOW): Likewise.
17766         (FE_OVERFLOW): Likewise.
17767         (FE_DIVBYZERO): Likewise.
17768         (FE_INVALID): Likewise.
17769         (FE_TONEAREST): Likewise.
17770         (FE_TOWARDZERO): Likewise.
17771         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17772         (FE_OVERFLOW): Likewise.
17773         (FE_UNDERFLOW): Likewise.
17774         (FE_DIVBYZERO): Likewise.
17775         (FE_INEXACT): Likewise.
17776         (FE_TONEAREST): Likewise.
17777         (FE_TOWARDZERO): Likewise.
17778         (FE_UPWARD): Likewise.
17779         (FE_DOWNWARD): Likewise.
17780         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17781         (FE_DIVBYZERO): Likewise.
17782         (FE_OVERFLOW): Likewise.
17783         (FE_UNDERFLOW): Likewise.
17784         (FE_INEXACT): Likewise.
17785         (FE_TONEAREST): Likewise.
17786         (FE_DOWNWARD): Likewise.
17787         (FE_UPWARD): Likewise.
17788         (FE_TOWARDZERO): Likewise.
17789
17790 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17791
17792         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17793
17794 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17795
17796         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17797         commands.  Quote $PWD.
17798         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17799         -x" by "export".
17800         (remove_newlines): Remove.
17801
17802 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17803
17804         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17805         * stdlib/stdlib.h (atof): Moved to ...
17806         * include/bits/stdlib-float.h: Here.  New file.
17807         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17808         * stdlib/bits/stdlib-float.h: New file.
17809         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17810         -mno-sse -mno-mmx.
17811         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17812         <xmmintrin.h>.
17813
17814 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17815
17816         * conform/conformtest.pl (@headers): Add fenv.h.
17817         * conform/data/fenv.h-data: New file.
17818         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17819         include of <math/fenv.h>.
17820
17821         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17822         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17823         && !UNIX98].  Enables tests for XOPEN2K8.
17824         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17825         POSIX2008]: Likewise.
17826
17827         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17828         (struct rusage): Do not expect type or its members.
17829
17830         [BZ #3439]
17831         * math/math.h (FP_NAN): Define macro to integer constant usable in
17832         #if and use that to give value to enum constant.
17833         (FP_INFINITE): Likewise.
17834         (FP_ZERO): Likewise.
17835         (FP_SUBNORMAL): Likewise.
17836         (FP_NORMAL): Likewise.
17837
17838 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17839
17840         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17841         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17842         arguments.
17843
17844 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17845
17846         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17847         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17848         autoconf-time if not.
17849         * configure.in: Remove AC_PREREQ.
17850
17851 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17852
17853         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17854         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17855         of the internal implementation.
17856
17857 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17858
17859         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17860         except include of <misc/sys/syslog.h>.
17861
17862 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17863
17864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17865         function returns with a NULL context exit with zero.
17866
17867 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17868
17869         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17870
17871 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17872
17873         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17874         (run_program_cmd): This.
17875         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17876         (tst_langinfo): New variable.  Use it.
17877
17878 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17879
17880         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17881         floating point opcodes.
17882
17883 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17884
17885         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17886         variable.
17887
17888         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17889
17890         * sysdeps/mach/hurd/powerpc: Remove directory.
17891         * sysdeps/mach/powerpc: Likewise.
17892
17893 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17894
17895         * scripts/check-local-headers.sh: Ignore c++ headers.
17896
17897 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17898
17899         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17900         __libc_cleanup_region_start argument.
17901
17902 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17903
17904         [BZ #14784]
17905         [BZ #14785]
17906         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17907         x * y using scaling, not as x * y + z.
17908         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17909         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17910         * math/libm-test.inc (fma_test): Add more tests.
17911         (fma_test_towardzero): Likewise.
17912         (fma_test_downward): Likewise.
17913         (fma_test_upward): Likewise.
17914
17915 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17916
17917         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17918
17919 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17920
17921         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17922         New variable.
17923
17924 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17925
17926         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17927
17928 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17929
17930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17931         Fix sort order.
17932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17933         Likewise.
17934
17935 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17936
17937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17938         Fix the order of the list for glibc 2.17.
17939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17940         Likewise.
17941
17942 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17943
17944         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17945
17946 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17947
17948         [BZ #14610]
17949         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17950         for low part of x being zero before using __atanl (y).
17951         * math/libm-test.inc (atan2_test): Add another test.
17952
17953         * manual/install.texi (Configuring and compiling): Document
17954         general use of test-wrapper and test-wrapper-env.
17955         * INSTALL: Regenerated.
17956
17957         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17958         (__fma): Do not extract and scale down low bits on after-rounding
17959         systems when result rounded to normal precision would have normal
17960         exponent.
17961         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17962         (__fmal): Do not extract and scale down low bits on after-rounding
17963         systems when result rounded to normal precision would have normal
17964         exponent.
17965         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17966         (__fmal): Do not extract and scale down low bits on after-rounding
17967         systems when result rounded to normal precision would have normal
17968         exponent.
17969         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17970         macro.
17971         (fma_test): Add more tests.
17972         (fma_test_towardzero): Likewise.
17973         (fma_test_downward): Likewise.
17974         (fma_test_upward): Likewise.
17975
17976 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17977
17978         * sysdeps/i386/tininess.h: Renamed to ...
17979         * sysdeps/x86/tininess.h: This.
17980         * sysdeps/x86_64/tininess.h: Removed.
17981
17982 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17983
17984         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17985         input.  Use $(build-program-cmd).
17986         ($(objpfx)tst-array1-static.out): Likewise.
17987         ($(objpfx)tst-array2.out): Likewise.
17988         ($(objpfx)tst-array3.out): Likewise.
17989         ($(objpfx)tst-array4.out): Likewise.
17990         ($(objpfx)tst-array5.out): Likewise.
17991         ($(objpfx)tst-array5-static.out): Likewise.
17992
17993 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
17994
17995         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
17996         if defined.
17997
17998         * nss/nsswitch.h (nss_interface_function): Provide new
17999         macro for use with NSS functions.
18000         * grp/initgroups.c: Use new macro.
18001         * nss/getXXbyYY.c: Likewise.
18002         * nss/getXXbyYY_r.c: Likewise.
18003         * nss/getXXent.c: Likewise.
18004         * nss/getXXent_r.c: Likewise.
18005         * sysdeps/posix/getaddrinfo.c: Likewise.
18006
18007 2012-10-30  Andreas Jaeger  <aj@suse.de>
18008
18009         * po/ru.po: Update Russion translation from translation project.
18010
18011 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
18012
18013         [BZ #14152]
18014         [BZ #14783]
18015         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
18016         result and shift together with sticky bit instead of replicating
18017         round-to-nearest rounding.
18018         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18019         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18020         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
18021         missing underflow exceptions.
18022         (fma_test_towardzero): Add more tests.
18023         (fma_test_downward): Likewise.
18024         (fma_test_upward): Likewise.
18025
18026         [BZ #14047]
18027         * sysdeps/generic/tininess.h: New file.
18028         * sysdeps/i386/tininess.h: Likewise.
18029         * sysdeps/sh/tininess.h: Likewise.
18030         * sysdeps/x86_64/tininess.h: Likewise.
18031         * stdlib/tst-strtod-underflow.c: Likewise.
18032         * stdlib/tst-tininess.c: Likewise.
18033         * stdlib/strtod_l.c: Include <tininess.h>.
18034         (round_and_return): Do not set errno for exact underflow cases.
18035         Force an underflow exception when setting errno for underflow.
18036         Determine underflow based on rounding to normal precision if
18037         TININESS_AFTER_ROUNDING.
18038         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
18039         ERANGE for exact underflow cases.
18040         * stdlib/Makefile (tests): Add tst-tininess and
18041         tst-strtod-underflow.
18042         ($(objpfx)tst-tininess): Use $(link-libm).
18043         ($(objpfx)tst-strtod-underflow): Likewise.
18044
18045 2012-10-30  Andreas Jaeger  <aj@suse.de>
18046
18047         [BZ#14767]
18048         * elf/Makefile (tests): Remove conditional for have-initfini-array
18049         since this is now always required and the variable does not exist
18050         anymore.
18051         (tests-static): Likewise.
18052         (modules-names): Likewise.
18053
18054         * po/eo.po: Add Esperanto translation from translation project.
18055
18056         * elf/tst-array1.c (fini_array): Make writeable so that it can be
18057         merged with constructor/destructor.
18058         (init_array): Likewise.
18059         * elf/tst-array2dep.c (fini_array): Likewise.
18060         (init_array): Likewise.
18061
18062 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
18063
18064         * manual/message.texi: Delete @cartouche tags.
18065
18066 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
18067
18068         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
18069         EOPNOTSUPP.
18070         * sysdeps/mach/hurd/fsync.c: Likewise.
18071
18072         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
18073         [_POSIX_REALTIME_SIGNALS]: Change condition to
18074         [_POSIX_REALTIME_SIGNALS > 0].
18075
18076 2012-10-27  Andreas Jaeger  <aj@suse.de>
18077
18078         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
18079         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
18080         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
18081         [__WORDSIZE != 64]: Likewise.
18082
18083 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
18084
18085         *  iconvdata/tst-table.sh: Remove ${SHELL}.
18086         *  iconvdata/tst-tables.sh: Likewise.
18087
18088 2012-10-25  David S. Miller  <davem@davemloft.net>
18089
18090         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18091         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
18092         of strtoull.
18093
18094         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
18095         ifunc-impl-list.c
18096         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18097         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
18098         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
18099         file.
18100
18101 2012-10-25  Roland McGrath  <roland@hack.frob.com>
18102
18103         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18104         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
18105         __getdirentries.
18106
18107 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18108             Jim Blandy  <jimb@codesourcery.com>
18109
18110         * scripts/cross-test-ssh.sh: New file.
18111         * manual/install.texi (Configuring and compiling): Document use of
18112         cross-test-ssh.sh.
18113         * INSTALL: Regenerated.
18114
18115 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
18116
18117         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
18118         EOPNOTSUPP.
18119
18120 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18121
18122         * Makeconfig (run-program-prefix): Fix comment.
18123
18124 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18125             Jim Blandy  <jimb@codesourcery.com>
18126
18127         * Makeconfig (test-wrapper): New variable,
18128         (test-wrapper-env): Likewise.
18129         [$(cross-compiling) = yes && $(test-wrapper) != ""]
18130         (run-built-tests): Define to yes.
18131         (run-program-prefix): Use $(test-wrapper).
18132         (built-program-cmd): Likewise.
18133         * Rules (make-test-out): Use $(test-wrapper-env) and
18134         $(host-built-program-cmd).
18135         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
18136         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
18137         tst-pathopt.sh.
18138         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
18139         $(test-wrapper-env) to tst-rtld-load-self.sh.
18140         ($(objpfx)order2.out): Use $(test-wrapper).
18141         ($(objpfx)tst-initorder.out): Likewise.
18142         ($(objpfx)tst-initorder2.out): Likewise.
18143         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
18144         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
18145         (test_wrapper_env): New variable.  Use it to run ld.so.
18146         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
18147         Use it to run ld.so.
18148         (test_wrapper_env): Likewise.
18149         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
18150         $(test-wrapper) to run-iconv-test.sh.
18151         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
18152         (ICONV): Use $test_wrapper.
18153         * posix/Makefile ($(objpfx)globtest.out): Pass
18154         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
18155         globtest.sh, not $(run-program-prefix).
18156         * posix/globtest.sh (run_via_rtld_prefix): New variable.
18157         (test_wrapper): Likewise.
18158         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
18159         set together with run_via_rtld_prefix.
18160         (run_program_prefix): Define in terms of test_wrapper and
18161         run_via_rtld_prefix.
18162
18163 2012-10-24  Roland McGrath  <roland@hack.frob.com>
18164
18165         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
18166         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
18167         Targets removed.
18168
18169         [BZ #14743]
18170         * include/time.h: Remove librt_hidden_proto (clock_gettime).
18171         Declare __clock_getres, __clock_gettime, __clock_settime,
18172         __clock_nanosleep, and __clock_getcpuclockid.
18173         * rt/clock_gettime.c: Define __clock_gettime as an alias.
18174         Remove librt_hidden_def (clock_gettime).
18175         * sysdeps/unix/clock_gettime.c: Likewise.
18176         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
18177         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
18178         * rt/clock_getres.c: Define __clock_getres as an alias.
18179         * sysdeps/posix/clock_getres.c: Likewise.
18180         * rt/clock_settime.c: Define __clock_settime as an alias.
18181         * sysdeps/unix/clock_settime.c: Likewise.
18182         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
18183         * sysdeps/unix/clock_nanosleep.c: Likewise.
18184         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
18185         * rt/clock-compat.c: New file.
18186         * rt/Makefile (librt-routines): Add clock-compat and move
18187         $(clock-routines) to ...
18188         (routines): ... here, new variable.
18189         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
18190         Don't add get_clockfreq here.
18191         * rt/Versions (libc: GLIBC_2.17): New version set.
18192         Add clock_* symbols here.
18193         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
18194         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
18195         (GLIBC_2.17): Add clock_* symbols.
18196         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
18197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
18198         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
18199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
18200         Likewise.
18201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18202         Likewise.
18203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
18204         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
18205         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
18206         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
18207         * NEWS: Mention the move.
18208
18209         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
18210         Use __open, __read, __close rather than their public counterparts.
18211         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18212         (__get_clockfreq_via_cpuinfo): Likewise.
18213         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
18214         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
18215
18216         * config.h.in (HAVE_IFUNC): New #undef.
18217         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
18218         was successful.
18219         * configure: Regenerated.
18220
18221 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18222
18223         * configure.in: Move READELF check to start of file.
18224         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
18225         libc_cv_asm_gnu_indirect_function in the process.
18226         * configure: Regenerated.
18227
18228 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18229
18230         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
18231         send the output to /dev/null.
18232         (libc_cv_cc_with_libunwind): Likewise.
18233         (libc_cv_as_noexecstack): Likewise.
18234         * configure: Regenerate.
18235
18236 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18237
18238         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
18239
18240         * posix/globtest.sh (TMPDIR): Do not set.
18241         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
18242         (testout): Likewise.
18243
18244 2012-10-24  Andreas Jaeger  <aj@suse.de>
18245
18246         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
18247         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
18248         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
18249         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
18250         posix_fadvise64, posix_fallocate64.
18251
18252         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
18253         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
18254         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
18255         Likewise.
18256         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
18257         Likewise.
18258         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
18259
18260         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
18261         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
18262         <bits/fcntl-linux.h>.
18263         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
18264
18265         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
18266         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
18267         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
18268         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
18269         [__WORDSIZE != 64]: Likewise.
18270
18271 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18272
18273         * Makeconfig (run-built-tests): New variable.
18274         * Rules [$(cross-compiling) = yes]: Change condition to
18275         [$(run-built-tests) = no].
18276         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
18277         to [$(run-built-tests) = yes].
18278         * elf/Makefile [$(cross-compiling) = no]: Likewise
18279         * grp/Makefile [$(cross-compiling) = no]: Likewise.
18280         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
18281         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
18282         * intl/Makefile [$(cross-compiling) = no]: Likewise.
18283         * io/Makefile [$(cross-compiling) = no]: Likewise.
18284         * libio/Makefile [$(cross-compiling) = no]: Likewise.
18285         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
18286         * misc/Makefile [$(cross-compiling) = no]: Likewise.
18287         * posix/Makefile [$(cross-compiling) = no]: Likewise.
18288         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
18289         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
18290         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
18291         * string/Makefile [$(cross-compiling) = no]: Likewise.
18292
18293         * posix/Makefile ($(objpfx)globtest.out): Pass
18294         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
18295         $(rtld-installed-name).
18296         * posix/globtest.sh (elf_objpfx): Remove variable.
18297         (rtld_installed_name): Likewise.
18298         (library_path): Likewise.
18299         (run_program_prefix): New variable.  Use for running globtest
18300         binary.
18301
18302 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
18303             Joseph Myers  <joseph@codesourcery.com>
18304
18305         * Makeconfig (host-built-program-cmd): New variable.
18306         * elf/Makefile (tst-stackguard1-ARGS): Use
18307         $(host-built-program-cmd).
18308         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
18309         (tst-spawn-ARGS): Likewise.
18310         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
18311
18312 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18313             Jim Blandy  <jimb@codesourcery.com>
18314
18315         * Makeconfig (run-via-rtld-prefix): New variable.
18316         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
18317         (built-program-cmd): Likewise.
18318
18319 2012-10-22  Andreas Jaeger  <aj@suse.de>
18320
18321         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
18322         __O_RSYNC if it exists, otherwise to O_SYNC.
18323
18324 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
18325             Joseph Myers  <joseph@codesourcery.com>
18326
18327         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
18328         /dev/null.
18329         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
18330         from /dev/null
18331         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
18332         /dev/null.
18333
18334 2012-10-22  Andreas Jaeger  <aj@suse.de>
18335
18336         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
18337         Define always.
18338         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
18339
18340         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18341         bits/fcntl-linux.h.
18342
18343         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
18344         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
18345
18346         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
18347         to __O_LARGEFILE.
18348         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
18349         to __O_LARGEFILE.
18350
18351 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
18352             Joseph Myers  <joseph@codesourcery.com>
18353
18354         * config.make.in (NM): New variable.
18355
18356 2012-10-21  Andreas Jaeger  <aj@suse.de>
18357
18358         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
18359         definitions and declarations that are provided by
18360         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
18361
18362 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18363
18364         [BZ #14683]
18365         * elf/Makefile (tests-static): Add tst-leaks1-static.
18366         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18367         ($(objpfx)tst-leaks1-static): New rule.
18368         ($(objpfx)tst-leaks1-static-mem): Likewise.
18369         (tst-leaks1-static-ENV): New macro.
18370         * elf/dl-open.c (dl_open_worker): Check the main application
18371         only if SHARED is defined.
18372         * elf/tst-leaks1-static.c: New file.
18373
18374 2012-10-20  Andreas Jaeger  <aj@suse.de>
18375
18376         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18377         generic values for Linux.
18378         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18379         and declarations that are provided by <bits/fcntl-linux.h> and
18380         include <bits/fcntl-linux.h>.
18381         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18382         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18383
18384 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18385
18386         * io/fcntl.h: Move include of <bits/types.h> to the top and
18387         include it unconditionally.
18388
18389 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18390
18391         * wcsmbs/Makefile (tests-ifunc): New variable.
18392         (tests): Add $(tests-ifunc).
18393         * wcsmbs/test-wcschr-ifunc.c: New file.
18394         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18395         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18396         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18397         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18398         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18399
18400         * string/Makefile (tests-ifunc): New variable.
18401         (tests): Add $(tests-ifunc).
18402         * string/test-memccpy.c (TEST_NAME): New macro.
18403         * string/test-memchr.c (TEST_NAME): Likewise.
18404         * string/test-memcmp.c (TEST_NAME): Likewise.
18405         * string/test-memcpy.c (TEST_NAME): Likewise.
18406         * string/test-memmem.c (TEST_NAME): Likewise.
18407         * string/test-memmove.c (TEST_NAME): Likewise.
18408         * string/test-memset.c (TEST_NAME): Likewise.
18409         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18410         * string/test-stpcpy.c (TEST_NAME): Likewise.
18411         * string/test-stpncpy.c (TEST_NAME): Likewise.
18412         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18413         * string/test-strcasestr.c (TEST_NAME): Likewise.
18414         * string/test-strcat.c (TEST_NAME): Likewise.
18415         * string/test-strchr.c (TEST_NAME): Likewise.
18416         * string/test-strcmp.c(TEST_NAME): Likewise.
18417         * string/test-strcpy.c (TEST_NAME): Likewise.
18418         * string/test-strcspn.c (TEST_NAME): Likewise.
18419         * string/test-strlen.c (TEST_NAME): Likewise.
18420         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18421         * string/test-strncmp.c (TEST_NAME): Likewise.
18422         * string/test-strncpy.c (TEST_NAME): Likewise.
18423         * string/test-strnlen.c (TEST_NAME): Likewise.
18424         * string/test-strpbrk.c (TEST_NAME): Likewise.
18425         * string/test-strrchr.c (TEST_NAME): Likewise.
18426         * string/test-strspn.c (TEST_NAME): Likewise.
18427         * string/test-strstr.c (TEST_NAME): Likewise.
18428         * string/test-bcopy-ifunc.c: New file.
18429         * string/test-bzero-ifunc.c: Likewise.
18430         * string/test-memccpy-ifunc.c: Likewise.
18431         * string/test-memchr-ifunc.c: Likewise.
18432         * string/test-memcmp-ifunc.c: Likewise.
18433         * string/test-memcpy-ifunc.c: Likewise.
18434         * string/test-memmem-ifunc.c: Likewise.
18435         * string/test-memmove-ifunc.c: Likewise.
18436         * string/test-mempcpy-ifunc.c: Likewise.
18437         * string/test-memset-ifunc.c: Likewise.
18438         * string/test-rawmemchr-ifunc.c: Likewise.
18439         * string/test-stpcpy-ifunc.c: Likewise.
18440         * string/test-stpncpy-ifunc.c: Likewise.
18441         * string/test-strcasecmp-ifunc.c: Likewise.
18442         * string/test-strcasestr-ifunc.c: Likewise.
18443         * string/test-strcat-ifunc.c: Likewise.
18444         * string/test-strchr-ifunc.c: Likewise.
18445         * string/test-strchrnul-ifunc.c: Likewise.
18446         * string/test-strcmp-ifunc.c: Likewise.
18447         * string/test-strcpy-ifunc.c: Likewise.
18448         * string/test-strcspn-ifunc.c: Likewise.
18449         * string/test-strlen-ifunc.c: Likewise.
18450         * string/test-strncasecmp-ifunc.c: Likewise.
18451         * string/test-strncat-ifunc.c: Likewise.
18452         * string/test-strncmp-ifunc.c: Likewise.
18453         * string/test-strncpy-ifunc.c: Likewise.
18454         * string/test-strnlen-ifunc.c: Likewise.
18455         * string/test-strpbrk-ifunc.c: Likewise.
18456         * string/test-strrchr-ifunc.c: Likewise.
18457         * string/test-strspn-ifunc.c: Likewise.
18458         * string/test-strstr-ifunc.c: Likewise.
18459
18460         * debug/Makefile (tests-ifunc): New variable.
18461         (tests): Add $(tests-ifunc).
18462         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18463         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18464         * debug/test-stpcpy_chk-ifunc.c: New file.
18465         * debug/test-strcpy_chk-ifunc.c: Likewise.
18466
18467 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18468
18469         [BZ #13601]
18470         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18471         header is not read in.
18472
18473 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18474
18475         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18476         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18477         directly.  Pass built executable to script as
18478         $(built-program-cmd).
18479         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18480         $testprogram without using LD_LIBRARY_PATH and $ldso.
18481
18482         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18483         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18484         $(rtld-installed-name).
18485         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18486         (rtld_installed_name): Likewise.
18487         (library_path): Likewise.
18488         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18489         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18490         $(run-program-prefix) to tst-tables.sh.
18491         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18492         it to run tst-table-from and tst-table-to.
18493         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18494         Pass it to tst-table.sh.
18495         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18496         $(run-program-prefix) to tst-gettext.sh.
18497         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18498         tst-translit.sh.
18499         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18500         tst-gettext2.sh.
18501         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18502         to run tst-gettext.
18503         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18504         to run tst-gettext2.
18505         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18506         to run tst-translit.
18507         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18508         $(run-program-prefix) to tst-mtrace.sh.
18509         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18510         to run tst-mtrace.
18511         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18512         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18513         $(rtld-installed-name).
18514         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18515         (rtld_installed_name): Likewise.
18516         (run_program_prefix): New variable.  Use it to run wordexp-test.
18517
18518         * Makeconfig (ARCH): Remove all definitions.
18519         (machine): Likewise.
18520         [ARCH]: Remove conditional code.
18521         [!objdir]: Give error.
18522         [!objdir] (objpfx): Remove.
18523         [!objdir] (common-objpfx): Likewise.
18524         [!objdir] (common-objdir): Likewise.
18525         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18526         AC_CONFIG_FILES call.
18527         * configure: Regenerated.
18528
18529         [BZ #13888]
18530         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18531         or TMPDIR.
18532         (testout): Likewise.
18533
18534         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18535         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18536         $(rtld-installed-name).
18537         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18538         (rtld_installed_name): Likwise.
18539         (runit): Remove function.
18540         (run_getconf): New variable,  Use it for running getconf binary.
18541
18542 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18543
18544         [BZ #14716]
18545         * string/test-memmem.c (check_result): New function.
18546         (do_one_test): Use it.
18547         (check1): New function.
18548         (test_main): Use it.
18549
18550 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18551
18552         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18553
18554 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18555
18556         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18557         (_G_LSEEK64): Likewise.
18558         (_G_MMAP64): Likewise.
18559         (_G_FSTAT64): Likewise.
18560         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18561         (_G_LSEEK64): Likewise.
18562         (_G_MMAP64): Likewise.
18563         (_G_FSTAT64): Likewise.
18564         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18565         unconditional.  Call __mmap64 directly.
18566         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18567         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18568         __lseek64 directly.
18569         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18570         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18571         __mmap64 directly.
18572         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18573         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18574         __lseek64 directly.
18575         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18576         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18577         __lseek64 directly.
18578         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18579         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18580         __lseek64 directly.
18581         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18582         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18583         __fxstat64 directly.
18584         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18585         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18586         unconditional.
18587         (freopen64) [!_G_OPEN64]: Remove conditional code.
18588         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18589         unconditional.
18590         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18591         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18592         unconditional.
18593         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18594         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18595         unconditional.
18596         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18597         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18598         unconditional.
18599         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18600         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18601         unconditional.
18602         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18603         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18604         unconditional.
18605         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18606         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18607         unconditional.
18608         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18609
18610 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18611
18612         [BZ #12140]
18613         * manual/memory.texi (Malloc Tunable Parameters): Add note
18614         about free list pointers overwriting some perturb bytes.
18615         Wording suggested by Roland McGrath.
18616
18617 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18618
18619         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18620         (lgamma_test): Likewise.
18621         (tgamma_test): Likewise.
18622
18623 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18624
18625         [BZ #14700]
18626         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18627         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18628
18629 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18630
18631         * NEWS: Mention BZ #14716.
18632         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18633         when removing AVAILABLE1_USES_J macro.
18634
18635 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18636
18637         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18638         (__bswap_64): __uint64_t for unsigned 64-bit int.
18639
18640 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18641
18642         * include/string.h (memmem): Declare libc hidden alias.
18643         * string/memmem.c (memmem): Define libc hidden alias.
18644         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18645         __read, __close instead of open, read, close.
18646
18647 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18648
18649         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18650         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18651         global and hidden.
18652         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18653         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18654         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18655         Likewise.
18656         (__rawmemchr_sse2): Likewise.
18657         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18658         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18659         (__strchr_sse2): Likewise.
18660         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18661         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18662         (__strcasecmp_sse2): Likewise.
18663         (__strncasecmp_sse2): Likewise.
18664         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18665         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18666         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18667         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18668         (__strrchr_sse2): Likewise.
18669         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18670         ifunc-impl-list.c.
18671         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18672         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18673         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18674         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18675         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18676         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18677         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18678         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18679         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18680         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18681         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18682         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18683         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18684         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18685         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18686         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18687         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18688         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18689         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18690         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18691         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18692         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18693         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18694         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18695         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18696         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18697         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18698         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18699         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18700         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18701
18702         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18703         global and hidden.
18704         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18705         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18706         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18707         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18708         Likewise.
18709         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18710         Likewise.
18711         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18712         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18713         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18714         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18715         ifunc-impl-list.c.
18716         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18717         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18718         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18719         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18720         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18721         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18722         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18723         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18724         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18725         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18726         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18727         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18728         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18729         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18730         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18731         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18732         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18733         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18734         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18735         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18736         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18737         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18738         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18739         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18740         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18741         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18742         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18743         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18744         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18745         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18746         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18747         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18748         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18749         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18750         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18751         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18752         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18753         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18754         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18755         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18756         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18757
18758         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18759         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18760         * include/ifunc-impl-list.h: New file.
18761         * misc/ifunc-impl-list.c: Likewise.
18762         * misc/Makefile (routines): Add ifunc-impl-list.
18763         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18764         * string/test-string.h: Include <ifunc-impl-list.h>.
18765         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18766         impl_array): New variables.
18767         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18768         are defined.
18769         (test_init): Call __libc_ifunc_impl_list to initialize
18770         func_list if TEST_IFUNC and TEST_NAME are defined.
18771
18772         * string/Makefile (strop-tests): Add bcopy and bzero.
18773         * string/test-bcopy.c: New file.
18774         * string/test-bzero.c: Likewise.
18775         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18776         defined.
18777         * string/test-memset.c: Support bzero test if TEST_BZERO is
18778         defined.
18779         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18780         __libc_memmove.
18781         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18782         __libc_memset.
18783         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18784         of memset.
18785
18786 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18787
18788         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18789         * configure: Regenerated.
18790
18791         * Makeconfig (+link-static-before-libc): Don't include
18792         $(link-static-libc).
18793
18794         * libio/libio.h (_IO_pos_t): Remove.
18795
18796 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18797
18798         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18799         McGrath.
18800
18801 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18802
18803         * crypt/crypt-entry.c: Include fips-private.h.
18804         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18805         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18806         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18807         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18808
18809 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18810
18811         * crypt/crypt-private.h: Include stdbool.h.
18812         (_ufc_setup_salt_r): Return bool.
18813         * crypt/crypt-entry.c: Include errno.h.
18814         (__crypt_r): Return NULL with EINVAL for bad salt.
18815         * crypt/crypt_util.c (bad_for_salt): New.
18816         (_ufc_setup_salt_r): Check that salt is long enough and within
18817         the specified alphabet.
18818         * crypt/badsalttest.c: New file.
18819         * crypt/Makefile (tests): Add it.
18820         ($(objpfx)badsalttest): New.
18821
18822 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18823
18824         * NEWS: Add entry for BZ #14602.
18825
18826 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18827
18828         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18829         type-generic.
18830         * math/libm-test.inc: Update comment listing what functions and
18831         macros are tested.
18832         (isgreater_test): New function.
18833         (isgreaterequal_test): Likewise.
18834         (isless_test): Likewise.
18835         (islessequal_test): Likewise.
18836         (islessgreater_test): Likewise.
18837         (isunordered_test): Likewise.
18838         (main): Call the new functions.
18839
18840 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18841
18842         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18843         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18844         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18845         * sysdeps/i386/configure: Regenerated.
18846         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18847         * sysdeps/mach/configure: Regenerated.
18848         * sysdeps/mach/hurd/configure: Regenerated.
18849         * sysdeps/powerpc/configure: Regenerated.
18850         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18851         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18852         * sysdeps/s390/s390-32/configure: Regenerated.
18853         * sysdeps/s390/s390-64/configure: Regenerated.
18854         * sysdeps/sh/configure: Regenerated.
18855         * sysdeps/sparc/configure: Regenerated.
18856         * sysdeps/unix/sysv/linux/configure: Regenerated.
18857         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18858         * sysdeps/x86_64/configure: Regenerated.
18859
18860         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18861         defined.  Don't check if MAP is NULL.
18862
18863 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18864
18865         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18866         (_G_stat64): Likewise.
18867         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18868         (_G_stat64): Likewise.
18869         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18870         instead of struct _G_stat64.
18871         * libio/fileops.c (mmap_remap_check): Likewise.
18872         (decide_maybe_mmap): Likewise.
18873         (_IO_new_file_seekoff): Likewise.
18874         (_IO_file_stat): Likewise.
18875         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18876         _G_off64_t.
18877         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18878         instead of struct _G_stat64.
18879         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18880
18881 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18882
18883         [BZ #14602]
18884         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18885         Replace with ...
18886         (CHECK_EOL): New macro.
18887         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18888         CHECK_EOL.
18889         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18890         Replace with CHECK_EOL.
18891         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18892         Replace with CHECK_EOL.
18893
18894 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18895
18896         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18897         type-generic.
18898         * math/libm-test.inc: Update comment listing what functions and
18899         macros are tested.
18900         (finite_test): New function.
18901         (isinf_test): Likewise.
18902         (isnan_test): Likewise.
18903         (fpclassify_test): Test subnormal input.
18904         (isfinite_test): Likewise.
18905         (isnormal_test): Likewise.
18906         (main): Call the new functions.
18907
18908 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18909
18910         [BZ #14660]
18911         * Makerules (%.dynsym): Force C locale when running
18912         $(OBJDUMP) --dynamic-syms.
18913
18914 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18915
18916         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18917         <stdint.h>.
18918
18919 2012-10-06  David S. Miller  <davem@davemloft.net>
18920
18921         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18922         upper 32-bits of the length value in %o2 since we use branch-on-register
18923         tests which consider the entire 64-bit register.
18924
18925 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18926
18927         * string/test-strstr.c (check2): Add a test for page boundary.
18928
18929 2012-10-05  David S. Miller  <davem@davemloft.net>
18930
18931         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18932         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18933         file.
18934         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18935         sysdep_routines.
18936         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18937         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18938         and bzero when HWCAP_SPARC_CRYPTO is present.
18939
18940 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18941
18942         [BZ #14602]
18943         * string/test-strstr.c (check2): New function.
18944         (test_main): Call check2.
18945
18946         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18947         and bug-strchr1.
18948         * string/bug-strcasestr1.c (do_test): Moved to ...
18949         * string/test-strcasestr.c (check1): Here.  New function.
18950         (do_one_test): Break out result checking code into ...
18951         (check_result): This.  New function.
18952         (do_one_test): Call check_result.
18953         (test_main): Call check1.
18954         * string/bug-strchr1.c (do_test): Moved to ...
18955         * string/test-strchr.c (check1): Here.  New function.
18956         (do_one_test): Break out result checking code into ...
18957         (check_result): This.  New function.
18958         (do_one_test): Call check_result.
18959         (test_main): Call check1.
18960         * string/bug-strstr1.c (main): Moved to ...
18961         * string/test-strstr.c (check1): Here.  New function.
18962         (do_one_test): Break out result checking code into ...
18963         (check_result): This.  New function.
18964         (do_one_test): Call check_result.
18965         (test_main): Call check1.
18966         * string/bug-strcasestr1.c: Removed.
18967         * string/bug-strchr1.c: Likewise.
18968         * string/bug-strstr1.c: Likewise.
18969
18970         * elf/Makefile (dl-routines): Add hwcaps.
18971         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18972         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18973         (_dl_important_hwcaps): Moved to ...
18974         * elf/dl-hwcaps.c: Here.  New file.
18975         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18976
18977         [BZ #14557]
18978         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18979         if IS_IN_rtld isn't defined.
18980
18981         * elf/dl-support.c (_dl_sysinfo_map): New.
18982         Include "get-dynamic-info.h" and "setup-vdso.h".
18983         (_dl_non_dynamic_init): Call setup_vdso.
18984         * elf/dynamic-link.h: Don't include <assert.h>.
18985         (elf_get_dynamic_info): Moved to ...
18986         * elf/get-dynamic-info.h: Here.  New file.
18987         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18988         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18989         * elf/setup-vdso.h: Here.  New file.
18990         * elf/rtld.c: Include "setup-vdso.h".
18991         (dl_main): Call setup_vdso.
18992
18993 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
18994
18995         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
18996         creal in comment listing functions tested.  List finite, isinf,
18997         isnan, isless, islessequal, isgreater, isgreaterequal,
18998         islessgreater, isunordered, lgamma_r and pow10 as functions and
18999         macros not tested.  Mention which functions not tested are aliases
19000         for other functions.  Fix typo.  Note that signs of NaNs are not
19001         tested.
19002
19003         * scripts/config.guess: Update from config.git.
19004         * scripts/config.sub: Likewise.
19005
19006 2012-10-04  Roland McGrath  <roland@hack.frob.com>
19007
19008         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
19009         * misc/madvise.c (madvise): Renamed to __madvise.
19010         Make madvise a weak alias.
19011         * include/sys/mman.h: Declare __madvise.
19012         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
19013         * sysdeps/unix/syscalls.list
19014         (madvise): Make __madvise the strong name, and madvise a weak alias.
19015         * sysdeps/unix/sysv/linux/syscalls.list
19016         (madvise, mmap): Remove redundant entries.
19017         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
19018         * malloc/malloc.c (mtrim): Likewise.
19019         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
19020
19021 2012-10-03  Roland McGrath  <roland@hack.frob.com>
19022
19023         * sysdeps/mach/hurd/dl-cache.c: File removed.
19024         * config.h.in (USE_LDCONFIG): New #undef.
19025         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
19026         * configure: Regenerated.
19027         * elf/Makefile (dl-routines): Add dl-cache only under
19028         [$(use-ldconfig) = yes].
19029         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
19030         cache on [USE_LDCONFIG].
19031         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
19032         [USE_LDCONFIG].
19033         * elf/rtld.c (dl_main): Likewise.
19034
19035 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
19036
19037         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
19038         _SC_LEVEL4_CACHE_LINESIZE.
19039
19040 2012-10-03  Roland McGrath  <roland@hack.frob.com>
19041
19042         * sysdeps/unix/bsd/confstr.h: File removed.
19043
19044 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
19045
19046         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
19047         sys/sdt-config.h.
19048
19049 2012-10-02  Roland McGrath  <roland@hack.frob.com>
19050
19051         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
19052         Make 'mapoff' field ElfW(Off) rather than off_t.
19053
19054 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
19055
19056         * nscd/Makefile: Remove nscd-cflags and all its users.
19057         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
19058         (CFLAGS-nonlib): Add compiler flags for nscd modules.
19059
19060         [BZ #10631]
19061         * malloc.c (malloc_printerr): Clarify error message.
19062
19063 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
19064
19065         [BZ #14648]
19066         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19067         Set bit_FMA_Usable if FMA is supported.
19068         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
19069         macro.
19070         (bit_FMA4_Usable): Updated.
19071         (index_FMA_Usable): New macro.
19072         (CPUID_FMA): Likewise
19073         (HAS_FMA): Defined with bit_FMA_Usable.
19074
19075 2012-10-01  Roland McGrath  <roland@hack.frob.com>
19076
19077         * bits/types.h (__swblk_t): Type removed.
19078         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
19079         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
19080         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19081         (__SWBLK_T_TYPE): Likewise.
19082         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19083         (__SWBLK_T_TYPE): Likewise.
19084         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19085         (__SWBLK_T_TYPE): Likewise.
19086         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19087         (__SWBLK_T_TYPE): Likewise.
19088
19089 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
19090             Honza Horak <hhorak@redhat.com>
19091
19092         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
19093         (xdr_mapname): Use YPMAXMAP as maxsize.
19094         (xdr_peername): Use YPMAXPEER as maxsize.
19095         (xdr_keydat): Use YPAXRECORD as maxsize.
19096         (xdr_valdat): Use YPMAXRECORD as maxsize.
19097
19098 2012-10-01  Roland McGrath  <roland@hack.frob.com>
19099
19100         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
19101
19102         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
19103         * csu/init-first.c: ... here.
19104         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
19105         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19106         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
19107         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
19108         * sysdeps/i386/init-first.c: File removed.
19109         * sysdeps/sh/init-first.c: File removed.
19110
19111 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
19112
19113         [BZ #14645]
19114         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
19115         if x * y might underflow to zero and z is zero.
19116         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19117         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19118         * math/libm-test.inc (min_subnorm_value): New variable.
19119         (fma_test): Add more tests.
19120         (fma_test_towardzero): Likewise.
19121         (fma_test_downward): Likewise
19122         (fma_test_upward): Likewise.
19123         (initialize): Set min_subnorm_value.
19124
19125 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
19126
19127         [BZ #14638]
19128         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
19129         0 + 0.
19130         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
19131         mode for addition resulting in exact zero.
19132         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
19133         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
19134         exact 0 + 0.
19135         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19136         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19137         * math/libm-test.inc (fma_test): Add more tests.
19138         (fma_test_towardzero): New function.
19139         (fma_test_downward): Likewise.
19140         (fma_test_upward): Likewise.
19141         (main): Call the new functions.
19142
19143 2012-09-28  David S. Miller  <davem@davemloft.net>
19144
19145         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
19146
19147 2012-09-28  Roland McGrath  <roland@hack.frob.com>
19148
19149         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
19150         instead of SIGALRM.
19151
19152         * sysdeps/gnu/_G_config.h: Moved to ...
19153         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
19154         * sysdeps/mach/hurd/_G_config.h: Moved to ...
19155         * sysdeps/generic/_G_config.h: ... here.
19156
19157         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
19158
19159         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
19160
19161         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
19162         Conditionalize target on [libnss_test1.so-version].
19163
19164         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
19165
19166         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
19167         (elfobjdir): Move out of conditionals.
19168
19169         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
19170         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
19171         (__nss_lookup_function): Conditionalize label remove_from_tree on
19172         [!DO_STATIC_NSS || SHARED], matching its only use.
19173
19174 2012-09-28  David S. Miller  <davem@davemloft.net>
19175
19176         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
19177         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
19178         file.
19179         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
19180         sysdep_routines.
19181         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
19182         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
19183         when HWCAP_SPARC_CRYPTO is present.
19184
19185 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19186
19187         * io/tst-mknodat.c: Create a FIFO instead of a socket.
19188
19189 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
19190
19191         [BZ #6530]
19192         * stdio-common/vfprintf.c (process_string_arg): Revert
19193         2000-07-22 change.
19194
19195 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
19196
19197         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
19198         for testcase.
19199         * stdio-common/tst-sprintf.c: Include <locale.h>
19200         (main): Test sprintf's handling of incomplete multibyte
19201         characters.
19202
19203 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
19204
19205         * elf/dl-runtime.c (VERSYMIDX): Removed.
19206         * elf/dl-version.c (VERSYMIDX): Likewise.
19207         * elf/do-rel.h (VERSYMIDX): Likewise.
19208         (VALIDX): Likewise.
19209         * elf/dynamic-link.h (VERSYMIDX): Likewise.
19210         * elf/rtld.c (VALIDX): Likewise.
19211         (ADDRIDX): Likewise.
19212         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
19213         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
19214         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
19215         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
19216         (VALIDX): Likewise.
19217         (ADDRIDX): Likewise.
19218
19219 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19220
19221         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
19222
19223 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
19224
19225         [BZ #11438]
19226         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
19227         to global scope.
19228         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
19229         addresses are in the same scope as 192.0.2/24.
19230         * posix/gai.conf: Document new scope table defaults.
19231
19232 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19233
19234         [BZ #5298]
19235         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
19236         for ftell.  Compute offsets from write pointers instead.
19237         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19238
19239 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19240
19241         [BZ #14543]
19242         * libio/Makefile (tests): New test case tst-fseek.
19243         * libio/tst-fseek.c: New test case to verify that fseek/ftell
19244         combination works in wide mode.
19245         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
19246         state when the external buffer state changes.
19247
19248 2012-09-27  David S. Miller  <davem@davemloft.net>
19249
19250         [BZ #14376]
19251         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
19252         pass reloc->r_addend in as the 'high' argument to
19253         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
19254
19255         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19256
19257 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19258
19259         * rt/tst-aio2.c: Include <pthread.h>.
19260         * rt/tst-aio3.c: Likewise.
19261
19262 2012-09-27  Steve Ellcey  <sellcey@mips.com>
19263
19264         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
19265
19266 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
19267
19268         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
19269         contents on [SHARED].
19270
19271 2012-09-26  Marek Polacek  <polacek@redhat.com>
19272
19273         [BZ #14530]
19274         [BZ #13741]
19275         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
19276         for C++ and GCC <4.3 as well as for non GCC compilers.
19277
19278 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19279
19280         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19281
19282 2012-09-25  Roland McGrath  <roland@hack.frob.com>
19283
19284         * Makefile.in (all, install): Declare with .PHONY.
19285         Reported by Michael Hope <michael.hope@linaro.org>.
19286
19287 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19288
19289         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
19290         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
19291         system header.
19292         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
19293         Likewise.
19294         (sydep_routines): Add the new and the internal functions.
19295         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
19296         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
19297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
19298         (GLIBC_2.17): Add the new function.
19299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19300         (GLIBC_2.17): Likewise.
19301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
19302         (GLIBC_2.17): Likewise.
19303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
19304         (GLIBC_2.17): Likewise.
19305         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
19306
19307 2012-09-25  Alan Modra  <amodra@gmail.com>
19308
19309         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
19310         Add release barrier before setting once_control to say
19311         initialisation is done.  Add hints on lwarx.  Use macro in
19312         place of isync.
19313         (clear_once_control): Add release barrier.
19314
19315 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19316
19317         [BZ #13629]
19318         * math/s_clog.c (__clog): Handle more values close to |z| = 1
19319         specially.
19320         * math/s_clog10.c (__clog10): Likewise.
19321         * math/s_clog10f.c (__clog10f): Likewise.
19322         * math/s_clog10l.c (__clog10l): Likewise.
19323         * math/s_clogf.c (__clogf): Likewise.
19324         * math/s_clogl.c (__clogl): Likewise.
19325         * math/Makefile (libm-calls): Add x2y2m1.
19326         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
19327         (__x2y2m1): Likewise.
19328         (__x2y2m1l): Likewise.
19329         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
19330         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
19331         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
19332         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
19333         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
19334         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
19335         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
19336         * sysdeps/i386/fpu/libm-test-ulps: Update.
19337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19338
19339         [BZ #14621]
19340         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
19341         int as type of variable DEPTH.
19342         (glob): Use size_t instead of int as type of variables NEWCOUNT
19343         and OLD_PATHC.
19344
19345 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19346
19347         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19348         Add s_sincosf-sse2.
19349         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
19350         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
19351         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
19352         macros for using routine as __sincosf_ia32.
19353         Use macro for function declaration and weak_alias.
19354         * sysdeps/i386/fpu/libm-test-ulps: Update.
19355
19356         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
19357         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19358
19359         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
19360         subnormal argument.
19361         * math/s_cexpf.c (__cexpf): Likewise.
19362         * math/s_csinf.c (__csinf): Likewise.
19363         * math/s_csinhf.c (__csinhf): Likewise.
19364         * math/s_ctanf.c (__ctanf): Likewise.
19365         * math/s_ctanhf.c (__ctanhf): Likewise.
19366         * math/s_ccosh.c (__ccoshf): Likewise.
19367         * math/s_cexp.c (__cexpl): Likewise.
19368         * math/s_csin.c (__csin): Likewise.
19369         * math/s_csinh.c (__csinh): Likewise.
19370         * math/s_ctan.c (__ctan): Likewise.
19371         * math/s_ctanh.c (ctanh): Likewise.
19372         * math/s_ccoshl.c (__ccoshl): Likewise.
19373         * math/s_cexpl.c (__cexpl): Likewise.
19374         * math/s_csinl.c (__csinl): Likewise.
19375         * math/s_csinhl.c (__csinhl): Likewise.
19376         * math/s_ctanl.c (__ctanl): Likewise.
19377         * math/s_ctanhl.c (__ctanhl): Likewise.
19378
19379 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19380
19381         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19382         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19383         (_IO_off_t): Define to __off_t, not _G_off_t.
19384         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19385         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19386         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19387         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19388         type of __dummy and __dummy2 fields.
19389         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19390         (_G_ssize_t): Likewise.
19391         (_G_off_t): Likewise.
19392         (_G_pid_t): Likewise.
19393         (_G_uid_t): Likewise.
19394         (_G_wchar_t): Likewise.
19395         (_G_wint_t): Likewise.
19396         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19397         (_G_ssize_t): Likewise.
19398         (_G_off_t): Likewise.
19399         (_G_pid_t): Likewise.
19400         (_G_uid_t): Likewise.
19401         (_G_wchar_t): Likewise.
19402         (_G_wint_t): Likewise.
19403         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19404         (_G_ssize_t): Likewise.
19405         (_G_off_t): Likewise.
19406         (_G_pid_t): Likewise.
19407         (_G_uid_t): Likewise.
19408         (_G_wchar_t): Likewise.
19409         (_G_wint_t): Likewise.
19410
19411 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19412
19413         * malloc/arena.c: Include malloc-sysdep.h.
19414         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19415         is sufficient to shrink the heap or an unmap is needed.
19416         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19417         new function check_may_shrink_heap.
19418         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19419         new function check_may_shrink_heap.
19420
19421 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19422
19423         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19424         comments.
19425
19426 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19427
19428         * catgets/test-gencat.sh: Add "set -e".
19429         * elf/tst-pathopt.sh: Likewise.
19430         * grp/tst_fgetgrent.sh: Likewise.
19431         * iconvdata/run-iconv-test.sh: Likewise.
19432         * intl/tst-gettext.sh: Likewise.
19433         * intl/tst-gettext2.sh: Likewise.
19434         * intl/tst-gettext4.sh: Likewise.
19435         * intl/tst-gettext6.sh: Likewise.
19436         * intl/tst-translit.sh: Likewise.
19437         * io/ftwtest-sh: Likewise.
19438         * libio/test-freopen.sh: Likewise.
19439         * malloc/tst-mtrace.sh: Likewise.
19440         * posix/globtest.sh: Likewise.
19441         * posix/tst-getconf.sh: Likewise.
19442         * posix/wordexp-tst.sh: Likewise.
19443         * stdio-common/tst-printf.sh: Likewise.
19444         * stdio-common/tst-unbputc.sh: Likewise.
19445         * stdlib/tst-fmtmsg.sh: Likewise.
19446         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19447         * catgets/Makefile: Do not specify -e option when running
19448         testsuite shell scripts.
19449         * elf/Makefile: Likewise.
19450         * grp/Makefile: Likewise.
19451         * iconvdata/Makefile: Likewise.
19452         * intl/Makefile: Likewise.
19453         * io/Makefile: Likewise.
19454         * libio/Makefile: Likewise.
19455         * malloc/Makefile: Likewise.
19456         * posix/Makefile: Likewise.
19457         * stdio-common/Makefile: Likewise.
19458         * stdlib/Makefile: Likewise.
19459         * sysdeps/x86_64/Makefile: Likewise.
19460
19461         * io/ftwtest-sh: Add copyright header.
19462         * posix/globtest.sh: Likewise.
19463         * posix/tst-getconf.sh: Likewise.
19464         * posix/wordexp-tst.sh: Likewise.
19465         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19466
19467 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19468
19469         [BZ #13679]
19470         * Makeconfig (+link): Defined as $(+link-static) if
19471         $(build-shared) isn't yes.
19472         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19473         isn't yes.
19474         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19475
19476         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19477
19478         [BZ #14562]
19479         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19480         new chunk size with MALLOC_ALIGN_MASK.
19481
19482 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19483
19484         [BZ #5044]
19485         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19486         <rounding-mode.h>.
19487         (__printf_fphex): Determine rounding using get_rounding_mode and
19488         round_away.
19489         * stdio-common/tst-printf-round.c (struct hex_test): New
19490         structure.
19491         (hex_tests): New variable.
19492         (test_hex_in_one_mode): New function.
19493         (do_test): Also run tests for hex float output.
19494
19495 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19496
19497         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19498         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19499         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19500         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19501         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19502         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19503         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19504         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19505
19506 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19507
19508         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19509         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19510         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19511         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19512
19513 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19514
19515         [BZ #14579]
19516         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19517         mode only.
19518         * elf/tst-rtld-load-self.sh: New test.
19519         * elf/Makefile: Run it.
19520
19521 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19522
19523         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19524         (tst-writev-ENV): Remove.
19525         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19526
19527 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19528
19529         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19530
19531 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19532
19533         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19534         unconditional.
19535         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19536         Likewise.
19537         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19538         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19539         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19540         Likewise.
19541
19542 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19543
19544         [BZ #14587]
19545         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19546         * config.make.in (have-cpp-asm-debuginfo): Removed.
19547         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19548         * configure: Regenerated.
19549
19550 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19551
19552         [BZ #5044]
19553         * stdio-common/printf_fp.c: Include <stdbool.h> and
19554         <rounding-mode.h>.
19555         (___printf_fp): Determine rounding using get_rounding_mode and
19556         round_away.
19557         * stdio-common/tst-printf-round.c: New file.
19558         * stdio-common/Makefile (tests): Add tst-printf-round.
19559         (link-libm): New variable.
19560         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19561
19562 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19563
19564         [BZ #14576]
19565         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19566         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19567         Likewise.
19568         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19569         Likewise.
19570
19571 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19572
19573         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19574         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19575         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19576         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19577
19578 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19579
19580         [BZ #14518]
19581         * include/rounding-mode.h: New file.
19582         * sysdeps/generic/get-rounding-mode.h: Likewise.
19583         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19584         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19585         (MAX_VALUE): New macro.
19586         (MIN_VALUE): Likewise.
19587         (overflow_value): New function.
19588         (underflow_value): Likewise.
19589         (round_and_return): Use overflow_value and underflow_value to
19590         determine return values in overflow and underflow cases.  Use
19591         round_away to determine rounding depending on rounding mode.
19592         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19593         determine return values in overflow and underflow cases.
19594         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19595         (struct test_results): New structure.
19596         (struct test): Use struct test_results to store expected results
19597         for all rounding modes.
19598         (TEST): Include expected results for all rounding modes.
19599         (test_in_one_mode): New function.
19600         (do_test): Use test_in_one_mode to compute and check results.
19601         Check results for all rounding modes.
19602         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19603         $(link-libm).
19604
19605 2012-12-09  Allan McRae  <allan@archlinux.org>
19606
19607         * sysdeps/i386/fpu/libm-test-ulps: Update
19608
19609 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19610
19611         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19612         (_G_int32_t): Likewise.
19613         (_G_uint16_t): Likewise.
19614         (_G_uint32_t): Likewise.
19615         (_G_HAVE_BOOL): Likewise.
19616         (_G_HAVE_ATEXIT): Likewise.
19617         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19618         (_G_HAVE_IO_FILE_OPEN): Likewise.
19619         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19620         (_G_int32_t): Likewise.
19621         (_G_uint16_t): Likewise.
19622         (_G_uint32_t): Likewise.
19623         (_G_HAVE_BOOL): Likewise.
19624         (_G_HAVE_ATEXIT): Likewise.
19625         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19626         (_G_HAVE_IO_FILE_OPEN): Likewise.
19627         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19628         (_G_int32_t): Likewise.
19629         (_G_uint16_t): Likewise.
19630         (_G_uint32_t): Likewise.
19631         (_G_HAVE_BOOL): Likewise.
19632         (_G_HAVE_ATEXIT): Likewise.
19633         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19634         (_G_HAVE_IO_FILE_OPEN): Likewise.
19635
19636 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19637
19638         * csu/libc-tls.c: Update copyright years.
19639
19640 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19641
19642         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19643         [!_G_USING_THUNKS]: Remove conditional code.
19644         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19645         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19646
19647         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19648         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19649         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19650         (_G_VTABLE_LABEL_PREFIX): Likewise.
19651         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19652         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19653         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19654         (_G_VTABLE_LABEL_PREFIX): Likewise.
19655         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19656         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19657         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19658         (_G_VTABLE_LABEL_PREFIX): Likewise.
19659         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19660
19661 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19662
19663         * libio/Makefile: Include ../Makeconfig before tests.
19664         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19665         only if $(build-shared) is yes.
19666
19667         * iconv/gconv_db.c: Update copyright years.
19668
19669 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19670
19671         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19672         unwind info if defined PIC. Fix special cases description.
19673         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19674
19675         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19676         DP_HI_MASK entry.
19677         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19678
19679 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19680
19681         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19682
19683         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19684         is NULL.
19685
19686         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19687         (LDLIBS-tst-chk4): This.
19688         (LDFLAGS-tst-chk5): Renamed to ...
19689         (LDLIBS-tst-chk5): This.
19690         (LDFLAGS-tst-chk6): Renamed to ...
19691         (LDLIBS-tst-chk6): This.
19692         (LDFLAGS-tst-lfschk4): Renamed to ...
19693         (LDLIBS-tst-lfschk4): This.
19694         (LDFLAGS-tst-lfschk5): Renamed to ...
19695         (LDLIBS-tst-lfschk5): This.
19696         (LDFLAGS-tst-lfschk6): Renamed to ...
19697         (LDLIBS-tst-lfschk6): This.
19698
19699         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19700         on $(common-objpfx)soversions.mk.
19701
19702 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19703
19704         [BZ #10014]
19705         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19706         example host name.
19707
19708 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19709
19710         * malloc/arena.c (arena_get_retry): New function that gets
19711         another arena for the caller to try its request on.
19712         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19713         current arena cannot fulfill the request.
19714         (__libc_memalign): Likewise.
19715         (__libc_memalign): Likewise.
19716         (__libc_pvalloc): Likewise.
19717         (__libc_calloc): Likewise.
19718
19719 2012-09-05  John Tobey  <john.tobey@gmail.com>
19720
19721         [BZ #13542]
19722         * manual/arith.texi (Operations on Complex): Fix description
19723         of carg branch cut.
19724
19725 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19726
19727         [BZ #10014]
19728         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19729         host name.
19730
19731         [BZ #10038]
19732         * manual/memory.texi (Memory): Make order of menu items match
19733         order of sections.
19734
19735 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19736
19737         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19738         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19739         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19740
19741 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19742
19743         * csu/libc-tls.c (static_dtv): Renamed to ...
19744         (_dl_static_dtv): This.  Make it global.
19745         (_dl_initial_dtv): Removed.
19746         (__libc_setup_tls): Updated.
19747         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19748         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19749         DL_INITIAL_DTV.
19750
19751 2012-09-06  Petr Machata  <pmachata@redhat.com>
19752
19753         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19754         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19755         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19756         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19757
19758 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19759
19760         [BZ #14545]
19761         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19762         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19763         freeing dtv[-1].
19764
19765 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19766
19767         [BZ #14544]
19768         * Makeconfig (link-static-before-libc): Replace $(+prector)
19769         with $(+prectorT).
19770         (link-static-after-libc): Replace $(+postctor) with
19771         $(+postctorT).
19772         (link-bounded): Replace $(+prector)/$(+postctor) with
19773         $(+prectorT)/$(+postctorT).
19774         (+prectorT): New macro.
19775         (+postctorT): Likewise.
19776
19777 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19778
19779         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19780         (round_str): Handle values above the maximum for IBM long double
19781         as inexact.
19782         * stdlib/tst-strtod-round.c (tests): Regenerated.
19783
19784 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19785
19786         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19787         assembler flag.
19788         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19789         zarch_nohighgprs around the zarch optimized routines.
19790         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19791         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19792         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19793         for zarch.
19794
19795 2012-09-05  David S. Miller  <davem@davemloft.net>
19796
19797         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19798
19799         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19800         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19801         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19802         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19803         entries.
19804
19805 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19806
19807         * malloc/arena.c: Fold copyright years.
19808         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19809
19810 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19811
19812         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19813
19814 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19815
19816         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19817
19818 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19819
19820         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19821         change internal state upon failure.
19822
19823 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19824
19825         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19826         * malloc/memusage.c (mmap): Likewise.
19827         (mmap64, mremap): Likewise.  Adjust name in comment.
19828
19829 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19830
19831         * libio/fileops.c: Fix typos in comments.
19832         * libio/oldfileops.c: Likewise.
19833         * libio/wfileops.c: Likewise.
19834
19835 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19836
19837         [BZ #1349]
19838         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19839         (tst-malloc-usable-ENV): Set environment for test case.
19840         * malloc/hooks.c (malloc_check_get_size): New function to get
19841         requested size.
19842         * malloc/malloc.c (musable): Use malloc_check_get_size.
19843         * malloc/tst-malloc-usable.c: New test case.
19844
19845 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19846
19847         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19848
19849 2012-09-05  Allan McRae  <allan@archlinux.org>
19850
19851         [BZ #13966]
19852         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19853         determine header location.
19854         * configure: Regenerated.
19855
19856 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19857
19858         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19859         float format.
19860         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19861         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19862         format.
19863         (test): Regenerate.
19864
19865 2012-09-04  David S. Miller  <davem@davemloft.net>
19866
19867         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19868         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19869         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19870
19871 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19872
19873         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19874         failures.
19875
19876         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19877
19878 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19879
19880         [BZ #9914]
19881         * libio/iogetdelim.c: Include <limits.h>.
19882         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19883         + len + 1 would overflow.
19884
19885 2012-09-03  Andreas Jaeger  <aj@suse.de>
19886
19887         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19888         * sysdeps/i386/fpu/libm-test-ulps: Update.
19889
19890 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19891
19892         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19893         Add s_sinf-sse2, s_conf-sse2.
19894
19895         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19896         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19897         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19898         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19899
19900         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19901         for using routine as __sinf_ia32.
19902         Use macro for function declaration and weak_alias.
19903         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19904         for using routine as __cosf_ia32.
19905         Use macro for function declaration and weak_alias.
19906
19907         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19908         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19909
19910         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19911         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19912         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19913
19914         * math/libm-test.inc (cos_test): Add more test cases.
19915         (sin_test): Likewise.
19916         (sincos_test): Likewise.
19917
19918 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19919
19920         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19921         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19922         hidden.
19923         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19924
19925 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19926
19927         [BZ #14538]
19928         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19929         first element of the GOT.
19930         (elf_machine_load_address): Return the difference between
19931         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19932
19933 2012-09-01  Allan McRae  <allan@archlinux.org>
19934
19935         [BZ #13412]
19936         * configure.in (AWK): Require gawk version 3.0 or later.
19937         * configure: Regenerated.
19938
19939 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19940
19941         * sysdeps/unix/sysv/linux/kernel-features.h
19942         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19943         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19944         [__NR_clock_getres]: Make code unconditional.
19945         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19946         (clock_getcpuclockid): Remove code left unreachable by removal of
19947         conditionals.
19948         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19949         code unconditional.
19950         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19951         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19952         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19953         Make code unconditional.
19954         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19955         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19956         * sysdeps/unix/sysv/linux/clock_settime.c
19957         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19958         conditional code.
19959         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19960         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19961
19962 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19963
19964         [BZ #14476]
19965         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19966         scripts/test-installation.pl.
19967
19968         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19969         and $ld_so_version if it is set.
19970
19971 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19972
19973         [BZ #14516]
19974         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19975         failure if reading from procfs failed.
19976         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19977
19978 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19979
19980         * sysdeps/unix/sysv/linux/kernel-features.h
19981         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19982         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19983         Remove conditional code.
19984         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19985         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19986         Remove conditional code.
19987         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19988         * sysdeps/unix/sysv/linux/i386/fxstat.c
19989         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19990         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19991         * sysdeps/unix/sysv/linux/i386/fxstatat.c
19992         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19993         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19994         * sysdeps/unix/sysv/linux/i386/lxstat.c
19995         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19996         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19997         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
19998         Remove conditional code.
19999         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20000         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
20001         Remove conditional code.
20002         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20003         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
20004         <kernel-features.h>.
20005         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
20006         Remove.
20007         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
20008         Remove conditional code.
20009         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20010         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
20011         Remove conditional.
20012
20013 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
20014
20015         [BZ #5400]
20016         * NEWS: Add fixed bug number.
20017
20018 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
20019
20020         [BZ #14519]
20021         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
20022         underflowing exponent in case of negative sign.
20023         * stdlib/tst-strtod-round-data: Add more tests.
20024         * stdlib/tst-strtod-round.c (tests): Regenerated.
20025
20026         [BZ #3479]
20027         * stdlib/strtod_l.c (NDIG): Remove.
20028         (HEXNDIG): Likewise.
20029         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
20030         smallest representable value.
20031         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
20032         lie within an exact representation of 1/2 ulp of the result.
20033         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
20034         unconditionally.
20035         (TENS_P9_IDX): Define unconditionally.
20036         (TENS_P9_SIZE): Likewise.
20037         (TENS_P10_IDX): Likewise.
20038         (TENS_P10_SIZE): Likewise.
20039         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
20040         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
20041         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
20042         entries for 10^2^13 and 10^2^14.
20043         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
20044         (TENS_P13_IDX): Define.
20045         (TENS_P13_SIZE): Likewise.
20046         (TENS_P14_IDX): Likewise.
20047         (TENS_P14_SIZE): Likewise.
20048         (_fpioconst_pow10): Change array size to
20049         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
20050         unconditional.
20051         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
20052         1024]: Add entries for 10^2^13 and 10^2^14.
20053         [LAST_POW10 > _LAST_POW10]: Remove #error.
20054         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
20055         (_fpioconst_pow10): Change array size to
20056         FPIOCONST_POW10_ARRAY_SIZE.
20057         * stdlib/gen-fpioconst.c: New file.
20058         * stdlib/gen-tst-strtod-round.c: Likewise.
20059         * stdlib/tst-strtod-round-data: Likewise.
20060         * stdlib/tst-strtod-round.c: Likewise.
20061         * stdlib/Makefile (tests): Add tst-strtod-round.
20062
20063         [BZ #14459]
20064         * stdlib/strtod_l.c: Include <stdint.h>.
20065         (NDEBUG): Do not define.
20066         (round_and_return): Change EXPONENT parameter to type intmax_t.
20067         Rearrange calculations to avoid internal overflow possibilities.
20068         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
20069         Rearrange calculations to avoid internal overflow possibilities.
20070         Assert that number fits inside MPNSIZE limbs.
20071         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
20072         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
20073         calculations and add assertions to avoid internal overflow
20074         possibilities.  Add casts to avoid signed/unsigned operations.
20075         * stdlib/tst-strtod-overflow.c: New file.
20076         * stdlib/Makefile (tests): Add tst-strtod-overflow.
20077
20078 2012-08-25  Marek Polacek  <polacek@redhat.com>
20079
20080         * time/time.h: Fix some typos in comments.
20081
20082 2012-08-23  Roland McGrath  <roland@hack.frob.com>
20083
20084         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
20085         * posix/tst-rfc3484-2.c: Likewise.
20086         * posix/tst-rfc3484-3.c: Likewise.
20087
20088 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
20089
20090         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
20091         (EF_ARM_ABI_FLOAT_HARD): Likewise.
20092
20093 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
20094
20095         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
20096         #include of fxstatat64.c.
20097
20098 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20099
20100         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
20101         * shadow/getspent_r.c: Likewise.
20102         * shadow/getspnam.c: Likewise.
20103         * shadow/getspnam_r.c: Likewise.
20104         * gshadow/getsgent.c: Likewise.
20105         * gshadow/getsgent_r.c: Likewise.
20106         * gshadow/getsgnam.c: Likewise.
20107         * gshadow/getsgnam_r.c: Likewise.
20108         * inet/getnetbyad.c: Likewise.
20109         * inet/getnetbyad_r.c: Likewise.
20110         * inet/getnetbynm.c: Likewise.
20111         * inet/getnetbynm_r.c: Likewise.
20112         * inet/getnetent.c: Likewise.
20113         * inet/getnetent_r.c: Likewise.
20114         * inet/getproto.c: Likewise.
20115         * inet/getproto_r.c: Likewise.
20116         * inet/getprtent.c: Likewise.
20117         * inet/getprtent_r.c: Likewise.
20118         * inet/getprtname.c: Likewise.
20119         * inet/getprtname_r.c: Likewise.
20120         * inet/getrpcbyname.c: Likewise.
20121         * inet/getrpcbyname_r.c: Likewise.
20122         * inet/getrpcbynumber.c: Likewise.
20123         * inet/getrpcbynumber_r.c: Likewise.
20124         * inet/getrpcent.c: Likewise.
20125         * inet/getrpcent_r.c: Likewise.
20126         * inet/getaliasent.c: Likewise.
20127         * inet/getaliasent_r.c: Likewise.
20128         * inet/getaliasname.c: Likewise.
20129         * inet/getaliasname_r.c: Likewise.
20130         * nscd/getgrgid_r.c: Likewise.
20131         * nscd/getgrnam_r.c: Likewise.
20132         * nscd/gethstbyad_r.c: Likewise.
20133         * nscd/gethstbynm3_r.c: Likewise.
20134         * nscd/getpwnam_r.c: Likewise.
20135         * nscd/getpwuid_r.c: Likewise.
20136         * nscd/getsrvbynm_r.c: Likewise.
20137         * nscd/getsrvbypt_r.c: Likewise.
20138         * nscd/gai.c: Likewise.
20139
20140         * configure.in (build_nscd): New substituted variable, set
20141         by --disable-build-nscd and defaults to $use_nscd.
20142         * configure: Regenerated.
20143         * config.make.in (build-nscd): New substituted variable.
20144         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
20145         Change conditional to require [$(build-nscd) = yes] as well.
20146         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
20147
20148         [BZ# 13696]
20149         * configure.in (use_nscd): New substituted variable, set by
20150         --disable-nscd.  If enabled, define USE_NSCD.
20151         * configure: Regenerated.
20152         * config.h.in: Add USE_NSCD.
20153         * config.make.in (use-nscd): New substituted variable.
20154         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20155         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
20156         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
20157         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
20158         (CFLAGS-getgrnam_r.c): Likewise.
20159         (CFLAGS-initgroups.c): Likewise.
20160         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
20161         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
20162         Variables removed.
20163         * inet/getnetgrent_r.c
20164         (nscd_setnetgrent): New function, broken out of ...
20165         (setnetgrent): ... here.  Call it.
20166         (innetgr): Conditionalize nscd bits on [USE_NSCD].
20167         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
20168         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
20169         * nscd/Makefile (routines, aux): Move definitions after include of
20170         Makeconfig.  Conditionalize on [$(use-nscd) != no].
20171         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
20172         Conditionalize on [USE_NSCD].
20173         (is_nscd, nscd_init_cb): Likewise.
20174         (nss_load_library): Conditionalize init callback on [USE_NSCD].
20175         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
20176         * nss/nss_db/db-init.c: Likewise.
20177         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
20178         [USE_NSCD].
20179         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
20180         (make_request): Use it.
20181         (cache_valid_p): New function.
20182         (__check_pf): Use it.
20183         * NEWS: Add item for --disable-nscd.
20184
20185 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
20186
20187         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
20188         to support sed >= 4.2.1-20-ga9bf076.
20189         * configure: Regenerated.
20190
20191 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20192
20193         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
20194         Conditionalize whole body on [IREL].
20195
20196 2012-08-22  Jeff Law <law@redhat.com>
20197
20198         [BZ #14505]
20199         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
20200         if the family is PF_UNSPEC.
20201
20202 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
20203
20204         * Makerules (lib-version): Rename from V.
20205         (install-lib-nosubdir): Change V to lib-version.
20206
20207 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
20208
20209         [BZ #14252]
20210         * powerpc32/power6/wcschr.c: New file.
20211         * powerpc32/power6/wcscpy.c: New file.
20212         * powerpc32/power6/wcsrchr.c: New file.
20213         * powerpc64/power6/wcschr.c: New file.
20214         * powerpc64/power6/wcscpy.c: New file.
20215         * powerpc64/power6/wcsrchr.c: New file.
20216
20217 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20218
20219         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
20220         (two_way_short_needle): Use it.
20221         * string/strstr.c (AVAILABLE1_USES_J): Define.
20222         * string/strcasestr.c: Likewise.
20223
20224         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
20225         array references.
20226         * string/strcasestr.c (TOLOWER): Make side-effect safe.
20227
20228         [BZ #11607]
20229         * NEWS: Add an entry.
20230         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
20231         define their defaults.
20232         (two_way_short_needle): Detect end-of-string on-the-fly.
20233         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
20234         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
20235         * string/bug-strcasestr1.c: New test.
20236         * string/Makefile: Run it.
20237
20238 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20239
20240         [BZ #11607]
20241         * string/str-two-way.h (two_way_short_needle): Optimize matching of
20242         the first character.
20243
20244 2012-08-21  Roland McGrath  <roland@hack.frob.com>
20245
20246         * csu/elf-init.c (__libc_csu_irel): Function removed.
20247         * csu/libc-start.c (apply_irel): New function.
20248         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
20249
20250 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
20251
20252         * sysdeps/unix/sysv/linux/kernel-features.h
20253         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
20254         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20255         <kernel-features.h>.
20256         [__NR_fadvise64_64]: Make code unconditional.
20257         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
20258         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20259         !__NR_fadvise64_64)]: Likewise.
20260         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20261         !__NR_fadvise64_64))]: Likewise.
20262         [__NR_fadvise64]: Make code unconditional.
20263         [!__NR_fadvise64]: Remove conditional code.
20264         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
20265         <kernel-features.h>.
20266         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20267         unconditional.
20268         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20269         conditional code.
20270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
20271         not include <kernel-features.h>.
20272         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20273         unconditional.
20274         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20275         conditional code.
20276         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
20277         include <kernel-features.h>.
20278         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20279         unconditional.
20280         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20281         conditional code.
20282
20283 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20284
20285         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
20286         slight instruction rearrangements per scrollpipe analysis.
20287         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20288
20289 2012-08-20  Roland McGrath  <roland@hack.frob.com>
20290
20291         * manual/syslog.texi (syslog; vsyslog, closelog):
20292         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
20293         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
20294
20295         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
20296         DSOCAPS to match condition on defining it.
20297
20298 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
20299
20300         * sysdeps/unix/sysv/linux/kernel-features.h
20301         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
20302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
20303         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20304         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
20306         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20307         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
20309         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20310         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20311
20312         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
20313         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
20314
20315         * sysdeps/unix/sysv/linux/kernel-features.h
20316         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
20317         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
20318         unconditional.
20319         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20320         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
20321         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20322         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20323         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
20324         Make code unconditional.
20325         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20326         (__mmap64) [!__NR_mmap2]: Likewise.
20327         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
20328         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20329         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20330         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
20331         [__NR_mmap2]: Make code unconditional.
20332         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20333         (__mmap64) [!__NR_mmap2]: Likewise.
20334
20335 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20336
20337         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
20338
20339 2012-08-18  Andreas Jaeger  <aj@suse.de>
20340
20341         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
20342
20343 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20344
20345         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
20346         * include/unistd.h (__have_sock_cloexec): Likewise.
20347         (__have_pipe2): Likewise.
20348         (__have_dup3): Likewise.
20349
20350 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20351
20352         [BZ #9685]
20353         * include/unistd.h (__have_pipe2): Change define into an extern int.
20354         (__have_dup3): Likewise.
20355         * socket/have_sock_cloexec.c: Include fcntl.h.
20356         (__have_pipe2): New variable.
20357         (__have_dup3): Likewise.
20358
20359 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
20360
20361         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20362
20363 2012-08-17  Marek Polacek  <polacek@redhat.com>
20364
20365         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20366         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20367
20368 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20369
20370         * configure.in: Add AC_SUBST for sysheaders.
20371         * configure: Regenerated.
20372         * config.make.in (sysheaders): New substituted variable.
20373
20374         * sysdeps/unix/mkfifo.c: Moved ...
20375         * sysdeps/posix/mkfifo.c: ... here.
20376         * sysdeps/unix/mkfifoat.c: Moved ...
20377         * sysdeps/posix/mkfifoat.c: ... here.
20378
20379         * sysdeps/unix/utime.c: Moved ...
20380         * sysdeps/posix/utime.c: ... here.
20381
20382         * sysdeps/unix/time.c: Moved ...
20383         * sysdeps/posix/time.c: ... here.
20384         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20385         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20386
20387         * sysdeps/unix/nice.c: Moved ...
20388         * sysdeps/posix/nice.c: ... here.
20389
20390         * sysdeps/unix/alarm.c: Moved ...
20391         * sysdeps/posix/alarm.c: ... here.
20392
20393         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20394
20395 2012-08-17  Jeff Law <law@redhat.com>
20396
20397         * intl/Makefile (codeset_mo): New variable.
20398         ($(codeset_mo)): New target.
20399         (tst-codeset.out): Depend on that.  Remove explicit rule.
20400         (tst-gettext3.out, tst-gettext5.out): Likewise.
20401         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20402         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20403         * intl/tst-codeset.sh: Remove.
20404         * intl/tst-gettext3.sh: Likewise.
20405         * intl/tst-gettext5.sh: Likewise.
20406
20407 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20408
20409         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20410         * sysdeps/unix/syscalls.list: ... here.
20411
20412         * sysdeps/posix/getaddrinfo.c
20413         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20414         (gaiconf_init, gaiconf_reload): Use them.
20415         [!_STATBUF_ST_NSEC]
20416         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20417         Define using time_t rather than struct timespec.
20418
20419         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20420         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20421         Macros removed.
20422         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20423         [!NO_THREADS].
20424         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20425         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20426         Likewise.
20427
20428         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20429         __libc_cleanup_push argument.
20430
20431         * bits/param.h: New file.
20432         * misc/sys/param.h: New file.
20433         * include/sys/param.h: New file.
20434         * misc/Makefile (headers): Add bits/param.h.
20435         * sysdeps/generic/sys/param.h: File removed.
20436         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20437         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20438         * sysdeps/mach/hurd/bits/param.h: New file.
20439         * sysdeps/mach/hurd/sys/param.h: File removed.
20440
20441         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20442         last change.
20443
20444         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20445         [_IO_MTSAFE_IO].
20446         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20447         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20448         New macros.
20449
20450         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20451         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20452         rather than -D_IO_MTSAFE_IO conditionally.
20453         * stdio-common/Makefile (CPPFLAGS): Likewise.
20454         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20455         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20456         Use $(libio-mtsafe).
20457         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20458         of -D_IO_MTSAFE_IO.
20459         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20460         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20461         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20462         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20463         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20464         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20465         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20466         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20467         (CFLAGS-fread_u_chk.c): Likewise.
20468         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20469         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20470         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20471         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20472         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20473         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20474         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20475         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20476         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20477
20478         * libio/Makefile: Test [$(libc-reentrant) = yes]
20479         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20480
20481         * Makeconfig
20482         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20483         * sysdeps/pthread/configure: File removed.
20484         * sysdeps/pthread/Makeconfig: New file.
20485         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20486         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20487
20488 2012-08-16  Gary Benson  <gbenson@redhat.com>
20489
20490         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20491         unmapping the first object in a namespace.
20492
20493 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20494
20495         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20496         (__internal_setnetgrent): ... this.  Add internal_function to
20497         definition.  Add libc_hidden_def.
20498         (setnetgrent): Update caller.
20499         (internal_endnetgrent): Renamed to ...
20500         (__internal_endnetgrent): ... this.  Add internal_function to
20501         definition.  Add libc_hidden_def.
20502         (endnetgrent): Update caller.
20503         (internal_getnetgrent_r): Renamed to ...
20504         (__internal_getnetgrent_r): ... this.  Add internal_function to
20505         definition.  Add libc_hidden_def.
20506         (__getnetgrent_r): Update caller.
20507         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20508
20509 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20510
20511         * stdlib/longlong.h: Update from GCC.
20512
20513 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20514
20515         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20516         on _QL, which is set by umul_ppmm but never used.
20517         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20518         variables, which are set by GMP macros but never used.
20519         * stdio-common/_itowa.c (_itowa): Likewise.
20520         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20521         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20522
20523 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20524
20525         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20526         struct La_sh_regs is not constant.
20527         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20528         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20529         and struct La_sparc64_regs are not constant.
20530
20531 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20532
20533         * sysdeps/unix/sysv/linux/kernel-features.h
20534         (__ASSUME_POSIX_TIMERS): Remove.
20535         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20536         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20537         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20538         Make code unconditional.
20539         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20540         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20541         Make code unconditional.
20542         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20543         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20544         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20545         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20546         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20547         Make code unconditional.
20548         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20549         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20550         (__libc_missing_posix_timers): Remove.
20551
20552 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20553
20554         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20555         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20556
20557         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20558
20559         * elf/dl-sym.c: Include <stdlib.h>.
20560
20561         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20562         constants, which avoids warnings in 32-bit builds.
20563
20564         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20565         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20566
20567         * misc/lseek.c: File moved to ...
20568         * io/lseek.c: ... here.
20569
20570         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20571
20572         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20573         shifting LEN more than 31 bits at once.
20574
20575 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20576
20577         [BZ #14195]
20578         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20579         segmentation fault for a case of two empty input strings.
20580         * string/test-strncasecmp.c (check1): Renamed to...
20581         (bz12205): ...this.
20582         (bz14195): Add new testcase for two empty input strings and N > 0.
20583         (test_main): Call new testcase, adapt for renamed function.
20584
20585 2012-08-15  Andreas Jaeger  <aj@suse.de>
20586
20587         [BZ #14090]
20588         * crypt/md5test2.c: New test, based on test supplied by Serge
20589         Belyshev <belyshev@depni.sinp.msu.ru>.
20590         * crypt/Makefile (xtests): Add md5test-giant..
20591         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20592
20593 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20594
20595         [BZ #14090]
20596         * crypt/md5.c (md5_process_block): Don't assume the buffer
20597         length is less than 2**32.
20598         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20599         length is less than 2**64.
20600
20601 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20602
20603         * string/str-two-way.h: Include <sys/param.h>.
20604         (MAX): Macro removed.
20605
20606         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20607         Move #define and #undef of memmove to just before and after
20608         including <string.h>.
20609
20610         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20611         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20612         and after including <string.h>.  Move declarations of
20613         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20614         to before #include "string/memmove.c".
20615
20616         * include/dirent.h: Declare __getdirentries.
20617
20618         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20619         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20620
20621 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20622
20623         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20624         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20625         * sysdeps/i386/configure: Regenerated.
20626         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20627         STABS_CURRENT_FILE, and STABS_FUN.
20628         (END): Remove call to STABS_FUN_END.
20629         (STABS_CURRENT_FILE1): Delete.
20630         (STABS_CURRENT_FILE): Likewise.
20631         (STABS_FUN): Likewise.
20632         (STABS_FUN_END): Likewise.
20633         (STABS_FUN2): Likewise.
20634         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20635         * sysdeps/x86_64/configure: Regenerated.
20636
20637 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20638
20639         * elf/dl-open.c: Include <atomic.h>.
20640         * elf/dl-lookup.c: Likewise.
20641
20642 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20643
20644         * sysdeps/unix/sysv/linux/kernel-features.h
20645         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20646         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20647         unconditionally.
20648         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20649         unconditionally.
20650         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20651         condition on __ASSUME_CLONE_THREAD_FLAGS.
20652
20653 2012-08-14  Andreas Jaeger  <aj@suse.de>
20654
20655         * sysdeps/i386/fpu/libm-test-ulps: Update.
20656
20657 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20658
20659         * include/atomic.h (atomic_exchange_and_add): Split into ...
20660         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20661         New atomic macros.
20662
20663 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20664
20665         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20666
20667 2012-08-13  Jeff Law <law@redhat.com>
20668
20669         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20670         null byte in the output string.
20671
20672 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20673
20674         * sysdeps/unix/sysv/linux/kernel-features.h
20675         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20676         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20677         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20678         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20679         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20680         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20681         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20682
20683 2012-08-09  Jeff Law <law@redhat.com>
20684
20685         [BZ #13939]
20686         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20687         When avoid_arena is set, don't retry in the that arena.  Pick the
20688         next one, whatever it might be.
20689         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20690         (arena_lock): Pass in new parameter to arena_get2.
20691         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20692         arena_get2.
20693         (__libc_malloc): Unify retrying after main arena failure with
20694         __libc_memalign version.
20695         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20696
20697 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20698
20699         [BZ #14166]
20700         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20701         to __redirect_strstr.
20702         (__strstr_sse42): Use typeof __redirect_strstr.
20703         (__strstr_ia32): Likewise.
20704         (__libc_strstr): New prototype.
20705         (strstr): Renamed to ...
20706         (__libc_strstr): This.
20707         (strstr): New strong alias of __libc_strstr.
20708         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20709         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20710         __redirect_time.
20711         Include <time.h>.
20712         (__libc_time): New prototype.
20713         (time_ifunc): Replace time with __libc_time.
20714         (time): New strong alias and hidden definition of __libc_time.
20715         (__GI_time): Remove strong alias.
20716         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20717         Include <stddef.h>.
20718         (memmove): Redefined to __redirect_memmove.
20719         (__memmove_sse2): Use typeof __redirect_memmove.
20720         (__memmove_ssse3): Likewise.
20721         (__memmove_ssse3_back): Likewise.
20722         (__libc_memmove): New prototype.
20723         (memmove): Renamed to ...
20724         (__libc_memmove): This.
20725         (memmove): New strong alias of __libc_memmove.
20726
20727 2012-08-08  Mark Salter  <msalter@redhat.com>
20728
20729         * elf/elf.h
20730         (R_MN10300_TLS_GD): Define.
20731         (R_MN10300_TLS_LD): Likewise.
20732         (R_MN10300_TLS_LDO): Likewise.
20733         (R_MN10300_TLS_GOTIE): Likewise.
20734         (R_MN10300_TLS_IE): Likewise.
20735         (R_MN10300_TLS_LE): Likewise.
20736         (R_MN10300_TLS_DTPMOD): Likewise.
20737         (R_MN10300_TLS_DTPOFF): Likewise.
20738         (R_MN10300_TLS_TPOFF): Likewise.
20739         (R_MN10300_SYM_DIFF): Likewise.
20740         (R_MN10300_ALIGN): Likewise.
20741         (R_MN10300_NUM): Update.
20742
20743 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20744
20745         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20746         Remove.
20747
20748 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20749
20750         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20751
20752         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20753         sysdeps/unix -> sysdeps/posix move.
20754         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20755
20756 2012-08-07      Allan McRae     <allan@archlinux.org>
20757
20758         [BZ #14303]
20759         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20760         (SUNOS_CPP): Likewise.
20761         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20762         not found.
20763         (open_input): Call CPP using execvp.
20764
20765 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20766
20767         * sysdeps/unix/sysv/linux/kernel-features.h
20768         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20769         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20770         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20771         (__ASSUME_WAITID_SYSCALL): Likewise.
20772         * sysdeps/unix/sysv/linux/dl-execstack.c
20773         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20774         code unconditional.
20775         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20776         conditional code.
20777         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20778         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20779         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20780         code.
20781         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20782         unconditional.
20783         [__ASSUME_WAITID_SYSCALL]: Likewise.
20784         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20785
20786 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20787
20788         * sysdeps/unix/closedir.c: Renamed to ...
20789         * sysdeps/posix/closedir.c: ... here.
20790         * sysdeps/unix/dirfd.c: Renamed to ...
20791         * sysdeps/posix/dirfd.c: ... here.
20792         * sysdeps/unix/dirstream.h: Renamed to ...
20793         * sysdeps/posix/dirstream.h: ... here.
20794         * sysdeps/unix/fdopendir.c: Renamed to ...
20795         * sysdeps/posix/fdopendir.c: ... here.
20796         * sysdeps/unix/opendir.c: Renamed to ...
20797         * sysdeps/posix/opendir.c: ... here.
20798         * sysdeps/unix/readdir.c: Renamed to ...
20799         * sysdeps/posix/readdir.c: ... here.
20800         * sysdeps/unix/readdir_r.c: Renamed to ...
20801         * sysdeps/posix/readdir_r.c: ... here.
20802         * sysdeps/unix/rewinddir.c: Renamed to ...
20803         * sysdeps/posix/rewinddir.c: ... here.
20804         * sysdeps/unix/seekdir.c: Renamed to ...
20805         * sysdeps/posix/seekdir.c: ... here.
20806         * sysdeps/unix/telldir.c: Renamed to ...
20807         * sysdeps/posix/telldir.c: ... here.
20808         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20809         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20810         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20811         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20812
20813         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20814         * bits/fcntl.h: ... here.
20815
20816         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20817         not 0.
20818         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20819         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20820         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20821         (struct flock): Move l_start, l_len to the beginning.
20822         Use __pid_t for l_pid.
20823         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20824         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20825         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20826         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20827         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20828         [__USE_LARGEFILE64] (struct flock64): New type.
20829         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20830
20831         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20832         * bits/dirent.h: ... here.
20833
20834         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20835         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20836
20837 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20838
20839         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20840         Change from 2.6.0 to 2.6.16.
20841         * sysdeps/unix/sysv/linux/configure: Regenerated.
20842         * sysdeps/unix/sysv/linux/kernel-features.h
20843         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20844         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20845         version.
20846         (__ASSUME_UTIMES): Likewise.
20847         (__ASSUME_CLONE_STOPPED): Remove.
20848         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20849         architectures, not kernel version.
20850         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20851         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20852         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20853         (__ASSUME_WAITID_SYSCALL): Likewise.
20854         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20855         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20856         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20857         refer to older versions.
20858
20859 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20860
20861         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20862         Define alphasort64 as an alias.
20863         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20864         Define versionsort64 as an alias.
20865         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20866         Define scandir64 as an alias.
20867         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20868         Define scandirat64 as an alias.
20869         * dirent/alphasort64.c (alphasort64):
20870         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20871         * dirent/versionsort64.c: Likewise.
20872         * dirent/scandir64.c: Likewise.
20873         * dirent/scandirat64.c: Likewise.
20874         * sysdeps/wordsize-64/alphasort.c: File removed.
20875         * sysdeps/wordsize-64/alphasort64.c: File removed.
20876         * sysdeps/wordsize-64/scandir.c: File removed.
20877         * sysdeps/wordsize-64/scandir64.c: File removed.
20878         * sysdeps/wordsize-64/scandirat.c: File removed.
20879         * sysdeps/wordsize-64/scandirat64.c: File removed.
20880         * sysdeps/wordsize-64/versionsort.c: File removed.
20881         * sysdeps/wordsize-64/versionsort64.c: File removed.
20882         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20883         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20884         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20885         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20886         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20887         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20888         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20889         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20890
20891         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20892         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20893         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20894         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20895         [defined __arch64__ || defined __sparcv9]
20896         (__INO_T_MATCHES_INO64_T): New macro.
20897         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20898         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20899         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20900         * sysdeps/unix/sysv/linux/bits/dirent.h
20901         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20902         (_DIRENT_MATCHES_DIRENT64): New macro.
20903
20904         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20905         Define lockf64 as an alias.
20906         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20907         Define fseeko64 as an alias.
20908         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20909         Define ftello64 as an alias.
20910         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20911         Define _IO_fgetpos64 and fgetpos64 as aliases.
20912         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20913         Define _IO_fsetpos64 and fsetpos64 as aliases.
20914         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20915         Conditionalize body on this.
20916         * libio/fseeko64.c: Likewise.
20917         * libio/ftello64.c: Likewise.
20918         * libio/iofgetpos64.c: Likewise.
20919         * libio/iofsetpos64.c: Likewise.
20920         * sysdeps/wordsize-64/lockf.c: File removed.
20921         * sysdeps/wordsize-64/lockf64.c: File removed.
20922         * sysdeps/wordsize-64/fseeko.c: File removed.
20923         * sysdeps/wordsize-64/fseeko64.c: File removed.
20924         * sysdeps/wordsize-64/ftello.c: File removed.
20925         * sysdeps/wordsize-64/ftello64.c: File removed.
20926         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20927         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20928         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20929         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20930         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20931         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20932         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20933         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20934         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20935         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20936         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20937         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20938         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20939         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20940
20941         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20942         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20943         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20944         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20945         [defined __arch64__ || defined __sparcv9]
20946         (__OFF_T_MATCHES_OFF64_T): New macro.
20947         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20948         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20949         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20950         (__OFF_T_MATCHES_OFF64_T): New macro.
20951
20952 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20953
20954         * stdlib/secure-getenv.c (__secure_getenv): Replace
20955         GLIBC_2_16 with GLIBC_2_17.
20956
20957 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20958
20959         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20960         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20961
20962 2012-08-03  David S. Miller  <davem@davemloft.net>
20963
20964         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20965
20966 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20967
20968         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20969         Remove.
20970         (__ASSUME_CORRECT_SI_PID): Likewise.
20971         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20972         (__ASSUME_TMPFS_NAME): Likewise.
20973         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20974         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20975         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20976         (HAVE_AUX_SECURE): Make definition unconditional.
20977         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20978         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20979
20980 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20981
20982         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20983         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20984         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20985         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20986         __eloop_threshold instead of SYMLOOP_MAX.
20987
20988         * sysdeps/generic/eloop-threshold.h: New file.
20989         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20990         of MAXSYMLINKS.
20991         * elf/chroot_canon.c (chroot_canon): Likewise.
20992
20993 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20994
20995         [BZ #13717]
20996         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20997         Change to 2.6.0 everywhere.
20998         * sysdeps/unix/sysv/linux/configure: Regenerated.
20999         * sysdeps/unix/sysv/linux/kernel-features.h
21000         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
21001         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
21002         kernel versions.
21003         (__ASSUME_POSIX_TIMERS): Define unconditionally.
21004         (__ASSUME_FUTEX_REQUEUE): Remove.
21005         (__ASSUME_STATFS64): Define unconditionally.
21006         (__ASSUME_AT_SECURE): Likewise.
21007         (__ASSUME_CORRECT_SI_PID): Likewise.
21008         (__ASSUME_TGKILL): Define without depending on kernel version for
21009         i386.
21010         (__ASSUME_UTIMES): Likewise.
21011         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
21012         kernel version.
21013         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
21014         (__ASSUME_TMPFS_NAME): Likewise.
21015         * README: Update reference to Linux kernel versions.
21016
21017 2012-08-02  Marek Polacek  <polacek@redhat.com>
21018
21019         [BZ# 14150]
21020         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
21021         libc_cv_asm_type_prefix with %.
21022         * configure: Regenerated.
21023         * include/libc-symbols.h: Remove comment about
21024         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
21025         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
21026         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
21027         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
21028         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
21029         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
21030         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
21031         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
21032         * elf/tst-unique2mod1.c: Likewise.
21033         * elf/tst-unique1mod2.c: Likewise.
21034         * elf/tst-unique1mod1.c: Likewise.
21035         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
21036         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
21037         Replace ASM_TYPE_DIRECTIVE with .type.
21038         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21039         * sysdeps/i386/sysdep.h: Likewise.
21040         * sysdeps/x86_64/sysdep.h: Likewise.
21041         * sysdeps/sh/sysdep.h: Likewise.
21042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
21043         Do not define ASM_TYPE_DIRECTIVE.
21044         * sysdeps/powerpc/sysdep.h: Likewise.
21045         * sysdeps/powerpc/powerpc32/sysdep.h:
21046         Replace ASM_TYPE_DIRECTIVE with .type.
21047         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21048         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21049         * sysdeps/i386/fpu/e_powf.S: Likewise.
21050         * sysdeps/i386/fpu/e_expl.S: Likewise.
21051         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21052         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21053         * sysdeps/i386/fpu/e_pow.S: Likewise.
21054         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21055         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21056         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21057         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21058         * sysdeps/i386/fpu/e_log2.S: Likewise.
21059         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21060         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21061         * sysdeps/i386/fpu/e_powl.S: Likewise.
21062         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21063         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21064         * sysdeps/i386/fpu/e_logl.S: Likewise.
21065         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21066         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21067         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21068         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21069         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21070         * sysdeps/i386/fpu/e_log.S: Likewise.
21071         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21072         * sysdeps/i386/fpu/e_logf.S: Likewise.
21073         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21074         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21075         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21076         * sysdeps/i386/fpu/e_log10.S: Likewise.
21077         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21078         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21079         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21080         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21081         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21082         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
21083         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21084         * sysdeps/i386/i686/strtok.S: Likewise.
21085         * sysdeps/i386/i386-mcount.S: Likewise.
21086         * sysdeps/i386/strtok.S: Likewise.
21087         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
21088         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21089         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21090         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21091         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
21092         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21093         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21094         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21095         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21096         * sysdeps/x86_64/_mcount.S: Likewise.
21097         * sysdeps/x86_64/strtok.S: Likewise.
21098         * sysdeps/sh/_mcount.S: Likewise.
21099
21100 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21101
21102         * libio/iofopen.c: Include <fcntl.h>.
21103         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
21104         (_IO_fopen64, fopen64): Define as aliases.
21105         * libio/iofopen64.c: Include <fcntl.h>.
21106         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
21107         Conditionalize body on this.
21108         * sysdeps/wordsize-64/iofopen.c: File removed.
21109         * sysdeps/wordsize-64/iofopen64.c: File removed.
21110
21111 2012-08-01  Marek Polacek  <polacek@redhat.com>
21112
21113         * libc/Makeconfig: Use elf in place of binfmt-subdir.
21114         Use dlfcn directly instead of a variable.
21115         (binfmt-subdir): Do not define.
21116         (dlfcn): Likewise.
21117
21118 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
21119
21120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
21121         Remove all definitions.
21122         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
21123         <kernel-features.h>.
21124         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21125         (miss_F_GETOWN_EX): Remove all definitions.
21126         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
21127         macro definition.
21128         [!__ASSUME_FCNTL64]: Remove conditional code.
21129         [__ASSUME_FCNTL64]: Make code unconditional.
21130         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
21131         <kernel-features.h>.
21132         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21133         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
21134         (lockf64) [__NR_fcntl64]: Make code unconditional.
21135         (lockf64) [__ASSUME_FCNTL64]: Likewise.
21136
21137         * sysdeps/unix/sysv/linux/kernel-features.h
21138         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
21139         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
21140         Make code unconditional.
21141         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21142         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
21144         [__NR_vfork]: Make code unconditional.
21145         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21146         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
21148         [__NR_vfork]: Make code unconditional.
21149         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21150         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21151
21152 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21153
21154         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
21155         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
21156
21157         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21158         Define mkstemp64 as an alias.
21159         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21160         Define mkstemps64 as an alias.
21161         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21162         Define mkostemp64 as an alias.
21163         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21164         Define mkostemps64 as an alias.
21165         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
21166         Conditionalize body on this.
21167         * misc/mkostemp64.c: Likewise.
21168         * misc/mkostemps64.c: Likewise.
21169         * misc/mkstemps64.c: Likewise.
21170         * sysdeps/wordsize-64/mkstemp64.c: File removed.
21171         * sysdeps/wordsize-64/mkostemp64.c: File removed.
21172         * sysdeps/wordsize-64/mkostemp.c: File removed.
21173         * sysdeps/wordsize-64/mkstemp.c: File removed.
21174         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
21175         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
21176         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
21177         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
21178
21179         [BZ #14138]
21180         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
21181         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
21182         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
21183         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
21184
21185         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
21186         compat_symbol macros from <shlib-compat.h> rather than the underlying
21187         default_symbol_version and symbol_version macros, so that DEFAULT
21188         lines in shlib-versions are respected.
21189         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
21190
21191 2012-08-01  Florian Weimer  <fweimer@redhat.com>
21192
21193         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
21194         Declare with warn_unused_result.
21195         (setgid, setregid, setegid, setresgid): Likewise.
21196         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
21197         Likewise.
21198         * WUR-REPORT: Remove set*id functions.
21199
21200 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
21201
21202         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
21203
21204 2012-07-31  Roland McGrath  <roland@hack.frob.com>
21205
21206         [BZ #10191]
21207         * include/sys/socket.h (__libc_accept, __libc_accept4):
21208         Add attribute_hidden.
21209         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
21210
21211         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
21212         use of PTR_MANGLE.
21213         * inet/getnetgrent_r.c (setup): Likewise.
21214
21215         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
21216
21217 2012-07-31  David S. Miller  <davem@davemloft.net>
21218
21219         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21220
21221 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
21222
21223         [BZ #13629]
21224         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
21225         value between 1.0 and 2.0 and smaller part has absolute value less
21226         than 1.0.
21227         * math/s_clog10.c (__clog10): Likewise.
21228         * math/s_clog10f.c (__clog10f): Likewise.
21229         * math/s_clog10l.c (__clog10l): Likewise.
21230         * math/s_clogf.c (__clogf): Likewise.
21231         * math/s_clogl.c (__clogl): Likewise.
21232         * math/libm-test.inc (clog_test): Add more tests.
21233         (clog10_test): Likewise.
21234         * sysdeps/i386/fpu/libm-test-ulps: Update.
21235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21236
21237 2012-07-31  Florian Weimer  <fweimer@redhat.com>
21238
21239         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
21240         Exit with zero in case no suitable GID is found, and write a
21241         message to standard error.
21242
21243 2012-07-30  Roland McGrath  <roland@hack.frob.com>
21244
21245         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
21246         rather than to 1.
21247         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
21248         (MAXPATHLEN): Removed.
21249         (NOGROUP, NODEV): New macros.
21250         (setbit, clrbit, isset, isclr): New macros.
21251         (howmany, roundup, powerof2): New macros.
21252         (DEV_BSIZE): New macro.
21253
21254         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
21255         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
21256
21257         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
21258         definition on [!__NO_LONG_DOUBLE_MATH].
21259
21260         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
21261         PTR_MANGLE and PTR_DEMANGLE.
21262
21263         * socket/accept4.c (accept4): Rename to __libc_accept4.
21264         Define accept4 as a weak alias.
21265
21266         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
21267         on [_DIRENT_HAVE_D_TYPE].
21268         * io/ftw.c (ftw_dir): Likewise.
21269
21270         * io/xmknod.c (__xmknod): Don't check PATH for being null.
21271
21272         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
21273
21274         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
21275         Use the BSD numbers rather than the arbitrary ones we had.
21276         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
21277         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
21278         (SIGXCPU, SIGXFSZ): New macros.
21279         (_NSIG): Now 32.
21280
21281         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
21282         initializer on [_LIBC_REENTRANT].
21283
21284         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
21285         definitions inside [_POSIX_MAPPED_FILES].
21286
21287         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
21288
21289         * dirent/opendir.c: Include <fcntl.h>.
21290
21291         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
21292         (__libc_getspecific): Likewise.
21293         (__libc_key_create): Likewise.
21294
21295         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
21296         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
21297         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
21298         (tmpfile64): Define as alias.
21299         * sysdeps/wordsize-64/tmpfile.c: File removed.
21300         * sysdeps/wordsize-64/tmpfile64.c: File removed.
21301         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
21302         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
21303
21304         * stdio-common/vfscanf.c: Include <stdbool.h>.
21305         * nss/makedb.c: Likewise.
21306         * stdio-common/_i18n_number.h: Likewise.
21307         * argp/argp-help.c: Likewise.
21308         * posix/wordexp.c: Likewise.
21309         * sysdeps/posix/spawni.c: Likewise.
21310         * nss/nss_files/files-initgroups.c: Likewise.
21311         * stdio-common/reg-modifier.c: Include <stdlib.h>.
21312         * nss/nss_files/files-initgroups.c: Likewise.
21313         * nss/nss_db/db-netgrp.c: Likewise.
21314         * nss/nss_db/db-initgroups.c: Likewise.
21315         * io/fchmodat.c: Include <sys/stat.h>.
21316
21317         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
21318         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
21319
21320         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
21321         [HAVE_MMAP].
21322
21323         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
21324         Add multiple inclusion protection.
21325
21326 2012-07-27  David S. Miller  <davem@davemloft.net>
21327
21328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21329
21330 2012-07-27  Gary Benson  <gbenson@redhat.com>
21331
21332         [BZ #14298]
21333         * elf/rtld.c: Include <stap-probe.h>.
21334         (dl_main): Added static probes "init_start" and "init_complete".
21335         * elf/dl-load.c: Include <stap-probe.h>.
21336         (lose): Take new parameter "nsid".
21337         Added static probe "map_failed".
21338         (_dl_map_object_from_fd): Pass namespace id to lose.
21339         Added static probe "map_start".
21340         (open_verify): Pass namespace id to lose.
21341         * elf/dl-open.c: Include <stap-probe.h>.
21342         (dl_open_worker) Added static probes "map_complete", "reloc_start"
21343         and "reloc_complete".
21344         * elf/dl-close.c: Include <stap-probe.h>.
21345         (_dl_close_worker): Added static probes "unmap_start" and
21346         "unmap_complete".
21347         * elf/rtld-debugger-interface.txt: New file documenting the above.
21348
21349 2012-07-26  Roland McGrath  <roland@hack.frob.com>
21350
21351         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
21352         rather than a string variable.
21353         * sunrpc/rpc_main.c (h_output): Likewise.
21354         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
21355
21356 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
21357
21358         * inet/check_native.c: New file.
21359
21360 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
21361
21362         [BZ #13629]
21363         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21364         if larger part has absolute value 1.0.
21365         * math/s_clog10.c (__clog10): Likewise.
21366         * math/s_clog10f.c (__clog10f): Likewise.
21367         * math/s_clog10l.c (__clog10l): Likewise.
21368         * math/s_clogf.c (__clogf): Likewise.
21369         * math/s_clogl.c (__clogl): Likewise.
21370         * math/libm-test.inc (clog_test): Add more tests.
21371         (clog10_test): Likewise.
21372         * sysdeps/i386/fpu/libm-test-ulps: Update.
21373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21374
21375         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21376         (pltexit): Likewise.
21377         (La_regs): Likewise.
21378         (La_retval): Likewise.
21379         (int_retval): Likewise.
21380         Update #error for removed macros to refer only to definitions in
21381         tst-audit.h.
21382         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21383         macro.
21384         (pltexit): Likewise.
21385         (La_regs): Likewise.
21386         (La_retval): Likewise.
21387         (int_retval): Likewise.
21388         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21389         macro.
21390         (pltexit): Likewise.
21391         (La_regs): Likewise.
21392         (La_retval): Likewise.
21393         (int_retval): Likewise.
21394         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21395         macro.
21396         (pltexit): Likewise.
21397         (La_regs): Likewise.
21398         (La_retval): Likewise.
21399         (int_retval): Likewise.
21400         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21401         macro.
21402         (pltexit): Likewise.
21403         (La_regs): Likewise.
21404         (La_retval): Likewise.
21405         (int_retval): Likewise.
21406         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21407         macro.
21408         (pltexit): Likewise.
21409         (La_regs): Likewise.
21410         (La_retval): Likewise.
21411         (int_retval): Likewise.
21412         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21413         macro.
21414         (pltexit): Likewise.
21415         (La_regs): Likewise.
21416         (La_retval): Likewise.
21417         (int_retval): Likewise.
21418         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21419         macro definitions in tst-audit.h.
21420         * sysdeps/i386/tst-audit.h: New file.
21421         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21422         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21423         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21424         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21425         * sysdeps/sh/tst-audit.h: Likewise.
21426         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21427         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21428         * sysdeps/x86_64/tst-audit.h: Likewise.
21429
21430 2012-07-26  Andreas Jaeger  <aj@suse.de>
21431
21432         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21433         ptrace.
21434
21435         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21436         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21437         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21438         PTRACE_O_MASK.
21439         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21440         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21441         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21442
21443         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21444         value.
21445
21446         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21447         _sigsys.
21448         (si_call_addr, si_syscall, si_arch): Define new macro.
21449         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21450         _sigsys.
21451         (si_call_addr, si_syscall, si_arch): Define new marcro.
21452         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21453         _sigsys.
21454         (si_call_addr, si_syscall, si_arch): Define new macro.
21455         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21456         _sigsys.
21457         (si_call_addr, si_syscall, si_arch): Define new macro.
21458
21459 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21460
21461         [BZ #13717]
21462         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21463         Change to 2.4.21 where previously 2.4.1.
21464         * sysdeps/unix/sysv/linux/configure: Regenerated.
21465         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21466         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21467         Linux kernel version.
21468         (__ASSUME_STD_AUXV): Remove.
21469         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21470         kernel version.
21471         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21472         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21473         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21474         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21475         (__ASSUME_NETLINK_SUPPORT): Likewise.
21476         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21477         (__no_netlink_support): Remove conditional definition.
21478         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21479         Remove.
21480         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21481         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21482         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21483         (if_nameindex_ioctl): Remove.
21484         (if_nameindex_netlink): Do not handle __no_netlink_support.
21485         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21486         code.
21487         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21488         Remove conditional code.
21489         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21490         code.
21491         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21492         unconditional.
21493         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21494         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21495         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21496         Remove.
21497         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21498         [!__ASSUME_STD_AUXV]: Remove conditional code.
21499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21500         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21501         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21503         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21504         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21505         code.
21506         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21508         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21509         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21510         conditional code.
21511         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21513         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21514         code.
21515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21516         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21517         conditional code.
21518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21519         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21520         code unconditional.
21521         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21522         conditional code.
21523         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21524         unconditional.
21525         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21526         conditional code.
21527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21528         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21529         unconditional.
21530         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21531         conditional code.
21532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21533         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21534         code unconditional.
21535         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21536         conditional code.
21537         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21538         unconditional.
21539         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21540         conditional code.
21541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21542         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21543         code unconditional.
21544         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21545         conditional code.
21546         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21547         unconditional.
21548         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21549         conditional code.
21550
21551 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21552
21553         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21554         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21555         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21556         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21557         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21558         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21559         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21560         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21561         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21562         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21563         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21564         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21565         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21566         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21567         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21568         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21569         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21570         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21571         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21572         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21573         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21574         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21575         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21576
21577 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21578
21579         * Versions.def: Add GLIBC_2.17.
21580         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21581         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21582         Introduce __libc_secure_getenv.
21583         * stdlib/Versions (2.17): Add secure_getenv
21584         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21585         * stdlib/secure-getenv.c: Rename __secure_getenv to
21586         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21587         symbol __secure_getenv for GLIBC_2.0.
21588         * stdlib/tst-secure-getenv.c: New.
21589         * stdlib/Makefile (tests): Add testcase.
21590         * manual/startup.texi (Environment Access): Document
21591         secure_getenv.
21592         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21593         __libc_secure_getenv.
21594         * inet/ruserpass.c (ruserpass): Likewise.
21595         * malloc/mtrace.c (mtrace): Likewise.
21596         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21597         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21598         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21599         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21600         HAVE_SECURE_GETENV.
21601         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21602         __secure_getenv to __libc_secure_getenv.
21603         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21605         Likewise.
21606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21607         Likewise.
21608         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21610         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21611         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21613         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21614         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21615
21616 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21617
21618         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21619         (struct La_i86_retval): Likewise.
21620         (struct La_x86_64_regs): Likewise.
21621         (struct La_x86_64_retval): Likewise.
21622         (struct La_x32_regs): Likewise.
21623         (struct La_x32_retval): Likewise.
21624         (struct La_ppc32_regs): Likewise.
21625         (struct La_ppc32_retval): Likewise.
21626         (struct La_ppc64_regs): Likewise.
21627         (struct La_ppc64_retval): Likewise.
21628         (struct La_sh_regs): Likewise.
21629         (struct La_sh_retval): Likewise.
21630         (struct La_s390_32_regs): Likewise.
21631         (struct La_s390_32_retval): Likewise.
21632         (struct La_s390_64_regs): Likewise.
21633         (struct La_s390_64_retval): Likewise.
21634         (struct La_sparc32_regs): Likewise.
21635         (struct La_sparc32_retval): Likewise.
21636         (struct La_sparc64_regs): Likewise.
21637         (struct La_sparc64_retval): Likewise.
21638         (struct audit_ifaces): Remove architecture-specific pltenter and
21639         pltexit members.
21640         * sysdeps/i386/ldsodefs.h: New file.
21641         * sysdeps/powerpc/ldsodefs.h: Likewise.
21642         * sysdeps/s390/ldsodefs.h: Likewise.
21643         * sysdeps/sh/ldsodefs.h: Likewise.
21644         * sysdeps/sparc/ldsodefs.h: Likewise.
21645         * sysdeps/x86_64/ldsodefs.h: Likewise.
21646
21647 2012-07-25  Marek Polacek  <polacek@redhat.com>
21648
21649         [BZ #6808]
21650         * math/libm-test.inc (yn_test): Add another test.
21651         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21652         to ERANGE when the result is +-Inf.
21653         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21654         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21655         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21656         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21657
21658 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21659
21660         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21661         equal to 0.
21662         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21663         clock_t.
21664         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21665
21666 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21667
21668         * configure.in <sysdeps resolving>: Correct printing
21669         Implies_before.
21670         * configure: Regenerate.
21671
21672 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21673
21674         * math/w_ilogb.c: Include <limits.h>.
21675         * math/w_ilogbl.c: Likewise.
21676
21677 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21678
21679         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21680         va_copy.  Document allowing for unavailable va_copy only as
21681         pre-C99 compatibility.
21682         * manual/string.texi (Copying and Concatenation): Use va_copy
21683         instead of __va_copy in concat example.
21684
21685 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21686
21687         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21688         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21689         it if not null.
21690
21691         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21692         with O_NOLINK passed to __file_name_lookup.
21693
21694         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21695         with O_NOLINK passed to __file_name_lookup.
21696
21697         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21698         negative N or less than NGIDS.
21699
21700         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21701         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21702         enough.  Use memcpy instead of strncpy.
21703
21704 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21705
21706         * elf/Makefile (check-data): Remove.
21707         (localplt.data): New vpath directive.
21708         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21709         instead of $(check-data).
21710         * scripts/data/localplt-generic.data: Move to ...
21711         * sysdeps/generic/localplt.data: ... here.
21712         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21713         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21714         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21716         ... here.
21717         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21719         ... here.
21720         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21721         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21722         ... here.
21723         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21725         ... here.
21726         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21727         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21728         ... here.
21729         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21730         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21731         ... here.
21732
21733 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21734
21735         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21736         PPC32 and PPC64 files.
21737         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21738         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21739
21740 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21741
21742         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21743         __makecontext_ret to ...
21744         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21745         ... here and call exit if uc_link is NULL.  New file.
21746         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21747         __makecontext_ret.S.
21748         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21749         __makecontext_ret to ...
21750         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21751         ... here and call exit if uc_link is NULL.  New file.
21752         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21753         __makecontext_ret.S.
21754
21755 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21756
21757         * elf/elf.h (R_390_IRELATIVE): New definition.
21758         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21759         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21760         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21761         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21762         (elf_machine_lazy_rel): Likewise.
21763         * sysdeps/s390/dl-irel.h: New file.
21764         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21765         * sysdeps/s390/s390-64/memset.S: New asm code.
21766         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21767         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21768         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21769         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21770         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21771         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21772         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21773         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21774         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21775         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21776         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21777         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21778         * sysdeps/s390/s390-32/memset.S: New asm code.
21779         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21780
21781 2012-07-17  Marek Polacek  <polacek@redhat.com>
21782
21783         [BZ #14349]
21784         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21785         * sysdeps/s390/s390-64/configure.in: Likewise.
21786         * sysdeps/sparc/configure.in: Likewise.
21787         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21788         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21789         * sysdeps/i386/configure.in: Likewise.
21790         * sysdeps/x86_64/configure.in: Likewise.
21791         * sysdeps/sh/configure.in: Likewise.
21792         * sysdeps/s390/s390-32/configure: Regenerated.
21793         * sysdeps/s390/s390-64/configure: Likewise.
21794         * sysdeps/x86_64/configure: Likewise.
21795         * sysdeps/sh/configure: Likewise.
21796         * sysdeps/powerpc/powerpc64/configure: Likewise.
21797         * sysdeps/powerpc/powerpc32/configure: Likewise.
21798         * sysdeps/sparc/configure: Likwise.
21799         * sysdeps/i386/configure: Likewise.
21800
21801         * elf/dl-open.c: Comment fixes.
21802
21803 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21804
21805         * Makefile [CXX] (check-data): Remove.
21806         [CXX] (c++-types.data): New vpath directive.
21807         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21808         vpath.  Do not allow for C++ type data being missing.
21809         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21810         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21811         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21812         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21813         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21814         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21815         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21817         ... here.
21818         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21820         ... here.
21821         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21822         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21823         ... here.
21824         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21825         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21826         ... here.
21827         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21828         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21829         ... here.
21830         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21831         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21832         ... here.
21833         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21834         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21835         ... here.
21836         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21837         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21838
21839         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21840         definitions to architecture-specific files.
21841         (TLS_IE): Likewise.
21842         (TLS_LD): Likewise.
21843         (TLS_GD): Likewise.
21844         * sysdeps/i386/tls-macros.h: New file.
21845         * sysdeps/powerpc/tls-macros.h: Likewise.
21846         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21847         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21848         * sysdeps/sh/tls-macros.h: Likewise.
21849         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21850         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21851         * sysdeps/x86_64/tls-macros.h: Likewise.
21852
21853 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21854
21855         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21856         zero value for regular exit case.
21857
21858         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21859         (__start_context): Preserve zero value for regular exit case.
21860
21861 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21862             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21863
21864         * manual/setjmp.texi (setcontext): Clarify normal process
21865         termination when uc_link is the null pointer.
21866         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21867         exit call.
21868
21869 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21870
21871         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21872         preprocessor.  Test for each exception mask separately.
21873
21874 2012-07-16  Andreas Jaeger  <aj@suse.de>
21875
21876         * po/ru.po: Update from translation team.
21877
21878 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21879
21880         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21881         equal to 0.
21882         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21883         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21884         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21885         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21886         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21887
21888 2012-07-13  Andreas Jaeger  <aj@suse.de>
21889
21890         * po/fr.po: Update from translation team.
21891
21892 2012-07-12  Marek Polacek  <polacek@redhat.com>
21893
21894         [BZ #14173]
21895         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21896         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21897         loop condition.
21898
21899 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21900
21901         [BZ #13717]
21902         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21903         Change to 2.4.1 where previously 2.4.0.
21904         * sysdeps/unix/sysv/linux/configure: Regenerated.
21905         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21906         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21907         version.
21908         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21909         (__ASSUME_AT_CLKTCK): Remove.
21910         (__ASSUME_AT_PAGESIZE): Likewise.
21911         (__ASSUME_AT_XID): Likewise.
21912         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21913         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21914         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21915         unconditionally.
21916         (HAVE_AUX_PAGESIZE): Likewise.
21917         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21918         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21919         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21920
21921 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21922
21923         [BZ #14307]
21924         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21925         the temporary buffer used to invoke __gethostbyname2_r,
21926         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21927         host_data / struct gaih_addrtuple.
21928         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21929         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21930         header file nss/nsswitch.h.
21931         * nss/nsswitch.h (global scope): Add definition of implementation
21932         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21933         resolv/nss_dns/dns-host.c).
21934
21935 2012-07-11  Andreas Jaeger  <aj@suse.de>
21936
21937         * po/fr.po: Update from translation team.
21938
21939         * po/sv.po: Update from translation team
21940         * po/fr.po: Another update from translation team.
21941
21942 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21943
21944         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21945         for subnormals or multiply small sinh result by itself.
21946         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21947         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21948
21949 2012-07-11  David S. Miller  <davem@davemloft.net>
21950
21951         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21952
21953 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21954
21955         [BZ #14347]
21956         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21957         (INTERNAL_MARK): Shift it here.
21958
21959 2012-07-10  Marek Polacek  <polacek@redhat.com>
21960
21961         [BZ #14151]
21962         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21963         libc_cv_asm_global_directive with .globl.
21964         * configure: Regenerated.
21965         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21966         with .globl.
21967         * sysdeps/i386/configure: Regenerated.
21968         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21969         with .globl.
21970         * sysdeps/x86_64/configure: Regenerated.
21971         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21972         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21973         * elf/tst-unique2mod2.c: Likewise.
21974         * elf/tst-unique2mod1.c: Likewise.
21975         * elf/tst-unique1mod2.c: Likewise.
21976         * elf/tst-unique1mod1.c: Likewise.
21977         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21978         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21979         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21980         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21981         * sysdeps/mach/sysdep.h: Likewise.
21982         * sysdeps/i386/sysdep.h: Likewise.
21983         * sysdeps/i386/i386-mcount.S: Likewise.
21984         * sysdeps/x86_64/_mcount.S: Likewise.
21985         * sysdeps/x86_64/sysdep.h: Likewise.
21986         * sysdeps/sh/_mcount.S: Likewise.
21987         * sysdeps/sh/sysdep.h: Likewise.
21988         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21989         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21990         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
21991         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21992         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
21993         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
21994         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
21995         * locale/localeinfo.h: Likewise.
21996         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
21997         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
21998
21999 2012-07-09  Roland McGrath  <roland@hack.frob.com>
22000
22001         [BZ #14336]
22002         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
22003         system".
22004         * manual/message.texi (The Uniforum approach): Likewise.
22005         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
22006         (glibc iconv Implementation): Likewise.
22007
22008 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
22009
22010         [BZ #14337]
22011         * math/s_clog.c (__clog): Avoid scaling a value down where that
22012         could result in underflow.
22013         * math/s_clog10.c (__clog10): Likewise.
22014         * math/s_clog10f.c (__clog10f): Likewise.
22015         * math/s_clog10l.c (__clog10l): Likewise.
22016         * math/s_clogf.c (__clogf): Likewise.
22017         * math/s_clogl.c (__clogl): Likewise.
22018         * math/libm-test.inc (clog_test): Add more tests.
22019         (clog10_test): Likewise.
22020         * sysdeps/i386/fpu/libm-test-ulps: Update.
22021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22022
22023 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
22024
22025         [BZ #14283]
22026         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
22027         by 7 not 8 to examine high bit of fractional part.
22028
22029         [BZ #14042]
22030         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
22031         for call to __mcount_internal.
22032         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
22033         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
22034         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
22035
22036 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
22037
22038         [BZ #14154]
22039         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
22040         approximation for values within 0x1p-13f of an odd multiple of
22041         pi/4.
22042         * math/libm-test.inc (tan_test): Do not allow spurious underflow
22043         exception.  Add more tests.
22044         * sysdeps/i386/fpu/libm-test-ulps: Update.
22045
22046         [BZ #6778]
22047         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
22048         inputs and return -1 for them.  Do not check for +Inf in case not
22049         reachable for +Inf.
22050         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
22051         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
22052         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
22053         and return -1 for them.  Do not check for +Inf in case not
22054         reachable for +Inf.
22055         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
22056         define.
22057         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
22058         and return -1 for them.  Do not check for +Inf in case not
22059         reachable for +Inf.
22060         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
22061         spurious underflow.
22062         * sysdeps/i386/fpu/libm-test-ulps: Update.
22063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22064
22065 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
22066
22067         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
22068
22069 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
22070
22071         [BZ #14157]
22072         [BZ #14331]
22073         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
22074         could result in spurious underflow.  Scale down values above
22075         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
22076         * math/s_csqrtf.c (__csqrtf): Likewise.
22077         * math/s_csqrtl.c (__csqrtl): Likewise.
22078         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
22079         spurious underflow.
22080         * sysdeps/i386/fpu/libm-test-ulps: Update.
22081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22082
22083 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
22084
22085         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
22086         xopen-msg.sed.
22087         * catgets/xopen-msg.awk: New file.
22088         * catgets/xopen-msg.sed: Removed.
22089
22090         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
22091         po2text.sed.
22092         * intl/po2test.awk: New file.
22093         * intl/po2test.sed: Removed.
22094
22095 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
22096
22097         [BZ #14328]
22098         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
22099         or multiply small sinh result by itself.
22100         * math/s_ctanf.c (__ctanf): Likewise.
22101         * math/s_ctanh.c (__ctanh): Likewise.
22102         * math/s_ctanhf.c (__ctanhf): Likewise.
22103         * math/s_ctanhl.c (__ctanhl): Likewise.
22104         * math/s_ctanl.c (__ctanl): Likewise.
22105         * math/libm-test.inc (ctan_test_tonearest): New function.
22106         (ctan_test_towardzero): Likewise.
22107         (ctan_test_downward): Likewise.
22108         (ctan_test_upward): Likewise.
22109         (ctanh_test_tonearest): Likewise.
22110         (ctanh_test_towardzero): Likewise.
22111         (ctanh_test_downward): Likewise.
22112         (ctanh_test_upward): Likewise.
22113         (main): Call these new functions.
22114         * sysdeps/i386/fpu/libm-test-ulps: Update.
22115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22116
22117 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
22118
22119         * .gitignore: Delete /ports entry.
22120
22121 2012-07-03  Andreas Jaeger  <aj@suse.de>
22122
22123         * po/bg.po: Update from translation team.
22124         * po/cs.po: Likewise.
22125         * po/de.po: Likewise.
22126         * po/hr.po: Likewise.
22127         * po/nl.pl: Likewise.
22128         * po/pl.po: Likewise.
22129         * po/vi.po: Likewise.
22130
22131 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
22132
22133         * Makeconfig [!+link] (+link-before-libc): New variable.
22134         [!+link] (+link-after-libc): Likewise.
22135         [!+link] (+link-tests): Likewise.
22136         [!+link] (+link): Define in terms of $(+link-before-libc) and
22137         $(+link-after-libc).
22138         [!+link-static] (+link-static-before-libc): New variable.
22139         [!+link-static] (+link-static-after-libc): Likewise.
22140         [!+link-static] (+link-static-tests): Likewise.
22141         [!+link-static] (+link-static): Define in terms of
22142         $(+link-static-before-libc) and $(+link-static-after-libc).
22143         [build-shared] (link-libc-before-gnulib): New variable.
22144         [build-shared] (link-libc-tests): Likewise.
22145         [build-shared] (link-libc): Define in terms of
22146         $(link-libc-before-gnulib).
22147         [!build-shared] (link-libc-tests): New variable.
22148         (link-libc-static-tests): New variable.
22149         [!gnulib] (gnulib-arch): New variable.
22150         [!gnulib] (gnulib-tests): Likewise.
22151         [!gnulib] (static-gnulib-arch): Likewise.
22152         [!gnulib] (static-gnulib-tests): Likewise.
22153         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
22154         Define with "=" instead of ":=".
22155         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
22156         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
22157         * Rules (binaries-all-notests): New variable.
22158         (binaries-all-tests): Likewise.
22159         (binaries-static-notests): Likewise.
22160         (binaries-static-tests): Likewise.
22161         (binaries-all): Define using $(binaries-all-notests) and
22162         $(binaries-all-tests).
22163         (binaries-static): Define using $(binaries-static-notests) and
22164         $(binaries-static-tests).
22165         (binaries-shared-tests): New variable.
22166         (binaries-shared-notests): Likewise.
22167         (binaries-shared): Remove variable.
22168         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
22169         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
22170         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
22171         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
22172         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
22173         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
22174         * elf/Makefile (sln-modules): New variable.
22175         (extra-objs): Add $(sln-modules:=.o).
22176         (ldconfig-modules): Add static-stubs.
22177         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
22178         * elf/static-stubs.c: New file.
22179
22180         [BZ #14283]
22181         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
22182         by 7 not 8 to examine high bit of fractional part.  Use volatile
22183         variables when splitting into final array of floats if
22184         __FLT_EVAL_METHOD__ != 0.
22185         * math/libm-test.inc (cos_test): Add another test.
22186         (sin_test): Likewise.
22187         * sysdeps/i386/fpu/libm-test-ulps: Update.
22188
22189         [BZ #14273]
22190         * math/libm-test.inc (cosh_test): Add more tests.
22191
22192         * version.h (RELEASE): Set to "development".
22193         (VERSION): Set to "2.16.90".
22194
22195 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
22196
22197         * NEWS: Update copyright. Remove last-updated date.
22198         Mention math library bug fixes and timezone data changes.
22199         * README: Mention GNU/Hurd, x32, and HPPA support status.
22200
22201 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
22202
22203         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
22204
22205 2012-06-27  Andreas Jaeger  <aj@suse.de>
22206
22207         * manual/contrib.texi (Contributors): Add Samuel Thibault.
22208
22209 2012-06-25  Andreas Jaeger  <aj@suse.de>
22210
22211         * sysdeps/s390/fpu/libm-test-ulps: Update.
22212
22213 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
22214             Thomas Schwinge  <thomas@codesourcery.com>
22215
22216         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
22217         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
22218         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
22219         fanotify_mark.
22220
22221 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
22222
22223         * sysdeps/mach/start.c: Remove file.
22224         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
22225         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
22226         * sysdeps/sh/init-first.c: Likewise.
22227
22228         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
22229         registers for frame unwinding purposes, add CFI directives.
22230         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22231         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
22232         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
22233         Likewise.
22234
22235         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
22236         __fortify_fail returning.
22237         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22238
22239         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
22240         sysdeps/sh/____longjmp_chk.S.
22241         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
22242         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
22243         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
22244         (gen-as-const-headers): Append sigaltstack-offsets.sym.
22245
22246         * sysdeps/sh/abort-instr.h: New file.
22247         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
22248         process in case exit returns.
22249
22250         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
22251         initialize the GOT register before use.
22252
22253         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
22254         calculation of ARGC > 4.
22255
22256         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
22257         meaningful names to some local labels.
22258
22259 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22260             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22261
22262         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
22263         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
22264         (__arch_compare_and_exchange_val_16_acq): Likewise.
22265         (__arch_compare_and_exchange_val_32_acq): Likewise.
22266         (atomic_exchange_and_add): Fix gUSA sequence.
22267         (atomic_add): Likewise.
22268         (atomic_add_negative): Likewise.
22269         (atomic_add_zero): Likewise.
22270         (atomic_bit_test_set): Likewise.
22271
22272 2012-06-22  Andreas Schwab  <schwab@redhat.com>
22273
22274         [BZ #13579]
22275         * include/link.h (struct link_map): Add l_free_initfini.
22276         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
22277         l_initfini.
22278         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
22279         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
22280         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
22281         set.
22282
22283 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
22284
22285         * configure.in: Use AC_LANG_SOURCE.
22286         * configure: Regenerate.
22287
22288 2012-06-22  Roland McGrath  <roland@hack.frob.com>
22289
22290         * configure.in (libc_cv_localstatedir): New substituted variable.
22291         * configure: Regenerated.
22292         * config.make.in (localstatedir): New variable, substituted from
22293         libc_cv_localstatedir.
22294         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
22295         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
22296         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
22297         * sysdeps/gnu/configure: Regenerated.
22298
22299 2012-06-21  Jeff Law  <law@redhat.com>
22300
22301         [BZ #14277]
22302         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
22303         free.  Simplify list management for _LIBC case.
22304
22305 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
22306
22307         [BZ #14273]
22308         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22309         Clear sign bit of 64-bit integer value before comparing against
22310         overflow value.
22311
22312         * sysdeps/mach/configure: Regenerated.
22313
22314 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22315
22316         [BZ #14278]
22317         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
22318
22319 2012-06-21  Jeff Law  <law@redhat.com>
22320
22321         [BZ #13882]
22322         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
22323         uint16_t for elements in the "seen" array to avoid char overflows.
22324         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22325         * elf/dl-open.c (dl_open_worker): Likewise.
22326
22327 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
22328
22329         * scripts/list-sources.sh: Scan PORTS for translations.
22330         * po/libc.pot: Regenerated.
22331
22332 2012-06-21  Andreas Jaeger  <aj@suse.de>
22333
22334         [BZ #12194]
22335         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
22336         warning.
22337         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
22338         * bits/byteswap-16.h (__bswap_16): Likewise.
22339         * bits/byteswap.h (__bswap_constant_16): Likewise.
22340
22341 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22342
22343         [BZ #14117]
22344         * sysdeps/i386/fpu_control.h: Removed.
22345         * sysdeps/x86_64/fpu_control.h: Moved to ...
22346         * sysdeps/x86/fpu_control.h: Here.
22347
22348         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
22349         (_FPU_SETCW): Likewise.
22350
22351 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
22352
22353         [BZ #14117]
22354         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
22355         * sysdeps/x86/fpu/bits/mathinline.h: This.
22356         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
22357
22358         [BZ #14050]
22359         [BZ #14117]
22360         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
22361         functions if __x86_64__ is defined.
22362
22363 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22364
22365         * string/endian.h: Add !__ASSEMBLER__ condition for including
22366         conversion interfaces.
22367
22368 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22369
22370         [BZ #14241]
22371         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22372         of ABS(x) in calculating zero to negative powers other than odd
22373         integers.
22374         * math/libm-test.inc (pow_test): Add more tests.
22375
22376 2012-06-15  Andreas Jaeger  <aj@suse.de>
22377
22378         * manual/contrib.texi (Contributors): Update entry of Liubov
22379         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22380         Machado Filho.
22381
22382 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22383
22384         * string/string.h: Add __wur to GNU version of strerror_r.
22385
22386 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22387
22388         [BZ #14229]
22389         * string/Makefile (tests): Add tst-strtok_r.
22390         * string/tst-strtok_r.c: New file.
22391         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22392         RAX_LP/RDX_LP on SAVE_PTR.
22393
22394 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22395
22396         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22397
22398 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22399
22400         * libm_test.inc (csqrt_test): Allow more spurious underflow
22401         exceptions.
22402         (j0_test): Likewise.
22403         (j1_test): Likewise.
22404         (y0_test): Likewise.
22405         (y1_test): Likewise.
22406
22407 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22408
22409         * po/Makefile (libc.pot): Use UTF-8 charset.
22410
22411 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22412
22413         [BZ #14210]
22414         Suppress sign-conversion warning from FD_SET.
22415         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22416         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22417         not unsigned long int.
22418         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22419
22420 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22421
22422         [BZ #14050]
22423         [BZ #14117]
22424         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22425         __extern_always_inline instead of __extern_inline.
22426         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22427         (__signbit): Likewise.
22428         (__signbitl): Support C++ namespace.
22429         (lrintf): New inline function.
22430         (lrint): Likewise.
22431         (llrintf): Likewise.
22432         (llrint): Likewise.
22433         (fmaxf): Likewise.
22434         (fmax): Likewise.
22435         (fminf): Likewise.
22436         (fmin): Likewise.
22437         (rint): Likewise.
22438         (rintf): Likewise.
22439         (ceil): Likewise.
22440         (ceilf): Likewise.
22441         (floor): Likewise.
22442         (floorf): Likewise.
22443         (nearbyint): Likewise.
22444         (nearbyintf): Likewise.
22445
22446 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22447
22448         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22449         non-default versions.
22450
22451 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22452
22453         [BZ #14218]
22454         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22455
22456 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22457
22458         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22459         (FE_UPWARD, FE_DOWNWARD): Don't define.
22460         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22461         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22462
22463         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22464         reading it.
22465         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22466         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22467
22468 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22469
22470         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22471         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22472         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22473         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22474
22475 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22476
22477         [BZ #14117]
22478         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22479         * sysdeps/i386/fpu/Implies: New file.
22480         * sysdeps/x86_64/fpu/Implies: Likewise.
22481         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22482         * sysdeps/x86/fpu/bits/fenv.h: This.
22483
22484         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22485         __SSE_MATH__.
22486
22487 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22488
22489         [BZ #14134]
22490         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22491         character 0xffff that matches the last element of the
22492         conversion table.
22493
22494 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22495
22496         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22497         fmodl commit.
22498
22499 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22500
22501         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22502         values higher than 25.6283.
22503
22504 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22505
22506         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22507         subnormal exponent extraction and add some __builtin_expect.
22508         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22509         Fix for subnormal mantissa calculation.
22510
22511 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22512
22513         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22514         cpu2 is -1 and errno is not ENOSYS.
22515
22516 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22517
22518         [BZ #14117]
22519         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22520         * sysdeps/x86/bits/string.h: This.
22521         * sysdeps/x86_64/bits/string.h: Removed.
22522
22523         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22524         if not compiling for x86-64, but compiling for >= i486.
22525
22526         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22527         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22528
22529         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22530         New macro from Linux kernel 3.4.0.
22531         (FP_XSTATE_MAGIC2): Likewise.
22532         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22533         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22534         (struct _fpx_sw_bytes): New struct.
22535         (struct _xsave_hdr): Likewise.
22536         (struct _ymmh_state): Likewise.
22537         (struct _xstate): Likewise.
22538
22539         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22540         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22541         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22542         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22543         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22544         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22545
22546         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22547         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22548         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22549         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22550         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22551         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22552
22553 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22554
22555         [BZ #13743]
22556         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22557         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22558         (sysdep_headers): Include sys/platform/ppc.h.
22559         * sysdeps/powerpc/test-gettimebase.c: Test for
22560         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22561         * manual/Makefile (appendices): Include platform.texi.
22562         * manual/contrib.texi (Contributors): Update @node pointers.
22563         * manual/maint.texi (Maintenance): Likewise.
22564         (Platform): New node.
22565         * manual/platform.texi: New file.  Document the new features.
22566
22567 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22568             Jakub Jelinek  <jakub@redhat.com>
22569
22570         [BZ #14188]
22571         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22572         where __builtin_expect is unavailable.
22573
22574 2012-06-03  David S. Miller  <davem@davemloft.net>
22575
22576         * stdlib/longlong.h: Updated from GCC.
22577
22578 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22579
22580         [BZ #14042]
22581         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22582         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22583         __mcount_internal.
22584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22585         (GLIBC_2.16): Likewise.
22586
22587 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22588
22589         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22590
22591 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22592
22593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22594         (default-abi): New variable.
22595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22596         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22597         variable.
22598         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22599         Likewise.
22600         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22601         Likewise.
22602         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22603         Likewise.
22604
22605         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22606         definition.  Document in comment.
22607
22608 2012-06-01  David S. Miller  <davem@davemloft.net>
22609
22610         * stdlib/longlong.h: Updated from GCC.
22611
22612 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22613
22614         [BZ #14117]
22615         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22616         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22617         sys/debugreg.h sys/io.h here.
22618         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22619         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22620         sys/io.h.
22621         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22622         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22623         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22624         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22625         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22626         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22627
22628         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22629         Define only if __x86_64__ is defined.
22630
22631 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22632
22633         [BZ #14048]
22634         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22635         Use int64_t for variable i.
22636         * math/libm-test.inc (fmod_test): Add more tests.
22637
22638         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22639         z computation is not scheduled after fetestexcept.
22640         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22641         Use math_force_eval instead of asm to ensure calculation scheduled
22642         before exception test.
22643         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22644         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22645
22646 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22647
22648         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22649         computation is not scheduled after fetestexcept.
22650
22651 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22652
22653         [BZ #14117]
22654         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22655         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22656
22657 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22658
22659         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22660         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22661
22662 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22663
22664         [BZ #14117]
22665         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22666         <bits/wordsize.h>.
22667         (__WCHAR_MIN): Support __WORDSIZE == 64.
22668         (__WCHAR_MAX): Likewise.
22669
22670         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22671         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22672
22673         [BZ #14183]
22674         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22675         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22676
22677         [BZ #14117]
22678         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22679         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22680
22681         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22682         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22683
22684         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22685         Defined to 1 if __x86_64__ isn't defined.
22686         (_STAT_VER_LINUX_OLD): New.
22687         (st_atime): Remove duplicate.
22688         (st_mtime): Likewise.
22689         (st_ctime): Likewise.
22690
22691 2012-05-31  David S. Miller  <davem@davemloft.net>
22692
22693         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22694         entries.
22695
22696 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22697
22698         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22699         gen-libm-test.pl.
22700
22701         [BZ #14132]
22702         * elf/dl-reloc.c: Include <_itoa.h>.
22703         (_dl_reloc_bad_type): Remove use of INTUSE.
22704         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22705         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22706         * stdio-common/psiginfo.c (psiginfo): Likewise.
22707         * stdio-common/psignal.c (psignal): Likewise.
22708         * string/strsignal.c (strsignal): Likewise.
22709         * include/signal.h (_sys_siglist): Declare hidden proto.
22710         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22711         INTVARDEF with libc_hidden_data_def.
22712         * stdio-common/itoa-udigits.c: Likewise.
22713         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22714         (_itoa_lower_digits_internal): Remove declaration.
22715         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22716         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22717         (_sys_sigabbrev_internal): Remove aliases.
22718         (_sys_siglist): Define hidden alias.
22719
22720 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22721
22722         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22723         bits/sysctl.h.
22724
22725 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22726
22727         [BZ #14117]
22728         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22729         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22730
22731         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22732         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22733         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22734         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22735         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22736         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22737
22738         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22739         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22740         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22741
22742         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22743         with __addr.
22744         (insw): Likewise.
22745         (insl): Likewise.
22746         (outsb): Likewise.
22747         (outsw): Likewise.
22748         (outsl): Likewise.
22749
22750         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22751         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22752         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22753
22754         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22755         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22756         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22757         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22758         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22759         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22760
22761         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22762         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22763
22764         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22765         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22766
22767         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22768         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22769         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22770
22771         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22772         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22773         to ...
22774         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22775
22776         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22777         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22778         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22779
22780         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22781         for x86-64.
22782         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22783
22784 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22785
22786         * math/math.h (M_El): Use two more decimal places.
22787         (M_LOG2El): Likewise.
22788         (M_LOG10El): Likewise.
22789         (M_LN2l): Likewise.
22790         (M_LN10l): Likewise.
22791         (M_PIl): Likewise.
22792         (M_PI_2l): Likewise.
22793         (M_PI_4l): Likewise.
22794         (M_1_PIl): Likewise.
22795         (M_2_PIl): Likewise.
22796         (M_2_SQRTPIl): Likewise.
22797         (M_SQRT2l): Likewise.
22798         (M_SQRT1_2l): Likewise.
22799
22800 2012-05-31  David S. Miller  <davem@davemloft.net>
22801
22802         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22803         values between float registers.
22804         * sysdeps/sparc/sparc64/memset.S: Likewise.
22805         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22806
22807 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22808
22809         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22810         -D_FORTIFY_SOURCE=1.
22811         (CPPFLAGS-tst-longjmp_chk.c): Define.
22812         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22813         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22814         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22815         CFLAGS-tst-wchar-h.c.
22816
22817 2012-05-31  Marek Polacek  <polacek@redhat.com>
22818
22819         [BZ #14132]
22820         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22821         __endmntent_internal): Remove declaration.
22822         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22823         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22824         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22825
22826 2012-05-30  David S. Miller  <davem@davemloft.net>
22827
22828         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22829         (___Q_simulate_exceptions): Use real FP ops rather than writing
22830         into the %fsr.
22831         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22832         Likewise.
22833
22834 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22835
22836         [BZ #14117]
22837         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22838         * sysdeps/x86/bits/xtitypes.h: This.
22839
22840         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22841         * sysdeps/x86/bits/wordsize.h: This.
22842
22843         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22844         * sysdeps/x86/bits/huge_vall.h: This.
22845
22846         * sysdeps/i386/bits/select.h: Removed.
22847         * sysdeps/x86_64/bits/select.h: Renamed to ...
22848         * sysdeps/x86/bits/select.h: This.
22849
22850         * sysdeps/i386/bits/setjmp.h: Removed.
22851         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22852         * sysdeps/x86/bits/setjmp.h: This.
22853
22854         * sysdeps/i386/bits/mathdef.h: Removed.
22855         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22856         * sysdeps/x86/bits/mathdef.h: This.
22857
22858 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22859
22860         [BZ #14132]
22861         * include/sys/socket.h (__connect_internal)
22862         (__libc_sa_len_internal): Remove declaration.
22863         (__connect, __libc_sa_len): Declare hidden_proto.
22864         (SA_LEN): Remove use of INTUSE.
22865         * socket/connect.c: Add libc_hidden_def.
22866         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22867         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22868         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22869         alias.
22870         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22871         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22872         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22873         of adding _internal alias.
22874
22875 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22876
22877         [BZ #14117]
22878         * sysdeps/i386/bits/link.h: Removed.
22879         * sysdeps/i386/bits/linkmap.h: Likewise.
22880         * sysdeps/x86_64/bits/link.h: Renamed to ...
22881         * sysdeps/x86/bits/link.h: This.
22882         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22883         * sysdeps/x86/bits/linkmap.h: This.
22884
22885         * sysdeps/i386/bits/endian.h: Removed.
22886         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22887         * sysdeps/x86/bits/endian.h: This.
22888
22889         * sysdeps/i386/bits/byteswap.h: Removed.
22890         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22891         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22892         * sysdeps/x86/bits/byteswap.h: This.
22893         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22894         * sysdeps/x86/bits/byteswap-16.h: This.
22895         * sysdeps/i386/Implies: Add x86.
22896         * sysdeps/x86_64/Implies: Likewise.
22897
22898 2012-05-30  David S. Miller  <davem@davemloft.net>
22899
22900         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22901         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22902         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22903         (FP_TRAPPING_EXCEPTIONS): Define.
22904         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22905         (FP_TRAPPING_EXCEPTIONS): Define.
22906         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22907         subnormals only when inexact has been signalled or underflow
22908         exceptions are enabled.
22909         (_FP_PACK_CANONICAL): Likewise.
22910
22911 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22912
22913         [BZ #14183]
22914         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22915         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22916
22917 2012-05-30  Richard Henderson  <rth@twiddle.net>
22918
22919         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22920         with #ifndef NOT_IN_libc.
22921
22922         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22923         marked to avoid plt entry.
22924
22925 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22926
22927         [BZ #14112]
22928         * Makeconfig (default-abi): New macro.
22929         (abi-includes): Likewise.
22930         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22931         $(abi-$(default-abi)-lib-soname) for soname if defined.
22932         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22933         abi-variants.
22934         * Makefile (installed-stubs): Likewise.
22935         * include/stubs-biarch.h: Removed.
22936         * scripts/lib-names.awk: Only handle one library at a time.
22937         * scripts/soversions.awk: Remove WORDSIZE support.
22938         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22939         entries.
22940         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22941         Removed.
22942         (syscall-list-default-condition): Likewise.
22943         (syscall-list-default-condition): Likewise.
22944         (syscall-list-includes): Likewise.
22945         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22946         syscall-list-* with abi-*.  Handle undefined abi-variants.
22947         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22948         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22949         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22950         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22951         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22952         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22953         Removed.
22954         (syscall-list-32-options): Likewise.
22955         (syscall-list-32-condition): Likewise.
22956         (syscall-list-64-options): Likewise.
22957         (syscall-list-64-condition): Likewise.
22958         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22959         macro.
22960         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22961         Renamed to ...
22962         (abi-*): This.
22963         (abi-64-ld-soname): New macro.
22964         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22965         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22966         Renamed to ...
22967         (abi-*): This.
22968         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22969         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22970
22971 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22972
22973         * sysdeps/unix/sysv/linux/kernel-features.h
22974         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22975         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22976         include <kernel-features.h>.
22977         [!__NR_ftruncate64]: Remove conditional code.
22978         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22979         [__NR_ftruncate64]: Make code unconditional.
22980         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22981         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22982         include <kernel-features.h>.
22983         [!__NR_ftruncate64]: Remove conditional code.
22984         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22985         [__NR_ftruncate64]: Make code unconditional.
22986         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22988         include <kernel-features.h>.
22989         [!__NR_ftruncate64]: Remove conditional code.
22990         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22991         [__NR_ftruncate64]: Make code unconditional.
22992         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22994         include <kernel-features.h>.
22995         [!__NR_ftruncate64]: Remove conditional code.
22996         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22997         [__NR_ftruncate64]: Make code unconditional.
22998         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22999
23000         * configure.in (libc_cv_fpie): Weaken to a compile test using
23001         LIBC_TRY_CC_OPTION.
23002         * configure: Regenerated.
23003
23004 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23005
23006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
23007         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
23008         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
23009         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
23010         Refreshed.
23011         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
23012         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
23013         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
23014         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
23015         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
23016         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
23017         Refreshed.
23018
23019 2012-05-27  David S. Miller  <davem@davemloft.net>
23020
23021         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
23022         (___Q_zero): New.
23023         (__Q_simulate_exceptions): Return void.  Change to simulate
23024         exceptions by writing into the %fsr.
23025         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
23026         (__Qp_handle_exceptions): Likewise.
23027         (numbers): Delete.
23028         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
23029         __Qp_handle_exceptions.
23030         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
23031         __Qp_handle_exceptions.
23032         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
23033         as unused and give dummy FP_RND_NEAREST initializer.
23034         (FP_INHIBIT_RESULTS): Define.
23035         (___Q_simulate_exceptions): Update declaration.
23036         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
23037         formatting.
23038         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
23039         as unused and give dummy FP_RND_NEAREST initializer.
23040         (__Qp_handle_exceptions): Update declaration.
23041         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
23042         formatting.
23043
23044 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
23045
23046         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
23047         the temporary FPU control word.
23048         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
23049         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
23050         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
23051         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
23052         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
23053         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
23054         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
23055         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
23056         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
23057         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
23058         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
23059
23060 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23061
23062         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
23063         fields.
23064
23065 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
23066
23067         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
23068         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
23069         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
23070         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
23071         Likewise.
23072         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
23073         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
23074         Likewise.
23075
23076 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
23077
23078         * po/h.po: Update from translation team.
23079
23080 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
23081
23082         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
23083
23084         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
23085         handling of denormals.
23086         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
23087         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
23088         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
23089         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
23090         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23091         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
23092         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
23093         Likewise.
23094
23095 2012-05-26  Marek Polacek  <polacek@redhat.com>
23096
23097         [BZ #14152]
23098         * math/libm-test.inc (fma_test): Don't always expect underflow
23099         exception.
23100
23101 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
23102
23103         [BZ #12416]
23104         * elf/tst-execstack.c: Include stackinfo.h.
23105         (do_test): Adjust test case to ensure that pthread_getattr_np
23106         behaviour remains the same after marking stack executable.
23107
23108 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23109
23110         * sysdeps/unix/sysv/linux/kernel-features.h
23111         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
23112         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
23113         kernel-features.h.
23114         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23115         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23116         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
23117         kernel-features.h.
23118         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23119         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23120
23121 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23122
23123         * configure.in: Define the default includes to being none.
23124         * configure: Regenerated.
23125
23126 2012-05-25  Roland McGrath  <roland@hack.frob.com>
23127
23128         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
23129         * sysdeps/x86_64/setjmp.S: Likewise.
23130         * sysdeps/i386/bsd-setjmp.S: Likewise.
23131         * sysdeps/i386/bsd-_setjmp.S: Likewise.
23132         * sysdeps/i386/setjmp.S: Likewise.
23133         * sysdeps/i386/__longjmp.S: Likewise.
23134         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23135         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
23136
23137         * include/stap-probe.h: New file.
23138         * configure.in: Handle --enable-systemtap.
23139         * configure: Regenerated.
23140         * config.h.in (USE_STAP_PROBE): New #undef.
23141         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
23142         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
23143         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23144
23145 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23146
23147         [BZ #13717]
23148         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
23149         to 2.4.0 where earlier.
23150         * sysdeps/unix/sysv/linux/configure: Regenerated.
23151         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
23152         <kernel-features.h>.
23153         [__ASSUME_32BITUIDS]: Make code unconditional.
23154         [!__ASSUME_32BITUIDS]: Remove conditional code.
23155         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
23156         <kernel-features.h>.
23157         [__ASSUME_32BITUIDS]: Make code unconditional.
23158         [!__ASSUME_32BITUIDS]: Remove conditional code.
23159         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
23160         [__ASSUME_32BITUIDS]: Make code unconditional.
23161         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
23162         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
23163         <kernel-features.h>.
23164         [__ASSUME_32BITUIDS]: Make code unconditional.
23165         [!__ASSUME_32BITUIDS]: Remove conditional code.
23166         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
23167         <kernel-features.h>.
23168         [__ASSUME_32BITUIDS]: Make code unconditional.
23169         [!__ASSUME_32BITUIDS]: Remove conditional code.
23170         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
23171         <kernel-features.h>.
23172         [__ASSUME_32BITUIDS]: Make code unconditional.
23173         [!__ASSUME_32BITUIDS]: Remove conditional code.
23174         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
23175         <kernel-features.h>.
23176         [__ASSUME_32BITUIDS]: Make code unconditional.
23177         [!__ASSUME_32BITUIDS]: Remove conditional code.
23178         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
23179         <kernel-features.h>.
23180         [__ASSUME_32BITUIDS]: Make code unconditional.
23181         [!__ASSUME_32BITUIDS]: Remove conditional code.
23182         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
23183         <kernel-features.h>.
23184         [__ASSUME_32BITUIDS]: Make code unconditional.
23185         [!__ASSUME_32BITUIDS]: Remove conditional code.
23186         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
23187         <kernel-features.h>.
23188         [__ASSUME_32BITUIDS]: Make code unconditional.
23189         [!__ASSUME_32BITUIDS]: Remove conditional code.
23190         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23191         <kernel-features.h>.
23192         [__ASSUME_32BITUIDS]: Make code unconditional.
23193         [!__ASSUME_32BITUIDS]: Remove conditional code.
23194         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
23195         <kernel-features.h>.
23196         [__ASSUME_32BITUIDS]: Make code unconditional.
23197         [!__ASSUME_32BITUIDS]: Remove conditional code.
23198         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
23199         <kernel-features.h>.
23200         [__ASSUME_32BITUIDS]: Make code unconditional.
23201         [!__ASSUME_32BITUIDS]: Remove conditional code.
23202         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
23203         <kernel-features.h>.
23204         [__NR_setresgid] (__setresgid): Do not declare.
23205         [__ASSUME_32BITUIDS]: Make code unconditional.
23206         [!__ASSUME_32BITUIDS]: Remove conditional code.
23207         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
23208         <kernel-features.h>.
23209         [__NR_setresuid] (__setresuid): Do not declare.
23210         [__ASSUME_32BITUIDS]: Make code unconditional.
23211         [!__ASSUME_32BITUIDS]: Remove conditional code.
23212         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
23213         <kernel-features.h>.
23214         [__ASSUME_32BITUIDS]: Make code unconditional.
23215         [!__ASSUME_32BITUIDS]: Remove conditional code.
23216         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
23217         <kernel-features.h>.
23218         [__ASSUME_32BITUIDS]: Make code unconditional.
23219         [!__ASSUME_32BITUIDS]: Remove conditional code.
23220         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
23221         <kernel-features.h>.
23222         [__ASSUME_32BITUIDS]: Make code unconditional.
23223         [!__ASSUME_32BITUIDS]: Remove conditional code.
23224         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
23225         <kernel-features.h>.
23226         [__ASSUME_32BITUIDS]: Make code unconditional.
23227         [!__ASSUME_32BITUIDS]: Remove conditional code.
23228         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
23229         <kernel-features.h>.
23230         [__ASSUME_32BITUIDS]: Make code unconditional.
23231         [!__ASSUME_32BITUIDS]: Remove conditional code.
23232         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
23233         <kernel-features.h>.
23234         [__ASSUME_32BITUIDS]: Make code unconditional.
23235         [!__ASSUME_32BITUIDS]: Remove conditional code.
23236         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
23237         <kernel-features.h>.
23238         [__ASSUME_32BITUIDS]: Make code unconditional.
23239         [!__ASSUME_32BITUIDS]: Remove conditional code.
23240         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
23241         <kernel-features.h>.
23242         [__ASSUME_32BITUIDS]: Make code unconditional.
23243         [!__ASSUME_32BITUIDS]: Remove conditional code.
23244         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
23245         <kernel-features.h>.
23246         [__ASSUME_32BITUIDS]: Make code unconditional.
23247         [!__ASSUME_32BITUIDS]: Remove conditional code.
23248         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23249         <kernel-features.h>.
23250         [__ASSUME_32BITUIDS]: Make code unconditional.
23251         [!__ASSUME_32BITUIDS]: Remove conditional code.
23252         * sysdeps/unix/sysv/linux/kernel-features.h
23253         (__ASSUME_SETRESUID_SYSCALL): Remove.
23254         (__ASSUME_SETRESGID_SYSCALL): Likewise.
23255         (__ASSUME_32BITUIDS): Likewise.
23256         (__ASSUME_LDT_WORKS): Likewise.
23257         (__ASSUME_O_DIRECTORY): Likewise.
23258         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
23259         architecture but not kernel version.
23260         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
23261         (__ASSUME_MMAP2_SYSCALL): Likewise.
23262         (__ASSUME_STAT64_SYSCALL): Likewise.
23263         (__ASSUME_IPC64): Likewise.
23264         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
23265         <kernel-features.h>.
23266         [__ASSUME_32BITUIDS]: Make code unconditional.
23267         [!__ASSUME_32BITUIDS]: Remove conditional code.
23268         * sysdeps/unix/sysv/linux/opendir.c: Do not include
23269         <kernel-features.h>.
23270         [__ASSUME_O_DIRECTORY]: Make code unconditional.
23271         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
23272         132096]: Remove conditional code.
23273         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
23274         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23275         <kernel-features.h>.
23276         [__ASSUME_32BITUIDS]: Make code unconditional.
23277         [!__ASSUME_32BITUIDS]: Remove conditional code.
23278         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23279         <kernel-features.h>.
23280         [__ASSUME_32BITUIDS]: Make code unconditional.
23281         [!__ASSUME_32BITUIDS]: Remove conditional code.
23282         * sysdeps/unix/sysv/linux/setegid.c: Do not include
23283         <kernel-features.h>.
23284         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
23285         unconditional.
23286         (__setresgid): Do not declare.
23287         [__ASSUME_32BITUIDS]: Make code unconditional.
23288         [!__ASSUME_32BITUIDS]: Remove conditional code.
23289         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
23290         <kernel-features.h>.
23291         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
23292         unconditional.
23293         (__setresuid): Do not declare.
23294         [__ASSUME_32BITUIDS]: Make code unconditional.
23295         [!__ASSUME_32BITUIDS]: Remove conditional code.
23296         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23297         <kernel-features.h>.
23298         [__ASSUME_32BITUIDS]: Make code unconditional.
23299         [!__ASSUME_32BITUIDS]: Remove conditional code.
23300         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
23301         <kernel-features.h>.
23302         [__ASSUME_32BITUIDS]: Make code unconditional.
23303         [!__ASSUME_32BITUIDS]: Remove conditional code.
23304
23305 2012-05-25  Richard Henderson  <rth@twiddle.net>
23306
23307         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
23308         dl_hwcap to ifunc resolver.
23309         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
23310         elf_ifunc_invoke.
23311         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
23312         dl_hwcap to ifunc resolver.
23313         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
23314
23315 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23316
23317         [BZ #14153]
23318         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
23319         for |x| <= 2**-26, not 2**-57.
23320         * math/libm-test.inc (acos_test): Do not allow spurious underflow
23321         exception.
23322
23323 2012-05-24  Jeff Law  <law@redhat.com>
23324
23325         * stdio-common/Makefile (tests): Add bug25.
23326         * stdio-common/bug25.c: New test.
23327
23328 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23329
23330         [BZ #13576]
23331         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
23332         multiple of MALLOC_ALIGNMENT in size.
23333         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
23334
23335 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23336
23337         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
23338         Require >= 256.
23339         (FILENAME_MAX): Use macro-int-constant.
23340         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
23341         (_IOFBF): Use macro-int-constant.
23342         (_IOLBF): Likewise.
23343         (_IONBF): Likewise.
23344         (SEEK_CUR): Likewise.
23345         (SEEK_END): Likewise.
23346         (SEEK_SET): Likewise.
23347         (TMP_MAX): Likewise.
23348         (EOF): Use macro-int-constant.  Require < 0.
23349         (NULL): Use macro-constant.  Require == 0.
23350         (stdin): Require type to be FILE *.
23351         (stdout): Likewise.
23352         (stderr): Likewise.
23353         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
23354         macro-int-constant.
23355         (EXIT_SUCCESS): Likewise.
23356         (NULL): Use macro-constant.  Require == 0.
23357         (RAND_MAX): Use macro-int-constant.
23358         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
23359         [C99-based standards] (strtof): Require function.
23360         [C99-based standards] (strtold): Likewise.
23361         [C99-based standards] (strtoll): Likewise.
23362         [C99-based standards] (strtoull): Likewise.
23363         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23364         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23365         [ISO || ISO99 || ISO11] (math.h): Likewise.
23366         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23367         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23368         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23369
23370 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23371
23372         [BZ #14132]
23373         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23374         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23375         * intl/dgettext.c (DCGETTEXT): Likewise.
23376         * intl/gettext.c (DCGETTEXT): Likewise.
23377         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23378         * posix/regex_internal.h (gettext): Likewise.
23379         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23380         Remove declaration.
23381         * include/argz.h (__argz_count_internal)
23382         (__argz_stringify_internal): Remove declaration.
23383         (__argz_count, __argz_stringify): Declare hidden proto.
23384         * intl/dcgettext.c: Remove use of INTDEF.
23385         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23386         * string/argz-stringify.c: Likewise.
23387         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23388         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23389         Declare hidden proto.
23390         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23391         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23392         Declare hidden proto.
23393         * include/stdio.h (__asprintf_internal): Don't declare.
23394         (__asprintf): Don't define as macro.  Declare hidden proto.
23395         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23396         (__fsetlocking): Declare hidden proto.
23397         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23398         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23399         hidden proto.
23400         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23401         (_IO_setlinebuf): Remove use of INTUSE.
23402         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23403         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23404         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23405         Remove declaration.
23406         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23407         (_IO_do_flush): Remove use of INTUSE.
23408         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23409         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23410         (_IO_adjust_column, _IO_least_wmarker)
23411         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23412         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23413         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23414         (_IO_default_doallocate, _IO_wdefault_doallocate)
23415         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23416         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23417         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23418         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23419         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23420         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23421         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23422         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23423         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23424         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23425         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23426         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23427         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23428         proto.
23429         (_IO_flush_all_internal, _IO_adjust_column_internal)
23430         (_IO_default_uflow_internal, _IO_default_finish_internal)
23431         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23432         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23433         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23434         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23435         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23436         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23437         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23438         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23439         (_IO_file_close_internal, _IO_file_close_it_internal)
23440         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23441         (_IO_file_init_internal, _IO_file_attach_internal)
23442         (_IO_file_fopen_internal, _IO_file_read_internal)
23443         (_IO_file_sync_internal, _IO_file_seek_internal)
23444         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23445         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23446         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23447         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23448         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23449         (_IO_list_all_internal, _IO_link_in_internal)
23450         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23451         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23452         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23453         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23454         (_IO_do_write_internal, _IO_padn_internal)
23455         (_IO_getline_info_internal, _IO_getline_internal)
23456         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23457         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23458         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23459         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23460         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23461         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23462         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23463         with libc_hidden_ver, remove use of INTUSE.
23464         * libio/genops.c: Likewise.
23465         * libio/freopen.c: Likewise.
23466         * libio/freopen64.c: Likewise.
23467         * libio/iofclose.c: Likewise.
23468         * libio/iofdopen.c: Likewise.
23469         * libio/iofflush.c: Likewise.
23470         * libio/iofflush_u.c: Likewise.
23471         * libio/iofgets.c: Likewise.
23472         * libio/iofgets_u.c: Likewise.
23473         * libio/iofopen.c: Likewise.
23474         * libio/iofopncook.c: Likewise.
23475         * libio/iofread.c: Likewise.
23476         * libio/iofread_u.c: Likewise.
23477         * libio/ioftell.c: Likewise.
23478         * libio/iofwrite.c: Likewise.
23479         * libio/iogetline.c: Likewise.
23480         * libio/iogets.c: Likewise.
23481         * libio/iogetwline.c: Likewise.
23482         * libio/iopadn.c: Likewise.
23483         * libio/iopopen.c: Likewise.
23484         * libio/ioseekoff.c: Likewise.
23485         * libio/ioseekpos.c: Likewise.
23486         * libio/iosetbuffer.c: Likewise.
23487         * libio/iosetvbuf.c: Likewise.
23488         * libio/ioungetc.c: Likewise.
23489         * libio/ioungetwc.c: Likewise.
23490         * libio/iovdprintf.c: Likewise.
23491         * libio/iovsprintf.c: Likewise.
23492         * libio/iovsscanf.c: Likewise.
23493         * libio/memstream.c: Likewise.
23494         * libio/obprintf.c: Likewise.
23495         * libio/oldfileops.c: Likewise.
23496         * libio/oldiofclose.c: Likewise.
23497         * libio/oldiofdopen.c: Likewise.
23498         * libio/oldiofopen.c: Likewise.
23499         * libio/oldiopopen.c: Likewise.
23500         * libio/oldstdfiles.c: Likewise.
23501         * libio/putc.c: Likewise.
23502         * libio/setbuf.c: Likewise.
23503         * libio/setlinebuf.c: Likewise.
23504         * libio/stdfiles.c: Likewise.
23505         * libio/strops.c: Likewise.
23506         * libio/vasprintf.c: Likewise.
23507         * libio/vscanf.c: Likewise.
23508         * libio/vsnprintf.c: Likewise.
23509         * libio/vswprintf.c: Likewise.
23510         * libio/wfiledoalloc.c: Likewise.
23511         * libio/wfileops.c: Likewise.
23512         * libio/wgenops.c: Likewise.
23513         * libio/wmemstream.c: Likewise.
23514         * libio/wstrops.c: Likewise.
23515         * libio/__fpurge.c: Likewise.
23516         * libio/__fsetlocking.c: Likewise.
23517         * assert/assert.c: Likewise.
23518         * debug/fgets_chk.c: Likewise.
23519         * debug/fgets_u_chk.c: Likewise.
23520         * debug/fread_chk.c: Likewise.
23521         * debug/fread_u_chk.c: Likewise.
23522         * debug/gets_chk.c: Likewise.
23523         * debug/obprintf_chk.c: Likewise.
23524         * debug/vasprintf_chk.c: Likewise.
23525         * debug/vdprintf_chk.c: Likewise.
23526         * debug/vsnprintf_chk.c: Likewise.
23527         * debug/vsprintf_chk.c: Likewise.
23528         * malloc/mtrace.c: Likewise.
23529         * misc/error.c: Likewise.
23530         * misc/syslog.c: Likewise.
23531         * stdio-common/asprintf.c: Likewise.
23532         * stdio-common/fxprintf.c: Likewise.
23533         * stdio-common/getw.c: Likewise.
23534         * stdio-common/isoc99_fscanf.c: Likewise.
23535         * stdio-common/isoc99_scanf.c: Likewise.
23536         * stdio-common/isoc99_vfscanf.c: Likewise.
23537         * stdio-common/isoc99_vscanf.c: Likewise.
23538         * stdio-common/isoc99_vsscanf.c: Likewise.
23539         * stdio-common/printf-prs.c: Likewise.
23540         * stdio-common/printf_fp.c: Likewise.
23541         * stdio-common/printf_fphex.c: Likewise.
23542         * stdio-common/printf_size.c: Likewise.
23543         * stdio-common/putw.c: Likewise.
23544         * stdio-common/scanf.c: Likewise.
23545         * stdio-common/sprintf.c: Likewise.
23546         * stdio-common/tmpfile.c: Likewise.
23547         * stdio-common/vfprintf.c: Likewise.
23548         * stdio-common/vfscanf.c: Likewise.
23549         * stdlib/strfmon_l.c: Likewise.
23550         * sunrpc/openchild.c: Likewise.
23551         * sunrpc/xdr_stdio.c: Likewise.
23552         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23553         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23554
23555 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23556
23557         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23558
23559         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23560         in the third column, to generate for the shared library an IFUNC
23561         that uses _dl_vdso_vsym.
23562         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23563         * Makeconfig (object-suffixes-noshared): New variable.
23564
23565         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23566         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23567         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23568         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23569
23570         [BZ #14132]
23571         * include/sys/time.h (__gettimeofday): Remove macro.
23572         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23573         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23574         Remove INTDEF.
23575         (__gettimeofday): Add libc_hidden_def.
23576         (gettimeofday): Add libc_hidden_weak.
23577         * sysdeps/mach/gettimeofday.c: Likewise.
23578         * sysdeps/posix/gettimeofday.c: Likewise.
23579         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23580         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23581         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23582         (__gettimeofday_internal): Remove strong_alias.
23583         (__gettimeofday): Add libc_hidden_def.
23584         (gettimeofday): Add libc_hidden_weak.
23585         * sysdeps/unix/syscalls.list (gettimeofday):
23586         Remove __gettimeofday_internal alias.
23587
23588 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23589             H.J. Lu  <hongjiu.lu@intel.com>
23590
23591         [BZ #12495]
23592         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23593         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23594         (largebin_index_32_big): New.
23595         (largebin_index): Use it for 16-byte alignment.
23596         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23597         correction with front_misalign.
23598
23599 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23600
23601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23602         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23603         Likewise.
23604         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23605         Likewise.
23606         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23607         Likewise.
23608         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23609         Likewise.
23610         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23611         Likewise.
23612         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23613         Likewise.
23614         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23615         Likewise.
23616         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23617         Likewise.
23618         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23619         Likewise.
23620         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23621         Likewise.
23622         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23623         Likewise.
23624         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23625         Likewise.
23626
23627         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23628         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23629
23630 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23631
23632         [BZ #10846]
23633         [BZ #14036]
23634         * math/libm-test.inc (exp_test): Add test from bug 14036.
23635         (pow_test): Add test from bug 10846.
23636
23637         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23638         and other flags.
23639         (special_function): Do not include flags in test name.
23640         (parse_args): Likewise.
23641         * sysdeps/i386/fpu/libm-test-ulps: Update.
23642         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23643         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23644         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23646
23647         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23648         exceptions.
23649         * math/libm-test.inc ("Philosophy"): Update comment about
23650         exception testing.
23651         (UNDERFLOW_EXCEPTION): New macro.
23652         (UNDERFLOW_EXCEPTION_OK): Likewise.
23653         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23654         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23655         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23656         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23657         (INVALID_EXCEPTION_OK): Update value.
23658         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23659         (OVERFLOW_EXCEPTION_OK): Likewise.
23660         (IGNORE_ZERO_INF_SIGN): Likewise.
23661         (test_exceptions): Handle underflow exceptions.
23662         (acos_test): Update for underflow exception expectations.
23663         (cexp_test): Likewise.
23664         (clog_test): Likewise.
23665         (clog10_test): Likewise.
23666         (csqrt_test): Likewise.
23667         (ctan_test): Likewise.
23668         (ctanh_test): Likewise.
23669         (exp_test): Likewise.
23670         (exp10_test): Likewise.
23671         (exp2_test): Likewise.
23672         (expm1_test): Likewise.
23673         (fma_test): Likewise.
23674         (j0_test): Likewise.
23675         (jn_test): Likewise.
23676         (nexttoward_test): Likewise.
23677         (pow_test): Likewise.
23678         (scalbn_test): Likewise.
23679         (scalbln_test): Likewise.
23680         (tan_test): Likewise.
23681         (y1_test): Likewise.
23682         * sysdeps/i386/fpu/libm-test-ulps: Update.
23683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23684
23685 2012-05-23  David S. Miller  <davem@davemloft.net>
23686
23687         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23688         (__libc_sigaction): Remove unused local variables.
23689
23690 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23691
23692         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23693
23694 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23695
23696         mktime: avoid signed integer overflow
23697         * time/mktime.c (__mktime_internal): Do not mishandle the case
23698         where diff == INT_MIN.
23699
23700         mktime: simplify computation of average
23701         * time/mktime.c (ranged_convert): Use new time_t_avg function
23702         instead of rolling our own (probably-slower) code.
23703
23704         mktime: do not assume signed right shift propagates sign bit
23705         * time/mktime.c (isdst_differ): New static function.
23706         (__mktime_internal): No need to normalize tm_isdst now.
23707         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23708         tm_isdst values.
23709
23710         mktime: merge another wrapv change from gnulib
23711         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23712         from some compilers.
23713
23714         mktime: remove incorrect attempt at unusual arithmetics
23715         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23716         The code didn't really work on such machines anyway.
23717         (TYPE_MINIMUM): Assume two's complement.
23718         (twos_complement_arithmetic): Verify that long_int and time_t
23719         are two's complement (or unsigned, in the latter case).
23720
23721         mktime: check signed shifts on long_int and time_t, too
23722         * time/mktime.c (SHR): Check that shifts work as desired
23723         on the types long_int and time_t too, as SHR is used on
23724         such types.
23725
23726         mktime: do not assume 'long' is wide enough
23727         * time/mktime.c (verify): Move decl up.
23728         (long_int): New type.
23729         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23730         to remove assumption in the code that 'long' is wide enough to
23731         store year values.  This assumption is not true on x32 and on
23732         some non-glibc platforms.
23733
23734         mktime: merge wrapv change from gnulib
23735         * time/mktime.c (WRAPV): New macro.
23736         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23737         (guess_time_tm, __mktime_internal): Do not assume that signed
23738         integer overflow wraps around; modern compilers generate code
23739         where this assumption is no longer valid.
23740
23741 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23742
23743         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23744         Replace "jmp L(pseudo_end)" with "ret".
23745         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23746         Likewise.
23747
23748 2012-05-23  Andreas Jaeger  <aj@suse.de>
23749
23750         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23751         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23752
23753 2012-05-23  Andreas Jaeger  <aj@suse.de>
23754             Maximilian Attems  <max@stro.at>
23755
23756         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23757         New macros.
23758
23759 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23760
23761         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23762         code so that pseudo_end is just ret and the stack pointer is
23763         correct also for static library in error case.
23764
23765 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23766
23767         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23768         move to syscalls.list.
23769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23773
23774         * manual/install.texi (Running make install): Do not mention Linux
23775         kernel version for which pt_chown is not needed.
23776         (Linux): Do not mention problems with nscd with 2.0 kernels.
23777         * INSTALL: Regenerated.
23778
23779 2012-05-23  Andreas Jaeger  <aj@suse.de>
23780
23781         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23782         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23783         macro.
23784         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23785         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23786         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23787         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23788         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23789         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23790         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23791         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23792         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23793         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23794         * sysdeps/unix/sysv/linux/bits/in.h
23795         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23796
23797 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23798
23799         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23800         (PREPARE_VERSION): Just use assert instead, it will be elided
23801         under [NDEBUG] anyway.
23802
23803 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23804
23805         * sysdeps/unix/sysv/linux/Makefile: Include
23806         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23807         (sysdep_routines): Remove sysctl.
23808         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23809         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23810         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23811         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23812         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23813
23814 2012-05-22  Andreas Jaeger  <aj@suse.de>
23815
23816         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23817         that pseudo_end is just ret and the stack pointer is correct also
23818         for static library in error case.
23819
23820 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23821
23822         [BZ #14122]
23823         * nss/nsswitch.c (defconfig_entries): New variable.
23824         (__nss_database_lookup): Don't leak defconfig entries.
23825         (nss_parse_service_list): Don't leak on error paths.
23826         (free_database_entries): New function.
23827         (free_defconfig): New function.
23828         (free_mem): Move common code to free_database_entries.
23829
23830 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23831
23832         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23833         Add arch_prctl.
23834         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23835
23836         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23837         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23838         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23839         New macro.
23840         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23841         (INTERNAL_SYSCALL_TYPES): Likewise.
23842         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23843         (LOAD_REGS_TYPES_[1-6]): Likewise.
23844         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23845         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23846
23847 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23848
23849         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23850         copysignl for GLIBC_2_0.
23851         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23852         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23853         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23854         logbl for GLIBC_2_0.
23855         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23856         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23857
23858 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23859
23860         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23861         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23862
23863         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23864         Use "neg %eax".
23865
23866         * time/mktime.c: Update copyright years.
23867
23868 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23869
23870         mktime: merge comment-quoting-style change from gnulib
23871         * time/mktime.c: Quote 'like this' in comments.
23872         The GNU coding standards suggest that we no longer quote `like this',
23873         as "`" and "'" are typically rendered asymmetrically nowadays.
23874         The typical gnulib style is to quote 'like this' when quoting
23875         code, and "like this" when quoting English.
23876
23877         * time/mktime.c (compile-command): Add "-I.".
23878
23879         mktime: merge mktime-internal.h change from gnulib
23880         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23881
23882         mktime: merge time_r change from gnulib
23883         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23884
23885         mktime: merge DEBUG change from gnulib
23886         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23887         case system <time.h> has a #define.
23888
23889         mktime: merge <sys/types.h> change from gnulib
23890         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23891         since <time.t> is now guaranteed to define time_t.
23892
23893         mktime: merge HAVE_CONFIG_H change from gnulib
23894         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23895
23896 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23897
23898         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23899         Use "neg %eax".
23900
23901         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23902         __rlim_t cast.
23903         (struct rusage): Use anonymous union to pad each field to
23904         __syscall_slong_t.
23905
23906 2012-05-21  David S. Miller  <davem@davemloft.net>
23907
23908         * Makefules (o-iterator): Remove .s cases.
23909         (compile-command.s): Delete.
23910         (COMPILE.s): Delete.
23911         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23912
23913 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23914
23915         * configure.in (libc_cv_predef_stack_protector): Only consider
23916         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23917         * configure: Regenerated.
23918
23919 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23920
23921         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23922         New macro.  Use R*LP on int and pointer.
23923         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23924         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23925         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23926         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23927
23928         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23929         [__WORDSIZE_TIME64_COMPAT32] instead of
23930         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23931         (struct utmp): Likewise.
23932         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23933         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23934         Renamed to ...
23935         (__WORDSIZE_TIME64_COMPAT32): This.
23936         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23937         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23938         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23939         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23940         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23941         (__WORDSIZE_TIME64_COMPAT32): New macro.
23942
23943 2012-05-21  Andreas Jaeger  <aj@suse.de>
23944
23945         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23946         only if [SHARED]. Add prototype for __wcschr_ia32.
23947
23948 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23949
23950         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23951         of %rbp unmolested in the jmp_buf while mangling the low bits.
23952         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23953         unmolested high bits of %rbp while demangling the low bits.
23954         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23955
23956 2012-05-21  Andreas Jaeger  <aj@suse.de>
23957
23958         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23959         * sunrpc/svc_simple.c: Use it for registerrpc.
23960         * sunrpc/xcrypt.c: Use it for passwd2des.
23961
23962         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23963
23964 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23965
23966         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23967         Don't define if [__SYSCALL_WORDSIZE != 32].
23968         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23969         New macro.
23970
23971 2012-05-21  Bruno Haible  <bruno@clisp.org>
23972             Andreas Jaeger  <aj@suse.de>
23973
23974         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23975         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23976         inptr and inend for must_buffer_ch.
23977         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23978         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23979         * stdio-common/Makefile (tests): Remove bug15.
23980         (bug15-ENV): Remove macro.
23981         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23982         anymore.
23983
23984 2012-05-19  Andreas Jaeger  <aj@suse.de>
23985             Roland McGrath  <roland@hack.frob.com>
23986
23987         * manual/contrib.texi: Completely rewritten. It contains now an
23988         alphabetical list of contributors and their contributions.
23989
23990 2012-05-21  Richard Henderson  <rth@twiddle.net>
23991
23992         * misc/getauxval.c (__getauxval): Use unsigned long int.
23993         * misc/sys/auxv.h: Include <sys/cdefs.h>.
23994         (getauxval): Use unsigned long int.
23995
23996 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23997
23998         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23999
24000 2012-05-21  Roland McGrath  <roland@hack.frob.com>
24001
24002         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
24003         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
24004         __alignof__ (long double).
24005
24006 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24007
24008         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24009
24010 2012-05-20  Richard Henderson  <rth@twiddle.net>
24011
24012         * misc/getauxval.c: New file.
24013         * misc/sys/auxv.h: New file.
24014         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
24015         (routines): Add getauxval.
24016         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
24017         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
24018         * elf/dl-sysdep.c (_dl_auxv): Remove.
24019         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
24020         * elf/dl-support.c (_dl_auxv): New variable.
24021         (_dl_aux_init): Initialize it.
24022         * manual/startup.texi (Auxiliary Vector): New node.
24023         * sysdeps/generic/bits/hwcap.h: New file.
24024         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
24025         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
24026         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
24027         * sysdeps/sparc/sysdep.h: ... here.  Include it.
24028         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
24029         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
24030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24031         Update.
24032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
24033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
24034         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
24035         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
24036         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
24037         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
24038         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
24039         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
24040
24041 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24042
24043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24044
24045 2012-05-19  David S. Miller  <davem@davemloft.net>
24046
24047         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24048
24049 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
24050
24051         [BZ #14123]
24052         * math/s_ccosh.c: Include <float.h>
24053         (__ccosh): Avoid internal overflow calculating sinh and cosh
24054         values before multiplying by sin and cos values.
24055         * math/s_ccoshf.c: Likewise.
24056         * math/s_ccoshl.c: Likewise.
24057         * math/s_csin.c: Likewise.
24058         * math/s_csinf.c: Likewise.
24059         * math/s_csinl.c: Likewise.
24060         * math/s_csinh.c: Likewise.
24061         * math/s_csinhf.c: Likewise.
24062         * math/s_csinhl.c: Likewise.
24063         * math/libm-test.inc (ccos_test): Add more tests.
24064         (ccosh_test): Likewise.
24065         (csin_test): Likewise.
24066         (csinh_test): Likewise.
24067         * sysdeps/i386/fpu/libm-test-ulps: Update.
24068         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24069
24070 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
24071
24072         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
24073         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
24074
24075         * sysdeps/x86_64/x32/_itoa.h: Add comment.
24076
24077 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
24078
24079         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
24080         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
24081         * sysdeps/powerpc/soft-fp/Versions: Likewise.
24082         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
24083         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
24084         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
24085         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
24086         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
24087         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
24088         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
24089         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
24090         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
24091         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
24092         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
24093         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
24094         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
24095         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
24096         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
24097         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
24098         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
24099         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
24100         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
24101         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
24102         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
24103         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
24104         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
24105         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
24106         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
24107         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
24108         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
24109         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
24110
24111 2012-05-18  Andreas Jaeger  <aj@suse.de>
24112
24113         * csu/.gitignore: Delete.
24114
24115 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24116
24117         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
24118         (timex): Use __syscall_slong_t.
24119
24120 2012-05-18  Andreas Jaeger  <aj@suse.de>
24121             Carlos O'Donell  <carlos_odonell@mentor.com>
24122
24123         * manual/install.texi (Configuring and compiling): Update
24124         description about files modified in the source directory.
24125         * INSTALL: Regenerated.
24126
24127 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24128
24129         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
24130         value.  Use "or" to set return value to -1.
24131         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
24132         negate return value.
24133
24134 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24135
24136         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
24137         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
24138         failure if the compiler has Graphite support disabled.
24139         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
24140         Likewise.
24141         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
24142         CFLAGS-memmove.c): Likewise.
24143         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
24144         Likewise.
24145
24146 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24147
24148         * sysdeps/x86_64/x32/_itoa.h: New file.
24149
24150         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
24151         getdents system call only if kernel and user dirents have the
24152         same d_ino and d_off.
24153
24154         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
24155         LLONG_MAX != LONG_MAX.
24156         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24157         (_fitoa_word): Likewise.
24158
24159         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
24160         years.
24161         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
24162         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
24163         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
24164
24165         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
24166         include <bits/wordsize.h>.  Check __x86_64__ instead of
24167         __WORDSIZE.
24168         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
24169         if __x86_64__ is defined.  Use anonymous union on fpstate.
24170
24171         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
24172         anonymous union.
24173
24174 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
24175
24176         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24177         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
24178         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
24179         Refer to _rtld_local_ro instead of _rtld_global_ro.
24180         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
24181         Likewise.
24182         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
24183         Likewise.
24184         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
24185         Likewise.
24186         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
24187         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
24188         of _rtld_global, and rtld_progname instead of _dl_argv[0].
24189
24190         * sysdeps/powerpc/powerpc32/dl-machine.c
24191         (__elf_machine_runtime_setup) [PROF]: Don't reference
24192         _dl_prof_resolve.
24193
24194 2012-05-18  Andreas Jaeger  <aj@suse.de>
24195
24196         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
24197         function only available for GCCs before 3.4 since GCC 3.4
24198         introduced a builtin.
24199         (lrint): Likewise.
24200         (llrintf): Likewise.
24201         (llrint): Likewise.
24202         (fmaxf): Likewise.
24203         (fmax): Likewise.
24204         (fminf): Likewise.
24205         (fmin): Likewise.
24206         (rint): Likewise.
24207         (rintf): Likewise.
24208         (nearbyint): Likewise.
24209         (nearbyintf): Likewise.
24210         (ceil): Likewise.
24211         (ceilf): Likewise.
24212         (floor): Likewise.
24213         (floorf): Likewise.
24214
24215 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24216
24217         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
24218         on both fields and cast pointer to __syscall_ulong_t.
24219
24220         * bits/types.h (__fsword_t): New type.
24221         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
24222         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
24223         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24224         (__FSWORD_T_TYPE): Likewise.
24225         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24226         (__FSWORD_T_TYPE): Likewise.
24227         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24228         (__FSWORD_T_TYPE): Likewise.
24229         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
24230         (__FSWORD_T_TYPE): Likewise.
24231         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
24232         __SWORD_TYPE with __fsword_t.
24233         (statfs64): Likewise.
24234
24235 2012-05-17  David S. Miller  <davem@davemloft.net>
24236
24237         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
24238
24239 2012-05-17  Andreas Jaeger  <aj@suse.de>
24240
24241         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
24242         warning.
24243
24244 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24245
24246         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
24247
24248 2012-05-17  Andreas Jaeger  <aj@suse.de>
24249
24250         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
24251         when it is used.
24252
24253 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24254
24255         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
24256
24257 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24258
24259         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
24260         * sysdeps/x86_64/tst-mallocalign1.c: New file.
24261
24262 2012-05-17  Andreas Jaeger  <aj@suse.de>
24263             Carlos O'Donell  <carlos_odonell@mentor.com>
24264
24265         [BZ #14059]
24266         * sysdeps/x86_64/multiarch/init-arch.h
24267         (bit_YMM_Usable): Rename to...
24268         (bit_AVX_Usable): ... this.
24269         (bit_FMA4_Usable): New macro.
24270         (bit_XMM_state): New macro.
24271         (bit_YMM_state): New macro.
24272         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
24273         [__ASSEMBLER__] (index_AVX_Usable): ... this.
24274         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
24275         (CPUID_OSXSAVE): New macro.
24276         (CPUID_AVX): New macro.
24277         (CPUID_FMA4): New macro.
24278         (index_YMM_Usable): Rename to...
24279         (index_AVX_Usable): ... this.
24280         (HAS_AVX): Use HAS_ARCH_FEATURE.
24281         (HAS_FMA4): Likewise.
24282         (HAS_YMM_USABLE): Remove.
24283         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24284         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
24285         are present.
24286         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
24287         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
24288         * sysdeps/x86_64/multiarch/Makefile: Likewise.
24289         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
24290         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
24291
24292 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24293
24294         * math/libm-test.c: Support platforms without multiple rounding modes.
24295         * math/bug-nextafter.c: Support platforms without FP exceptions.
24296         * math/bug-nexttoward.c: Likewise.
24297         * math/test-fenv.c: Likewise.
24298         * math/test-misc.c: Likewise.
24299         * stdlib/bug-getcontext.c: Likewise.
24300
24301 2012-05-17  Andreas Jaeger  <aj@suse.de>
24302
24303         * manual/examples/search.c (critter_cmp): Change signature to
24304         avoid warnings.
24305         * manual/string.texi (Collation Functions): Likewise.
24306
24307 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24308
24309         * bits/types.h: Fold copyright years.
24310         * bits/typesizes.h: Likewise.
24311         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
24312         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
24313         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
24314         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
24315         * time/time.h: Likewise.
24316
24317 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
24318
24319         [BZ #208]
24320         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
24321         in instead of returning them.  Return void.
24322         (__libc_mallinfo): Accumulate over all arenas.
24323         (__malloc_stats): Adjust for change in int_mallinfo interface.
24324
24325 2012-05-16  Roland McGrath  <roland@hack.frob.com>
24326
24327         [BZ #10375]
24328         * configure.in (NM): Add AC_CHECK_TOOL for it.
24329         (libc_extra_cflags): New substituted variable.
24330         Check for -fstack-protector being used implicitly.
24331         * configure: Regenerated.
24332         * config.make.in (config-extra-cflags): New variable,
24333         gets @libc_extra_cflags@.
24334         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
24335
24336         [BZ #10375]
24337         * configure.in: Check for _FORTIFY_SOURCE being predefined.
24338         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
24339         * configure: Regenerated.
24340         * config.make.in (CPPUNDEFS): New substituted variable.
24341         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
24342         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
24343         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
24344
24345 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24346
24347         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
24348         (mq_attr): Use __syscall_slong_t.
24349
24350 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24351
24352         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
24353         Check __x86_64__ instead of __WORDSIZE.
24354         (_STAT_VER_LINUX): Likewise.
24355         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
24356         __syscall_ulong_t and __syscall_slong_t.
24357         (stat64): Likewise.
24358
24359 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24360
24361         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24362
24363 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24364
24365         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24366
24367 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24368
24369         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24370         __syscall_ulong_t.
24371
24372         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24373         include <bits/wordsize.h>.  Check __x86_64__ instead of
24374         __WORDSIZE.
24375         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24376         defined.
24377         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24378
24379         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24380         include <bits/wordsize.h>.  Check __x86_64__ instead of
24381         __WORDSIZE.
24382         (user_regs_struct): Use "__extension__ unsigned long long"
24383         instead of "unsigned long" if __x86_64__ is defined.
24384         (user): Likewise.  Pad after pointer field if __ILP32__ is
24385         defined.
24386
24387 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24388
24389         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24390         versions 5 to 9.
24391         * configure: Regenerated.
24392         * manual/install.texi (texinfo): Increase version requirement to
24393         4.5 or later.
24394         * INSTALL: Regenerated.
24395
24396         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24397
24398 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24399
24400         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24401
24402         * sysdeps/x86_64/x32/ffs.c: New file.
24403
24404         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24405         __syscall_ulong_t.
24406         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24407         defined.  Use __syscall_ulong_t.
24408         (shminfo): Use __syscall_ulong_t.
24409         (shm_info): Likewise.
24410
24411         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24412         __syscall_ulong_t.
24413
24414         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24415         <bits/wordsize.h>.
24416         (msgqnum_t): Use __syscall_ulong_t.
24417         (msglen_t): Likewise.
24418         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24419         __syscall_ulong_t.
24420
24421         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24422         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24423
24424         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24425
24426         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24427         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24428
24429         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24430         __syscall_slong_t.
24431
24432         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24433         include <bits/wordsize.h>.  Check __x86_64__ instead of
24434         __WORDSIZE.
24435
24436         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24437         "unsigned long long int" if __x86_64__ is defined.
24438         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24439
24440         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24441         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24442         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24443
24444         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24445         <stdint.h>.
24446         (GET_PC): Cast to uintptr_t first.
24447         (GET_FRAME): Likewise.
24448         (GET_STACK): Likewise.
24449
24450         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24451         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24452         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24453         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24454         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24455         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24456         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24457         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24458         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24459         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24460         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24461         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24462         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24463         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24464         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24465         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24466         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24467         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24468         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24469         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24470         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24471         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24472         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24473         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24474         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24475         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24476         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24477         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24478         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24479
24480 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24481
24482         * Makerules (+depfiles): Also collect depfiles from .oS in
24483         $(extra-objs).
24484         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24485         .oS, $(libnldbl-routines)).
24486
24487         * Makerules (native-compile-mkdep-flags): Define.
24488         * sunrpc/Makefile (extra-objs): Add $(addprefix
24489         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24490         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24491         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24492         calling $(make-target-directory).
24493
24494 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24495
24496         * bits/types.h (__snseconds_t): Removed.
24497         * time/time.h (struct timespec): Replace __snseconds_t with
24498         __syscall_slong_t.
24499         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24500         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24501         Likewise.
24502         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24503         (__SNSECONDS_T_TYPE): Likewise.
24504         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24505         (__SNSECONDS_T_TYPE): Likewise.
24506         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24507         (__SNSECONDS_T_TYPE): Likewise.
24508
24509 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24510
24511         * sysdeps/mach/hurd/bits/typesizes.h
24512         (__SYSCALL_SLONG_TYPE): New macro.
24513         (__SYSCALL_ULONG_TYPE): Likewise.
24514
24515 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24516
24517         * bits/types.h (__syscall_slong_t): New type.
24518         (__syscall_ulong_t): Likewise.
24519
24520         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24521         (__SYSCALL_ULONG_TYPE): Likewise.
24522         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24523         (__SYSCALL_SLONG_TYPE): Likewise.
24524         (__SYSCALL_ULONG_TYPE): Likewise.
24525         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24526         (__SYSCALL_SLONG_TYPE): Likewise.
24527         (__SYSCALL_ULONG_TYPE): Likewise.
24528         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24529         (__SYSCALL_SLONG_TYPE): Likewise.
24530         (__SYSCALL_ULONG_TYPE): Likewise.
24531
24532 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24533
24534         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24535         Add sigaltstack-offsets.sym.
24536         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24537         <sigaltstack-offsets.h>.
24538         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24539         longjmp_msg pointer.
24540         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24541         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24542         signal stack.
24543         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24544
24545 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24546
24547         * elf/stackguard-macros.h: Remove file.
24548         * sysdeps/generic/stackguard-macros.h: New file.
24549         * sysdeps/i386/stackguard-macros.h: Likewise.
24550         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24551         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24552         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24553         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24554         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24555         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24556         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24557         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24558         <elf/stackguard-macros.h>.
24559
24560         [BZ #14109]
24561         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24562         __aligned__ in attribute.
24563         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24564         (gregset_t): Likewise.
24565
24566 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24567
24568         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24569         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24570         * sysdeps/x86_64/x32/Implies-after: New file.
24571
24572 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24573
24574         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24575         and access return value for _dl_profile_fixup.  Use R10_LP to
24576         load frame size.
24577
24578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24579
24580         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24581
24582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24583
24584         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24585         * sysdeps/x86_64/x32/sysdep.h: New file.
24586
24587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24588
24589         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24590         * sysdeps/x86_64/setjmp.S: Likewise.
24591
24592 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24593
24594         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24595         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24596         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24597         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24598         remove unused global constant.
24599
24600 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24601
24602         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24603         include of <not-cancel.h>.
24604
24605 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24606
24607         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24608
24609 2012-05-15  Jeff Law  <law@redhat.com>
24610             Andreas Jaeger  <aj@suse.de>
24611
24612         [BZ #13594]
24613         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24614         out from...
24615         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24616         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24617         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24618         code changing __hst_map_handle.map.
24619
24620 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24621
24622         * configure.in (sysnames): Look for Implies-before and Implies-after
24623         files.
24624         * configure: Regenerated.
24625
24626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24627
24628         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24629         8-byte data alignment with LP_SIZE alignment.
24630
24631 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24632
24633         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24634         into R10_LP.
24635
24636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24637
24638         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24639
24640 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24641
24642         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24643         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24644         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24645         Likewise.
24646         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24647
24648 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24649
24650         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24651         (stackinfo_sub_sp): Likewise.
24652
24653 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24654
24655         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24656         RAX_LP.
24657
24658 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24659
24660         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24661         into R*_LP.
24662
24663 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24664
24665         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24666         sizes into R*_LP.
24667
24668 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24669
24670         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24671
24672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24673
24674         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24675         into R11_LP and load __x86_64_shared_cache_size_half into
24676         R8_LP.
24677
24678 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24679
24680         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24681         R8_LP.
24682
24683 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24684
24685         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24686         logb for POWER7.
24687         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24688         logbf for POWER7.
24689         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24690         logbl for POWER7.
24691         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24692         powerpc32/power7/fpu/s_logb.c via #include.
24693         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24694         powerpc32/power7/fpu/s_logbf.c via #include.
24695         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24696         powerpc32/power7/fpu/s_logbl.c via #include.
24697
24698 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24699
24700         * README.libm: Remove file.
24701
24702 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24703
24704         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24705         count for x32.  Use R*_LP and omit operand-size suffix.
24706
24707 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24708
24709         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24710         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24711         * sysdeps/x86_64/x32/shlib-versions: New file.
24712
24713 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24714
24715         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24716         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24717         Use _dl_fatal_printf instead.
24718
24719 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24720
24721         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24722         set if not set by the user.  Do not allow for being unset.
24723         * sysdeps/unix/sysv/linux/configure: Regenerated.
24724
24725 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24726
24727         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24728         the `q' suffix from lea and replace .quad with ASM_ADDR.
24729
24730 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24731
24732         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24733         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24734         instead of $17.
24735         (PTR_DEMANGLE): Likewise.
24736
24737 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24738
24739         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24740         (LP_OP): Likewise.
24741         (ASM_ADDR): Likewise.
24742         (RAX_LP): Likewise.
24743         (RBP_LP): Likewise.
24744         (RBX_LP): Likewise.
24745         (RCX_LP): Likewise.
24746         (RDI_LP): Likewise.
24747         (RSI_LP): Likewise.
24748         (RSP_LP): Likewise.
24749         (R8_LP): Likewise.
24750         (R9_LP): Likewise.
24751         (R10_LP): Likewise.
24752         (R10_LP): Likewise.
24753         (R11_LP): Likewise.
24754         (R12_LP): Likewise.
24755         (R13_LP): Likewise.
24756         (R14_LP): Likewise.
24757         (R15_LP): Likewise.
24758
24759 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24760
24761         * sysdeps/x86_64/x32/dl-machine.h: New file.
24762
24763 2012-05-14  Andreas Jaeger  <aj@suse.de>
24764
24765         * manual/Makefile (subdir): Remove export of subdir.
24766         (all): Remove target.
24767         (.PHONY): Remove all from list.
24768         (mkinstalldirs): Remove.
24769         (.PHONY): Remove installdirs from list.
24770         ($(inst_infodir)/libc.info): Use make-target-directory.
24771         (installdirs): Remove.
24772         (subdir_%): Remove.
24773         (glibc-targets): Remove.
24774         (lib): Remove.
24775         (stubs): Remove.
24776         ($(objpfx)stubs ../po/manual.pot): Remove.
24777         ($(objpfx)stamp%): Remove.
24778         (make-target-directory): Remove.
24779         (subdir_install): Remove.
24780         (routines): Remove.
24781         (aux): Remove.
24782         (sources): Remove.
24783         (objects): Remove.
24784         (headers): Remove.
24785
24786         [BZ #13750]
24787         * manual/.gitignore: Remove, it's not needed anymore.
24788         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24789         all files in it.
24790         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24791         directory.
24792         (texis): Renamed to $(objpfx)texis.
24793         (texis-path): New, contains path to generated files.
24794         (chapters.%): Use texis-path for complete path, add extra argument
24795         libc-texinfo.sh.
24796         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24797         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24798         (summary,texi, stamp-summary): Use complete path of
24799         files. Generate files in build dir.
24800         (dir-add.texi): Build in build dir.
24801         (libm-err.texi,stamp-libm-err): Likewise.
24802         (version.texi, stamp-version): Likewise.
24803         (.%c.texi): Likewise.
24804         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24805         (mostlyclean): Remove target.
24806         (realclean): Remove target.
24807         (generated): Add new variable with contents from mostlyclean and
24808         realclean, remove entries duplicated in common-mostlyclean, add
24809         stamp-libm-err and stamp-version.
24810         (generated-dirs): Add libc directory.
24811         ($(inst_infodir)/libc.info): Install files from build dir.
24812
24813         * manual/install.texi (Configuring and compiling): Adjust since
24814         the info files are not part of the tar ball anymore.
24815
24816 2012-05-14  Andreas Jaeger  <aj@suse.de>
24817
24818         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24819         variable.
24820
24821 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24822
24823         [BZ #13717]
24824         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24825         to 2.2.0 where earlier.
24826         * sysdeps/unix/sysv/linux/configure: Regenerated.
24827         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24828         Remove conditional code.
24829         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24830         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24831         Remove conditional code.
24832         [!__NR_lchown]: Likewise.
24833         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24834         [__NR_lchown]: Likewise.
24835         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24836         comment referencing __ASSUME_LCHOWN_SYSCALL.
24837         * sysdeps/unix/sysv/linux/i386/sigaction.c
24838         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24839         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24840         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24841         Remove conditional code.
24842         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24843         (__protocol_available): Remove #if 0 code.
24844         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24845         conditional code.
24846         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24847         * sysdeps/unix/sysv/linux/kernel-features.h
24848         (__ASSUME_GETCWD_SYSCALL): Don't define.
24849         (__ASSUME_REALTIME_SIGNALS): Likewise.
24850         (__ASSUME_PREAD_SYSCALL): Likewise.
24851         (__ASSUME_PWRITE_SYSCALL): Likewise.
24852         (__ASSUME_POLL_SYSCALL): Likewise.
24853         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24854         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24855         non-SPARC.
24856         (__ASSUME_SIOCGIFNAME): Don't define.
24857         (__ASSUME_MSG_NOSIGNAL): Likewise.
24858         (__ASSUME_SENDFILE): Define unconditionally.
24859         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24860         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24861         conditional code.
24862         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24863         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24864         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24865         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24866         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24867         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24868         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24870         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24871         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24873         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24874         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24876         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24877         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24879         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24880         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24882         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24883         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24885         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24886         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24888         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24889         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24891         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24892         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24893         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24894         Remove conditional code.
24895         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24896         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24897         Remove conditional code.
24898         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24899         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24900         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24901         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24902         Remove conditional code.
24903         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24904         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24905         Remove conditional code.
24906         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24907         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24908         Remove conditional code.
24909         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24910         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24911         Remove conditional code.
24912         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24913         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24914         Remove conditional code.
24915         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24916         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24917         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24918         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24919         * sysdeps/unix/sysv/linux/sigaction.c
24920         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24921         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24922         * sysdeps/unix/sysv/linux/sigpending.c
24923         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24924         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24925         * sysdeps/unix/sysv/linux/sigprocmask.c
24926         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24927         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24928         * sysdeps/unix/sysv/linux/sigsuspend.c
24929         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24930         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24931         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24932         (__libc_missing_rt_sigs): Remove.
24933         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24934         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24935         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24936         Remove conditional code.
24937         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24938         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24939         return 1.
24940         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24941         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24942         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24943         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24944
24945 2012-05-14  Andreas Jaeger  <aj@suse.de>
24946
24947         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24948         it's not used in glibc.
24949         (__coshm1): Likewise.
24950         (__acosh1p): Likewise.
24951         (__sgn): Likewise.
24952
24953         * manual/string.texi (Copying and Concatenation): Add missing
24954         variable in concat example.
24955         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24956
24957 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24958
24959         [BZ #14103]
24960         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24961         __builtin_clzl with __builtin_clzll.
24962
24963 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24964
24965         [BZ #14104]
24966         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24967         libc_freeres_ptr.
24968
24969 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24970
24971         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24972         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24973         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24974         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24975
24976 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24977
24978         * NEWS: Update ia64 info.
24979
24980 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24981
24982         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24983         used as bcopy.
24984
24985 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24986
24987         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24988         * sysdeps/unix/syscalls.list (dup3): Likewise.
24989         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24990         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
24991
24992 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24993
24994         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
24995         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
24996
24997 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
24998
24999         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
25000         thread pointer.
25001         (TLS_IE): Use mov/add instead of movq/addq to load thread
25002         pointer.
25003         (TLS_GD_PREFIX): New.
25004         (TLS_GD): Use it.
25005
25006 2012-05-11  David S. Miller  <davem@davemloft.net>
25007
25008         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
25009         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
25010         (_FPU_SETCW): Likewise.
25011
25012 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25013
25014         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
25015         is 32-byte aligned.
25016
25017 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
25018
25019         [BZ #11837]
25020         * iconvdata/gb18030.c: Update tables.
25021         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
25022         characters specially.
25023         (BODY for TO_LOOP): Add encoding of missing ranges.
25024
25025 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
25026
25027         [BZ #13673]
25028         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
25029         * sysdeps/mach/hurd/dup3.c: Likewise.
25030         * sysdeps/mach/hurd/readlinkat.c: Likewise.
25031         * sysdeps/powerpc/memmove.c:: Likewise.
25032
25033 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25034
25035         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
25036         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
25037
25038 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25039
25040         * elf/elf.h (R_X86_64_RELATIVE64): New.
25041         (R_X86_64_NUM): Updated.
25042         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
25043         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
25044         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
25045         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
25046         tst-quad1pie tst-quad2pie
25047         (modules-names): Add tst-quadmod1 tst-quadmod2.
25048         ($(objpfx)tst-quad1): New dependency.
25049         ($(objpfx)tst-quad2): Likewise.
25050         ($(objpfx)tst-quad1pie): Likewise.
25051         ($(objpfx)tst-quad2pie): Likewise.
25052         * sysdeps/x86_64/tst-quad1.c: New file.
25053         * sysdeps/x86_64/tst-quad1pie.c: New file.
25054         * sysdeps/x86_64/tst-quad2.c: Likewise.
25055         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
25056         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
25057         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
25058         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
25059         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
25060
25061 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25062
25063         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
25064         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
25065         * streams/stropts.h (t_scalar_t): Define type.
25066
25067         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
25068         (_PATH_PRESERVE): Set to "/var/lib".
25069         (_PATH_RWHODIR): Set to "/var/spool/rwho".
25070
25071         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
25072         instead of int.
25073
25074         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
25075         if __dir_mkfile succeeded.
25076
25077         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
25078         checking for _hurd_dtablesize.  Unlock it right after having
25079         finished _hurd_dtable allocation.
25080
25081 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25082
25083         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
25084         * sysdeps/mach/hurd/configure: Regenerated.
25085         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
25086         special-casing to...
25087         * sysdeps/gnu/configure.in: ... this new file.
25088         * sysdeps/unix/sysv/linux/configure: Regenerated.
25089         * sysdeps/gnu/configure: New generated file.
25090
25091         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
25092         for Linux: use nsec instead of usec, as well as:
25093         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
25094         members of type struct timespec.
25095         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
25096         New macros.
25097         (struct stat64): Likewise.
25098         (_STATBUF_ST_NSEC): New macro.
25099         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
25100
25101         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
25102         __strtoul_internal rather than strtoul.
25103
25104 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25105
25106         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
25107         and reject them.
25108
25109 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25110
25111         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
25112         which preserves existing values.
25113         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
25114
25115 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25116
25117         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
25118         TIMEOUT values.  Return EINVAL for NFDS values either negative or
25119         greater than FD_SETSIZE.
25120
25121 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25122
25123         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
25124         allocated, call __vm_protect to finish enabling the existing space, and
25125         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
25126         allocate the remainder.
25127
25128 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25129
25130         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
25131         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
25132
25133 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25134
25135         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
25136         sysdeps/mach/hurd/readlink.c.
25137
25138         * posix/tst-sysconf.c (posix_options): Only use
25139         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
25140         _POSIX_SYNCHRONIZED_IO when they are defined
25141         * sysdeps/mach/hurd/bits/posix_opt.h:
25142         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
25143         (_XOPEN_REALTIME): Undefine macro.
25144         (_XOPEN_REALTIME_THREADS): Undefine macro.
25145         (_XOPEN_SHM): Undefine macro.
25146         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
25147         macro to -1.
25148         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
25149         macro to -1.
25150         (_POSIX_ASYNC_IO): Undefine macro.
25151         (_POSIX_PRIORITIZED_IO): Undefine macro.
25152         (_POSIX_SPIN_LOCKS): Define macro to -1.
25153
25154         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
25155         SA_NODEFER, SA_RESETHAND.
25156         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
25157         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
25158         F_DUPFD_CLOEXEC.
25159
25160 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25161
25162         * elf/Makefile (pldd-modules): Define unconditionally.
25163
25164 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25165
25166         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
25167
25168 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25169
25170         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
25171         Return ENOENT when name is empty.
25172         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
25173
25174 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25175
25176         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
25177
25178         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
25179
25180 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25181
25182         Fix mlock in all cases except non-readable pages.
25183         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
25184         instead of VM_PROT_ALL as parameter to __vm_wire function.
25185
25186         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
25187         (__mkdir): When path is `/', just fail with EEXIST.
25188         * sysdeps/mach/hurd/mkdirat.c: Likewise.
25189
25190 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25191
25192         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
25193         <sys/uio.h> (for writev).
25194         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
25195         and <sys/param.h> (for MIN).
25196
25197 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25198
25199         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
25200         REQUESTED_TIME.  Properly set the remaining time and return EINTR
25201         if interrupted.
25202
25203 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25204
25205         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
25206         Depend on against $(link-rpcuserlibs).
25207
25208 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25209
25210         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
25211         (__libc_stack_end): Do not use attribute_relro.
25212         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
25213         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
25214         to libthread-provided value.
25215         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
25216         attribute_relro.
25217
25218 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25219
25220         [BZ #3748]
25221         * bits/libc-lock.h (__libc_once_get): New macro.
25222         * sysdeps/mach/bits/libc-lock.h: Likewise.
25223         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
25224         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
25225         instead of using implementation details.
25226
25227         * libio/fileops.c: Unconditionally include <kernel-features.h>.
25228         * libio/freopen.c: Likewise.
25229         * libio/freopen64.c: Likewise.
25230         * misc/syslog.c: Likewise.
25231         * nscd/connections.c: Likewise.
25232         * nscd/netgroupcache.c: Likewise.
25233         * sysdeps/posix/getcwd.c: Likewise.
25234
25235 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25236
25237         * math/w_ilogbf.c: Add #include <limits.h>.
25238
25239 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25240
25241         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
25242         path instead of returning without unlocking.
25243
25244         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
25245         immediate-write ioctls.
25246         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
25247
25248 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25249
25250         * sysdeps/mach/hurd/i386/init-first.c (init): Use
25251         __builtin_frame_address instead of making assumptions about the
25252         location of the return address relative to DATA.  Force early load of
25253         the return address.
25254         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
25255         __builtin_frame_address.
25256
25257         dup3 for GNU Hurd.
25258         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
25259         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
25260         implement dup3 and do some further code clean-ups.
25261         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
25262         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
25263
25264 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25265
25266         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
25267
25268         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
25269         HURD_CRITICAL_END around holding _hurd_dtable_lock.
25270         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
25271         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
25272         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
25273         d->port.lock.
25274
25275         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
25276         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
25277         when handler == SIG_ERR, not when handler != SIG_ERR.
25278
25279 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25280
25281         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
25282         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
25283         definitions.
25284
25285         accept4 for GNU Hurd.
25286         * include/sys/socket.h (__libc_accept4): New prototype.
25287         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
25288         to implement __libc_accept4.
25289         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25290         __libc_accept4.
25291         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
25292
25293         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
25294         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
25295         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
25296         signal-defines.sym.
25297
25298 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25299
25300         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
25301
25302 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25303
25304         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
25305         assertion on O_CLOEXEC flag.
25306         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
25307         * hurd/intern-fd.c: Likewise.
25308         * hurd/port2fd.c: Likewise.
25309
25310 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25311
25312         [BZ #3906]
25313         * bits/in.h (IPV6_PKTINFO): Define new macro.
25314         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
25315
25316 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25317
25318         [BZ #13954]
25319         [BZ #13955]
25320         [BZ #13956]
25321         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
25322         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
25323         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
25324         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
25325         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25326         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
25327         * math/libm-test.inc (logb_test) : Additional logb tests.
25328
25329 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
25330             Andreas Jaeger  <aj@suse.de>
25331
25332         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
25333         * configure: Regenerated.
25334         * config.h.in (LINK_OBSOLETE_RPC): New macro.
25335         * config.make.in (link-obsolete-rpc): New substituted variable.
25336         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
25337         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
25338         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25339         (shared-only-routines): Don't set it under [link-obsolete-rpc],
25340         so that libc.a contains the symbols.
25341         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25342         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
25343         * sunrpc/auth_none.c: Likewise.
25344         * sunrpc/auth_unix.c: Likewise.
25345         * sunrpc/authdes_prot.c: Likewise.
25346         * sunrpc/authuxprot.c: Likewise.
25347         * sunrpc/clnt_gen.c: Likewise.
25348         * sunrpc/clnt_perr.c: Likewise.
25349         * sunrpc/clnt_raw.c: Likewise.
25350         * sunrpc/clnt_simp.c: Likewise.
25351         * sunrpc/clnt_tcp.c: Likewise.
25352         * sunrpc/clnt_udp.c: Likewise.
25353         * sunrpc/clnt_unix.c: Likewise.
25354         * sunrpc/des_crypt.c: Likewise.
25355         * sunrpc/des_soft.c: Likewise.
25356         * sunrpc/get_myaddr.c: Likewise.
25357         * sunrpc/key_call.c: Likewise.
25358         * sunrpc/key_prot.c: Likewise.
25359         * sunrpc/netname.c: Likewise.
25360         * sunrpc/pm_getmaps.c: Likewise.
25361         * sunrpc/pm_getport.c: Likewise.
25362         * sunrpc/pmap_clnt.c: Likewise.
25363         * sunrpc/pmap_prot.c: Likewise.
25364         * sunrpc/pmap_prot2.c: Likewise.
25365         * sunrpc/pmap_rmt.c: Likewise.
25366         * sunrpc/publickey.c: Likewise.
25367         * sunrpc/rpc_cmsg.c: Likewise.
25368         * sunrpc/rpc_common.c: Likewise.
25369         * sunrpc/rpc_dtable.c: Likewise.
25370         * sunrpc/rpc_prot.c: Likewise.
25371         * sunrpc/rpc_thread.c: Likewise.
25372         * sunrpc/rtime.c: Likewise.
25373         * sunrpc/svc.c: Likewise.
25374         * sunrpc/svc_auth.c: Likewise.
25375         * sunrpc/svc_raw.c: Likewise.
25376         * sunrpc/svc_run.c: Likewise.
25377         * sunrpc/svc_tcp.c: Likewise.
25378         * sunrpc/svc_udp.c: Likewise.
25379         * sunrpc/svc_unix.c: Likewise.
25380         * sunrpc/svcauth_des.c: Likewise.
25381         * sunrpc/xcrypt.c: Likewise.
25382         * sunrpc/xdr.c: Likewise.
25383         * sunrpc/xdr_array.c: Likewise.
25384         * sunrpc/xdr_float.c: Likewise.
25385         * sunrpc/xdr_intXX_t.c: Likewise.
25386         * sunrpc/xdr_mem.c: Likewise.
25387         * sunrpc/xdr_rec.c: Likewise.
25388         * sunrpc/xdr_ref.c: Likewise.
25389         * sunrpc/xdr_sizeof.c: Likewise.
25390         * sunrpc/xdr_stdio.c: Likewise.
25391
25392 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25393
25394         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25395         change.  Update copyright years.
25396
25397 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25398
25399         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25400
25401 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25402             Joseph Myers  <joseph@codesourcery.com>
25403             Paul Pluzhnikov  <ppluzhnikov@google.com>
25404
25405         [BZ #14012]
25406         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25407         requiring rpcgen.
25408         [cross-compiling] (extra-libs): Likewise.
25409         [cross-compiling] (extra-libs-others): Likewise.
25410         [cross-compiling] (librpcsvc-routines): Likewise.
25411         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25412         [cross-compiling] (omit-deps): Likewise.
25413         (sunrpc-CPPFLAGS): New variable.
25414         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25415         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25416         (cross-rpcgen-objs): New variable.
25417         (extra-objs): Append $(cross-rpcgen-objs).
25418         ($(cross-rpcgen-objs)): New rule.
25419         ($(objpfx)cross-rpcgen): Likewise.
25420         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25421         comment.
25422         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25423         ($(objpfx)x%.stmp): Likewise.
25424         * sunrpc/proto.h [IS_IN_build] (_): Define.
25425         [IS_IN_build] (_libc_intl_domainname): Likewise.
25426
25427 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25428
25429         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25430         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25431         and R_X86_64_TPOFF64.
25432
25433 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25434
25435         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25436         sysdeps/unix/sysv/syscalls.list.
25437         (stime): Likewise.
25438         (utime): Likewise.
25439         * sysdeps/unix/sysv/syscalls.list: Remove file.
25440
25441 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25442
25443         [BZ #3440]
25444         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25445         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25446         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25447         (__LC_IDENTIFICATION): Make these macros useful in #if
25448         expressions, as required by C99.
25449
25450 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25451
25452         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25453         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25454         after this.
25455
25456 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25457
25458         * stdlib/longlong.h: Updated from GCC.
25459
25460 2012-05-09  Andreas Jaeger  <aj@suse.de>
25461
25462         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25463         default is first entry.
25464         (run_mode): Set type.
25465         (main): Remove informal message about syslog.
25466         (options): Fix typo.
25467
25468         [BZ #14053]
25469         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25470         to asm.
25471         (lrint): Likewise.
25472         (llrintf): Likewise.
25473         (llrint): Likewise.
25474         (rint): Likewise.
25475         (rintf): Likewise.
25476         (nearbyint): Likewise.
25477         (nearbyintf): Likewise.
25478
25479 2012-05-09  Andreas Jaeger  <aj@suse.de>
25480             Pedro Alves  <palves@redhat.com>
25481
25482         * nscd/nscd.c (run_mode): Use enum.
25483         (main): Cleanup coding style issue.
25484
25485 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25486             Andreas Jaeger  <aj@suse.de>
25487
25488         * nscd/nscd.c (go_background): Replaced with...
25489         (run_mode): ... this.
25490         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25491         (options): Add -F --foreground.
25492         (main): Implement it.
25493         (parse_opt): Parse it.
25494
25495 2012-05-09  Andreas Jaeger  <aj@suse.de>
25496
25497         [BZ #14083]
25498         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25499         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25500         -Wconversion warning.
25501         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25502         Likewise.
25503
25504 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25505
25506         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25507         == 0.
25508         (LC_ALL): Use macro-int-constant.
25509         (LC_COLLATE): Likewise.
25510         (LC_CTYPE): Likewise.
25511         (LC_MESSAGES): Likewise.
25512         (LC_MONETARY): Likewise.
25513         (LC_NUMERIC): Likewise.
25514         (LC_TIME): Likewise.
25515         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25516         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25517         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25518         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25519         Specify type.
25520         [C99-based standards] (float_t): Expect type.
25521         [C99-based standards] (double_t): Expect type.
25522         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25523         type.
25524         [C99-based standards] (HUGE_VALL): Likewise.
25525         [C99-based standards] (INFINITY): Likewise.
25526         [C99-based standards] (NAN): Likewise.
25527         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25528         [C99-based standards] (FP_NAN): Likewise.
25529         [C99-based standards] (FP_NORMAL): Likewise.
25530         [C99-based standards] (FP_SUBNORMAL): Likewise.
25531         [C99-based standards] (FP_ZERO): Likewise.
25532         [C99-based standards] (FP_FAST_FMA): Use
25533         optional-macro-int-constant.  Specify type.  Require == 1.
25534         [C99-based standards] (FP_FAST_FMAF): Likewise.
25535         [C99-based standards] (FP_FAST_FMAL): Likewise.
25536         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25537         [C99-based standards] (FP_ILOGBNAN): Likewise.
25538         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25539         Specify type.
25540         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25541         [C99-based standards] (math_errhandling): Specify type.
25542         [ISO99 || ISO11] (signgam): Do not allow.
25543         [non-C99-based standards] (copysignf): Do not allow.
25544         [non-C99-based standards] (exp2f): Likewise.
25545         [non-C99-based standards] (log2f): Likewise.
25546         [non-C99-based standards] (modff): Allow.
25547         [non-C99-based standards] (erff): Do not allow.
25548         [non-C99-based standards] (erfcf): Likewise.
25549         [non-C99-based standards] (gammaf): Likewise.
25550         [non-C99-based standards] (hypotf): Likewise.
25551         [non-C99-based standards] (j0f): Likewise.
25552         [non-C99-based standards] (j1f): Likewise.
25553         [non-C99-based standards] (jnf): Likewise.
25554         [non-C99-based standards] (lgammaf): Likewise.
25555         [non-C99-based standards] (tgammaf): Likewise.
25556         [non-C99-based standards] (y0f): Likewise.
25557         [non-C99-based standards] (y1f): Likewise.
25558         [non-C99-based standards] (ynf): Likewise.
25559         [non-C99-based standards] (isnanf): Likewise.
25560         [non-C99-based standards] (acoshf): Likewise.
25561         [non-C99-based standards] (asinhf): Likewise.
25562         [non-C99-based standards] (atanhf): Likewise.
25563         [non-C99-based standards] (cbrtf): Likewise.
25564         [non-C99-based standards] (expm1f): Likewise.
25565         [non-C99-based standards] (ilogbf): Likewise.
25566         [non-C99-based standards] (log1pf): Likewise.
25567         [non-C99-based standards] (logbf): Likewise.
25568         [non-C99-based standards] (nextafterf): Likewise.
25569         [non-C99-based standards] (remainderf): Likewise.
25570         [non-C99-based standards] (rintf): Likewise.
25571         [non-C99-based standards] (scalbf): Likewise.
25572         [non-C99-based standards] (copysignl): Likewise.
25573         [non-C99-based standards] (exp2l): Likewise.
25574         [non-C99-based standards] (log2l): Likewise.
25575         [non-C99-based standards] (modfl): Allow.
25576         [non-C99-based standards] (erfl): Do not allow.
25577         [non-C99-based standards] (erfcl): Likewise.
25578         [non-C99-based standards] (gammal): Likewise.
25579         [non-C99-based standards] (hypotl): Likewise.
25580         [non-C99-based standards] (j0l): Likewise.
25581         [non-C99-based standards] (j1l): Likewise.
25582         [non-C99-based standards] (jnl): Likewise.
25583         [non-C99-based standards] (lgammal): Likewise.
25584         [non-C99-based standards] (tgammal): Likewise.
25585         [non-C99-based standards] (y0l): Likewise.
25586         [non-C99-based standards] (y1l): Likewise.
25587         [non-C99-based standards] (ynl): Likewise.
25588         [non-C99-based standards] (isnanl): Likewise.
25589         [non-C99-based standards] (acoshl): Likewise.
25590         [non-C99-based standards] (asinhl): Likewise.
25591         [non-C99-based standards] (atanhl): Likewise.
25592         [non-C99-based standards] (cbrtl): Likewise.
25593         [non-C99-based standards] (expm1l): Likewise.
25594         [non-C99-based standards] (ilogbl): Likewise.
25595         [non-C99-based standards] (log1pl): Likewise.
25596         [non-C99-based standards] (logbl): Likewise.
25597         [non-C99-based standards] (nextafterl): Likewise.
25598         [non-C99-based standards] (remainderl): Likewise.
25599         [non-C99-based standards] (rintl): Likewise.
25600         [non-C99-based standards] (scalbl): Likewise.
25601         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25602         [non-C99-based standards] (FP_*): Do not allow.
25603         [C99-based standards] (FP_*): Change to
25604         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25605         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25606         allow.
25607         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25608         (SIG_ERR): Likewise.
25609         [X/Open-based standards] (SIG_HOLD): Likewise.
25610         (SIG_IGN): Likewise.
25611         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25612         positive value.
25613         (SIGFPE): Likewise.
25614         (SIGILL): Likewise.
25615         (SIGINT): Likewise.
25616         (SIGSEGV): Likewise.
25617         (SIGTER): Likewise.
25618         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25619         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25620         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25621         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25622         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25623         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25624         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25625         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25626         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25627         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25628         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25629         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25630         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25631         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25632         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25633         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25634         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25635         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25636         [X/Open-based standards] (SIGTRAP): Likewise.
25637         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25638         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25639         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25640         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25641         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25642         allow.
25643
25644 2012-05-08  Ian Wienand  <ianw@vmware.com>
25645
25646         [BZ #14080]
25647         * time/tzset.c (__tzset_parse_tz): Update default rules for
25648         daylight time changes in the Energy Policy Act of 2005.
25649
25650 2012-05-09  Andreas Jaeger  <aj@suse.de>
25651
25652         [BZ #13983]
25653         * elf/ldconfig.c (parse_conf): Change string to make clear that
25654         ldconfig only issued a warning if ld.so.conf does not exist.
25655
25656 2012-05-08  David S. Miller  <davem@davemloft.net>
25657
25658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25659         movxtod instead of popping the value on the stack.
25660
25661         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25662
25663 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25664
25665         * config.h.in: Add HAVE_ARM_PCS_VFP.
25666
25667 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25668
25669         [BZ #13979]
25670         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25671         checking but the checks are disabled for any reason.
25672
25673 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25674
25675         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25676         and ELF64_R_TYPE with ELFW(R_TYPE).
25677
25678 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25679
25680         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25681         (ulimit): Likewise.
25682
25683         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25684         (settimeofday): Likewise.
25685
25686 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25687
25688         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25689         a struct th_u2 inside the union, and move tu_block/tu_code into
25690         a new th_u3 union of tu_block/tu_code inside of that.  Move
25691         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25692         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25693         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25694         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25695         (th_stuff): Change to th_u1.tu_stuff.
25696         (th_data): Define.
25697         (th_msg): Change to th_u1.th_u2.tu_data.
25698
25699 2012-05-07  David S. Miller  <davem@davemloft.net>
25700
25701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25702
25703         [BZ #14074]
25704         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25705         (SETUP_PIC_REG): Use it.
25706         (SETUP_PIC_REG_LEAF): Use it.
25707
25708 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25709
25710         [BZ #13885]
25711         [BZ #13923]
25712         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25713         USE_AS_EXPM1L.
25714         (EXPL_FINITE): Likewise.
25715         (FLDLOG): Likewise.
25716         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25717         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25718         e_expl.S.
25719         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25720         USE_AS_EXPM1L.
25721         (EXPL_FINITE): Likewise.
25722         (FLDLOG): Likewise.
25723         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25724         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25725         e_expl.S.
25726         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25727         test of -max_value argument for long double.
25728         * sysdeps/i386/fpu/libm-test-ulps: Update.
25729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25730
25731 2012-05-06  David S. Miller  <davem@davemloft.net>
25732
25733         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25734         quad soft-float symbols whose references which are compiler
25735         generated.
25736         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25737
25738 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25739
25740         [BZ #13884]
25741         [BZ #13914]
25742         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25743         USE_AS_EXP10L.
25744         (EXPL_FINITE): Likewise.
25745         (FLDLOG): Likewise.
25746         (c0): Likewise.
25747         (c1): Likewise.
25748         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25749         Adjust comments for base varying.
25750         (__expl_finite): Change alias to EXPL_FINITE.
25751         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25752         e_expl.S.
25753         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25754         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25755         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25756         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25757         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25758         USE_AS_EXP10L.
25759         (EXPL_FINITE): Likewise.
25760         (FLDLOG): Likewise.
25761         (c0): Likewise.
25762         (c1): Likewise.
25763         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25764         Adjust comments for base varying.
25765         (__expl_finite): Change alias to EXPL_FINITE.
25766         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25767         tests for bugs.
25768         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25769
25770         [BZ #14064]
25771         * math/libm-test.inc (check_float_internal): Correct ulp
25772         calculation for subnormal expected results.
25773
25774 2012-05-06  Andreas Jaeger  <aj@suse.de>
25775
25776         * Makeconfig (+math-flags): New, set to -frounding-math.
25777         (+cflags): Add +math-flags so that all of glibc gets compiled with
25778         it.
25779
25780         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25781
25782 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25783
25784         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25785         Disable one test.
25786
25787         [BZ #13787]
25788         [BZ #13922]
25789         [BZ #14036]
25790         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25791         (__ieee754_expl): Allow for and saturate large arguments.
25792         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25793         (u_threshold): Likewise.
25794         (__exp): Call __ieee754_exp before checking for overflow and
25795         underflow.
25796         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25797         (u_threshold): Likewise.
25798         (__expf): Call __ieee754_expf before checking for overflow and
25799         underflow.
25800         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25801         (u_threshold): Likewise.
25802         (__expl): Call __ieee754_expl before checking for overflow and
25803         underflow.
25804         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25805         (__ieee754_expl): Allow for and saturate large arguments.
25806         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25807         missing overflow exception on overflow.
25808         (expm1_test): Do not allow missing overflow exception on overflow.
25809
25810         * sysdeps/i386/fpu/e_expl.c: Move to ...
25811         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25812         rather than using inline asm.
25813         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25814         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25815         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25816
25817         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25818         (nice): Likewise.
25819         (poll): Likewise.
25820         (signal): Likewise.
25821         (time): Likewise.
25822         (times): Likewise.
25823
25824 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25825
25826         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25827         sysdeps/unix/common/syscalls.list.
25828         (fchmod): Likewise.
25829         (fchown): Likewise.
25830         (ftruncate): Likewise.
25831         (getrusage): Likewise.
25832         (gettimeofday): Likewise.
25833         (setpgid): Likewise.
25834         (setregid): Likewise.
25835         (setreuid): Likewise.
25836         (sigaction): Likewise.
25837         (truncate): Likewise.
25838         (vhangup): Likewise.
25839         * sysdeps/unix/common/syscalls.list: Remove file.
25840         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25841         * sysdeps/unix/sysv/linux/Implies: Likewise.
25842
25843 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25844
25845         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25846         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25847         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25848         Moved to ...
25849         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25850         Here.
25851         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25852         to ...
25853         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25854         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25855         to ...
25856         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25857         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25858         to ...
25859         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25860         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25861         to ...
25862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25863         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25864         to ...
25865         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25866         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25867         to ...
25868         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25869         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25870         to ...
25871         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25872         Here.
25873         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25874         to ...
25875         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25876         Here.
25877         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25878         to ...
25879         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25880         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25881         Moved to ...
25882         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25883         Here.
25884         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25885         to ...
25886         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25887
25888 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25889
25890         * sysdeps/unix/common/bits/dirent.h: Remove file.
25891         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25892
25893         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25894         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25895         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25896         * sysdeps/unix/bsd/isatty.c: Likewise.
25897         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25898         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25899         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25900
25901 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25902
25903         [BZ #13563]
25904         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25905         long double comparison inaccuracies.
25906         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25907         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25908
25909 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25910
25911         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25912         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25913
25914 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25915
25916         [BZ #14049]
25917         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25918         nonzero digits before rounding a hex value.
25919         * stdlib/tst-strtod.c (tests): Add another test.
25920
25921 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25922
25923         * sysdeps/s390/fpu/libm-test-ulps: Update.
25924
25925 2012-05-03  Andreas Jaeger  <aj@suse.de>
25926
25927         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25928         does not get optimized out.
25929         (malloc_opt_barrier): New.
25930
25931 2012-05-03  Andreas Jaeger  <aj@suse.de>
25932             Roland McGrath  <roland@hack.frob.com>
25933
25934         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25935         intermediate file deletion.
25936         (generated): Add .symlist files.
25937
25938 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25939
25940         [BZ #13775]
25941         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25942         Redirect under this condition.
25943         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25944         [__USE_GNU] (__dprintf_chk): Not under this condition.
25945         [__USE_GNU] (__vdprintf_chk): Likewise.
25946         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25947         under this condition.
25948         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25949         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25950         [__USE_XOPEN2K8] (vdprintf): Likewise.
25951         [__USE_GNU] (__dprintf_chk): Not under this condition.
25952         [__USE_GNU] (__vdprintf_chk): Likewise.
25953         [__USE_GNU] (dprintf): Likewise.
25954         [__USE_GNU] (vdprintf): Likewise.
25955
25956 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25957
25958         * elf/Makefile (common-generated): Set this instead of generated for
25959         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25960         $(all-built-dso)-derived lists.
25961
25962 2012-05-03  Andreas Jaeger  <aj@suse.de>
25963
25964         * sysdeps/i386/fpu/libm-test-ulps: Update.
25965
25966         * FAQ: Removed.
25967         * FAQ.in: Likewise.
25968         * scripts/gen-FAQ.pl: Likewise.
25969         * manual/install.texi (Installation): Point to online location of
25970         FAQ.
25971         * Makefile (files-for-dist): Remove FAQ.
25972         (FAQ): Remove.
25973
25974 2012-05-02  Allan McRae  <allan@archlinux.org>
25975
25976         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25977         (LDFLAGS-reldepmod5.so): Likewise.
25978         (LDFLAGS-reldep6mod1.so): Likewise.
25979         (LDFLAGS-reldep6mod4.so): Likewise.
25980         (LDFLAGS-reldep8mod3.so): Likewise.
25981         (LDFLAGS-unload4mod1.so): Likewise.
25982         (LDFLAGS-unload4mod2.so): Likewise.
25983         (LDFLAGS-tst-initorder): Likewise.
25984         (LDFLAGS-tst-initordera2.so): Likewise.
25985         (LDFLAGS-tst-initordera3.so): Likewise.
25986         (LDFLAGS-tst-initordera4.so): Likewise.
25987         (LDFLAGS-tst-initorderb2.so): Likewise.
25988         (LDFLAGS-noload): Likewise.
25989         (LDFLAGS-next): Likewise.
25990         (LDFLAGS-order2mod1.so): Likewise.
25991         (LDFLAGS-order2mod2.so): Likewise.
25992         (LDFLAGS-tst-initorder2): Likewise.
25993         (LDFLAGS-tst-initorder2a.so): Likewise.
25994         (LDFLAGS-tst-initorder2b.so): Likewise.
25995         (LDFLAGS-tst-initorder2c.so): Likewise.
25996         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
25997
25998 2012-05-02  David S. Miller  <davem@davemloft.net>
25999
26000         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26001
26002 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
26003
26004         [BZ #14055]
26005         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
26006
26007 2012-05-02  Andreas Jaeger  <aj@suse.de>
26008
26009         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
26010         since we manipulate rounding mode.
26011         (CPPFLAGS-test-idouble.c): Likewise.
26012         (CPPFLAGS-test-ifloat.c): Likewise.
26013         (CFLAGS-test-ldouble.c): Likewise.
26014         (CFLAGS-test-double.c): Likewise.
26015         (CFLAGS-test-float.c): Likewise.
26016         (CFLAGS-test-misc.c): Likewise.
26017         (CFLAGS-test-test-fenv.c): Likewise.
26018
26019 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26020
26021         [BZ #2550]
26022         [BZ #2570]
26023         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
26024         comparisons to determine direction to adjust input.
26025
26026 2012-05-01  Roland McGrath  <roland@hack.frob.com>
26027
26028         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
26029         output to the target.
26030
26031         * scripts/localplt.awk: New file.
26032         * elf/Makefile ($(objpfx)check-localplt): Target removed.
26033         (check-localplt-CFLAGS): Variable removed.
26034         ($(all-built-dso:=.jmprel)): New static pattern rule.
26035         (generated): Add those targets.
26036         (localplt-built-dso): New variable.
26037         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
26038
26039         * elf/check-localplt.c: File removed.
26040
26041         * scripts/check-execstack.awk: New file.
26042         * elf/Makefile ($(objpfx)check-execstack): Target removed.
26043         (check-execstack-CFLAGS): Variable removed.
26044         ($(objpfx)check-execstack.h): Target removed.
26045         ($(objpfx)execstack-default): New target.
26046         (generated): Add that instead of check-execstack.h.
26047         ($(all-built-dso:=.phdr)): New static pattern rule.
26048         (generated): Add those targets.
26049         * elf/check-execstack.c: File removed.
26050
26051         * scripts/check-textrel.awk: New file.
26052         * elf/Makefile ($(objpfx)check-textrel): Target removed.
26053         (check-textrel-CFLAGS): Variable removed.
26054         (all-built-dso): Use := to define.o
26055         ($(all-built-dso:=.dyn)): New static pattern rule.
26056         (generated): Add those targets.
26057         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
26058         * config.make.in (READELF): New substituted variable.
26059         * elf/check-textrel.c: File removed.
26060
26061 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26062
26063         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
26064         allow.
26065         * conform/data/ctype.h-data [C99-based standards] (isblank):
26066         Expect function.
26067         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
26068         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
26069         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26070         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
26071         Specify type.  Require positive value.
26072         (EILSEQ): Likewise.
26073         (ERANGE): Likewise.
26074         [ISO || POSIX] (EILSEQ): Do not expect.
26075         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
26076         Specify type.  Require positive value.
26077         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
26078         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
26079         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
26080         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
26081         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
26082         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
26083         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
26084         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
26085         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
26086         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
26087         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
26088         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
26089         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
26090         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
26091         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
26092         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
26093         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
26094         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
26095         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
26096         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
26097         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
26098         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
26099         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
26100         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
26101         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
26102         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
26103         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
26104         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
26105         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
26106         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
26107         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
26108         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
26109         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
26110         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
26111         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
26112         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
26113         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
26114         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
26115         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
26116         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
26117         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
26118         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
26119         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
26120         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
26121         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
26122         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
26123         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
26124         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
26125         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
26126         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
26127         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
26128         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
26129         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
26130         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
26131         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
26132         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
26133         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
26134         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
26135         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
26136         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
26137         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
26138         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
26139         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
26140         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
26141         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
26142         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
26143         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
26144         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
26145         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
26146         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
26147         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
26148         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
26149         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
26150         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
26151         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
26152         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
26153         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
26154         Require >= 2.
26155         (FLT_ROUNDS): Expect as macro, not constant.
26156         (FLT_MANT_DIG): Use macro-int-constant.
26157         (DBL_MANT_DIG): Likewise.
26158         (LDBL_MANT_DIG): Likewise.
26159         (FLT_DIG): Likewise.
26160         (DBL_DIG): Likewise.
26161         (LDBL_DIG): Likewise.
26162         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
26163         (DBL_MIN_EXP): Likewise.
26164         (LDBL_MIN_EXP): Likewise.
26165         (FLT_MAX_EXP): Use macro-int-constant.
26166         (DBL_MAX_EXP): Likewise.
26167         (LDBL_MAX_EXP): Likewise.
26168         (FLT_MAX_10_EXP): Likewise.
26169         (DBL_MAX_10_EXP): Likewise.
26170         (LDBL_MAX_10_EXP): Likewise.
26171         (FLT_MAX): Use macro-constant.
26172         (DBL_MAX): Likewise.
26173         (LDBL_MAX): Likewise.
26174         (FLT_EPSILON): Use macro-constant.  Give upper bound.
26175         (DBL_EPSILON): Likewise.
26176         (LDBL_EPSILON): Likewise.
26177         (FLT_MIN): Likewise.
26178         (DBL_MIN): Likewise.
26179         (LDBL_MIN): Likewise.
26180         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
26181         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
26182         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
26183         [ISO11] (FLT_HAS_SUBNORM): Likewise.
26184         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
26185         [ISO11] (DBL_DECIMAL_DIG): Likewise.
26186         [ISO11] (FLT_DECIMAL_DIG): Likewise.
26187         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
26188         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
26189         [ISO11] (FLT_TRUE_MIN): Likewise.
26190         [ISO11] (LDBL_TRUE_MIN): Likewise.
26191         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26192         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
26193         (SCHAR_MIN): Use macro-int-constant.  Specify type.
26194         (SCHAR_MAX): Likewise.
26195         (UCHAR_MAX): Likewise.
26196         (CHAR_MIN): Likewise.
26197         (CHAR_MAX): Likewise.
26198         (MB_LEN_MAX): Use macro-int-constant.
26199         (SHRT_MIN): Use macro-int-constant.  Specify type.
26200         (SHRT_MAX): Likewise.
26201         (USHRT_MAX): Likewise.
26202         (INT_MAX): Likewise.
26203         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
26204         bound negative.
26205         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26206         bound with "U".
26207         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26208         bound with "L".
26209         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
26210         bound negative.  Suffix upper bound with "L".
26211         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26212         bound with "UL".
26213         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
26214         Specify type.
26215         [C99-based standards] (LLONG_MAX): Likewise.
26216         [C99-based standards] (ULLONG_MAX): Likewise.
26217         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
26218         == 0.
26219         [ISO11] (max_align_t): Require type.
26220         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26221
26222         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
26223         from $CFLAGS, without defining away __attribute__ calls.
26224         (checknamespace): Use $CFLAGS_namespace.
26225
26226         * conform/conformtest.pl (@keywords): Only include C99 keywords
26227         for standards based on C99 or C11.
26228
26229         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
26230         Disable tests.
26231         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
26232         UNIX98]: Likewise.
26233
26234         * conform/conformtest.pl: Handle "macro-int-constant" and test for
26235         usability of symbols in #if.
26236
26237         * conform/conformtest.pl: If macro or constant types start
26238         "promoted:", expect the symbol to be of the following type
26239         promoted by the integer promotions.
26240
26241         * conform/conformtest.pl: Parse all "constant" and "macro" lines
26242         in one place.  Also handle "macro-constant".
26243
26244         * conform/conformtest.pl: Only accept expected macro values with
26245         "==".  Parse all "macro" lines in one place.
26246         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
26247
26248         * conform/conformtest.pl: Handle braced types on "constant" lines
26249         instead of handling "typed-constant".
26250         * conform/data/signal.h-data: Use "constant" instead of
26251         "typed-constant".
26252
26253         * conform/conformtest.pl: Handle "optional-" at start of lines in
26254         one place rather than duplicating several cases.  Handle each
26255         format of "macro" line with initial "optional-".
26256
26257         * conform/conformtest.pl: Only accept expected constant or
26258         optional-constant values with "==".  Parse all "constant" lines in
26259         one place.  Parse all "optional-constant" lines in one place.
26260         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
26261         * conform/data/fmtmsg.h-data: Likewise.
26262         * conform/data/netinet/in.h-data: Likewise.
26263         * conform/data/tar.h-data: Likewise.
26264         * conform/data/limits.h-data: Use "==" form on "constant" and
26265         "optional-constant" lines.
26266
26267         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
26268         Use -std=c99 for XOPEN2K.
26269         (@knownproblems): Remove.
26270         (newtoken): Don't check %isknown.
26271
26272         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
26273         Do not expect macro.
26274         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
26275         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
26276         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
26277         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
26278         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
26279         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
26280         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
26281         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
26282         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
26283         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
26284         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
26285         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
26286         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
26287         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
26288         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
26289         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
26290         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
26291         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
26292         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
26293         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
26294         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
26295         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
26296         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
26297         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
26298         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
26299         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
26300         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
26301         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
26302         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
26303         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
26304         [XPG3] (acosh): Likewise.
26305         [XPG3] (asinh): Likewise.
26306         [XPG3] (atanh): Likewise.
26307         [XPG3] (cbrt): Likewise.
26308         [XPG3] (expm1): Likewise.
26309         [XPG3] (ilogb): Likewise.
26310         [XPG3] (log1p): Likewise.
26311         [XPG3] (logb): Likewise.
26312         [XPG3] (nextafter): Likewise.
26313         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
26314         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
26315         [XPG3] (remainder): Likewise.
26316         [XPG3] (rint): Likewise.
26317         [XPG3 || XPG4 || UNIX98] (round): Likewise.
26318         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
26319         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
26320         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
26321         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
26322         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
26323         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
26324         [UNIX98 || XOPEN2K] (scalb): Expect.
26325         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
26326         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
26327         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
26328         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
26329         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
26330         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
26331         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
26332         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
26333         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
26334         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
26335         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
26336         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
26337         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
26338         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
26339         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
26340         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
26341         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
26342         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
26343         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
26344         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
26345         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
26346         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
26347         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
26348         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
26349         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
26350         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
26351         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
26352         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
26353         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
26354         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
26355         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
26356         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
26357         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
26358         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
26359         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
26360         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
26361         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26362         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26363         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26364         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26365         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26366         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26367         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26368         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26369         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26370         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26371         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26372         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26373         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26374         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26375         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26376         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26377         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26378         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26379         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26380         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26381         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26382         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26383         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26384         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26385         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26386         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26387         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26388         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26389         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26390         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26391         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26392         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26393         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26394         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26395         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26396         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26397         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26398         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26399         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26400         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26401         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26402         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26403         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26404         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26405         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26406         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26407         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26408         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26409         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26410         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26411         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26412         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26413         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26414         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26415         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26416         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26417         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26418         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26419         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26420         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26421         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26422         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26423         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26424         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26425         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26426         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26427         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26428         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26429         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26430         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26431         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26432         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26433         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26434         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26435         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26436         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26437         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26438         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26439         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26440         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26441         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26442         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26443         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26444         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26445         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26446         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26447         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26448         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26449         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26450         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26451         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26452         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26453         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26454         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26455         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26456         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26457         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26458         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26459         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26460         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26461         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26462
26463         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26464         _XOPEN_SOURCE_EXTENDED for XPG4.
26465
26466         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26467
26468         * Makeconfig (localtime): Remove variable.
26469         (inst_localtime-file): Likewise.
26470
26471 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26472
26473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26474         Update.
26475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26476         Update.
26477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26478         Update.
26479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26480         Update.
26481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26482         Update.
26483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26484         Update.
26485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26486         Update.
26487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26488         Update.
26489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26490         Update.
26491
26492 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26493
26494         [BZ #2550]
26495         [BZ #2570]
26496         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26497         comparisons to determine direction to adjust input.
26498         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26499         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26500         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26501         Likewise.
26502         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26503         Likewise.
26504         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26505         Likewise.
26506         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26507         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26508         Likewise.
26509         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26510         Likewise.
26511         * math/libm-test.inc (nexttoward_test): Add more tests.
26512
26513 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26514
26515         [BZ #14040]
26516         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26517         in version GLIBC_2.1, not GLIBC_2.0.
26518         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26519         Likewise.
26520
26521 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26522
26523         [BZ #13942]
26524         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26525         (1 - x) * (1 + x).
26526         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26527         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26528         * math/libm-test.inc (acos_test): Add more tests.
26529         (asin_test): Likewise.
26530         * sysdeps/i386/fpu/libm-test-ulps: Update.
26531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26532
26533         [BZ #14034]
26534         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26535         of square root.
26536         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26537         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26538         * math/libm-test.inc (acos_test_tonearest): New function.
26539         (acos_test_towardzero): Likewise.
26540         (acos_test_downward): Likewise.
26541         (acos_test_upward): Likewise.
26542         (asin_test_tonearest): Likewise.
26543         (asin_test_towardzero): Likewise.
26544         (asin_test_downward): Likewise.
26545         (asin_test_upward): Likewise.
26546         (main): Call the new functions.
26547         * sysdeps/i386/fpu/libm-test-ulps: Update.
26548         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26549
26550         [BZ #13884]
26551         [BZ #13924]
26552         * math/e_exp10.c: Include <float.h>.
26553         (__ieee754_exp10): Handle underflow here rather than multiplying
26554         large negative argument by M_LN10.
26555         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26556         of __ieee754_expf.
26557         * math/e_exp10l.c: Include <float.h>.
26558         (__ieee754_exp10l): Handle underflow here rather than multiplying
26559         large negative argument by M_LN10l.
26560         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26561         spurious overflow exception on underflow.
26562
26563 2012-04-29  Marek Polacek  <polacek@redhat.com>
26564
26565         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26566         (__fortify_function): New macro.
26567         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26568         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26569         __extern_always_inline.
26570         * libio/bits/stdio2.h: Likewise.
26571         * libio/bits/stdio.h: Likewise.
26572         * string/string.h: Likewise.
26573         * string/bits/string3.h: Likewise.
26574         * include/stdio.h: Likewise.
26575         * stdlib/bits/stdlib.h: Likewise.
26576         * stdlib/stdlib.h: Likewise.
26577         * rt/bits/mqueue2.h: Likewise.
26578         * rt/mqueue.h: Likewise.
26579         * posix/bits/unistd.h: Likewise.
26580         * posix/unistd.h: Likewise.
26581         * io/bits/poll2.h: Likewise.
26582         * io/bits/fcntl2.h: Likewise.
26583         * io/fcntl.h: Likewise.
26584         * io/sys/poll.h: Likewise.
26585         * misc/bits/syslog.h: Likewise.
26586         * misc/bits/syslog-ldbl.h: Likewise.
26587         * misc/sys/syslog.h: Likewise.
26588         * socket/bits/socket2.h: Likewise.
26589         * socket/sys/socket.h: Likewise.
26590         * debug/tst-chk1.c: Likewise.
26591         * wcsmbs/bits/wchar2.h: Likewise.
26592         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26593         * wcsmbs/wchar.h: Likewise.
26594
26595 2012-04-29  Andreas Jaeger  <aj@suse.de>
26596
26597         * Makerules (tests): Remove enable-check-abi protection.
26598         (check-abi-warn): Remove.
26599         (check-abi-%): Remove check-abi-warn usage.
26600
26601         * configure.in: Remove check-abi configure option.
26602         * configure: Regenerated.
26603         * config.make.in (enable-check-abi): Remove.
26604
26605 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26606
26607         [BZ #14033]
26608         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26609         double functions to double *_finite functions.
26610
26611         [BZ #13941]
26612         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26613         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26614         LDBL_MIN_EXP.
26615         * stdio-common/Makefile (tests): Add tst-sprintf3.
26616         * stdio-common/tst-sprintf3.c: New file.
26617
26618         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26619         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26620
26621 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26622
26623         * conform/conformtest.pl: Remove duplicate typed-constant
26624         handling.
26625
26626 2012-04-28  David S. Miller  <davem@davemloft.net>
26627
26628         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26629         (check-abi-%): Remove AWK script prerequisite and explicit
26630         abilist directory.
26631         (check-abi): Rewrite to just diff the symlist with the abilist.
26632         (config-tls, config-abi-config): Delete, no longer used.
26633         (update-abi-%): Remove AWK script and explicit abilist directory.
26634         (update-abi): Rewrite to simply compare and conditionally copy the
26635         symlist and the sysdep abilist file.  Remove update-abi-config
26636         checks.
26637         * abilist/ld.abilist: Remove.
26638         * abilist/libBrokenLocale.abilist: Remove.
26639         * abilist/libanl.abilist: Remove.
26640         * abilist/libcrypt.abilist: Remove.
26641         * abilist/libdl.abilist: Remove.
26642         * abilist/librt.abilist: Remove.
26643         * abilist/libthread_db.abilist: Remove.
26644         * abilist/libutil.abilist: Remove.
26645         * scripts/extract-abilist.awk: Remove.
26646         * scripts/merge-abilist.awk: Remove.
26647         * sysdeps/generic/libcidn.abilist: New file.
26648         * sysdeps/generic/libnss_compat.abilist: New file.
26649         * sysdeps/generic/libnss_db.abilist: New file.
26650         * sysdeps/generic/libnss_dns.abilist: New file.
26651         * sysdeps/generic/libnss_files.abilist: New file.
26652         * sysdeps/generic/libnss_hesiod.abilist: New file.
26653         * sysdeps/generic/libnss_nis.abilist: New file.
26654         * sysdeps/generic/libnss_nisplus.abilist: New file.
26655         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26656         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26657         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26658         file.
26659         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26660         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26661         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26662         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26663         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26664         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26665         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26666         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26667         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26668         file.
26669         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26670         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26671         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26672         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26673         file.
26674         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26675         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26676         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26677         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26678         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26679         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26680         file.
26681         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26682         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26683         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26684         file.
26685         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26686         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26687         New file.
26688         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26689         New file.
26690         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26691         New file.
26692         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26693         New file.
26694         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26695         New file.
26696         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26697         New file.
26698         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26699         New file.
26700         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26701         New file.
26702         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26703         New file.
26704         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26705         New file.
26706         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26707         New file.
26708         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26709         New file.
26710         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26711         New file.
26712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26713         file.
26714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26715         New file.
26716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26717         New file.
26718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26719         file.
26720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26721         New file.
26722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26723         New file.
26724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26725         file.
26726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26727         New file.
26728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26729         New file.
26730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26731         New file.
26732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26733         New file.
26734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26735         New file.
26736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26737         New file.
26738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26740         file.
26741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26742         New file.
26743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26744         file.
26745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26746         file.
26747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26748         file.
26749         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26750         file.
26751         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26752         file.
26753         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26754         New file.
26755         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26756         file.
26757         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26758         file.
26759         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26760         New file.
26761         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26762         file.
26763         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26765         file.
26766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26767         New file.
26768         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26769         file.
26770         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26771         file.
26772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26773         file.
26774         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26775         file.
26776         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26777         file.
26778         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26779         New file.
26780         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26781         file.
26782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26783         file.
26784         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26785         New file.
26786         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26787         file.
26788         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26789         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26790         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26791         file.
26792         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26793         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26794         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26795         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26796         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26797         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26798         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26799         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26800         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26801         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26802         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26803         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26804         file.
26805         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26806         New file.
26807         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26808         file.
26809         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26810         file.
26811         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26812         file.
26813         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26814         file.
26815         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26816         file.
26817         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26818         New file.
26819         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26820         New file.
26821         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26822         file.
26823         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26824         New file.
26825         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26826         file.
26827         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26829         file.
26830         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26831         New file.
26832         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26833         file.
26834         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26835         file.
26836         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26837         file.
26838         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26839         file.
26840         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26841         file.
26842         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26843         New file.
26844         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26845         New file.
26846         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26847         file.
26848         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26849         New file.
26850         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26851         file.
26852
26853 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26854
26855         * conform/conformtest.pl: Fix typo in handling typed-constant from
26856         allow-header.
26857
26858 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26859
26860         * README: Cut down references to pre-2.6 Linux kernels and
26861         Linuxthreads.  Update lists of configurations in libc and ports
26862         and sort alphabetically.  Say "or newer" with Linux kernel version
26863         requirements.
26864
26865         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26866
26867 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26868
26869         [BZ #887]
26870         * math/libm-test.inc (logb_test_downward): New test to expose
26871         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26872         rounding mode.
26873
26874 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26875
26876         [BZ #14027]
26877         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26878         to be done.
26879         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26880         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26881
26882 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26883
26884         * sysdeps/unix/i386/brk.S: Remove file.
26885         * sysdeps/unix/i386/dl-brk.S: Likewise.
26886         * sysdeps/unix/i386/pipe.S: Likewise.
26887         * sysdeps/unix/i386/sigreturn.S: Likewise.
26888         * sysdeps/unix/i386/syscall.S: Likewise.
26889         * sysdeps/unix/i386/vfork.S: Likewise.
26890         * sysdeps/unix/i386/wait.S: Likewise.
26891
26892         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26893         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26894
26895         * configure.in (arm*-none*): Do not allow without
26896         --enable-hacker-mode.
26897         (netbsd*): Remove case setting base_os.
26898         (386bsd*): Likewise.
26899         (freebsd*): Likewise.
26900         (bsdi*): Likewise.
26901         (osf*): Likewise.
26902         (sunos*): Likewise.
26903         (ultrix*): Likewise.
26904         (newsos*): Likewise.
26905         (dynix*): Likewise.
26906         (*bsd*): Likewise.
26907         (sysv*): Likewise.
26908         (isc*): Likewise.
26909         (esix*): Likewise.
26910         (sco*): Likewise.
26911         (minix*): Likewise.
26912         (irix4*): Likewise.
26913         (irix6*): Likewise.
26914         (solaris[2-9]*): Likewise.
26915         (none): Likewise.
26916         * configure: Regenerated.
26917
26918 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26919
26920         [BZ #11521]
26921         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26922         overflow or cancellation in calculating denominator.
26923         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26924         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26925         down expression to avoid unexpected rounding in newer GCCs.
26926         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26927
26928 2012-04-26  David S. Miller  <davem@davemloft.net>
26929
26930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26931         long-double compat symbols.
26932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26939         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26942         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26944         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26945
26946 2012-04-25  David S. Miller  <davem@davemloft.net>
26947
26948         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26949         HWCAP_* values only after the memory barriers have been defined.
26950         (atomic_full_barrier): Define.
26951         (atomic_read_barrier): Define.
26952         (atomic_write_barrier): Define.
26953
26954 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26955
26956         * shlib-versions: Add libgcc_s version information.
26957         * sysdeps/generic/libgcc_s.h: Remove.
26958         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26959         libgcc_s.h.
26960         * sysdeps/gnu/unwind-resume.c: Likewise.
26961         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26962
26963 2012-04-25  David S. Miller  <davem@davemloft.net>
26964
26965         * sysdeps/unix/sparc/brk.S: Delete.
26966         * sysdeps/unix/sparc/dl-brk.S: Delete.
26967         * sysdeps/unix/sparc/pipe.S: Delete.
26968         * sysdeps/unix/sparc/sysdep.S: Delete.
26969         * sysdeps/unix/sparc/sysdep.h: Delete.
26970         * sysdeps/unix/sparc/vfork.S: Delete.
26971         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26972         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26973         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26974         ret_ERRVAL, r0, r1, MOVE): Define.
26975         (JUMPTARGET): Remove.
26976         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26977         sysdeps/unix/sparc/sysdep.h
26978         (ENTRY, END): Remove.
26979         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26980
26981 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26982
26983         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26984         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26985         -DIS_IN_build.
26986
26987         * timezone/README: Update upstream location and email address for
26988         tzcode and tzdata.
26989         * timezone/zdump.c: Update from tzcode 2012b.
26990         * timezone/zic.c: Likewise.
26991
26992         * configure.in (libc_cv_as_needed): Remove test.
26993         * configure: Regenerated.
26994         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
26995         conditional definition.
26996         [$(have-as-needed) != yes] (no-as-needed): Likewise.
26997         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
26998         * config.make.in (have-as-needed): Remove variable.
26999
27000 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27001             Paul Pluzhnikov  <ppluzhnikov@google.com>
27002
27003         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
27004         strings correctly.
27005
27006 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
27007
27008         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
27009         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
27010         * sysdeps/sh/strlen.S: Likewise.
27011
27012 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
27013
27014         * sysdeps/unix/fork.S: Remove file.
27015         * sysdeps/unix/i386/fork.S: Likewise.
27016         * sysdeps/unix/sparc/fork.S: Likewise.
27017
27018         * sysdeps/unix/system.c: Remove file.
27019         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
27020
27021         * sysdeps/unix/getegid.S: Remove file.
27022         * sysdeps/unix/geteuid.S: Likewise.
27023
27024 2012-04-24  Roland McGrath  <roland@hack.frob.com>
27025
27026         * scripts/check-localplt.awk: New file.
27027         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
27028         of diff.
27029         * scripts/data/localplt-generic.data: Add a comment.
27030
27031         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
27032         NODE when __dir_mkfile failed.
27033         * sysdeps/mach/hurd/symlinkat.c: Likewise.
27034         Reported by Ludovic Courtès <ludo@gnu.org>.
27035
27036 2012-04-24  Andreas Jaeger  <aj@suse.de>
27037
27038         * Makerules (common-clean): Also remove gen-as-const-headers
27039         files.
27040
27041 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
27042
27043         * Makerules (native-compile): Do not change working directory for
27044         build.  Use $(OUTPUT_OPTION) in command.
27045         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
27046
27047 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27048
27049         [BZ #13886]
27050         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
27051         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
27052         * math/libm-test.inc (floor_test): Add more tests.
27053         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
27054
27055 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
27056
27057         * sysdeps/unix/getdents.c: Remove file.
27058         * sysdeps/unix/sysv/getdents.c: Likewise.
27059         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
27060
27061         * sysdeps/unix/syscalls.list (madvise): Add syscall from
27062         sysdeps/unix/mman/syscalls.list.
27063         (mmap): Likewise.
27064         (mprotect): Likewise.
27065         (msync): Likewise.
27066         (munmap): Likewise.
27067         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
27068         * sysdeps/unix/mman/syscalls.list: Remove.
27069         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
27070
27071         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
27072         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
27073         * configure: Regenerated.
27074         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
27075         $(libgcc_s_suffix).
27076         * config.make.in (libgcc_s_suffix): Remove variable.
27077
27078 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
27079
27080         * sysdeps/unix/sysv/gethostname.c: Move to ...
27081         * sysdeps/posix/gethostname.c: ... here.
27082
27083         * sysdeps/unix/execve.S: Remove file.
27084
27085         * sysdeps/unix/_exit.S: Remove file.
27086
27087 2012-04-23  Andreas Jaeger  <aj@suse.de>
27088
27089         [BZ #13739]
27090         * manual/Makefile: Remove make dist support, there's no
27091         need for a stand-alone documentation tar ball.
27092         (TEXI2DVI): Define always, it's not in Makeconfig.
27093         (dist): Removed.
27094         (tar-it): Removed.
27095         (edition): Removed.
27096         (glibc-doc-$(edition).tar): Removed
27097         (%.Z): Removed.
27098         (%.gz): Removed.
27099         (%.uu): Removed.
27100         (ETAGS): Remove, it's in Makeconfig.
27101         (move-if-change): Remove, it's in Makeconfig.
27102
27103 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
27104
27105         [BZ #13970]
27106         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
27107         (strtod, strtof, strtold, strtol, strtoul, strtoq)
27108         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
27109         (strtod_l, strtof_l, strtold_l): Remove __wur.
27110         It is not necessarily an error to ignore strtol's return value.
27111         One can reliably look at the stored endptr to decide whether
27112         the number had valid syntax.
27113
27114 2012-04-21  Andreas Jaeger  <aj@suse.de>
27115
27116         [BZ #13739]
27117         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
27118
27119 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
27120
27121         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
27122         * sysdeps/unix/sysv/Versions: Remove file.
27123
27124 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
27125
27126         [BZ #13927]
27127         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27128
27129 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
27130
27131         [BZ #7064]
27132         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
27133         version from __vm86.
27134
27135 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
27136
27137         * sysdeps/unix/common/lxstat.c: Remove file.
27138         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
27139
27140         * sysdeps/unix/sysv/Makefile: Remove file.
27141
27142         * sysdeps/unix/sysv/direct.h: Remove file.
27143
27144         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
27145         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
27146         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
27147         * sysdeps/unix/sysv/bits/signum.h: Likewise.
27148         * sysdeps/unix/sysv/bits/stat.h: Likewise.
27149         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
27150         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
27151
27152         * sysdeps/unix/sysv/setrlimit.c: Remove file.
27153
27154         * sysdeps/unix/xmknod.c: Remove file.
27155         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
27156
27157         * sysdeps/unix/sysv/settimeofday.c: Remove file.
27158
27159         * sysdeps/unix/sysv/i386/time.S: Remove file.
27160
27161         * sysdeps/unix/fxstat.c: Remove file.
27162         * sysdeps/unix/xstat.c: Likewise.
27163         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
27164
27165         * sysdeps/unix/sysv/sigaction.c: Remove file.
27166
27167         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
27168         (sysdep_headers): Remove variable.
27169         [termio.h not in sysdep_headers] (generated): Likewise.
27170         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
27171         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
27172         * sysdeps/unix/sysv/tcdrain.c: Likewise.
27173         * sysdeps/unix/sysv/tcflow.c: Likewise.
27174         * sysdeps/unix/sysv/tcflush.c: Likewise.
27175         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
27176         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
27177         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
27178         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
27179         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
27180
27181         * sysdeps/unix/siglist.c: Remove file.
27182
27183         * sysdeps/unix/getppid.S: Remove file.
27184
27185         * sysdeps/unix/mkdir.c: Remove file.
27186         * sysdeps/unix/rmdir.c: Likewise.
27187
27188 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
27189
27190         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
27191         ERR_MAX value.
27192         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
27193         errlist-compat value.
27194
27195 2012-04-18  David S. Miller  <davem@davemloft.net>
27196
27197         * sysdeps/generic/memcopy.h (reg_char): Delete.
27198         * debug/strcat_chk.c: Use char, not reg_char.
27199         * debug/strcpy_chk.c: Likewise.
27200         * debug/strncat_chk.c: Likewise.
27201         * debug/strncpy_chk.c: Likewise.
27202         * string/memchr.c: Likewise.
27203         * string/memrchr.c: Likewise.
27204         * string/rawmemchr.c: Likewise.
27205         * string/strcat.c: Likewise.
27206         * string/strchr.c: Likewise.
27207         * string/strchrnul.c: Likewise.
27208         * string/strcmp.c: Likewise.
27209         * string/strcpy.c: Likewise.
27210         * string/strncat.c: Likewise.
27211         * string/strncmp.c: Likewise.
27212         * string/strncpy.c: Likewise.
27213
27214 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27215
27216         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
27217         __builtin_memcopy is called when src and dest ranges are known to not
27218         overlap.
27219
27220 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27221
27222         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
27223         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
27224         fwd_align_merge macro call.
27225         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
27226         bwd_align_merge macro call.
27227         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27228
27229 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27230
27231         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
27232         bwd_align_merge macros.
27233         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
27234         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
27235         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27236
27237 2012-04-18  David S. Miller  <davem@davemloft.net>
27238
27239         * sysdeps/sparc/sparc64/memcopy.h: Delete.
27240
27241 2012-04-18  Andreas Jaeger  <aj@suse.de>
27242
27243         [BZ# 6794]
27244         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
27245         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
27246         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27247
27248         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
27249         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
27250         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27251
27252         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
27253         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
27254         Adjust for changed ldbl-128 files.
27255
27256         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
27257         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
27258         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27259
27260 2012-04-17  David S. Miller  <davem@davemloft.net>
27261
27262         * sysdeps/sparc/sparc32/memcopy.h: Delete.
27263
27264 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
27265
27266         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
27267         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
27268         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
27269         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
27270         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
27271         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
27272
27273 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27274
27275         [BZ #6794]
27276         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
27277         * math/libm-test.inc: Add ilogb errno and exception tests.
27278         * math/w_ilogb.c: New file: ilogb wrapper.
27279         * math/w_ilogbf.c: New file: ilogbf wrapper.
27280         * math/w_ilogbl.c: New file: ilogbl wrapper.
27281         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
27282         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
27283         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
27284         exception being thrown with 0.0 as argument.
27285         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
27286         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
27287         exception being thrown with 0.0 as argument.
27288         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
27289         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27290         exception being thrown with 0.0 as argument.
27291         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
27292         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27293         exception being thrown with 0.0 as argument.
27294         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
27295         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
27296         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
27297         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
27298         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
27299         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
27300         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
27301         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
27302         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
27303
27304 2012-04-17  Petr Baudis  <pasky@ucw.cz>
27305
27306         * include/sys/uio.h: Change __vector to __iovec to avoid clash
27307         with altivec.
27308
27309 2012-04-16  Marek Polacek  <polacek@redhat.com>
27310
27311         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
27312
27313 2012-04-16  Marek Polacek  <polacek@redhat.com>
27314
27315         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
27316         operands of fdivp instruction.
27317
27318 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27319
27320         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
27321         * elf/tst-auditmod3b.c: Likewise.
27322         * elf/tst-auditmod4b.c: Likewise.
27323         * elf/tst-auditmod5b.c: Likewise.
27324         * elf/tst-auditmod6b.c: Likewise.
27325         * elf/tst-auditmod6c.c: Likewise.
27326         * elf/tst-auditmod7b.c: Likewise.
27327         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
27328         * sysdeps/x86_64/preconfigure.in: Likewise.
27329         * sysdeps/x86_64/preconfigure: Regenerated.
27330
27331 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27332
27333         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
27334         __ILP32__.
27335
27336 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
27337
27338         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27339         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
27340
27341 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
27342
27343         [BZ #13973]
27344         * locale/iso-639.def: Fix gl language name. Spotted by
27345         Yaron Shahrabani.
27346
27347 2012-04-12  Roland McGrath  <roland@hack.frob.com>
27348
27349         [BZ #2074]
27350         * libio/libio.h (__io_write_fn): Update comment.
27351
27352 2012-04-12  Petr Baudis  <pasky@ucw.cz>
27353
27354         [BZ #2074]
27355         * stdio.texi (Hook Functions): The user provided writer function
27356         is not allowed to return -1.
27357
27358 2012-04-11  David S. Miller  <davem@davemloft.net>
27359
27360         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27361
27362 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27363
27364         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27365         Add a leading slash to rtkaio.
27366
27367 2012-04-11  Jim Meyering  <meyering@redhat.com>
27368
27369         [BZ #11959]
27370         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27371         It is not necessarily an error to ignore fwrite's return
27372         value.  One can reliably use ferror to test for errors after
27373         the fact.
27374
27375 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27376
27377         * bits/types.h (__snseconds_t): New type.
27378         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27379
27380         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27381         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27382         (__SNSECONDS_T_TYPE): Likewise.
27383         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27384         (__SNSECONDS_T_TYPE): Likewise.
27385         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27386         (__SNSECONDS_T_TYPE): Likewise.
27387
27388 2012-04-10  Andreas Jaeger  <aj@suse.de>
27389
27390         [BZ #2636]
27391         * manual/time.texi (Processor Time): Return type of times is
27392         elapsed real time since an arbitrary point in the past.
27393         (CPU Time): Move CLK_TCK from here...
27394         (Processor Time): ...to here.  Correct description.
27395         * manual/conf.texi (Constants for Sysconf): Correct description of
27396         _SC_CLK_TCK.
27397
27398 2012-04-10  David S. Miller  <davem@davemloft.net>
27399
27400         [BZ #13967]
27401         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27402         where the is a gap between DT_REL(A) and DT_JMPREL.
27403
27404 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27405
27406         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27407         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27408         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27409
27410 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27411
27412         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27413         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27414         (dl_main): Handle --inhibit-cache.
27415         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27416         _dl_inhibit_cache.
27417         * elf/dl-load.c (_dl_map_object): Use it.
27418         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27419
27420 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27421
27422         [BZ #13872]
27423         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27424         (__ieee754_powl): Saturate large exponents rather than testing for
27425         overflow of y*log2(x).
27426         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27427         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27428         exceptions.
27429
27430         [BZ #11521]
27431         * math/s_ctan.c: Include <float.h>.
27432         (__ctan): Avoid internal overflow or cancellation in calculating
27433         denominator.
27434         * math/s_ctanf.c: Likewise.
27435         * math/s_ctanl.c: Likewise.
27436         * math/s_ctanh.c: Likewise.
27437         * math/s_ctanhf.c: Likewise.
27438         * math/s_ctanhl.c: Likewise.
27439         * math/libm-test.inc (ctan_test): Add more tests.
27440         (ctanh_test): Likewise.
27441         * sysdeps/i386/fpu/libm-test-ulps: Update.
27442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27443
27444 2012-04-09  Andreas Jaeger  <aj@suse.de>
27445
27446         [BZ #6894]
27447         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27448         is an optional BSD extension.
27449
27450         [BZ #10254]
27451         * manual/stdio.texi (Opening Streams): Document additional fopen
27452         parameters.
27453
27454 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27455
27456         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27457         %eax without telling the compiler.
27458
27459 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27460
27461         [BZ # 13963]
27462         * manual/install.texi: Use sourceware.org.
27463
27464 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27465
27466         [BZ #13873]
27467         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27468         (__ieee754_pow): Generate overflow and underflow using huge*huge
27469         and tiny*tiny rather than just returning constant infinity or zero
27470         for large exponents.
27471         * math/libm-test.inc (pow_test): Require overflow exceptions for
27472         applicable cases of large exponents.
27473
27474         [BZ #706]
27475         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27476         (__ieee754_pow): Use iterative multiplication algorithm only for
27477         integer exponents with absolute value below 1024.  Check for odd
27478         integer exponents when using algorithm for real exponents.
27479         * math/libm-test.inc (pow_test): Add more tests.
27480         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27481
27482 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27483
27484         [BZ #13705]
27485         * math/libm-test.inc (exp_test): Do not allow overflow exception
27486         on underflow test.
27487
27488 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27489
27490         [BZ #13705]
27491         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27492         instead of __kernel_standard_f.
27493
27494 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27495
27496         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27497         * sysdeps/x86_64/memset_chk.S: Likewise.
27498
27499 2012-04-08  Andreas Jaeger  <aj@suse.de>
27500
27501         [BZ #10153]
27502         * manual/startup.texi (Environment Access): Describe return value
27503         for putenv and setenv.
27504
27505         [BZ #6895]
27506         * manual/filesys.texi (Directory Entries): Add description for
27507         DT_LNK.
27508
27509         [BZ #6890]
27510         * manual/filesys.texi (Directory Entries): Clarify that it's file
27511         system not operating system in the description of DT_UNKNOWN.
27512
27513         [BZ #6578]
27514         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27515
27516 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27517
27518         [BZ #6649]
27519         * manual/llio.texi (Opening and Closing Files): Add cross
27520         reference to explain mode argument.
27521
27522 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27523
27524         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27525         * sysdeps/x86_64/memset_chk.S: Likewise.
27526
27527 2012-04-07  David S. Miller  <davem@davemloft.net>
27528
27529         * elf/elf.h (R_SPARC_WDISP10): Define.
27530         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27531         R_SPARC_SIZE32.
27532         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27533         R_SPARC_SIZE64 and R_SPARC_H34.
27534
27535 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27536
27537         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27538         conditions and remove no longer applicable assertion.
27539
27540 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27541
27542         * bits/byteswap.h: Include <features.h>.
27543         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27544         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27545
27546 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27547
27548         * bits/byteswap.h (__bswap_16): Removed.
27549         Include <bits/byteswap-16.h> to get __bswap_16.
27550         * sysdeps/i386/bits/byteswap.h: Likewise.
27551         * sysdeps/s390/bits/byteswap.h: Likewise.
27552         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27553         * bits/byteswap-16.h: New file.
27554         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27555         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27556         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27557         * string/Makefile (headers): Add bits/byteswap-16.h.
27558
27559 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27560
27561         [BZ #13895]
27562         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27563         extra indirection.
27564         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27565         * nss/tst-nss-static.c: New.
27566
27567 2012-04-06  Robert Millan  <rmh@gnu.org>
27568
27569         [BZ #6486]
27570         * manual/llio.texi (File Position Primitive): lseek
27571         refers to WHENCE when it really means OFFSET.
27572
27573 2012-04-06  Andreas Jaeger  <aj@suse.de>
27574
27575         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27576         strncmp declarations.
27577
27578         * abilist/libc.abilist: Add __poll and __ppoll.
27579
27580 2012-04-05  David S. Miller  <davem@davemloft.net>
27581
27582         * scripts/check-local-headers.sh: Accept a host triplet in the
27583         path matched by the exclude regexp.
27584
27585         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27586         definition.
27587         * sysdeps/powerpc/powerpc32/dl-machine.h
27588         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27589         * sysdeps/s390/s390-32/dl-machine.h
27590         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27591         * sysdeps/sparc/sparc32/dl-machine.h
27592         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27593         * sysdeps/sparc/sparc64/dl-machine.h
27594         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27595
27596         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27597         lazy binding.
27598         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27599         undefined symbol errors.
27600
27601         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27602         DT_NEEDED entries.
27603
27604 2012-04-05  Michael Matz  <matz@suse.de>
27605
27606         [BZ #13592]
27607         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27608
27609 2012-04-05  Andreas Jaeger  <aj@suse.de>
27610
27611         [BZ #13908]
27612         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27613         comment.
27614
27615 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27616
27617         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27618         which ROUND is no valid rounding mode.
27619
27620 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27621
27622         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27623         read again.
27624         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27625
27626 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27627
27628         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27629         an exception using FPU order intentionally.
27630
27631 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27632
27633         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27634         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27635         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27636         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27637
27638 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27639
27640         [BZ #12340]
27641         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27642         EINVAL when BUFLEN is too smal.
27643
27644 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27645
27646         [BZ #13553]
27647         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27648         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27649
27650 2012-04-03  Andreas Jaeger  <aj@suse.de>
27651
27652         [BZ #13938]
27653         * manual/setjmp.texi (System V contexts): Fix sentence.
27654
27655         [BZ #13926]
27656         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27657         New macro for this case.
27658         [!__GNUC__] (__bswap_64): New inline function for this case.
27659         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27660         * bits/byteswap.h: Likewise.
27661         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27662         ull, guard with __GLIBC_HAVE_LONG_LONG.
27663
27664         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27665         __GLIBC_HAVE_LONG_LONG.
27666
27667         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27668         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27669
27670 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27671
27672         [BZ #13691]
27673         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27674         inptr and inend, rather than using last_ch.
27675
27676 2012-04-02  David S. Miller  <davem@davemloft.net>
27677
27678         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27679         * stdio-common/printf-parse.h (read_int): Change return type to
27680         'int', return -1 on INT_MAX overflow.
27681         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27682         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27683         overflows INT_MAX.  Check for overflow of in-format-string precision
27684         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27685         SIZE_MAX not INT_MAX for integer overflow test.
27686         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27687         skip the construct in the format string but do not record anything.
27688         * stdio-common/bug22.c: Adjust to test both width/prevision
27689         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27690         explicitly for proper errno values.
27691
27692 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27693
27694         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27695         CHAR_MAX.
27696         * string/test-strcmp.c [! WIDE]: Likewise.
27697         * time/tst-mktime2.c: Likewise for INT_MAX.
27698         * string/test-string.h: #include <sys/param.h> for MIN.
27699
27700         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27701         * sysdeps/i386/init-first.c (init): Likewise.
27702         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27703         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27704         * sysdeps/sh/init-first.c (init): Likewise.
27705
27706 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27707
27708         * po/ru.po: Update from translation team.
27709         * po/vi.po: Likewise.
27710
27711 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27712
27713         * resolv/nss_dns/dns-host.c: Merge copyright years.
27714
27715 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27716
27717         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27718         Optimize memcpy with prefetch if
27719         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27720         src, dst pointers have unequal 16 byte alignments.
27721
27722 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27723
27724         [BZ #13928]
27725         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27726         from a CNAME entry and return the minimum ttl for the query.
27727         (gaih_getanswer_slice): Likewise.
27728
27729 2012-03-30  Jeff Law  <law@redhat.com>
27730
27731         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27732         due to long keys.
27733         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27734         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27735
27736         * resolv/nss_dns/dns-host.c: Update copyright year.
27737
27738 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27739
27740         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27741         requests to save a system call.  Fix check that all bytes are sent.
27742
27743         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27744         comments for sendmmsg.
27745
27746 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27747
27748         [BZ #13691]
27749         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27750         with only 1 character between 0x0041 and 0x01b0.
27751         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27752         * wcsmbs/tst-mbsnrtowcs.c: New file.
27753
27754 2012-03-29  David S. Miller  <davem@davemloft.net>
27755
27756         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27757         small copies by hand.
27758
27759 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27760
27761         [BZ #13761]
27762         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27763         _nss_compat_initgroups_dyn): Fall back to malloc/free
27764         for large group memberships.
27765
27766 2012-03-28  David S. Miller  <davem@davemloft.net>
27767
27768         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27769         that branches into memcpy.
27770         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27771         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27772         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27773         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27774         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27775         bits.
27776         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27777         implementation too.
27778         * sysdeps/sparc/mempcpy.S: New file.
27779
27780         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27781         the IFUNC routine in the libc case.
27782         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27783
27784         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27785         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27786         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27787         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27788         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27789         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27790         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27791         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27792
27793         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27794         loop to 256 bytes instead of 64 bytes and fix test signedness.
27795
27796         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27797         * sysdeps/sparc/sparc32/Makefile: rather than here...
27798         * sysdeps/sparc/sparc64/Makefile: and here.
27799
27800 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27801
27802         * malloc/mallocbug.c: Avoid warnings about unused variables.
27803
27804 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27805
27806         [BZ #13760]
27807         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27808         in the right place. Discard and retry query if response is
27809         larger than input buffer size.
27810
27811 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27812
27813         [BZ #369]
27814         [BZ #2678]
27815         [BZ #3866]
27816         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27817         x for large integer exponent.
27818         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27819         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27820         sign of result as needed afterwards.
27821         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27822         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27823         result for underflowing pow the same as for overflow.
27824         (__kernel_standard_l): Handle powl overflow and underflow here
27825         rather than calling __kernel_standard.
27826         * math/libm-test.inc (pow_test): Add more tests.
27827
27828         [BZ #3868]
27829         [BZ #13879]
27830         [BZ #13910]
27831         [BZ #13911]
27832         [BZ #13912]
27833         [BZ #13913]
27834         [BZ #13915]
27835         [BZ #13916]
27836         [BZ #13917]
27837         [BZ #13918]
27838         [BZ #13919]
27839         [BZ #13920]
27840         [BZ #13921]
27841         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27842         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27843         (__kernel_standard_l): New function.
27844         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27845         __kernel_standard.
27846         * math/w_acosl.c (__acosl): Likewise.
27847         * math/w_asinl.c (__asinl): Likewise.
27848         * math/w_atan2l.c (__atan2l): Likewise.
27849         * math/w_atanhl.c (__atanhl): Likewise.
27850         * math/w_coshl.c (__coshl): Likewise.
27851         * math/w_exp10l.c (__exp10l): Likewise.
27852         * math/w_exp2l.c (__exp2l): Likewise.
27853         * math/w_fmodl.c (__fmodl): Likewise.
27854         * math/w_hypotl.c (__hypotl): Likewise.
27855         * math/w_j0l.c (__j0l, __y0l): Likewise.
27856         * math/w_j1l.c (__j1l, __y1l): Likewise.
27857         * math/w_jnl.c (__jnl, __ynl): Likewise.
27858         * math/w_lgammal.c (__lgammal): Likewise.
27859         * math/w_log10l.c (__log10l): Likewise.
27860         * math/w_log2l.c (__log2l): Likewise.
27861         * math/w_logl.c (__logl): Likewise.
27862         * math/w_powl.c (__powl): Likewise.
27863         * math/w_remainderl.c (__remainderl): Likewise.
27864         * math/w_scalbl.c (sysv_scalbl): Likewise.
27865         * math/w_sinhl.c (__sinhl): Likewise.
27866         * math/w_sqrtl.c (__sqrtl): Likewise.
27867         * math/w_tgammal.c (__tgammal): Likewise.
27868         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27869         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27870         * math/libm-test.inc (acos_test): Add more tests.
27871         (acosh_test): Likewise.
27872         (asin_test): Likewise.
27873         (atanh_test): Likewise.
27874         (exp_test): Likewise.
27875         (exp10_test): Likewise.
27876         (exp2_test): Likewise.
27877         (expm1_test): Likewise.
27878         (lgamma_test): Likewise.
27879         (log_test): Likewise.
27880         (log10_test): Likewise.
27881         (log1p_test): Likewise.
27882         (log2_test): Likewise.
27883         (pow_test): Do not allow some spurious overflow exceptions.
27884         (sqrt_test): Add more tests.
27885         (tgamma_test): Likewise.
27886         (y0_test): Likewise.
27887         (y1_test): Likewise.
27888         (yn_test): Likewise.
27889
27890 2012-03-27  Anton Blanchard  <anton@samba.org>
27891
27892         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27893         MAP_HUGETLB.
27894         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27895         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27896         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27897
27898 2012-03-27  David S. Miller  <davem@davemloft.net>
27899
27900         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27901
27902         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27903         have-as-vis3 check.
27904
27905 2012-03-27  Andreas Jaeger  <aj@suse.de>
27906
27907         * sysdeps/x86_64/elf/configure.in: Moved to ...
27908         * sysdeps/x86_64/configure.in: ... here.
27909         * sysdeps/x86_64/elf/start.S: Moved to ...
27910         * sysdeps/x86_64/start.S: ... here.
27911         * sysdeps/x86_64/elf/configure: Delete.
27912
27913         * sysdeps/x86_64/configure.in: Merge contents from
27914         sysdeps/i386/configure.in (without i686 check).
27915
27916         * sysdeps/i386/elf/Versions: Merge into ...
27917         * sysdeps/i386/Versions: ... this.
27918         * sysdeps/i386/elf/Versions: Delete file.
27919         * sysdeps/i386/elf/start.S: Moved to ...
27920         * sysdeps/i386/start.S: ...here.
27921         * sysdeps/i386/elf/configure.in: Merge into...
27922         * sysdeps/i386/configure.in: ...here.
27923         * sysdeps/i386/elf/configure.in: Delete file.
27924         * sysdeps/i386/elf/configure: Delete file.
27925
27926         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27927         * debug/backtracesyms.c: ... here.
27928         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27929         * debug/backtracesymsfd.c: ... here.
27930         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27931         * sysdeps/generic/ifunc-sel.h: ... here.
27932
27933         * sysdeps/unix/i386/start.c: Delete file.
27934         * sysdeps/unix/sparc/start.c: Delete file.
27935         * sysdeps/unix/start.c: Delete file.
27936
27937         * sysdeps/sh/elf/configure.in: Moved to ...
27938         * sysdeps/sh/configure.in: ... here.
27939         * sysdeps/sh/elf/start.S: Moved to ...
27940         * sysdeps/sh/start.S: ... here.
27941         * sysdeps/sh/elf/configure: Delete file.
27942
27943         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27944         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27945         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27946         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27947         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27948         * sysdeps/powerpc/powerpc64/start.S: here.
27949         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27950         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27951         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27952         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27953         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27954
27955         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27956         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27957         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27958         * sysdeps/powerpc/powerpc32/start.S: ... here.
27959         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27960         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27961         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27962
27963         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27964         * sysdeps/powerpc/ifunc-sel.h: ... here.
27965         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27966         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27967
27968         * sysdeps/sparc/elf/configure.in: Moved to ...
27969         * sysdeps/sparc/configure.in: ... here.
27970         * sysdeps/sparc/elf/configure: Delete file.
27971         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27972         * sysdeps/sparc/sparc32/start.S: ... here.
27973         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27974         * sysdeps/sparc/sparc64/start.S: ... here.
27975         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27976         * sysdeps/sparc/sparc32/Makefile: ... this.
27977         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27978         * sysdeps/sparc/sparc64/Makefile: ... this.
27979
27980         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27981         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27982         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27983         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27984         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27985         * sysdeps/s390/s390-32/setjmp.S: ... here.
27986         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27987         * sysdeps/s390/s390-32/configure.in: ... here.
27988         * sysdeps/s390/s390-32/elf/configure: Delete file.
27989         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27990         * sysdeps/s390/s390-32/start.S: ... here.
27991
27992         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
27993         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
27994         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
27995         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
27996         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
27997         * sysdeps/s390/s390-64/setjmp.S: ... here.
27998         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
27999         * sysdeps/s390/s390-64/configure.in: ... here
28000         * sysdeps/s390/s390-64/elf/configure: Delete file.
28001         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
28002         * sysdeps/s390/s390-64/start.S: ... here.
28003         * sysdeps/s390/s390-64/elf/configure: Delete.
28004
28005         * configure.in: Remove support for elf directories in sysdeps.
28006
28007         * configure: Regenerated.
28008         * sysdeps/i386/configure: Regenerated.
28009         * sysdeps/powerpc/powerpc32/configure: Regenerated.
28010         * sysdeps/powerpc/powerpc64/configure: Regenerated.
28011         * sysdeps/s390/s390-32/configure: Regenerated.
28012         * sysdeps/s390/s390-64/configure: Regenerated.
28013         * sysdeps/sh/configure: Regenerated.
28014         * sysdeps/sparc/configure: Regenerated.
28015         * sysdeps/x86_64/configure: Regenerated.
28016
28017 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
28018
28019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28020
28021         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
28022         denormal result into account.
28023
28024 2012-03-25  Roland McGrath  <roland@hack.frob.com>
28025
28026         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
28027         Reported by Allan McRae <allan@archlinux.org>.
28028
28029 2012-03-23  Jeff Law  <law@redhat.com>
28030
28031         * nss/getnssent.c (__nss_getent): Fix typo.
28032
28033 2012-03-23  David S. Miller  <davem@davemloft.net>
28034
28035         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28036
28037 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
28038
28039         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
28040         to pad to uint64_t for each field.
28041         (dl_tls_index): Replace unsigned long with uint64_t.
28042
28043 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
28044         Paul Pluzhnikov  <ppluzhnikov@google.com>
28045
28046         [BZ #6528]
28047         * grp/Makefile (otherlibs): Don't set it.
28048         * inet/Makefile (otherlibs): Likewise.
28049         * login/Makefile (otherlibs): Likewise.
28050         * nscd/Makefile (otherlibs): Likewise.
28051         * posix/Makefile (otherlibs): Likewise.
28052         * pwd/Makefile (otherlibs): Likewise.
28053         * rt/Makefile (otherlibs): Likewise.
28054         * sunrpc/Makefile (otherlibs): Likewise.
28055         * nss/Makefile (otherlibs): Likewise.
28056         Add libnss_files to routines and static-only-routines.
28057         ($(objpfx)getent): Remove rule.
28058         * resolv/Makefile: Add libnss_dns and libresolv to routines and
28059         static-only-routines.
28060
28061 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
28062
28063         [BZ #13892]
28064         * math/s_cexp.c: Include <float.h>.
28065         (__cexp): Handle exp result overflowing not necessarily
28066         overflowing both real and imaginary parts of result.
28067         * math/s_cexpf.c: Likewise.
28068         * math/s_cexpl.c: Likewise.
28069         * math/libm-test.inc (cexp_test): Add more tests.
28070         * sysdeps/i386/fpu/libm-test-ulps: Update.
28071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28072
28073 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28074
28075         * include/link.h (ELFW): New macro.
28076         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
28077         Replace ELF64_R_TYPE with ELFW(R_TYPE).
28078
28079 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28080
28081         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
28082         with uint64_t.
28083
28084 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28085
28086         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
28087         declaration.
28088         (struct La_x32_retval): Likewise.
28089
28090 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28091
28092         * sysdeps/x86_64/preconfigure.in: New file.
28093         * sysdeps/x86_64/preconfigure: New generated file.
28094
28095 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
28096
28097         [BZ #13824]
28098         * math/e_exp2l.c: Include <float.h>.
28099         (__ieee754_exp2l): Handle overflow and underflow cases
28100         separately.  Only pass fractional part of argument to
28101         __ieee754_expl.
28102         * math/libm-test.inc (exp2_test): Add more tests.
28103
28104         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
28105         negating x to take absolute value.
28106         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
28107         Likewise.
28108         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
28109         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
28110         Likewise.
28111         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
28112         computing low part if x was negated.
28113         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
28114
28115 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28116
28117         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
28118         la_x32_gnu_pltexit.
28119         (pltexit): Cast int_retval to ptrdiff_t.
28120         * elf/tst-auditmod3b.c: Likewise.
28121         * elf/tst-auditmod4b.c: Likewise.
28122         * elf/tst-auditmod5b.c: Likewise.
28123         * elf/tst-auditmod6b.c: Likewise.
28124         * elf/tst-auditmod6c.c: Likewise.
28125         * elf/tst-auditmod7b.c: Likewise.
28126
28127         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
28128         and x32_gnu_pltexit.
28129
28130         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
28131         __ELF_NATIVE_CLASS.
28132         (La_x32_regs): New macro.
28133         (La_x32_retval): Likewise.
28134         (la_x32_gnu_pltenter): New function prototype.
28135         (la_x32_gnu_pltexit): Likewise.
28136
28137 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
28138
28139         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
28140         exponent.
28141
28142         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28143
28144         * configure.in (libc_cv_cc_nofma): Check for option to disable
28145         generation of FMA instructions.
28146         * configure: Regenerate.
28147         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
28148         * sysdeps/ieee754/dbl-64/Makefile: New file.
28149         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28150         Remove brandred-fma4.
28151         (CFLAGS-brandred-fma4.c): Remove.
28152         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
28153         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
28154         define.
28155         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
28156         define.
28157
28158 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28159
28160         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
28161         LLONG_MAX != LONG_MAX.
28162         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28163         (_fitoa_word): Likewise.
28164         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
28165         LLONG_MAX != LONG_MAX.
28166         * stdio-common/_itowa.h: Include <_itoa.h>.
28167         (_itowa_word): Use _ITOA_WORD_TYPE on value.
28168         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
28169         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
28170         only if not defined.
28171         (_ITOA_WORD_TYPE): Likewise.
28172         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28173         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
28174
28175 2012-03-21  David S. Miller  <davem@davemloft.net>
28176
28177         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28178
28179 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28180
28181         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
28182         of x86_64 when setting libc_cv_slibdir, libdir and
28183         libc_cv_localedir.
28184         * sysdeps/unix/sysv/linux/configure: Regenerated.
28185
28186 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28187
28188         * manual/lang.texi (Old Varargs): Remove section.
28189         (How Variadic): Update menu.
28190         (va_start): Do not mention varargs.h.
28191
28192 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28193             Joseph Myers  <joseph@codesourcery.com>
28194
28195         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
28196         link test.
28197         * configure: Regenerated.
28198
28199 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28200
28201         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
28202         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
28203         conformtest.pl
28204
28205 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28206
28207         * NOTES: Remove.
28208         * Makefile (files-for-dist): Remove NOTES.
28209         (NOTES): Remove rule.
28210         * README: Don't refer to NOTES.
28211         * manual/creature.texi: Don't include macros.texi.
28212         * manual/intro.texi (creature.texi): Remove comment referring to
28213         NOTES.
28214
28215         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
28216         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
28217         * configure: Regenerated.
28218         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
28219         LIBC_TRY_CC_OPTION.
28220         (libc_cv_as_i686): Likewise.
28221         (libc_cv_cc_avx): Likewise.
28222         (libc_cv_cc_sse2avx): Likewise.
28223         (libc_cv_cc_fma4): Likewise.
28224         (libc_cv_cc_novzeroupper): Likewise.
28225         * sysdeps/i386/configure: Regenerated.
28226
28227         [BZ #13883]
28228         * sysdeps/i386/fpu/s_cexp.S: Remove.
28229         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
28230         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
28231         * math/libm-test.inc (cexp_test): Add more tests.
28232         * sysdeps/i386/fpu/libm-test-ulps: Update.
28233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28234
28235 2012-03-21  Allan McRae  <allan@archlinux.org>
28236
28237         * timezone/Makefile: Do not install iso3166.tab and zone.tab
28238
28239 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28240
28241         [BZ #13871]
28242         * math/w_exp2.c: Do not include <float.h>.
28243         (o_threshold, u_threshold): Remove.
28244         (__exp2): Calculate result before checking finiteness and calling
28245         __kernel_standard.
28246         * math/w_exp2f.c: Likewise.
28247         * math/w_exp2l.c: Likewise.
28248         * math/libm-test.inc (exp2_test): Require overflow exception for
28249         1e6 input.
28250
28251         [BZ #3866]
28252         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
28253         range of signed 64-bit integers before using fistpll.  Remove
28254         checks for whether integers fit in mantissa bits.
28255         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
28256         the range of signed 32-bit integers before using fistpl.  Remove
28257         checks for whether integers fit in mantissa bits.
28258         * sysdeps/i386/fpu/e_powl.S (p64): New object.
28259         (__ieee754_powl): Test for y outside the range of signed 64-bit
28260         integers before using fistpll.  Reduce 64-bit values to 63-bit
28261         ones as needed.
28262         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
28263         divide-by-zero is raised for zero to large negative powers.
28264         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
28265         (__ieee754_powl): Test for y outside the range of signed 64-bit
28266         integers before using fistpll.  Reduce 64-bit values to 63-bit
28267         ones as needed.
28268         * math/libm-test.inc (pow_test): Add more tests.
28269
28270 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28271
28272         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
28273         <stdio-common/_itoa.h>.
28274         * debug/segfault.c: Likewise.
28275         * elf/dl-cache.c: Likewise.
28276         * elf/dl-minimal.c: Likewise.
28277         * elf/dl-misc.c: Likewise.
28278         * elf/dl-sysdep.c: Likewise.
28279         * elf/dl-version.c: Likewise.
28280         * elf/rtld.c: Likewise.
28281         * hurd/hurdsock.c: Likewise.
28282         * hurd/lookup-retry.c: Likewise.
28283         * malloc/malloc.c: Likewise.
28284         * malloc/mtrace.c: Likewise.
28285         * nscd/nscd_getgr_r.c: Likewise.
28286         * nscd/nscd_getpw_r.c: Likewise.
28287         * nscd/nscd_getserv_r.c: Likewise.
28288         * posix/getopt_init.c: Likewise.
28289         * posix/wordexp.c: Likewise.
28290         * stdio-common/_itoa.c: Likewise.
28291         * stdio-common/printf_fphex.c: Likewise.
28292         * stdio-common/vfprintf.c: Likewise.
28293         * string/_strerror.c: Likewise.
28294         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
28295         * sysdeps/i386/i686/hp-timing.h: Likewise.
28296         * sysdeps/mach/_strerror.c: Likewise.
28297         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
28298         * sysdeps/mach/hurd/sethostid.c: Likewise.
28299         * sysdeps/mach/hurd/xmknodat.c: Likewise.
28300         * sysdeps/mach/xpg-strerror.c: Likewise.
28301         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
28302         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28303         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
28304         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
28305         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28306         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
28307         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28308         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28309         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
28310         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
28311         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
28312         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
28313         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
28314         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
28315         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
28316         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
28317         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
28318         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
28319         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28320         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28321         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
28322
28323         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
28324
28325         * stdio-common/_itoa.h: Moved to ...
28326         * sysdeps/generic/_itoa.h: Here.
28327
28328         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
28329
28330         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
28331         instead of "_itoa.h" and "_itowa.h".
28332         * stdio-common/vfprintf.: Likewise.
28333
28334 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28335
28336         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
28337         <bits/wordsize.h>.
28338         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
28339         (__signbit): Likwise.
28340         (llrintf): Likwise.
28341         (llrint): Likwise.
28342
28343 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28344
28345         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
28346         __WORDSIZE != 64.
28347
28348 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
28349
28350         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
28351         OVERFLOW_EXCEPTION_OK.
28352         * math/libm-test.inc ("Philosophy"): Update comment about
28353         exception testing.
28354         (OVERFLOW_EXCEPTION): Define.
28355         (OVERFLOW_EXCEPTION_OK): Likewise.
28356         (INVALID_EXCEPTION_OK): Renumber.
28357         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
28358         (IGNORE_ZERO_INF_SIGN): Likewise.
28359         (test_exceptions): Handle FE_OVERFLOW.
28360         (exp10_test): Expect overflow exceptions.
28361         (exp2_test): Likewise.
28362         (expm1_test): Likewise.
28363         (nextafter_test): Likewise.
28364         (pow_test): Likewise.
28365         (scalbn_test): Likewise.
28366         (scalbln_test): Likewise.
28367
28368 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28369
28370         * sysdeps/x86_64/bits/atomic.h
28371         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28372         64bit integer.
28373         (atomic_exchange_acq): Likewise.
28374         (__arch_exchange_and_add_body): Likewise.
28375         (__arch_add_body): Likewise.
28376         (atomic_add_negative): Likewise.
28377         (atomic_add_zero): Likewise.
28378
28379 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28380
28381         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28382         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28383
28384 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28385
28386         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28387         Check __x86_64__ instead of __WORDSIZE.
28388
28389 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28390
28391         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28392
28393 2012-03-19  David S. Miller  <davem@davemloft.net>
28394
28395         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28396
28397         * sysdeps/sparc/fpu/fenv_private.h: New file.
28398         * sysdeps/sparc/fpu/math_private.h: Use it.
28399         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28400         Remove.
28401         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28402         (libc_feholdexcept_setroundl): Remove.
28403         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28404         Remove.
28405         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28406         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28407
28408 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28409
28410         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28411         int64_t instead of long int.
28412         (INSERT_WORDS64): Likwise.
28413
28414 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28415
28416         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28417         _Unwind_GetCFA return to _Unwind_Ptr first.
28418
28419 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28420
28421         [BZ #13629]
28422         * math/s_clog.c: Include <float.h>.
28423         (__clog): Scale large or subnormal inputs.
28424         * math/s_clogf.c: Likewise.
28425         * math/s_clogl.c: Likewise.
28426         * math/s_clog10.c: Include <float.h>.
28427         (M_LOG10_2): Define.
28428         (__clog10): Scale large or subnormal inputs.
28429         * math/s_clog10f.c: Likewise.
28430         * math/s_clog10l.c: Likewise.
28431         * math/libm-test.inc (clog_test): Add more tests.
28432         (clog10_test): Likewise.
28433         * sysdeps/i386/fpu/libm-test-ulps: Update.
28434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28435
28436         [BZ #11451]
28437         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28438         x and y.
28439         * math/libm-test.inc (atan2_test): Add another test.
28440
28441         * Makerules (common-objdir-compile): Remove.
28442         * sysdeps/unix/Makefile (config-generated): Do not add
28443         $(unix-generated) to variable.
28444         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28445         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28446         Remove rule.
28447         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28448         Likewise.
28449         [generic bits/local_lim.h] (before-compile): Do not append to
28450         variable.
28451         [generic bits/local_lim.h] (common-generated): Likewise.
28452         [generic sys/param.h] (before-compile): Do not append to variable.
28453         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28454         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28455         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28456         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28457         include.
28458         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28459         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28460         [generic sys/param.h] ($(addprefix
28461         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28462         [generic sys/param.h] (common-generated): Do not append to
28463         variable.
28464         [generic sys/param.h] (sysdep_headers): Likewise.
28465         [generic bits/errno.h] (before-compile): Do not append to
28466         variable.
28467         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28468         rule.
28469         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28470         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28471         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28472         [generic bits/errno.h] (common-generated): Do not append to
28473         variable.
28474         [generic bits/ioctls.h] (before-compile): Do not append to
28475         variable.
28476         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28477         rule.
28478         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28479         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28480         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28481         rule.
28482         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28483         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28484         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28485         [generic bits/ioctls.h] (common-generated): Do not append to
28486         variable.
28487         [generic sys/syscall.h] (syscall.h): Remove variable.
28488         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28489         rule.
28490         [generic sys/syscall.h] (before-compile): Do not append to
28491         variable.
28492         [generic sys/syscall.h] (common-generated): Likewise.
28493         * sysdeps/unix/errnos-tmpl.c: Remove file.
28494         * sysdeps/unix/errnos.awk: Likewise.
28495         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28496         * sysdeps/unix/ioctls.awk: Likewise.
28497         * sysdeps/unix/mk-local_lim.c: Likewise.
28498         * sysdeps/unix/snarf-ioctls: Likewise.
28499
28500 2012-03-19  Richard Henderson  <rth@twiddle.net>
28501
28502         * sysdeps/i386/fpu/fenv_private.h: New file.
28503         * sysdeps/i386/fpu/math_private.h: Use it.
28504         (math_opt_barrier, math_force_eval): Remove.
28505         (libc_feholdexcept_setround_53bit): Remove.
28506         (libc_feupdateenv_53bit): Remove.
28507         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28508         (math_opt_barrier, math_force_eval): Remove.
28509         (libc_feholdexcept): Remove.
28510         (libc_feholdexcept_setround): Remove.
28511         (libc_fetestexcept, libc_fesetenv): Remove.
28512         (libc_feupdateenv_test): Remove.
28513         (libc_feupdateenv, libc_feholdsetround): Remove.
28514         (libc_feresetround): Remove.
28515
28516         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28517         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28518
28519         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28520         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28521         (libc_feupdateenv_testl): New.
28522         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28523         (libc_feupdateenv_testf): New.
28524         (libc_feupdateenv): Use libc_feupdateenv_test.
28525         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28526         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28527
28528         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28529         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28530         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28531         (libc_feresetround_noex): New.
28532         (libc_feresetround_noexf): New.
28533         (libc_feresetround_noexl): New.
28534         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28535         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28536         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28537         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28538         SET_RESTORE_ROUND.
28539         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28540         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28541         (__cos): Likewise.
28542         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28543         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28544         SET_RESTORE_ROUND_NOEX.
28545         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28546         SET_RESTORE_ROUND_NOEXF.
28547         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28548         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28549         (libc_feholdsetroundf): New.
28550         (libc_feresetround, libc_feresetroundf): New.
28551
28552         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28553         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28554         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28555
28556         * sysdeps/generic/math_private.h: Include <fenv.h>.
28557         (default_libc_feholdexcept): New.
28558         (default_libc_feholdexcept_setround): New.
28559         (default_libc_fesetenv, default_libc_feupdateenv): New.
28560         (libc_feholdexcept): Only define if undefined.
28561         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28562         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28563         (libc_feholdexcept_setroundl): Likewise.
28564         (libc_feholdexcept_setround_53bit): Likewise.
28565         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28566         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28567         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28568         (libc_feupdateenv_53bit): Likewise.
28569         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28570         (libc_feholdexcept): Convert from macro to inline function.
28571         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28572         (libc_fesetenv, libc_feupdateenv): Likewise.
28573
28574         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28575         not previously defined.
28576         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28577         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28578         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28579         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28580         * sysdeps/ieee754/flt-32/math_private.h: New file.
28581         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28582         math_private.h below SET_FLOAT_WORD.
28583         (__isnan, __isinf_ns, __finite): Remove.
28584         (__isnanf, __isinf_nsf, __finitef): Remove.
28585
28586 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28587
28588         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28589
28590 2012-03-17  David S. Miller  <davem@davemloft.net>
28591
28592         [BZ #6471]
28593         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28594         for 2.16.
28595
28596 2012-03-16  David S. Miller  <davem@davemloft.net>
28597
28598         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28599         warnings.
28600
28601         [BZ #6471]
28602         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28603         properly.
28604         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28605         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28606         sysdep_routines when subdir is sysvipc.
28607         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28608         __getshmlba helper.
28609
28610         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28611
28612 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28613
28614         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28615         [__LP64__].
28616
28617 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28618
28619         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28620         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28621         (__lround): Renamed to ...
28622         (__llround): This.  Replace long int with long long int.
28623         Define lround functions as aliases of llround functions.
28624         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28625
28626 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28627
28628         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28629         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28630         adresses to uintptr_t.  Replace "long int" and "unsigned long
28631         int" with "greg_t" on va_arg.
28632
28633 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28634
28635         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28636         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28637
28638         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28639         Move e_machine check before EI_CLASS check.  Handle x32
28640         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28641         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28642         SKIP_EM_IA_64 and include
28643         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28644
28645         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28646         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28647         (add_system_dir): New macro.
28648
28649         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28650         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28651
28652 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28653
28654         [BZ #2551]
28655         [BZ #2552]
28656         [BZ #2553]
28657         [BZ #2554]
28658         [BZ #2562]
28659         [BZ #2563]
28660         [BZ #2565]
28661         [BZ #2566]
28662         [BZ #2576]
28663         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28664         (y0): Likewise.
28665         * math/w_j0f.c (j0f): Likewise.
28666         (y0f): Likewise.
28667         * math/w_j0l.c (__j0l): Likewise.
28668         (__y0l): Likewise.
28669         * math/w_j1.c (j1): Likewise.
28670         (y1): Likewise.
28671         * math/w_j1f.c (j1f): Likewise.
28672         (y1f): Likewise.
28673         * math/w_j1l.c (__j1l): Likewise.
28674         (__y1l): Likewise.
28675         * math/w_jn.c (jn): Likewise.
28676         (yn): Likewise.
28677         * math/w_jnf.c (jnf): Likewise.
28678         (ynf): Likewise.
28679         * math/w_jnl.c (__jnl): Likewise.
28680         (__ynl): Likewise.
28681         * math/libm-test.inc (j0_test): Add more tests.
28682         (j1_test): Likewise.
28683         (jn_test): Likewise.  Add trailing semicolon to existing test.
28684         (y0_test): Likewise.
28685         (y1_test): Likewise.
28686         * sysdeps/i386/fpu/libm-test-ulps: Update.
28687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28688
28689         [BZ #13851]
28690         [BZ #13854]
28691         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28692         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28693         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28694         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28695         (__tanl): Set errno for infinite argument.
28696         * sysdeps/i386/fpu/mptan.c: Remove.
28697         * sysdeps/i386/fpu/s_tan.S: Likewise.
28698         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28699         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28700         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28701         * math/libm-test.inc (tan_test): Add more tests and enable more
28702         tests for double and long double.
28703         * sysdeps/i386/fpu/libm-test-ulps: Update.
28704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28705
28706 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28707
28708         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28709         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28710
28711 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28712
28713         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28714         * configure.in: Use it for both main tree and add-ons.
28715         * configure: Regenerated.
28716
28717 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28718
28719         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28720
28721 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28722
28723         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28724         in comment.
28725
28726         [BZ #13851]
28727         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28728         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28729         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28730         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28731         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28732         infinite argument.
28733         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28734         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28735         != 0 for prec == 2.
28736         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28737         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28738         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28739         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28740         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28741         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28742         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28743         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28744         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28745         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28746         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28747         * math/libm-test.inc (cos_test): Add more tests and enable more
28748         tests for long double.
28749         (sin_test): Likewise.
28750         (sincos_test): Likewise.
28751         * sysdeps/i386/fpu/libm-test-ulps: Update.
28752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28753
28754 2012-03-16  David S. Miller  <davem@davemloft.net>
28755
28756         * sysdeps/sparc/fpu/math_private.h: New file.
28757
28758 2012-03-15  David S. Miller  <davem@davemloft.net>
28759
28760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28761         file.
28762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28764         file.
28765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28766         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28767         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28768         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28769         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28770         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28771         sysdep routines.
28772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28773
28774         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28775         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28776
28777         * sysdeps/sparc/sparc-ifunc.h: New file.
28778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28779         sparc-ifunc.h
28780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28782         Likewise.
28783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28784         Likewise.
28785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28789         Likewise.
28790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28795         Likewise.
28796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28797         Likewise.
28798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28802         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28803         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28804         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28805         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28806         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28807         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28808         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28809         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28810         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28811         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28812         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28813         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28814         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28815         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28816         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28817         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28818         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28819         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28820         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28821         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28822
28823 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28824
28825         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28826         scaling.
28827         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28828
28829 2012-03-15  Andreas Jaeger  <aj@suse.de>
28830
28831         [BZ #13852]
28832         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28833         ieee754/flt-32 implementation for sin, cos and sincos.
28834         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28835         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28836         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28837         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28838         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28839         ieee754/flt-32 implementation for tan.
28840
28841         * math/libm-test.inc (cos_test): Enable some large input tests for
28842         float as well
28843         (sin_test): Likewise.
28844         (sincos_test): Likewise.
28845         (tan_test): Add tests for large input.
28846
28847         * sysdeps/i386/fpu/libm-test-ulps: Update.
28848
28849 2012-03-15  Andreas Jaeger  <aj@suse.de>
28850
28851         [BZ #13658]
28852         * math/libm-test.inc (cos_test): Add more test cases.
28853         (sin_test): Likewise.
28854         (sincos_test): Likewise.
28855
28856 2012-03-15  Andreas Jaeger  <aj@suse.de>
28857
28858         [BZ #13837]
28859         * math/libm-test.inc (cos_test): Add a test case for large input
28860         value.
28861         (sin_test): Likewise.
28862         (sincos_test): Likewise.
28863
28864 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28865         Joseph Myers  <joseph@codesourcery.com>
28866
28867         [BZ #13658]
28868         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28869         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28870         * sysdeps/i386/fpu/branred.c: Likewise.
28871         * sysdeps/i386/fpu/dosincos.c: Likewise.
28872         * sysdeps/i386/fpu/mpa.c: Likewise.
28873         * sysdeps/i386/fpu/s_cos.S: Likewise.
28874         * sysdeps/i386/fpu/s_sin.S: Likewise.
28875         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28876         * sysdeps/i386/fpu/sincos32.c: Likewise.
28877
28878         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28879         Define.
28880         (libc_feupdateenv_53bit): Define.
28881         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28882         Define.
28883         (libc_feupdateenv_53bit): Define.
28884
28885         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28886         53 bit (without extend i386 double precision).
28887
28888         * math/libm-test.inc (sincos_test): Add tests for large input.
28889         (sin): Likewise.
28890         (cos): Likewise.
28891
28892         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28893
28894 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28895
28896         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28897
28898 2012-03-15  David S. Miller  <davem@davemloft.net>
28899
28900         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28901         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28902         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28903         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28904         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28905         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28906         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28907         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28908         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28909         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28910         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28911         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28912         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28913         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28914         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28916         file.
28917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28919         file.
28920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28922         file.
28923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28925         file.
28926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28927         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28928         fmin/fmax sysdep routines.
28929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28930
28931 2012-03-14  David S. Miller  <davem@davemloft.net>
28932
28933         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28934         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28935         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28936         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28937         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28938         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28939         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28940         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28941         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28942         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28943         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28944         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28945         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28946         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28947         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28948         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28949         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28950         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28951         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28952         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28953         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28954         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28955         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28956         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28957         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28958         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28959         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28960         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28961         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28962         routines.
28963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28964         file.
28965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28967         file.
28968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28970         file.
28971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28973         file.
28974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28976         file.
28977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28979         file.
28980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28981         file.
28982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28983         file.
28984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28985         file.
28986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28987         New file.
28988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28989         file.
28990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
28991         file.
28992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
28993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
28994         file.
28995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
28996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
28997         file.
28998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
28999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
29000         file.
29001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
29002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
29003         VIS3 routines.
29004
29005         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
29006         New file.
29007
29008         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29009
29010         * sysdeps/sparc/configure.in: New file.
29011         * sysdeps/sparc/configure: Generate.
29012         * configure.in (libc_cv_sparc_as_vis3): Substitute.
29013         * configure: Regenerate.
29014         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
29015         * config.make.in (have-as-vis3): New.
29016         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
29017         available use -Av9d instead of -Av9a.
29018         * sysdeps/sparc/sparc64/Makefile: Likewise.
29019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
29020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
29021         New file.
29022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
29023         file.
29024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
29025         New file.
29026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
29027         file.
29028         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
29029         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
29030         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
29031         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
29032         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
29033
29034         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
29035         fzeros/fnegs to load 0x80000000 into a float register instead of
29036         using the stack.
29037         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
29038
29039 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
29040
29041         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29042         bits/syscall.h.
29043         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
29044         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
29045         ($(inst_includedir)/bits/syscall.h): Remove rule.
29046         ($(objpfx)bits/syscall.d): Include instead of
29047         $(objpfx)syscall-list.d.
29048         (generated): Change syscall-list.h and syscall-list.d to
29049         bits/syscall.h and bits/syscall.d.
29050
29051 2012-03-14  Roland McGrath  <roland@hack.frob.com>
29052
29053         [BZ #13846]
29054         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
29055
29056 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
29057
29058         [BZ #13841]
29059         * math/s_csqrt.c: Include <float.h>.
29060         (__csqrt): Scale large or subnormal inputs.
29061         * math/s_csqrtf.c: Likewise.
29062         * math/s_csqrtl.c: Likewise.
29063         * math/libm-test.inc (csqrt_test): Add more tests.
29064         * sysdeps/i386/fpu/libm-test-ulps: Update.
29065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29066
29067         [BZ #13840]
29068         * math/libm-test.inc (hypot_test): Add more tests.
29069
29070 2012-03-13  David S. Miller  <davem@davemloft.net>
29071
29072         [BZ #13840]
29073         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
29074         double-precision for the calculation instead of scaling.
29075
29076 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
29077
29078         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
29079         manipulate bits before adding and subtracting TWO52[sx].
29080         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
29081         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29082         Likewise.
29083         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
29084
29085 2012-03-13  David S. Miller  <davem@davemloft.net>
29086
29087         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
29088         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
29089         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
29090         rtld-global-offsets.h
29091         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29092
29093         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
29094         large parameters.
29095
29096         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
29097
29098         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
29099         'err' in the ifdef scope in which it is actually used.
29100
29101         * nss/nss_db/db-init.c: Include string.h
29102
29103 2012-03-12  David S. Miller  <davem@davemloft.net>
29104
29105         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
29106         masking out of the most significant byte of random value used.
29107         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29108         Fix coding style in previous change.
29109
29110         * sysdeps/unix/sysv/linux/kernel-features.h
29111         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
29112         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
29113         expression.
29114         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
29115         later.
29116
29117 2012-03-11  David S. Miller  <davem@davemloft.net>
29118
29119         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
29120         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
29121         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
29122         for 'resultvar' otherwise things get truncated on 64-bit.
29123
29124         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29125         Fix masking out of the most significant byte of random value used.
29126
29127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29128
29129 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
29130
29131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29132
29133 2012-03-09  David S. Miller  <davem@davemloft.net>
29134
29135         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
29136         variables with appropriate CPP guards.
29137         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
29138         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
29139         on resulting framesize and the management of the outregs buffer for pltexit.
29140         Preserve floating point return values across _dl_call_pltexit call.
29141         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
29142         framesize and the management of the outregs buffer for pltexit.
29143         Preserve floating point return values across _dl_call_pltexit
29144         call.
29145         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
29146         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
29147         (print_exit): Fix format string for return register value.
29148
29149 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
29150
29151         * sunrpc/Makefile (others): Add rpcgen.
29152         ($(objpfx)rpcgen): Remove special build rule and dependency on
29153         libc.
29154         * sunrpc/rpcgen.c: New file.
29155
29156 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
29157
29158         [BZ #13673]
29159         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
29160         * stdio-common/bug-vfprintf-nargs.c: Likewise.
29161         * sysdeps/i386/crti.S: Likewise.
29162         * sysdeps/i386/crtn.S: Likewise.
29163         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
29164         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
29165         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
29166         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
29167         * sysdeps/sh/crti.S: Likewise.
29168         * sysdeps/sh/crtn.S: Likewise.
29169         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29170
29171         [BZ #13673]
29172         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
29173         with URL.
29174         * locale/programs/locfile-kw.gperf: Likewise.
29175         * locale/programs/charmap-kw.h: Regenerated.
29176         * locale/programs/locfile-kw.h: Likewise.
29177
29178         [BZ #13673]
29179         * intl/plural.y: Replace FSF snail mail address with URL.
29180         * intl/plural.c: Regenerated.
29181
29182 2012-03-09  Richard Henderson  <rth@twiddle.net>
29183
29184         * include/math_private.h: Remove file.
29185         * math/math_private.h: Move file ...
29186         * sysdeps/generic/math_private.h: ... here.
29187
29188         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
29189         * sysdeps/powerpc/fpu/math_private.h: Likewise.
29190         * sysdeps/x86_64/fpu/math_private.h: Likewise.
29191
29192         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
29193         and <math_private.h>.
29194         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
29195         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
29196         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
29197         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
29198         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
29199         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
29200         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
29201         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29202         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29203         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29204         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29205         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29206         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29207         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29208         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29209         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29210         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29211         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29212         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29213         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29214         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29215         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29216         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29217         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29218         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
29219         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29220         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29221         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29222         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29223         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
29224         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29225         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29226         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
29227         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
29228         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
29229         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
29230         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
29231         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
29232         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
29233         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29234         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
29235         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
29236         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
29237         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
29238         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
29239         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
29240         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
29241         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
29242         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
29243         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
29244         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
29245         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
29246         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
29247         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
29248         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
29249         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29250         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29251         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
29252         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
29253         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
29254         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29255         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
29256         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29257         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
29258         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
29259         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29260         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29261         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29262         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
29263         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
29264         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
29265         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29266         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
29267         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29268         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
29269         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
29270         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
29271         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
29272         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
29273         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
29274         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
29275         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
29276         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
29277         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29278         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29279         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
29280         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
29281         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
29282         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29283         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29284         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29285         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29286         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29287         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29288         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29289         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29290         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29291         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29292         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29293         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29294         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29295         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29296         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29297         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29298         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29299         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29300         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29301         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29302         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29303         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29304         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29305         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29306         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29307         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29308         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
29309         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29310         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29311         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29312         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29313         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29314         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29315         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29316         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29317         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
29318         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29319         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29320         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29321         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
29322         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29323         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
29324         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
29325         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29326         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29327         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
29328         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
29329         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29330         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29331         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29332         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
29333         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29334         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29335         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29336         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29337         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
29338         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
29339         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29340         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29341         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29342         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
29343         * sysdeps/ieee754/k_standard.c: Likewise.
29344         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29345         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29346         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29347         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29348         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29349         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29350         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29351         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29352         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29354         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29355         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29356         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29357         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29358         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29359         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29360         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
29361         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29362         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29363         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29364         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29365         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29366         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29367         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29368         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29369         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29370         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29371         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29372         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29373         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29374         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29375         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29376         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29377         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29378         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29379         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29380         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29381         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29382         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29383         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29384         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29385         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29386         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29387         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29388         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29389         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29390         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29391         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29392         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29393         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29394         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29395         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29396         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29397         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29398         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29399         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29400         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29401         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29402         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29403         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29404         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29405         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29406         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29407         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29408         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29409         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29410         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29411         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29412         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29413         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29414         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29415         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29416         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29417         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29418         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29419         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29420         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29421         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29422         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29423         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29424         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29425         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29426         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29427         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29428         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29429         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29430         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29431         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29432         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29433         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29434         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29435         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29436         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29437         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29438         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29439         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29440         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29441         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29442         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29443         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29444         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29445         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29446         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29447         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29448         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29449         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29450         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29451         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29452         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29453         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29454         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29455         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29456         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29457         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29458         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29459         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29460         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29461         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29462         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29463         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29464         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29465         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29466         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29467         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29468         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29469         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29470         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29471         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29472         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29473         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29474         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29475         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29476         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29477         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29478         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29479         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29480         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29481         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29482         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29483         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29484         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29485         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29486         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29487         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29488         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29489         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29490         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29491         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29492         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29493         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29494         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29495         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29496         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29497         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29498         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29499         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29500         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29501         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29502         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29503         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29504         * sysdeps/ieee754/s_lib_version.c: Likewise.
29505         * sysdeps/ieee754/s_matherr.c: Likewise.
29506         * sysdeps/ieee754/s_signgam.c: Likewise.
29507         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29508         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29509         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29510         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29511         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29512         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29513         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29514         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29515         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29516         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29517         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29518         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29519         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29520         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29521         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29522         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29523         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29524         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29525         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29526         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29527         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29528
29529 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29530
29531         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29532         * sunrpc/rpc_main.c: Likewise.
29533         * sunrpc/rpc_svcout.c: Likewise.
29534
29535 2012-03-09  David S. Miller  <davem@davemloft.net>
29536
29537         * include/math_private.h: New file.
29538
29539 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29540
29541         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29542         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29543         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29544         from <bits/socket_type.h>.
29545         (enum __socket_type): Don't define here.
29546         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29547         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29548         bits/socket_type.h.
29549
29550         [BZ #13566]
29551         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29552         checking __USE_GNU.
29553
29554         * Makerules ($(inst_includedir)/%.h): New rule.
29555         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29556         (install-others): Remove variable setting.
29557         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29558
29559 2012-03-08  Richard Henderson  <rth@twiddle.net>
29560
29561         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29562         from macro to inline function; merge with the
29563         !__LIBC_INTERNAL_MATH_INLINES version.
29564         (__ieee754_sqrtf): Likewise.
29565
29566         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29567         to inline function.
29568         (__rintf, __floor, __floorf): Likewise.
29569
29570         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29571         macro to inline function.
29572         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29573
29574         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29575         not <math/math_private.h>.
29576
29577 2012-03-08  David S. Miller  <davem@davemloft.net>
29578
29579         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29580         copyright year.
29581         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29582
29583 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29584
29585         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29586         normalization.
29587         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29588         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29589
29590 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29591
29592         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29593         be defined individually, they must be defined as a block.  Define
29594         S for printing a string instead of hidint the different by using a
29595         macro for adding the 'l'.
29596         * stdio-common/tst-fphex-wide.c: Adjust.
29597
29598 2012-03-07  Marek Polacek  <polacek@redhat.com>
29599
29600         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29601
29602 2012-03-08  Marek Polacek  <polacek@redhat.com>
29603
29604         [BZ #13806]
29605         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29606         * stdio-common/tst-fphex.c: Define a few macros to make the
29607         test reusable.  Use them.
29608         * stdio-common/tst-fphex-wide.c: New file.
29609
29610 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29611
29612         [BZ #6911]
29613         * manual/macros.texi (gnusystems): New macro.
29614         (nongnusystems): Likewise.
29615         (gnulinuxhurdsystems): Likewise.
29616         (gnuhurdsystems): Likewise..
29617         (gnulinuxsystems): Likewise.
29618         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29619         variants of the GNU system, not "GNU system".
29620         * manual/conf.texi: Likewise.
29621         * manual/errno.texi: Likewise.  Update example of errno macro
29622         expansion.
29623         * manual/filesys.texi: Likewise.
29624         (getumask): Document as specific to GNU/Hurd.
29625         * manual/install.texi: Likewise.  Reword some references to
29626         GNU/Linux.
29627         * manual/intro.texi: Likewise.
29628         * manual/io.texi: Likewise.
29629         (File Name Portability): Detail which constraints are inapplicable
29630         to all GNU systems and which are only inapplicable to GNU/Hurd.
29631         * manual/job.texi: Likewise.
29632         * manual/llio.texi: Likewise.
29633         (O_NOCTTY): Document as present on GNU/Linux.
29634         * manual/maint.texi: Likewise.
29635         * manual/memory.texi: Likewise.
29636         * manual/pattern.texi: Likewise.
29637         * manual/pipe.texi: Likewise.
29638         * manual/process.texi: Likewise.
29639         * manual/resource.texi: Likewise.
29640         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29641         child on GNU/Hurd.
29642         * manual/setjmp.texi: Likewise.
29643         * manual/signal.texi: Likewise.
29644         * manual/startup.texi: Likewise.
29645         * manual/stdio.texi: Likewise.
29646         * manual/terminal.texi: Likewise.
29647         (ONLCR): Document as POSIX.
29648         (OXTABS): Document availability on GNU/Linux as XTABS.
29649         (ONOEOT): Document availability separately from other bits.
29650         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29651         * manual/time.texi: Likewise.
29652         * manual/users.texi: Likewise.
29653         * INSTALL: Regenerated.
29654         * sysdeps/gnu/errlist.c: Regenerated.
29655
29656         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29657         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29658         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29659         puts.
29660         * configure: Regenerated.
29661
29662 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29663
29664         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29665         default includes instead of AC_HEADER_CHECK.
29666         * sysdeps/i386/configure: Regenerated.
29667
29668         [BZ #10716]
29669         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29670         * math/s_cacoshf.c (__cacoshf): Likewise.
29671         * math/s_cacoshl.c (__cacoshl): Likewise.
29672         * math/s_casinh.c (__casinh): Set signs of result from argument.
29673         * math/s_casinhf.c (__casinhf): Likewise.
29674         * math/s_casinhl.c (__casinhl): Likewise.
29675         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29676         (casinh_test): Add more tests.
29677         * sysdeps/i386/fpu/libm-test-ulps: Update.
29678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29679
29680 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29681
29682         * po/zh_TW.po: Update from translation team.
29683
29684         * login/Makefile (distribute): Remove variable.
29685         * catgets/Makefile: Likewise.
29686         * mach/Makefile: Likewise.
29687         * malloc/Makefile: Likewise.
29688         * misc/Makefile: Likewise.
29689         * iconv/Makefile: Likewise.
29690         * nscd/Makefile: Likewise.
29691         * hurd/Makefile: Likewise.
29692         * manual/Makefile: Likewise.
29693         * locale/Makefile: Likewise.
29694         * intl/Makefile: Likewise.
29695         * conform/Makefile: Likewise.
29696         * nss/Makefile: Likewise.
29697         * time/Makefile: Likewise.
29698         * soft-fp/Makefile: Likewise.
29699         * dirent/Makefile: Likewise.
29700         * gmon/Makefile: Likewise.
29701         * po/Makefile: Likewise.
29702         * rt/Makefile: Likewise.
29703         * socket/Makefile: Likewise.
29704         * math/Makefile: Likewise.
29705         * signal/Makefile: Likewise.
29706         * debug/Makefile: Likewise.
29707         * elf/Makefile: Likewise.
29708         * timezone/Makefile: Likewise.
29709         * stdlib/Makefile: Likewise.
29710         * iconvdata/Makefile: Likewise.
29711         * sunrpc/Makefile: Likewise.
29712         * io/Makefile: Likewise.
29713         * argp/Makefile: Likewise.
29714         * inet/Makefile: Likewise.
29715         * hesiod/Makefile: Likewise.
29716         * grp/Makefile: Likewise.
29717         * csu/Makefile: Likewise.
29718         * wctype/Makefile: Likewise.
29719         * crypt/Makefile: Likewise.
29720         * libio/Makefile: Likewise.
29721         * string/Makefile: Likewise.
29722         * nis/Makefile: Likewise.
29723         * resolv/Makefile: Likewise.
29724         * stdio-common/Makefile: Likewise.
29725         * wcsmbs/Makefile: Likewise.
29726         * dlfcn/Makefile: Likewise.
29727         * posix/Makefile: Likewise.
29728
29729         [BZ #6959]
29730         * timezone/Makefile: Don't install timezone files, just the programs
29731         and scripts.
29732
29733 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29734
29735         * nss/databases.def: Add missing gshadow entry.
29736
29737         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29738
29739 2012-03-06  Marek Polacek  <polacek@redhat.com>
29740
29741         [BZ #13726]
29742         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29743         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29744         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29745         * stdio-common/tst-long-dbl-fphex.c: New file.
29746
29747 2012-03-06  David S. Miller  <davem@davemloft.net>
29748
29749         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29750         (set_obp_int): New function.
29751         (get_obp_int): New function.
29752         (__get_clockfreq_via_dev_openprom): Likewise.
29753         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29754         Avoid unused variable warnings on 'val' and use builtin_expect.
29755         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29756         __builtin_expect.
29757         (INLINE_CLONE_SYSCALL): Likewise.
29758
29759 2012-03-05  David S. Miller  <davem@davemloft.net>
29760
29761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29762
29763 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29764
29765         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29766
29767         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29768         only for |x| >= 40.
29769         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29770
29771 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29772
29773         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29774         Replace gettimeofday with __vdso_gettimeofday.
29775
29776         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29777         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29778         __vdso_clock_gettime and __vdso_getcpu.
29779
29780         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29781         time with __vdso_time.
29782
29783 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29784
29785         * manual/lang.texi (size_t): Note types to which size_t may be
29786         equivalent with the GNU C Library, but do not describe when
29787         differences between them are significant.
29788
29789 2012-03-05  Andreas Jaeger  <aj@suse.de>
29790
29791         * sysdeps/i386/fpu/libm-test-ulps: Update.
29792
29793 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29794
29795         [BZ #3976]
29796         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29797         (__ieee754_pow): Save and restore rounding mode and use
29798         round-to-nearest for main computations.
29799         * math/libm-test.inc (pow_test_tonearest): New function.
29800         (pow_test_towardzero): Likewise.
29801         (pow_test_downward): Likewise.
29802         (pow_test_upward): Likewise.
29803         (main): Call the new functions.
29804         * sysdeps/i386/fpu/libm-test-ulps: Update.
29805         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29806
29807         [BZ #3976]
29808         * math/libm-test.inc (cosh_test_tonearest): New function.
29809         (cosh_test_towardzero): Likewise.
29810         (cosh_test_downward): Likewise.
29811         (cosh_test_upward): Likewise.
29812         (sinh_test_tonearest): Likewise.
29813         (sinh_test_towardzero): Likewise.
29814         (sinh_test_downward): Likewise.
29815         (sinh_test_upward): Likewise.
29816         (main): Call the new functions.
29817         * sysdeps/i386/fpu/libm-test-ulps: Update.
29818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29819
29820 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29821
29822         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29823         default stack guard is set in last bytes.
29824         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29825
29826 2012-03-05  Kees Cook  <keescook@chromium.org>
29827
29828         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29829
29830         [BZ #13656]
29831         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29832         possibly allocate from heap instead of stack.
29833         * stdio-common/bug-vfprintf-nargs.c: New file.
29834         * stdio-common/Makefile (tests): Add nargs overflow test.
29835
29836 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29837
29838         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29839
29840 2012-03-03  Marek Polacek  <polacek@redhat.com>
29841
29842         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29843         * math/math_private.h: Likewise.
29844         * stdlib/tst-strtod.c: Likewise.
29845         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29846         * sysdeps/x86_64/bits/atomic.h: Likewise.
29847
29848 2012-03-02  David S. Miller  <davem@davemloft.net>
29849
29850         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29851         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29852         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29853         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29854         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29855         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29856         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29857         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29858
29859 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29860
29861         [BZ #13792]
29862         * manual/examples/README: New file, says the example source files
29863         can be used under GPL>=2.
29864         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29865         line containing just "*/".
29866         * manual/examples/add.c: Add copyright header (GPL>=2).
29867         * manual/examples/argp-ex1.c: Likewise.
29868         * manual/examples/argp-ex2.c: Likewise.
29869         * manual/examples/argp-ex3.c: Likewise.
29870         * manual/examples/argp-ex4.c: Likewise.
29871         * manual/examples/atexit.c: Likewise.
29872         * manual/examples/db.c: Likewise.
29873         * manual/examples/dir.c: Likewise.
29874         * manual/examples/dir2.c: Likewise.
29875         * manual/examples/execinfo.c: Likewise.
29876         * manual/examples/filecli.c: Likewise.
29877         * manual/examples/filesrv.c: Likewise.
29878         * manual/examples/fmtmsgexpl.c: Likewise.
29879         * manual/examples/genpass.c: Likewise.
29880         * manual/examples/inetcli.c: Likewise.
29881         * manual/examples/inetsrv.c: Likewise.
29882         * manual/examples/isockad.c: Likewise.
29883         * manual/examples/longopt.c: Likewise.
29884         * manual/examples/memopen.c: Likewise.
29885         * manual/examples/memstrm.c: Likewise.
29886         * manual/examples/mkfsock.c: Likewise.
29887         * manual/examples/mkisock.c: Likewise.
29888         * manual/examples/mygetpass.c: Likewise.
29889         * manual/examples/pipe.c: Likewise.
29890         * manual/examples/popen.c: Likewise.
29891         * manual/examples/rprintf.c: Likewise.
29892         * manual/examples/search.c: Likewise.
29893         * manual/examples/select.c: Likewise.
29894         * manual/examples/setjmp.c: Likewise.
29895         * manual/examples/sigh1.c: Likewise.
29896         * manual/examples/sigusr.c: Likewise.
29897         * manual/examples/stpcpy.c: Likewise.
29898         * manual/examples/strdupa.c: Likewise.
29899         * manual/examples/strftim.c: Likewise.
29900         * manual/examples/strncat.c: Likewise.
29901         * manual/examples/subopt.c: Likewise.
29902         * manual/examples/swapcontext.c: Likewise.
29903         * manual/examples/termios.c: Likewise.
29904         * manual/examples/testopt.c: Likewise.
29905         * manual/examples/testpass.c: Likewise.
29906         * manual/examples/timeval_subtract.c: Likewise.
29907
29908         [BZ #13792]
29909         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29910         function to ...
29911         * manual/timeval_subtract.c.texi: ... here, new file.
29912
29913 2012-03-02  David S. Miller  <davem@davemloft.net>
29914
29915         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29916
29917 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29918
29919         [BZ #3976]
29920         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29921         (__sin): Save and restore rounding mode and use round-to-nearest
29922         for all computations.
29923         (__cos): Save and restore rounding mode and use round-to-nearest
29924         for all computations.
29925         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29926         <fenv.h>.
29927         (tan): Save and restore rounding mode and use round-to-nearest for
29928         all computations.
29929         * math/libm-test.inc (cos_test_tonearest): New function.
29930         (cos_test_towardzero): Likewise.
29931         (cos_test_downward): Likewise.
29932         (cos_test_upward): Likewise.
29933         (sin_test_tonearest): Likewise.
29934         (sin_test_towardzero): Likewise.
29935         (sin_test_downward): Likewise.
29936         (sin_test_upward): Likewise.
29937         (tan_test_tonearest): Likewise.
29938         (tan_test_towardzero): Likewise.
29939         (tan_test_downward): Likewise.
29940         (tan_test_upward): Likewise.
29941         (main): Call the new functions.
29942         * sysdeps/i386/fpu/libm-test-ulps: Update.
29943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29944
29945         [BZ #10135]
29946         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29947         small n, then large n, before computing and testing k+n.
29948         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29949         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29950         Likewise.
29951         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29952         Likewise.
29953         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29954         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29955         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29956         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29957         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29958         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29959         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29960         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29961         * math/libm-test.inc (scalbn_test): Add more tests.
29962         (scalbln_test): Likewise.
29963
29964         * manual/filesys.texi (mode_t): Describe constraints on size and
29965         signedness, not exact equivalence to a particular type.
29966         (ino_t): Likewise.
29967         (ino64_t): Likewise.
29968         (dev_t): Likewise.
29969         (nlink_t): Likewise.
29970         (blkcnt_t): Likewise.
29971         (blkcnt64_t): Likewise.
29972         * manual/llio.texi (off_t): Likewise.
29973
29974         [BZ #3976]
29975         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29976         (__ieee754_exp): Save and restore rounding mode and use
29977         round-to-nearest for all computations.
29978         * math/libm-test.inc (exp_test_tonearest): New function.
29979         (exp_test_towardzero): Likewise.
29980         (exp_test_downward): Likewise.
29981         (exp_test_upward): Likewise.
29982         (main): Call the new functions.
29983         * sysdeps/i386/fpu/libm-test-ulps: Update.
29984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29985
29986 2012-03-01  Chris Demetriou  <cgd@google.com>
29987
29988         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29989         have predictable order.
29990
29991 2012-03-01  David S. Miller  <davem@davemloft.net>
29992
29993         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
29994
29995         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
29996         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
29997         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
29998         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
29999
30000         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
30001         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
30002         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
30003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
30004         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
30005         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
30006         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
30007         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
30008         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
30009
30010         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30011
30012         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
30013         * sysdeps/sparc/fpu/libm-test-ulps: to here.
30014         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
30015
30016         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
30017         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
30018         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30019         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
30020         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
30021         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
30022         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
30023         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
30024         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30025         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
30026         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
30027         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30028         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30029         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30030         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30031         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30032         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
30033         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
30034         * sysdeps/sparc/elf/configure: Regenerated.
30035
30036 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
30037
30038         * configure.in (AS, LD): Require binutils 2.20 or later.
30039         * configure: Regenerated.
30040         * manual/install.texi (Tools for Compilation): Give binutils 2.20
30041         as required minimum version.
30042         * INSTALL: Regenerated.
30043
30044         [BZ #2541]
30045         [BZ #4108]
30046         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
30047         before squaring exponent.
30048         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
30049         bottom long double and 27 bits of top long double before squaring
30050         exponent.
30051         * math/libm-test.inc (erfc_test): Add more tests.
30052         * sysdeps/i386/fpu/libm-test-ulps: Update.
30053         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30055
30056 2012-03-01  Kai Tietz  <ktietz@redhat.com>
30057
30058         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
30059         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
30060         containing bit-fields.
30061         * soft-fp/extended.h (_FP_UNION_E): Likewise.
30062         * soft-fp/single.h (_FP_UNION_S): Likewise.
30063         * soft-fp/double.h (_FP_UNION_D): Likewise.
30064
30065 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
30066
30067         [BZ #13786]
30068         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
30069         not include ../strcmp.S.
30070         [USE_AS_STRNCASECMP_L]: Likewise.
30071         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
30072         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
30073         * sysdeps/i386/i686/multiarch/strncase_l-c.c
30074         (__strncasecmp_l_ia32): Define as alias to
30075         __strncasecmp_l_nonascii.
30076
30077         [BZ #5794]
30078         * math/libm-test.inc (expm1_test): Add test for bug 5794.
30079         * sysdeps/i386/fpu/libm-test-ulps: Update.
30080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30081
30082         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
30083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30084
30085 2012-02-29  Jeff Law  <law@redhat.com>
30086
30087         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
30088         out of bounds read.
30089
30090 2012-02-29  Marek Polacek  <polacek@redhat.com>
30091
30092         [BZ #13706]
30093         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
30094         * elf/Makefile: Add rules to run tst-unused-dep.out.
30095
30096 2012-02-28  David S. Miller  <davem@davemloft.net>
30097
30098         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
30099         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
30100         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
30101         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
30102         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
30103         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
30104
30105 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
30106
30107         * math/libm-test.inc (llround_test): Move one test from
30108         lround_test.  Use TEST_f_L in moved test.
30109         (lround_test): Move misplaced test to llround_test.  Add testcase
30110         from bug 2561.
30111
30112 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
30113
30114         * sysdeps/x86_64/fpu/e_expf.S: New file.
30115         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
30116
30117 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
30118
30119         [BZ #13637]
30120         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
30121         of remain_len that may cause incomplete multi-byte character and
30122         false match.
30123         * posix/bug-regex33.c: New file.
30124         * posix/Makefile (tests): Add bug-regex33.
30125
30126 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
30127
30128         * manual/macros.texi: New file.
30129         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
30130         * manual/libc.texinfo: Include macros.texi.
30131         * manual/creatute.texi: Likewise.
30132         * manual/install.texi: Likewise.
30133         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
30134         @glibcadj{} in references to the GNU C Library.
30135         * manual/charset.texi: Likewise.
30136         * manual/conf.texi: Likewise.
30137         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
30138         when not using those macros.
30139         * manual/creature.texi: Likewise.
30140         * manual/crypt.texi: Likewise.
30141         * manual/errno.texi: Likewise.
30142         * manual/filesys.texi: Likewise.
30143         * manual/header.texi: Likewise.
30144         * manual/install.texi: Likewise.
30145         * manual/intro.texi: Likewise.
30146         * manual/io.texi: Likewise.
30147         * manual/job.texi: Likewise.
30148         * manual/lang.texi: Likewise.
30149         * manual/libc.texiinfo: Likewise.
30150         * manual/llio.texi: Likewise.
30151         * manual/locale.texi: Likewise.
30152         * manual/maint.texi: Likewise.
30153         * manual/math.texi: Likewise.
30154         * manual/memory.texi: Likewise.
30155         * manual/message.texi: Likewise.
30156         * manual/nss.texi: Likewise.
30157         * manual/pattern.texi: Likewise.
30158         * manual/process.texi: Likewise.
30159         * manual/resource.texi: Likewise.
30160         * manual/search.texi: Likewise.
30161         * manual/setjmp.texi: Likewise.
30162         * manual/signal.texi: Likewise.
30163         * manual/socket.texi: Likewise.
30164         * manual/startup.texi: Likewise.
30165         * manual/stdio.texi: Likewise.
30166         * manual/string.texi: Likewise.
30167         * manual/sysinfo.texi: Likewise.
30168         * manual/syslog.texi: Likewise.
30169         * manual/terminal.texi: Likewise.
30170         * manual/time.texi: Likewise.
30171         * manual/users.texi: Likewise.
30172         * INSTALL: Regenerated.
30173         * NOTES: Regenerated.
30174         * sysdeps/gnu/errlist.c: Regenerated.
30175
30176 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
30177
30178         * include/dirent.h: Include <dirstream.h> before
30179         <dirent/dirent.h>.
30180
30181 2012-02-28  David S. Miller  <davem@davemloft.net>
30182
30183         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
30184         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
30185         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
30186         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
30187
30188 2012-02-27  David S. Miller  <davem@davemloft.net>
30189
30190         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
30191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
30192         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
30193         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
30194
30195         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
30196         frame pointer instead of stack pointer relative arg slot.
30197         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30198         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30199         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30200
30201 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
30202
30203         [BZ #3992]
30204         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
30205
30206 2012-02-27  David S. Miller  <davem@davemloft.net>
30207
30208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
30209         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
30211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
30212         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30213         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30214         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
30215         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
30216
30217 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30218
30219         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
30220         later.  Allow versions 5-9.
30221         * configure: Regenerated.
30222         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
30223         required minimum version and 4.6 as recommended version.  Do not
30224         mention bugs in GCC 2.7 and 2.8.
30225         * INSTALL: Regenerated.
30226
30227 2012-02-27  David S. Miller  <davem@davemloft.net>
30228
30229         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
30230         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
30231         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
30232         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
30233         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
30234         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
30235         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
30236         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
30237
30238         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
30239         manipulate bits before adding and subtracting TWO112[sx].
30240         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
30241
30242 2012-02-27  Roland McGrath  <roland@hack.frob.com>
30243
30244         [BZ #13775]
30245         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
30246         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
30247         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
30248         being in POSIX, because they are in 1003.1-2008.
30249
30250         * rt/tst-aio.c: Include <fcntl.h>.
30251         * rt/tst-aio7.c: Likewise.
30252         * rt/tst-aio64.c: Likewise.
30253
30254         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
30255
30256 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30257
30258         * manual/install.texi (--with-headers): Describe headers as
30259         interface headers, not private headers.
30260         (Specific advice for GNU/Linux systems): Describe use of headers
30261         from "make headers_install", not private headers from older
30262         kernels.
30263         * INSTALL: Regenerated.
30264         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
30265         Change to 2.6.19.
30266         * sysdeps/unix/sysv/linux/configure: Regenerated.
30267
30268         * manual/llio.texi (fclean): Remove documentation.
30269
30270         * manual/Makefile (libc-texi-generated): New variable.  Include
30271         version.texi.
30272         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
30273         $(libc-texi-generated), not duplicated list of files.
30274         (version.texi, stamp-version): New rules.
30275         (realclean): Remove $(libc-texi-generated), not individual files
30276         from that list.  Do not remove dir-add.texinfo.
30277         * manual/libc.texinfo: Comment out uses of edition numbers and
30278         references to printed manual.  Remove last-updated dates.
30279         (EDITION): Comment out.
30280         (ISBN): Likewise.
30281         (VERSION, UPDATED): Remove.
30282         (version.texi): Include.
30283
30284 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
30285
30286         * sysdeps/posix/spawni.c: Include <signal.h>.
30287         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
30288         * sysdeps/pthread/aio_fsync.c: Likewise.
30289
30290 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
30291
30292         * conform/Makefile (tests): Run only when not cross-compiling and
30293         when fast-check is not defined.
30294
30295         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
30296         * conform/data/limits.h-data: Fixes for POSIX2008.
30297         * conform/run-conformtest.sh: Run all tests.
30298         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
30299         headers.
30300         * include/bits/dlfcn.h: Likewise.
30301         * include/langinfo.h: Likewise.
30302         * include/monetary.h: Likewise.
30303         * include/sys/poll.h: Likewise.
30304
30305         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
30306         for __USE_GNU.
30307         * posix/spawn.h: Define __need_sigset_t.
30308         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
30309         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
30310         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
30311         to get sigevent_t only.
30312         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
30313         only for __USE_GNU.
30314         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30315         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30316         process_vm_writev only for __USE_GNU.
30317         * termios/termios.h: Declare tcgetsid also for POSIX2008.
30318
30319         * conform/Makefile: For now ignore errors from run-conformtest.
30320         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
30321         POSIX to avoid namespace pollution.  Don't prepend headers.
30322         * conform/data/aio.h-data: Fixes for POSIX testing.
30323         * conform/data/fcntl.h-data: Likewise.
30324         * conform/data/glob.h-data: Likewise.
30325         * conform/data/grp.h-data: Likewise.
30326         * conform/data/pthread.h-data: Likewise.
30327         * conform/data/pwd.h-data: Likewise.
30328         * conform/data/signal.h-data: Likewise.
30329         * conform/data/spawn.h-data: Likewise.
30330         * conform/data/stdio.h-data: Likewise.
30331         * conform/data/stdlib.h-data: Likewise.
30332         * conform/data/stropts.h-data: Likewise.
30333         * conform/data/sys/mman.h-data: Likewise.
30334         * conform/data/sys/stat.h-data: Likewise.
30335         * conform/data/sys/types.h-data: Likewise.
30336         * conform/data/sys/wait.h-data: Likewise.
30337         * conform/data/time.h-data: Likewise.
30338         * conform/data/unistd.h-data: Likewise.
30339         * conform/data/utime.h-data: Likewise.
30340
30341         * io/sys/stat.h: fchmod was always in POSIX.
30342         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
30343         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
30344         * rt/aio.h: Define __need_timespec before including <time.h>.
30345         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
30346         struct.  Add forward declaration of pthread_attr_t and use it in
30347         sigevent.
30348         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30349         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30350         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
30351         always remove CLK_TCK definition.
30352
30353 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
30354
30355         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
30356
30357 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
30358
30359         * conform/run-conformtest.sh: New file.
30360         * conform/Makefile: Run run-conformtest for tests.
30361         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30362         support.
30363
30364         * conform/data/uchar.h-data: New file.
30365         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30366         * conform/data/arpa/inet.h-data: Likewise.
30367         * conform/data/assert.h-data: Likewise.
30368         * conform/data/complex.h-data: Likewise.
30369         * conform/data/cpio.h-data: Likewise.
30370         * conform/data/ctype.h-data: Likewise.
30371         * conform/data/dirent.h-data: Likewise.
30372         * conform/data/dlfcn.h-data: Likewise.
30373         * conform/data/errno.h-data: Likewise.
30374         * conform/data/fcntl.h-data: Likewise.
30375         * conform/data/float.h-data: Likewise.
30376         * conform/data/fmtmsg.h-data: Likewise.
30377         * conform/data/fnmatch.h-data: Likewise.
30378         * conform/data/ftw.h-data: Likewise.
30379         * conform/data/glob.h-data: Likewise.
30380         * conform/data/grp.h-data: Likewise.
30381         * conform/data/iconv.h-data: Likewise.
30382         * conform/data/inttypes.h-data: Likewise.
30383         * conform/data/langinfo.h-data: Likewise.
30384         * conform/data/libgen.h-data: Likewise.
30385         * conform/data/limits.h-data: Likewise.
30386         * conform/data/locale.h-data: Likewise.
30387         * conform/data/math.h-data: Likewise.
30388         * conform/data/monetary.h-data: Likewise.
30389         * conform/data/mqueue.h-data: Likewise.
30390         * conform/data/ndbm.h-data: Likewise.
30391         * conform/data/net/if.h-data: Likewise.
30392         * conform/data/netdb.h-data: Likewise.
30393         * conform/data/netinet/in.h-data: Likewise.
30394         * conform/data/nl_types.h-data: Likewise.
30395         * conform/data/poll.h-data: Likewise.
30396         * conform/data/pthread.h-data: Likewise.
30397         * conform/data/pwd.h-data: Likewise.
30398         * conform/data/regex.h-data: Likewise.
30399         * conform/data/sched.h-data: Likewise.
30400         * conform/data/search.h-data: Likewise.
30401         * conform/data/semaphore.h-data: Likewise.
30402         * conform/data/setjmp.h-data: Likewise.
30403         * conform/data/signal.h-data: Likewise.
30404         * conform/data/spawn.h-data: Likewise.
30405         * conform/data/stdarg.h-data: Likewise.
30406         * conform/data/stdio.h-data: Likewise.
30407         * conform/data/stdlib.h-data: Likewise.
30408         * conform/data/string.h-data: Likewise.
30409         * conform/data/strings.h-data: Likewise.
30410         * conform/data/stropts.h-data: Likewise.
30411         * conform/data/sys/ipc.h-data: Likewise.
30412         * conform/data/sys/mman.h-data: Likewise.
30413         * conform/data/sys/msg.h-data: Likewise.
30414         * conform/data/sys/resource.h-data: Likewise.
30415         * conform/data/sys/select.h-data: Likewise.
30416         * conform/data/sys/sem.h-data: Likewise.
30417         * conform/data/sys/shm.h-data: Likewise.
30418         * conform/data/sys/socket.h-data: Likewise.
30419         * conform/data/sys/stat.h-data: Likewise.
30420         * conform/data/sys/statvfs.h-data: Likewise.
30421         * conform/data/sys/time.h-data: Likewise.
30422         * conform/data/sys/timeb.h-data: Likewise.
30423         * conform/data/sys/times.h-data: Likewise.
30424         * conform/data/sys/types.h-data: Likewise.
30425         * conform/data/sys/uio.h-data: Likewise.
30426         * conform/data/sys/un.h-data: Likewise.
30427         * conform/data/sys/utsname.h-data: Likewise.
30428         * conform/data/sys/wait.h-data: Likewise.
30429         * conform/data/syslog.h-data: Likewise.
30430         * conform/data/tar.h-data: Likewise.
30431         * conform/data/termios.h-data: Likewise.
30432         * conform/data/utime.h-data: Likewise.
30433         * conform/data/utmpx.h-data: Likewise.
30434         * conform/data/varargs.h-data: Likewise.
30435         * conform/data/wchar.h-data: Likewise.
30436         * conform/data/wctype.h-data: Likewise.
30437         * conform/data/wordexp.h-data: Likewise.
30438
30439         * include/stropts.h: New file.
30440         * include/uchar.h: New file.
30441         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30442         * include/assert.h: Likewise.
30443         * include/ctype.h: Likewise.
30444         * include/dirent.h: Likewise.
30445         * include/dlfcn.h: Likewise.
30446         * include/fcntl.h: Likewise.
30447         * include/fnmatch.h: Likewise.
30448         * include/glob.h: Likewise.
30449         * include/grp.h: Likewise.
30450         * include/libio.h: Likewise.
30451         * include/locale.h: Likewise.
30452         * include/math.h: Likewise.
30453         * include/net/if.h: Likewise.
30454         * include/netdb.h: Likewise.
30455         * include/netinet/in.h: Likewise.
30456         * include/pthread.h: Likewise.
30457         * include/pwd.h: Likewise.
30458         * include/regex.h: Likewise.
30459         * include/sched.h: Likewise.
30460         * include/search.h: Likewise.
30461         * include/setjmp.h: Likewise.
30462         * include/signal.h: Likewise.
30463         * include/stdio.h: Likewise.
30464         * include/stdlib.h: Likewise.
30465         * include/string.h: Likewise.
30466         * include/sys/cdefs.h: Likewise.
30467         * include/sys/mman.h: Likewise.
30468         * include/sys/msg.h: Likewise.
30469         * include/sys/resource.h: Likewise.
30470         * include/sys/select.h: Likewise.
30471         * include/sys/socket.h: Likewise.
30472         * include/sys/stat.h: Likewise.
30473         * include/sys/statvfs.h: Likewise.
30474         * include/sys/time.h: Likewise.
30475         * include/sys/times.h: Likewise.
30476         * include/sys/uio.h: Likewise.
30477         * include/sys/utsname.h: Likewise.
30478         * include/sys/wait.h: Likewise.
30479         * include/termios.h: Likewise.
30480         * include/time.h: Likewise.
30481         * include/ulimit.h: Likewise.
30482         * include/unistd.h: Likewise.
30483         * include/utime.h: Likewise.
30484         * include/wchar.h: Likewise.
30485         * include/wctype.h: Likewise.
30486         * include/wordexp.h: Likewise.
30487
30488         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30489
30490         * time/time.h: TIME_UTC must be a macro.
30491         Make timespec_get available for ISO C11 only as well.
30492
30493 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30494
30495         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30496         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30497
30498 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30499
30500         * configure.in: Use -o not -a in test for unsupported multi-arch.
30501
30502 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30503
30504         * manual/texinfo.tex: Update to version 2012-01-19.16.
30505
30506 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30507
30508         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30509
30510 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30511
30512         [BZ #13738]
30513         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30514         * manual/fdl-1.3.texi: New file.
30515         * manual/fdl-1.1.texi: File removed.
30516
30517         [BZ #13738]
30518         * manual/libc.texinfo (FDL_VERSION): New @set.
30519         Use it for mention of FDL in cover text.
30520         (Documentation License): Use it in @include file name.
30521
30522 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30523             Roland McGrath  <roland@hack.frob.com>
30524
30525         [BZ #5461]
30526         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30527         not LONG_LONG_MAX and LONG_LONG_MIN.
30528         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30529         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30530         name.
30531         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30532
30533 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30534
30535         [BZ #2547]
30536         [BZ #11365]
30537         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30538         manipulate bits before adding and subtracting TWO23[sx].
30539         * math/libm-test.inc (nearbyint_test): Add more tests.
30540
30541 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30542
30543         [BZ #2548]
30544         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30545         bits before adding and subtracting TWO23[sx].
30546         * math/libm-test.inc (rint_test): Add more tests.
30547         (rint_test_tonearest): Likewise.
30548         (rint_test_towardzero): Likewise.
30549         (rint_test_downward): Likewise.
30550         (rint_test_upward: Likewise.
30551
30552 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30553
30554         [BZ #10110]
30555         * include/stdc-predef.h: New file.  Extracted from features.h.
30556         * include/features.h: Include stdc-predef.h.
30557         * Makefile (headers): Add stdc-predef.h.
30558         * CONFORMANCE (Compiler limitations): Update.
30559
30560 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30561
30562         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30563
30564 2012-02-21  David S. Miller  <davem@davemloft.net>
30565
30566         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30567         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30568
30569 2012-02-20  David S. Miller  <davem@davemloft.net>
30570
30571         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30572         using a normal save/restore sequence, rather than allocating a
30573         dummy stack frame just to store a frame pointer and restore.
30574         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30575
30576 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30577
30578         * manual/install.texi: Fix stray word in line-wrapped comment.
30579
30580 2012-02-20  David S. Miller  <davem@davemloft.net>
30581
30582         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30583         both binutils and gcc support GOTDATA.
30584
30585         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30586         "rd %pc" in the PIC register setup sequences.
30587
30588         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30589         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30590         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30591         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30592         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30593         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30594         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30595         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30596         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30597         (SYSCALL_ERROR_HANDLER): Likewise.
30598         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30599         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30600         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30601         (SYSCALL_ERROR_HANDLER): Likewise.
30602
30603         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30604         (HAVE_GCC_GOTDATA): New.
30605         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30606         relocation support in both binutils and gcc.
30607         * sysdeps/sparc/elf/configure: Regenerate.
30608
30609         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30610         * sysdeps/sparc/sparc32/elf/configure: Delete.
30611         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30612         * sysdeps/sparc/sparc64/elf/configure: Delete.
30613         * sysdeps/sparc/elf/configure.in: New file.
30614         * sysdeps/sparc/elf/configure: Generate.
30615
30616         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30617         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30618         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30619         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30620         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30621
30622 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30623
30624         * manual/install.texi: Do not mention specific glibc version
30625         numbers.
30626         * manual/libc.texinfo (VERSION, UPDATED): Update.
30627         (@copying): Use @copyright{} and range of years.
30628
30629 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30630
30631         [BZ #13695]
30632         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30633         [crti.S not in sysdirs] (generated): Do not append.
30634         [crti.S not in sysdirs] (omit-deps): Likewise.
30635         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30636         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30637         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30638         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30639         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30640         Likewise.
30641         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30642         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30643         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30644         * csu/defs.awk: Remove file.
30645         * sysdeps/generic/initfini.c: Likewise.
30646         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30647         variable.
30648         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30649         Likewise.
30650
30651 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30652
30653         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30654         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30655         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30656         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30657         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30658         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30659         <bits/epoll.h>.
30660         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30661         (__EPOLL_PACKED): Define to empty if not defined by
30662         <bits/epoll.h>.
30663         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30664         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30665         bits/epoll.h.
30666
30667 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30668
30669         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30670         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30671         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30672         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30673         <bits/timerfd.h>.
30674         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30675         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30676         bits/timerfd.h.
30677
30678 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30679
30680         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30681         in C locale.
30682         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30683         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30684         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30686
30687 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30688
30689         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30690         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30691
30692 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30693
30694         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30695         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30696         defined.
30697         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30698         Likewise.
30699         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30700         entry for 2.16.
30701
30702 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30703
30704         * math/w_acos.c: Use non-signaling floating-point comparisons.
30705         * math/w_acosf.c: Likewise.
30706         * math/w_acosh.c: Likewise.
30707         * math/w_acoshf.c: Likewise.
30708         * math/w_acoshl.c: Likewise.
30709         * math/w_acosl.c: Likewise.
30710         * math/w_asin.c: Likewise.
30711         * math/w_asinf.c: Likewise.
30712         * math/w_asinl.c: Likewise.
30713         * math/w_atanh.c: Likewise.
30714         * math/w_atanhf.c: Likewise.
30715         * math/w_atanhl.c: Likewise.
30716         * math/w_exp2.c: Likewise.
30717         * math/w_exp2f.c: Likewise.
30718         * math/w_exp2l.c: Likewise.
30719         * math/w_j0.c: Likewise.
30720         * math/w_j0f.c: Likewise.
30721         * math/w_j0l.c: Likewise.
30722         * math/w_j1.c: Likewise.
30723         * math/w_j1f.c: Likewise.
30724         * math/w_j1l.c: Likewise.
30725         * math/w_jn.c: Likewise.
30726         * math/w_jnf.c: Likewise.
30727         * math/w_log.c: Likewise.
30728         * math/w_log10.c: Likewise.
30729         * math/w_log10f.c: Likewise.
30730         * math/w_log10l.c: Likewise.
30731         * math/w_log2.c: Likewise.
30732         * math/w_log2f.c: Likewise.
30733         * math/w_log2l.c: Likewise.
30734         * math/w_logf.c: Likewise.
30735         * math/w_logl.c: Likewise.
30736         * math/w_sqrt.c: Likewise.
30737         * math/w_sqrtf.c: Likewise.
30738         * math/w_sqrtl.c: Likewise.
30739         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30740         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30741         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30742         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30743         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30744
30745 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30746
30747         [BZ #9739]
30748         * manual/string.texi (strnlen): Use correct parameter name in
30749         equivalent expression.
30750
30751 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30752
30753         [BZ #11174]
30754         * manual/users.texi (seteuid): Consistently use neweuid for
30755         argument name.
30756
30757 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30758
30759         [BZ #13704]
30760         * manual/nss.texi (Services in the NSS configuration): Correct
30761         list of services in example configuration file.
30762
30763 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30764
30765         [BZ #11322]
30766         * manual/arith.texi: Remove statements about negative zero
30767         behaving identically to zero.
30768
30769 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30770
30771         [BZ #5993]
30772         * manual/install.texi: Do not document upgrading from libc5.
30773
30774 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30775
30776         [BZ #4596]
30777         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30778
30779 2012-02-18  David S. Miller  <davem@davemloft.net>
30780
30781         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30782         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30783         %o7 across the call.
30784         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30785         instead.
30786         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30787         SETUP_PIC_REG_LEAF.
30788         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30789         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30790         * sysdeps/sparc/crtn.S: Likewise.
30791
30792 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30793
30794         * aout/Makefile: Remove.
30795
30796 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30797
30798         [BZ #13058]
30799         * manual/examples/argp-ex1.c (main): Format definition in GNU
30800         style.
30801         * manual/examples/argp-ex2.c (main): Likewise.
30802         * manual/examples/argp-ex3.c (main): Likewise.
30803         * manual/examples/argp-ex4.c (main): Likewise.
30804         * manual/examples/longopt.c (main): Use new-style prototype
30805         definition.
30806         * manual/examples/strncat.c (main): Specify return type and use
30807         (void) for arguments.
30808         * manual/examples/subopt.c (main): Use char **argv argument.
30809
30810 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30811
30812         [BZ #5077]
30813         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30814         rounding modes.
30815
30816 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30817
30818         [BZ #6907]
30819         * manual/string.texi (strchr): Change when strchrnul is
30820         recommended.
30821
30822 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30823
30824         [BZ #174]
30825         * manual/locale.texi (setlocale): Document LOCPATH.
30826
30827 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30828
30829         [BZ #10210]
30830         * manual/process.texi (execle): Move @dots{} before last argument.
30831
30832 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30833
30834         [BZ #12047]
30835         * manual/charset.texi (Generic Charset Conversion): Fix typo
30836         (LC_TYPE -> LC_CTYPE).
30837
30838 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30839
30840         [BZ #5805]
30841         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30842         (scalbnf): Likewise.
30843         (scalbnl): Likewise.
30844         (scalbln): Likewise.
30845         (scalblnf): Likewise.
30846         (scalblnl): Likewise.
30847         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30848         (vwarnx): Likewise.
30849         (verr): Likewise.
30850         (verrx): Likewise.
30851         * manual/filesys.texi (telldir): Use braces around return type.
30852         * manual/llio.texi (mmap): Add space after comma.
30853         (mmap64): Likewise.
30854         * manual/math.texi (jn): Use @var{} on parameter names.
30855         (jnf): Likewise.
30856         (jnl): Likewise.
30857         (yn): Likewise.
30858         (ynf): Likewise.
30859         (ynl): Likewise.
30860         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30861         line.
30862         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30863         "...".
30864         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30865         (sched_get_priority_max): Likewise.
30866         * manual/signal.texi (sigvec): Add space after comma.
30867         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30868         names.
30869         (if_indextoname): Likewise.
30870         (if_freenameindex): Likewise.
30871         (sendto): Use ',' instead of '.' in prototype.
30872         * manual/startup.texi (syscall): Use @dots{} instead of literal
30873         "...".
30874         * manual/stdio.texi (__fpending): Separate initial words of
30875         paragraph from @deftypefun line.
30876         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30877         "...".
30878         (vsyslog): Use @var{} on parameter names.
30879         * manual/terminal.texi (stty): Use @var{} on parameter names.
30880         * manual/users.texi (getutmp): Use @var{} on parameter names.
30881         (getutmpx): Likewise.
30882
30883 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30884
30885         [BZ #6884]
30886         * manual/stdio.texi (fopen): Fix typos in description of
30887         ",ccs=STRING".
30888
30889 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30890
30891         [BZ #4026]
30892         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30893         get clock_id definition.
30894
30895 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30896
30897         [BZ #4822]
30898         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30899         (madvise): Cast every argument to void on its own.
30900
30901 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30902
30903         [BZ #9902]
30904         * manual/startup.texi (Exit Status): Fix typo.
30905
30906 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30907
30908         [BZ #10140]
30909         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30910         * manual/examples/argp-ex2.c: Likewise.
30911         * manual/examples/argp-ex3.c: Likewise.
30912
30913 2012-02-16  Richard Henderson  <rth@redhat.com>
30914
30915         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30916         * sysdeps/s390/s390-32/initfini.c: Remove.
30917         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30918         * sysdeps/s390/s390-64/initfini.c: Remove.
30919
30920 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30921
30922         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30923         compiler output for sysdeps/generic/initfini.c.
30924         * sysdeps/sh/elf/initfini.c: Remove file.
30925
30926 2012-02-16  David S. Miller  <davem@davemloft.net>
30927
30928         [BZ #11494]
30929         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30930
30931         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30932         * sysdeps/sparc/crti.S: New file.
30933         * sysdeps/sparc/crtn.S: New file.
30934         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30935         * sysdeps/sparc/sparc64/Makefile: Likewise.
30936
30937 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30938
30939         [BZ #3335]
30940         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30941
30942 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30943
30944         [BZ #4822]
30945         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30946
30947         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30948         (write, read, close): Likewise.
30949         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30950
30951 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30952
30953         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30954         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30955         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30956         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30957         <bits/signalfd.h>.
30958         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30959         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30960         bits/signalfd.h.
30961
30962 2012-02-14  Marek Polacek  <polacek@redhat.com>
30963
30964         * sysdeps/x86_64/crti.S: New file.
30965         * sysdeps/x86_64/crtn.S: New file.
30966         * sysdeps/x86_64/elf/initfini.c: Remove file.
30967
30968 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30969
30970         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30971         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30972         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30973         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30974         <bits/inotify.h>.
30975         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30976         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30977         bits/inotify.h.
30978
30979 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30980
30981         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30982         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30983         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30984         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30985         <bits/eventfd.h>.
30986         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30987         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30988         bits/eventfd.h.
30989
30990 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
30991
30992         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
30993         __feraiseexcept instead of feraiseexcept.
30994
30995         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
30996         nanosleep invocations.
30997         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
30998         strings, and add error checking for a nanosleep invocations.
30999
31000 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31001
31002         Replace FSF snail mail address with URLs, as per GNU coding standards.
31003         Most of the snail mail addresses were wrong anyway, and omitting
31004         them makes the source code easier to maintain.  Almost all of the
31005         changes are to license notices and to locale LC_IDENTIFICATION
31006         addresses, except for this one:
31007         * manual/libc.texinfo: In "Published by", give the FSF's URL,
31008         not its snail mail address.
31009
31010 2012-02-09  Richard Henderson  <rth@twiddle.net>
31011
31012         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
31013         of kernel-features.h.
31014
31015         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
31016
31017 2012-02-08  Marek Polacek  <polacek@redhat.com>
31018
31019         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
31020         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
31021         * sysdeps/gnu/_G_config.h: Likewise.
31022         * sysdeps/generic/_G_config.h: Likewise.
31023
31024 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
31025
31026         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
31027         tests.
31028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31029
31030         * sysdeps/powerpc/powerpc32/crti.S: New file.
31031         * sysdeps/powerpc/powerpc32/crtn.S: New file.
31032         * sysdeps/powerpc/powerpc64/crti.S: New file.
31033         * sysdeps/powerpc/powerpc64/crtn.S: New file.
31034
31035         * Makeconfig (have-initfini): Don't set.
31036         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
31037         * configure.in (nopic_initfini): Don't substitute.
31038         * config.h.in (HAVE_INITFINI): Don't #undef.
31039         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
31040         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
31041
31042 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
31043
31044         Support crti.S and crtn.S provided directly by architectures.
31045         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
31046         [crti.S in sysdirs] (omit-deps): Likewise.
31047         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
31048         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
31049         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
31050         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
31051         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
31052         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
31053         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
31054         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
31055         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
31056         compiler output for sysdeps/generic/initfini.c.
31057         * sysdeps/i386/elf/Makefile: Remove file.
31058         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
31059
31060 2012-02-07  Marek Polacek  <polacek@redhat.com>
31061
31062         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
31063         * sysdeps/gnu/_G_config.h: Likewise.
31064         * sysdeps/mach/hurd/_G_config.h: Likewise.
31065
31066 2012-02-07  Marek Polacek  <polacek@redhat.com>
31067
31068         * math/Makefile (tests): Add tst-CMPLX2.
31069         * math/tst-CMPLX2.c: New file.
31070
31071 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
31072
31073         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
31074
31075         * math/libm-test.inc (jn_test): Add missing L suffix.
31076
31077 2012-02-06  Marek Polacek  <polacek@redhat.com>
31078
31079         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
31080         * sysdeps/i386/fpu/e_powf.S: Likewise.
31081         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
31082         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
31083         * sysdeps/i386/fpu/e_acosh.S: Likewise.
31084         * sysdeps/i386/fpu/e_pow.S: Likewise.
31085         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
31086         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
31087         * sysdeps/i386/fpu/s_expm1.S: Likewise.
31088         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
31089         * sysdeps/i386/fpu/e_log2.S: Likewise.
31090         * sysdeps/i386/fpu/e_log2l.S: Likewise.
31091         * sysdeps/i386/fpu/e_scalb.S: Likewise.
31092         * sysdeps/i386/fpu/e_powl.S: Likewise.
31093         * sysdeps/i386/fpu/s_log1p.S: Likewise.
31094         * sysdeps/i386/fpu/e_log10f.S: Likewise.
31095         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
31096         * sysdeps/i386/fpu/e_logl.S: Likewise.
31097         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
31098         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
31099         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
31100         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
31101         * sysdeps/i386/fpu/e_log2f.S: Likewise.
31102         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
31103         * sysdeps/i386/fpu/e_log.S: Likewise.
31104         * sysdeps/i386/fpu/s_cexp.S: Likewise.
31105         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
31106         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
31107         * sysdeps/i386/fpu/e_logf.S: Likewise.
31108         * sysdeps/i386/fpu/e_log10l.S: Likewise.
31109         * sysdeps/i386/fpu/e_atanh.S: Likewise.
31110         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
31111         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
31112         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
31113         * sysdeps/i386/fpu/e_log10.S: Likewise.
31114         * sysdeps/i386/fpu/s_frexp.S: Likewise.
31115         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
31116         * sysdeps/i386/fpu/s_asinh.S: Likewise.
31117         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
31118         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
31119         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
31120         * sysdeps/i386/asm-syntax.h: Likewise.
31121         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
31122         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
31123         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
31124         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
31125         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
31126         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
31127         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
31128         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
31129         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
31130         * sysdeps/powerpc/sysdep.h: Likewise.
31131         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
31132         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
31133
31134 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31135
31136         [BZ #411]
31137         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
31138
31139 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31140
31141         * sysdeps/i386/sysdep.h: Include <features.h>.
31142         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
31143         version.
31144
31145 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
31146
31147         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
31148         Define.
31149         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
31150         LOAD_PIC_REG_STR.
31151
31152 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31153
31154         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
31155         (SETUP_PIC_REG): Use GET_PC_THUNK.
31156         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
31157         macro.
31158
31159 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31160
31161         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
31162         for non-PIC compilation.
31163         (SETUP_PIC_REG): Add .p2align directive.
31164         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
31165         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
31166         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31167         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31168         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
31169         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31170         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
31171         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31172         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31173         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31174         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31175         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31176         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31177         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31178         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31179         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
31180         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
31181         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31182         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31183         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31184         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31185         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
31186         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31187         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
31188         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
31189         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
31190         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31191         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
31192         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31193         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31194         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31195         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31196         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31197         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31198         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31199         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31200         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31201         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31202         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31203         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31204         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31205
31206 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31207
31208         * math/tst-CMPLX.c: Include <stdio.h>.
31209
31210 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
31211
31212         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
31213         float.
31214         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31215         * sysdeps/sparc/bits/mathdef.h: Likewise.
31216
31217 2012-01-31  Marek Polacek  <polacek@redhat.com>
31218
31219         * libio/libio.h: Don't define _PARAMS.
31220         * locale/programs/config.h: Don't define PARAMS.
31221         * stdlib/strtol_l.c: Likewise.
31222         (__strtol_l): Remove PARAMS from the prototype.
31223
31224 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
31225
31226         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
31227         names.  Just use the correct names.  Remove unnecessary wrapper
31228         functions.
31229         * malloc/arena.c: Likewise.
31230         * malloc/hooks.c: Likewise.
31231
31232         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
31233         ARENA_TEST says not to.  Simplify test for creation of a new arena.
31234         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
31235
31236 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
31237
31238         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
31239         into tail calls.
31240         (update_get_addr): New function.
31241         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
31242         GET_ADDR_MODULE parameter.
31243
31244 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31245
31246         * crypt/cert.c: Remove __STDC__ conditionals.
31247         * crypt/crypt-entry.c: Likewise.
31248         * crypt/crypt_util.c: Likewise.
31249         * libio/filedoalloc.c: Likewise.
31250         * libio/fileops.c: Likewise.
31251         * libio/genops.c: Likewise.
31252         * libio/iofclose.c: Likewise.
31253         * libio/iofdopen.c: Likewise.
31254         * libio/iofopen.c: Likewise.
31255         * libio/iofopen64.c: Likewise.
31256         * libio/iogetdelim.c: Likewise.
31257         * libio/iopopen.c: Likewise.
31258         * libio/obprintf.c: Likewise.
31259         * libio/oldfileops.c: Likewise.
31260         * libio/oldiofclose.c: Likewise.
31261         * libio/oldiofdopen.c: Likewise.
31262         * libio/oldiofopen.c: Likewise.
31263         * libio/oldiopopen.c: Likewise.
31264         * libio/wfiledoalloc.c: Likewise.
31265         * libio/wgenops.c: Likewise.
31266         * locale/programs/xmalloc.c: Likewise.
31267         * misc/syslog.c: Likewise.
31268         * stdio-common/xbug.c: Likewise.
31269         * string/memchr.c: Likewise.
31270         * string/memcmp.c: Likewise.
31271         * string/memrchr.c: Likewise.
31272         * string/rawmemchr.c: Likewise.
31273         * sysdeps/posix/getcwd.c: Likewise.
31274         * time/strftime_l.c: Likewise.
31275
31276 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31277
31278         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
31279         * config.make.in (config-cflags-sse2avx): Define.
31280         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
31281         Fix typo.
31282
31283 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
31284
31285         * scripts/config.guess: Update from upstream config git repository.
31286         * scripts/config.sub: Likewise.
31287
31288 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
31289
31290         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
31291         (EM_NUM): Update.
31292         (R_TILEPRO_*, R_TILEGX_*): New macros.
31293
31294         * scripts/firstversions.awk: Fix bug in version range handling.
31295
31296         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
31297
31298         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
31299
31300         * include/sys/epoll.h: New file.
31301         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
31302         libc_hidden_def.
31303
31304 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
31305
31306         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
31307         Avoid unnecessary __WORDSIZE == 64 test.
31308         (fmaxf): Use VEX format if possible.
31309         (fmax): Likewise.
31310         (fminf): Likewise.
31311         (fmin): Likewise.
31312
31313         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
31314         * math/math_private.h: Remove libc_fegetround* and
31315         libc_fesetround*.
31316         * sysdeps/i386/configure.in: Check for -msse2avx.
31317         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
31318         also if SSE2AVX is defined.
31319         Remove libc_fegetround* and libc_fesetround*.
31320         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
31321         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
31322         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
31323         of HAS_YMM_USABLE.
31324         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31325         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31326         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31327         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31328         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31329
31330         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
31331
31332 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31333
31334         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
31335         size is not set.
31336         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31337
31338 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
31339
31340         [BZ #13618]
31341         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
31342         relocation.
31343         * Makeconfig (libm): Define.
31344         * elf/Makefile: Add rules to build and run tst-relsort1.
31345         * elf/tst-relsort1.c: New file.
31346         * elf/tst-relsort1mod1.c: New file.
31347         * elf/tst-relsort1mod2.c: New file.
31348
31349 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
31350
31351         * math/s_ldexp.c: Remove __STDC__ conditionals.
31352         * math/s_ldexpf.c: Likewise.
31353         * math/s_ldexpl.c: Likewise.
31354         * math/s_nextafter.c: Likewise.
31355         * math/s_nexttowardf.c: Likewise.
31356         * math/s_significand.c: Likewise.
31357         * math/s_significandf.c: Likewise.
31358         * math/s_significandl.c: Likewise.
31359         * math/w_jnl.c: Likewise.
31360         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
31361         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31362         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31363         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31364         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31365         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31366         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31367         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31368         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31369         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31370         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31371         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31372         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31373         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31374         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31375         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31376         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31377         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31378         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31379         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31380         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31381         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31382         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31383         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31384         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31385         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31386         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31387         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31388         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31389         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31390         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31391         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31392         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31393         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31394         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31395         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31396         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31397         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31398         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31399         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31400         * sysdeps/ieee754/k_standard.c: Likewise.
31401         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31402         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31403         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31404         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31405         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31406         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31407         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31408         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31409         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31410         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31411         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31412         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31413         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31414         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31415         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31416         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31417         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31418         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31419         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31420         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31421         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31422         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31423         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31424         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31425         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31426         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31427         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31428         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31429         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31430         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31431         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31432         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31433         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31434         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31435         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31436         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31437         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31438         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31439         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31440         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31441         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31442         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31443         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31444         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31445         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31446         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31447         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31448         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31449         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31450         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31451         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31452         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31453         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31454         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31455         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31456         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31457         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31458         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31459         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31460         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31461         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31462         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31463         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31464         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31465         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31466         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31467         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31468         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31469         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31470         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31471         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31472         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31473         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31474         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31475         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31476         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31477         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31478         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31479         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31480         * sysdeps/ieee754/s_matherr.c: Likewise.
31481         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31482         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31483         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31484         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31485
31486 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31487
31488         * crypt/md5.h: Remove __STDC__ conditionals.
31489         * libio/libioP.h: Likewise.
31490         * locale/programs/config.h: Likewise.
31491         * sysdeps/generic/sysdep.h: Likewise.
31492         * sysdeps/i386/asm-syntax.h: Likewise.
31493         * sysdeps/s390/asm-syntax.h: Likewise.
31494         * sysdeps/unix/sysdep.h: Likewise.
31495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31497
31498 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31499
31500         * libio/libio.h: Remove __STDC__ conditionals.
31501         * malloc/obstack.h: Likewise.
31502         * math/complex.h: Likewise.
31503         * math/math.h: Likewise.
31504         * sysdeps/generic/_G_config.h: Likewise.
31505         * sysdeps/gnu/_G_config.h: Likewise.
31506         * sysdeps/mach/hurd/_G_config.h: Likewise.
31507         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31508         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31509         * sysdeps/sparc/bits/mathdef.h: Likewise.
31510
31511 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31512
31513         [BZ #13583]
31514         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31515         Clean up HAS_* macros.
31516         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31517         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31518         possible.
31519         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31520         HAS_AVX.
31521         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31522         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31523         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31524         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31525         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31526
31527 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31528
31529         * elf/tst-unique3.cc (gets): Remove declaration.
31530         * elf/tst-unique3lib.cc (gets): Likewise.
31531         * elf/tst-unique3lib2.cc (gets): Likewise.
31532         * elf/tst-unique4.cc (gets): Likewise.
31533
31534 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31535
31536         * include/stdio.h: Add C++ protection.  Add gets declarations and
31537         definitions.
31538         * debug/tst-chk1.c: Don't declare gets here.
31539         * stdio-common/tst-gets.c: Likewise.
31540
31541 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31542
31543         * posix/glob: Remove directory.
31544
31545 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31546
31547         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31548
31549 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31550
31551         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31552         of the non-standard EPFNOSUPPORT.
31553
31554 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31555
31556         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31557         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31558         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31559
31560 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31561
31562         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31563
31564 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31565
31566         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31567         transient errors.
31568         * nscd/grpcache.c (cache_addgr): Likewise.
31569         * nscd/hstcache.c (cache_addhst): Likewise.
31570         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31571         * nscd/pwdcache.c (cache_addpw): Likewise.
31572         * nscd/servicescache.c (cache_addserv): Likewise.
31573
31574 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31575
31576         * malloc/malloc.c: Various cleanups.
31577         * malloc/hooks.c: Likewise.
31578
31579         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31580         * stdlib/bug-fmtmsg1.c: New file.
31581
31582         * stdlib/fmtmsg.c (init): Add missing unlock.
31583         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31584
31585 2012-01-12  Marek Polacek  <polacek@redhat.com>
31586
31587         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31588         and _GNU_SOURCE.
31589
31590 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31591
31592         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31593         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31594         macro to ensure uniqueness of label name.
31595         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31596         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31597
31598 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31599
31600         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31601
31602         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31603         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31604         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31605         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31606
31607 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31608
31609         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31610
31611         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31612         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31613         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31614
31615         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31616
31617         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31618         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31619         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31620         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31621
31622         * math/bits/math-finite.h: Add ldexp support.
31623
31624 2012-01-10  Marek Polacek  <polacek@redhat.com>
31625
31626         * locale/programs/localedef.h (show_archive_content): Add noreturn
31627         attribute.
31628
31629 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31630
31631         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31632
31633 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31634
31635         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31636
31637         * io/Makefile (headers): Add bits/poll2.h.
31638
31639 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31640
31641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31642         typo #include statement.
31643
31644 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31645
31646         * include/sys/cdefs.h: Define __attribute_alloc_size.
31647         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31648         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31649         * elf/pldd.c: Likewise.
31650         * iconv/iconv_charmap.c: Likewise.
31651         * iconv/iconvconfig.c: Likewise.
31652         * iconv/strtab.c: Likewise.
31653         * locale/programs/locale.c: Likewise.
31654         * locale/programs/localedef.h: Likewise.
31655         * locale/programs/simple-hash.c: Likewise.
31656         * nscd/nscd.h: Likewise.
31657         * nss/makedb.c: Likewise.
31658         * sysdeps/generic/ldconfig.h: Likewise.
31659         * locale/programs/localedef.c: Remove xmalloc prototype.
31660         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31661
31662 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31663
31664         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31665         appropriate.
31666
31667 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31668
31669         * math/Makefile (tests): Add tst-CMPLX.
31670         * math/tst-CMPLX.c: New file.
31671
31672         * math/complex.h (CMPLXL): Fix typo.
31673
31674         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31675         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31676         GLIBC_2.16.
31677         * debug/tst-chk1.c: Add poll and ppoll tests.
31678         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31679         * include/sys/poll.h: Add hidden proto for ppoll.
31680         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31681         * sysdeps/mach/hurd/ppoll.c: Likewise.
31682         * io/ppoll.c: Likewise.
31683         * debug/poll_chk.c: New file.
31684         * debug/ppoll_chk.c: New file.
31685         * include/bits/poll2.h: New file.
31686         * io/bits/poll2.h: New file.
31687
31688         [BZ #1350]
31689         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31690
31691         * configure.in: static is always set to yes.  Remove.
31692         * config.make.in: Don't set build-static.
31693         * Makeconfig: Remove use of build-static.
31694         * dlfcn/Makefile: Likewise.
31695         * elf/Makefile: Likewise.
31696         * math/Makefile: Likewise.
31697         * misc/Makefile: Likewise.
31698         * nptl/Makefile: Likewise.
31699         * sysdeps/mach/hurd/Makefile: Likewise.
31700
31701         * configure.in: PWD_P is not used anymore.
31702         * config.make.in: Remove PWD_P entry.
31703
31704         * configure.in: Remove last remnants of RANLIB.
31705         No need to check for signed size_t anymore.
31706         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31707         and IA-64.
31708         Remove __builtin_expect test because we require at least gcc 3.4.
31709         * aclocal.m4: Likewise.
31710
31711         * wcsmbs/mbrtoc16.c: Implement using towc function.
31712         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31713         * wcsmbs/wcsmbsload.c: Likewise.
31714         * iconv/gconv_simple.c: Likewise.
31715         * iconv/gconv_int.h: Likewise.
31716         * iconv/gconv_builtin.h: Likewise.
31717         * iconv/iconv_prog.c: Remove CHAR16 handling.
31718
31719         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31720
31721         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31722
31723         * configure.in: Remove --with-elf and --enable-bounded options.
31724         Dont set base_machine for ia64.  More non-ELF conditions removed.
31725         Remove testing and setting of leading underscore information.
31726         * config.make.in (build-bounded): Set to no.
31727         * config.h.in: Remove NO_UNDERSCORES entry.
31728         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31729         them.
31730         * csu/start.c: Remove !NO_UNDERSCORE code.
31731         * locale/localeinfo.h: Likewise.
31732         * sysdeps/generic/machine-gmon.h: Likewise.
31733         * sysdeps/generic/sysdep.h: Likewise.
31734         * sysdeps/i386/sysdep.h: Likewise.
31735         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31736         * sysdeps/mach/sysdep.h: Likewise.
31737         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31738         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31739         * sysdeps/sh/sysdep.h: Likewise.
31740         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31741         * sysdeps/unix/i386/sysdep.S: Likewise.
31742         * sysdeps/unix/sparc/start.c: Likewise.
31743         * sysdeps/unix/sparc/sysdep.S: Likewise.
31744         * sysdeps/unix/sparc/sysdep.h: Likewise.
31745         * sysdeps/unix/start.c: Likewise.
31746         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31747         * sysdeps/x86_64/sysdep.h: Likewise.
31748
31749 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31750
31751         [BZ #13553]
31752         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31753         for non-gcc.
31754         * argp/argp-fmtstream.h: Use const instead __const.
31755         * argp/argp.h: Likewise.
31756         * assert/assert.h: Likewise.
31757         * bits/fenv.h: Likewise.
31758         * bits/sched.h: Likewise.
31759         * bits/sigset.h: Likewise.
31760         * bits/sigthread.h: Likewise.
31761         * catgets/nl_types.h: Likewise.
31762         * conform/data/pthread.h-data: Likewise.
31763         * crypt/crypt-private.h: Likewise.
31764         * crypt/crypt.h: Likewise.
31765         * crypt/crypt_util.c: Likewise.
31766         * ctype/ctype.h: Likewise.
31767         * debug/execinfo.h: Likewise.
31768         * debug/mbsnrtowcs_chk.c: Likewise.
31769         * debug/mbsrtowcs_chk.c: Likewise.
31770         * debug/wcsnrtombs_chk.c: Likewise.
31771         * debug/wcsrtombs_chk.c: Likewise.
31772         * debug/wcstombs_chk.c: Likewise.
31773         * dirent/dirent.h: Likewise.
31774         * dlfcn/dlfcn.h: Likewise.
31775         * elf/neededtest4.c: Likewise.
31776         * grp/grp.h: Likewise.
31777         * gshadow/gshadow.h: Likewise.
31778         * iconv/gconv.h: Likewise.
31779         * iconv/gconv_int.h: Likewise.
31780         * iconv/gconv_simple.c: Likewise.
31781         * iconv/iconv.h: Likewise.
31782         * iconv/loop.c: Likewise.
31783         * iconv/skeleton.c: Likewise.
31784         * include/aio.h: Likewise.
31785         * include/aliases.h: Likewise.
31786         * include/argz.h: Likewise.
31787         * include/arpa/inet.h: Likewise.
31788         * include/assert.h: Likewise.
31789         * include/dirent.h: Likewise.
31790         * include/dlfcn.h: Likewise.
31791         * include/execinfo.h: Likewise.
31792         * include/fcntl.h: Likewise.
31793         * include/fenv.h: Likewise.
31794         * include/glob.h: Likewise.
31795         * include/grp.h: Likewise.
31796         * include/libintl.h: Likewise.
31797         * include/mntent.h: Likewise.
31798         * include/netdb.h: Likewise.
31799         * include/pwd.h: Likewise.
31800         * include/rpc/netdb.h: Likewise.
31801         * include/sched.h: Likewise.
31802         * include/search.h: Likewise.
31803         * include/shadow.h: Likewise.
31804         * include/signal.h: Likewise.
31805         * include/stdio.h: Likewise.
31806         * include/stdlib.h: Likewise.
31807         * include/string.h: Likewise.
31808         * include/sys/socket.h: Likewise.
31809         * include/sys/stat.h: Likewise.
31810         * include/sys/statfs.h: Likewise.
31811         * include/sys/statvfs.h: Likewise.
31812         * include/sys/syslog.h: Likewise.
31813         * include/sys/time.h: Likewise.
31814         * include/sys/uio.h: Likewise.
31815         * include/time.h: Likewise.
31816         * include/unistd.h: Likewise.
31817         * include/utmp.h: Likewise.
31818         * include/wchar.h: Likewise.
31819         * include/wctype.h: Likewise.
31820         * inet/aliases.h: Likewise.
31821         * inet/arpa/inet.h: Likewise.
31822         * inet/netinet/ether.h: Likewise.
31823         * inet/netinet/in.h: Likewise.
31824         * intl/libintl.h: Likewise.
31825         * io/bits/fcntl2.h: Likewise.
31826         * io/fcntl.h: Likewise.
31827         * io/ftw.h: Likewise.
31828         * io/sys/poll.h: Likewise.
31829         * io/sys/stat.h: Likewise.
31830         * io/sys/statfs.h: Likewise.
31831         * io/sys/statvfs.h: Likewise.
31832         * io/utime.h: Likewise.
31833         * libio/bits/stdio.h: Likewise.
31834         * libio/bits/stdio2.h: Likewise.
31835         * libio/libio.h: Likewise.
31836         * libio/libioP.h: Likewise.
31837         * libio/stdio.h: Likewise.
31838         * locale/lc-ctype.c: Likewise.
31839         * locale/locale.h: Likewise.
31840         * login/utmp.h: Likewise.
31841         * malloc/arena.c: Likewise.
31842         * malloc/malloc.c: Likewise.
31843         * malloc/malloc.h: Likewise.
31844         * malloc/mcheck.c: Likewise.
31845         * malloc/mtrace.c: Likewise.
31846         * math/bits/mathcalls.h: Likewise.
31847         * math/fenv.h: Likewise.
31848         * math/math_private.h: Likewise.
31849         * misc/bits/error.h: Likewise.
31850         * misc/bits/syslog.h: Likewise.
31851         * misc/err.h: Likewise.
31852         * misc/error.h: Likewise.
31853         * misc/fstab.h: Likewise.
31854         * misc/mntent.h: Likewise.
31855         * misc/regexp.h: Likewise.
31856         * misc/search.h: Likewise.
31857         * misc/sgtty.h: Likewise.
31858         * misc/sys/mman.h: Likewise.
31859         * misc/sys/syslog.h: Likewise.
31860         * misc/sys/uio.h: Likewise.
31861         * misc/sys/xattr.h: Likewise.
31862         * misc/ttyent.h: Likewise.
31863         * nis/rpcsvc/ypclnt.h: Likewise.
31864         * nss/nss.h: Likewise.
31865         * posix/bits/unistd.h: Likewise.
31866         * posix/fnmatch.h: Likewise.
31867         * posix/glob.h: Likewise.
31868         * posix/sched.h: Likewise.
31869         * posix/spawn.h: Likewise.
31870         * posix/sys/wait.h: Likewise.
31871         * posix/unistd.h: Likewise.
31872         * posix/wordexp.h: Likewise.
31873         * pwd/pwd.h: Likewise.
31874         * resolv/netdb.h: Likewise.
31875         * resource/sys/resource.h: Likewise.
31876         * rt/aio.h: Likewise.
31877         * rt/bits/mqueue2.h: Likewise.
31878         * rt/mqueue.h: Likewise.
31879         * shadow/shadow.h: Likewise.
31880         * signal/signal.h: Likewise.
31881         * socket/send.c: Likewise.
31882         * socket/sendto.c: Likewise.
31883         * socket/sys/socket.h: Likewise.
31884         * stdio-common/printf.h: Likewise.
31885         * stdlib/bits/stdlib.h: Likewise.
31886         * stdlib/fmtmsg.h: Likewise.
31887         * stdlib/monetary.h: Likewise.
31888         * stdlib/stdlib.h: Likewise.
31889         * stdlib/ucontext.h: Likewise.
31890         * streams/stropts.h: Likewise.
31891         * string/argz.h: Likewise.
31892         * string/bits/string2.h: Likewise.
31893         * string/string.h: Likewise.
31894         * string/strings.h: Likewise.
31895         * sunrpc/rpc/auth.h: Likewise.
31896         * sunrpc/rpc/auth_des.h: Likewise.
31897         * sunrpc/rpc/clnt.h: Likewise.
31898         * sunrpc/rpc/netdb.h: Likewise.
31899         * sunrpc/rpc/pmap_clnt.h: Likewise.
31900         * sunrpc/rpc/xdr.h: Likewise.
31901         * sysdeps/generic/inttypes.h: Likewise.
31902         * sysdeps/generic/net/if.h: Likewise.
31903         * sysdeps/generic/sys/swap.h: Likewise.
31904         * sysdeps/gnu/net/if.h: Likewise.
31905         * sysdeps/gnu/utmpx.h: Likewise.
31906         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31907         * sysdeps/i386/i486/bits/string.h: Likewise.
31908         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31909         * sysdeps/s390/bits/string.h: Likewise.
31910         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31911         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31912         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31913         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31914         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31915         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31916         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31917         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31918         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31919         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31920         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31921         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31922         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31923         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31924         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31925         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31926         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31927         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31928         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31929         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31930         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31931         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31932         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31933         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31934         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31935         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31936         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31937         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31938         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31939         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31940         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31941         * sysvipc/sys/ipc.h: Likewise.
31942         * sysvipc/sys/msg.h: Likewise.
31943         * sysvipc/sys/sem.h: Likewise.
31944         * sysvipc/sys/shm.h: Likewise.
31945         * termios/termios.h: Likewise.
31946         * time/sys/time.h: Likewise.
31947         * time/time.h: Likewise.
31948         * wcsmbs/bits/wchar2.h: Likewise.
31949         * wcsmbs/uchar.h: Likewise.
31950         * wcsmbs/wchar.h: Likewise.
31951         * wctype/wctype.h: Likewise.
31952
31953         [BZ #13551]
31954         * Makeconfig: Remove all but ELF support including AIX support.
31955         * Makerules: Likewise.
31956         * config.h.in: Likewise.
31957         * config.make.in: Likewise.
31958         * configure: Likewise.
31959         * configure.in: Likewise.
31960         * csu/Makefile: Likewise.
31961         * csu/version.c: Likewise.
31962         * debug/Makefile: Likewise.
31963         * dlfcn/Makefile: Likewise.
31964         * elf/Makefile: Likewise.
31965         * extra-lib.mk: Likewise.
31966         * iconv/Makefile: Likewise.
31967         * include/libc-symbols.h: Likewise.
31968         * include/shlib-compat.h: Likewise.
31969         * resolv/Makefile: Likewise.
31970         * resolv/res_libc.c: Likewise.
31971         * rt/Makefile: Likewise.
31972         * sysdeps/i386/asm-syntax.h: Likewise.
31973         * sysdeps/i386/sysdep.h: Likewise.
31974         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31975         * sysdeps/mach/sysdep.h: Likewise.
31976         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31977         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31978         * sysdeps/s390/asm-syntax.h: Likewise.
31979         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31980         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31981         * sysdeps/sh/sysdep.h: Likewise.
31982         * sysdeps/unix/sparc/sysdep.h: Likewise.
31983         * sysdeps/wordsize-32/divdi3.c: Likewise.
31984         * sysdeps/x86_64/sysdep.h: Likewise.
31985
31986         * argp/Versions: Remove _argp_unlock_xxx.
31987
31988         [BZ #13559]
31989         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31990         * abilist/libBrokenLocale.abilist: Likewise.
31991         * abilist/libanl.abilist: Likewise.
31992         * abilist/libc.abilist: Likewise.
31993         * abilist/libcrypt.abilist: Likewise.
31994         * abilist/libdl.abilist: Likewise.
31995         * abilist/libm.abilist: Likewise.
31996         * abilist/libnsl.abilist: Likewise.
31997         * abilist/libpthread.abilist: Likewise.
31998         * abilist/libresolv.abilist: Likewise.
31999         * abilist/librt.abilist: Likewise.
32000         * abilist/libthread_db.abilist: Likewise.
32001         * abilist/libutil.abilist: Likewise.
32002         * abilist/libnss_db.abilist: New file.
32003
32004         * scripts/abilist.awk: Add support for indirect functions.
32005
32006         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
32007
32008         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
32009
32010         * shlib-versions: Remove entries for ports architectures.
32011
32012         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
32013         files in ports.
32014         * elf/stackguard-macros.h: Remove support for IA-64.
32015         * elf/tst-auditmod1.c: Likewise.
32016         * sysdeps/generic/ldsodefs.h: Likewise.
32017
32018         * sysdeps/unix/sysv/linux/configure.in: Ports should define
32019         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
32020         configure files.
32021
32022         [BZ #13552]
32023         * configure.in: Remove --enable-omitfp support.
32024         * FAQ.in: Adjust.
32025         * config.make.in: Likewise.
32026         * Makeconfig: Likewise.
32027         * manual/install.texi: Likewise.
32028
32029         In case anyone cares, the IA-64 architecture could move to ports.
32030         * sysdeps/ia64/*: Removed.
32031         * sysdeps/unix/sysv/linux/ia64/*: Removed.
32032         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
32033
32034         [BZ #13555]
32035         * configure.in: Remove entries for unsupported architectures.
32036
32037         [BZ #13533]
32038         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
32039         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
32040         routines.
32041         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
32042         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
32043         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
32044         fall back to using wcrtomb.
32045         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
32046         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
32047         renaming.
32048         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
32049         * wcsmbs/tst-c16c32-1.c: New file.
32050
32051         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
32052         local variable.
32053
32054         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
32055
32056         * elf/tst-unique3.cc: Add explicit declaration of gets.
32057         * elf/tst-unique3lib.cc: Likewise.
32058         * elf/tst-unique3lib2.cc: Likewise.
32059         * elf/tst-unique4.cc: Likewise.
32060
32061         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
32062
32063 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
32064
32065         [BZ #13566]
32066         * assert/assert.h (static_assert): Don't define for C++.
32067         * libio/stdio.h (gets): Do declare for C++ <= C++11.
32068         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
32069
32070 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
32071
32072         * iconv/loop.c (single loop): Fix assertion in storing of
32073         remaining bytes.
32074
32075         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
32076
32077 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
32078
32079         * posix/getconf.c: Update copyright year.
32080         * nss/getent.c: Likewise.
32081         * nss/makedb.c: Likewise.
32082         * iconv/iconvconfig.c: Likewise.
32083         * iconv/iconv_prog.c: Likewise.
32084         * elf/ldconfig.c: Likewise.
32085         * elf/pldd.c: Likewise.
32086         * elf/sotruss.ksh: Likewise.
32087         * catgets/gencat.c: Likewise.
32088         * csu/version.c: Likewise.
32089         * elf/ldd.bash.in: Likewise.
32090         * elf/sprof.c (print_version): Likewise.
32091         * locale/programs/locale.c: Likewise.
32092         * locale/programs/localedef.c: Likewise.
32093         * login/programs/pt_chown.c: Likewise.
32094         * nscd/nscd.c (print_version): Likewise.
32095         * debug/xtrace.sh: Likewise.
32096         * malloc/memusage.sh: Likewise.
32097         * malloc/mtrace.pl: Likewise.
32098         * debug/catchsegv.sh: Likewise.
32099
32100 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
32101
32102         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
32103         pure attribute.
32104
32105 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
32106
32107         [BZ #13533]
32108         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
32109         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
32110         transformations.
32111         * iconv/gconv_int.h: Likewise.
32112         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
32113         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
32114         from libc for GLIBC_2.16.
32115         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
32116         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
32117         * wcsmbs/uchar.h: Really define mbstate_t.
32118         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
32119         * wcsmbs/c16rtomb.c: New file.
32120         * wcsmbs/mbrtoc16.c: New file.
32121         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
32122         for C/POSIX locale.
32123         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
32124         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
32125
32126         * wcsmbs/wchar.h: Add missing __restrict.
32127
32128 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32129
32130         [BZ #13532]
32131         * time/Makefile (routines): Add timespec_get.
32132         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
32133         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
32134         timespec for ISO C11.
32135         * time/timespec_get.c: New file.
32136         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
32137         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
32138
32139         [BZ #13531]
32140         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
32141         * stdlib/stdlib.h: Declare aligned_alloc.
32142         * Versions.def: Add GLIBC_2.16 for libc.
32143         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
32144
32145         [BZ 13527]
32146         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
32147         ISO C11.
32148
32149         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
32150         code.
32151
32152         [BZ #13528]
32153         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
32154
32155         [BZ #13529]
32156         * assert/assert.h (static_assert): Define.
32157
32158         * version.h: Update for 2.16 development version.
32159
32160         [BZ #13526]
32161         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
32162         _ISOC11_SOURCE.
32163
32164         * version.h (RELEASE): Bump for 2.15 release.
32165         * include/features.h (__GLIBC_MINOR__): Bump to 15.
32166
32167         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
32168         Patch by Marek Polacek <mpolacek@redhat.com>.
32169
32170         * bits/byteswap.h: Protect long long constants with __extension__.
32171         * sysdeps/i386/bits/byteswap.h: Likewise.
32172         * sysdeps/ia64/bits/byteswap.h: Likewise.
32173         * sysdeps/s390/bits/byteswap.h: Likewise.
32174         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32175
32176 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32177
32178         [BZ #13540]
32179         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
32180         destination buffer.
32181         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
32182
32183 2011-12-23  Marek Polacek  <polacek@redhat.com>
32184
32185         * elf/dl-addr.c (determine_info): Add inline keyword.
32186         * elf/tst-auditmod4b.c (check_avx): Likewise.
32187         * elf/tst-auditmod6b.c (check_avx): Likewise.
32188         * elf/tst-auditmod6c.c (check_avx): Likewise.
32189         * elf/tst-auditmod7b.c (check_avx): Likewise.
32190
32191 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32192
32193         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
32194         !__SSE_MATH__.
32195
32196 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32197
32198         [BZ #13540]
32199         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
32200         processing for last bytes.
32201
32202 2011-08-06  Bruno Haible  <bruno@clisp.org>
32203
32204         [BZ #13061]
32205         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
32206         U+0385, not to U+1FEE.
32207
32208         [BZ #13062]
32209         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
32210         entry for U+00A5 U+0301.
32211
32212 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32213
32214         [BZ #13166]
32215         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
32216         buffer for the output is too small.
32217
32218         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
32219         optimization.
32220
32221         [BZ #13185]
32222         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
32223         SSE flags if possible.
32224
32225 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32226
32227         [BZ #13540]
32228         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
32229         processing for last bytes.
32230
32231 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
32232
32233         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
32234         (syscall-list-default-options, syscall-list-default-condition)
32235         (syscall-list-includes): Define.
32236         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
32237         list of ABIs and options and #if conditions for each ABI.  Do not
32238         handle common syscalls between ABIs specially.
32239         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
32240         Remove.
32241         (syscall-list-variants, syscall-list-32bit-options)
32242         (syscall-list-32bit-condition, syscall-list-64bit-options)
32243         (syscall-list-64bit-condition): Define.
32244         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
32245         (syscall-list-variants, syscall-list-32bit-options)
32246         (syscall-list-32bit-condition, syscall-list-64bit-options)
32247         (syscall-list-64bit-condition): Define.
32248         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
32249         Remove.
32250         (syscall-list-variants, syscall-list-32bit-options)
32251         (syscall-list-32bit-condition, syscall-list-64bit-options)
32252         (syscall-list-64bit-condition): Define.
32253         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
32254         Remove.
32255         (syscall-list-variants, syscall-list-32bit-options)
32256         (syscall-list-32bit-condition, syscall-list-64bit-options)
32257         (syscall-list-64bit-condition): Define.
32258
32259 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32260
32261         * locale/iso-639.def: Add brx entry.
32262
32263         [BZ #13328]
32264         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
32265         Proposed by Mariusz_Cukr <marcukr@op.pl>.
32266
32267         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
32268         __feraiseexcept_renamed.
32269
32270 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32271
32272         [BZ #13538]
32273         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
32274         EPOLLET with unsigned values.
32275         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
32276         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
32277
32278         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
32279         to large cancellation.
32280         * math/s_cacoshf.c: Likewise.
32281         * math/s_cacoshl.c: Likewise.
32282
32283 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
32284
32285         [BZ #13305]
32286         [BZ #12786]
32287         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
32288         * math/s_cacoshf.c: Likewise.
32289         * math/s_cacoshl.c: Likewise.
32290
32291 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32292
32293         [BZ #13439]
32294         * iconv/gconv.h: Define __GCONV_SWAP.
32295         * iconvdata/unicode.c: The swap bit must be stored in __flags.
32296         * iconvdata/utf-16.c: Likewise.
32297         * iconvdata/utf-32.c: Likewise.
32298
32299 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
32300
32301         [BZ #13524]
32302         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
32303         numerator after shifting it by one limb.
32304
32305 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
32306
32307         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
32308         under [__USE_EXTERN_INLINES].
32309
32310 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32311
32312         [BZ #13446]
32313         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
32314
32315 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32316
32317         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
32318         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
32319         optimized code.
32320         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
32321         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
32322         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
32323         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
32324         for strncasecmp/strncasecmp_l compilation.
32325         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
32326         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
32327
32328 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
32329
32330         [BZ #13484]
32331         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
32332         of __asm__.
32333
32334 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32335
32336         [BZ #13506]
32337         * time/tzfile.c (__tzfile_read): Check values from file header.
32338
32339 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
32340
32341         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
32342         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
32343         * powerpc/powerpc32/dl-start.S: Likewise.
32344         * powerpc/powerpc32/elf/start.S: Likewise.
32345         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
32346         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
32347         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32348         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
32349         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
32350         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
32351         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
32352         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
32353         * powerpc/powerpc32/fpu/s_round.S: Likewise.
32354         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
32355         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
32356         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
32357         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
32358         * powerpc/powerpc32/memset.S: Likewise.
32359         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
32360         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
32361         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32362         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32363         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32364         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32365         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32366         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32367         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32368         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32369         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32370         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32371         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32372
32373 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32374
32375         * math/libm-test.inc: Added more nearbyint tests.
32376         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32377         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32378         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32379         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32380
32381 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32382
32383         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32384         FD_CLOEXEC.
32385
32386 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32387
32388         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32389         Add wcscpy-ssse3 wcscpy-c.
32390         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32391         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32392         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32393         * sysdeps/x86_64/wcschr.S: New file.
32394         * sysdeps/x86_64/wcsrchr.S: New file.
32395         * string/test-strcmp.c: Remove checking of wcscmp function for
32396         wrong alignments.
32397         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32398         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32399         wcsrchr-sse2 wcsrchr-c.
32400         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32401         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32402         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32403         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32404         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32405         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32406         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32407         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32408         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32409         * wcsmbc/wcschr.c (WCSCHR): New macro.
32410
32411 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32412
32413         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32414         * wcsmbs/test-wcsrchr.c: New file.
32415         * string/test-strrchr.c: Add wcsrchr support.
32416         (WIDE): New macro.
32417         * wcsmbs/test-wcscpy.c: New file.
32418         * string/test-strcpy.c: Add wcscpy support.
32419         (WIDE): New macro.
32420
32421 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32422
32423         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32424         the inner loop.
32425
32426 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32427
32428         [BZ #13472]
32429         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32430
32431 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32432
32433         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32434         Minor optimizations.
32435
32436         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32437         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32438         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32439
32440 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32441
32442         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32443         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32444         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32445         for gcc to avoid warnings.
32446         * inet/Makefile (tests): Add tst-checks.
32447         * inet/tst-checks.c: New file.
32448
32449         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32450         warning.
32451
32452         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32453         __wmemcmp_sse2.
32454
32455         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32456         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32457
32458         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32459
32460 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32461
32462         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32463         problem.
32464
32465         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32466
32467 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32468
32469         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32470         conditional on GCC version.
32471         (__arch_compare_and_exchange_val_8_acq)
32472         (__arch_compare_and_exchange_val_16_acq)
32473         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32474         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32475         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32476
32477 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32478
32479         * sysdeps/sh/backtrace.c: New file.
32480
32481 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32482
32483         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32484         parenthesis.
32485
32486 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32487
32488         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32489         falling back to utime.
32490
32491 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32492
32493         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32494         expectations for float.
32495
32496 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32497
32498         * locale/weight.h (findidx): Add parameter len.
32499         * locale/weightwc.h (findidx): Likewise.
32500         * posix/fnmatch_loop.c (FCT): Adjust caller.
32501         * posix/regcomp.c (build_equiv_class): Likewise.
32502         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32503         * posix/regexec.c (check_node_accept_bytes): Likewise.
32504         * string/strcoll_l.c (STRCOLL): Likewise.
32505         * string/strxfrm_l.c (STRXFRM): Likewise.
32506
32507 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32508
32509         * Makefile.in: Remove CVSOPT handling.
32510         * configure.in: Remove use of AC_REVISION.
32511         * iconvdata/Makefile (distribute): No need to filter out CVS.
32512         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32513         handling.
32514
32515 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32516
32517         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32518         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32519         [USE_AS_STRNCASECMP_L]: Likewise.
32520         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32521         NO_TLS_DIRECT_SEG_REFS.
32522         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32523         Fix argument offsets for non-PIC.
32524         [USE_AS_STRNCASECMP_L]: Likewise.
32525         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32526         NO_TLS_DIRECT_SEG_REFS.
32527
32528 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32529
32530         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32531         O_CLOEXEC.
32532         * locale/loadlocale.c (_nl_load_locale): Likewise.
32533
32534 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32535
32536         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32537         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32538         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32539         (SYSCALL_GETTIME): Set errno on error.
32540
32541         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32542         count references to noai6ai_cached.
32543
32544 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32545
32546         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32547
32548         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32549         FD_CLOEXEC for /proc/self/maps.
32550
32551         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32552         FD_CLOEXEC for /proc/meminfo.
32553
32554         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32555         gai.conf.
32556
32557         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32558         FD_CLOEXEC for given file.
32559
32560         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32561
32562         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32563         FD_CLOEXEC for /etc/hosts.
32564         (_gethtent): Likewise.
32565
32566         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32567
32568         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32569         cancellation and set FD_CLOEXEC for /etc/netgroup.
32570
32571         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32572         reading /etc/publickey.
32573
32574         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32575         allow cancellation when reading /etc/group.
32576
32577         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32578         cancellation.
32579         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32580
32581         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32582         when using data file.
32583
32584         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32585
32586         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32587         (write_nis_obj): Use "c" and "e" in fopen.
32588
32589         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32590
32591         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32592
32593         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32594
32595         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32596
32597         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32598         locale.alias.
32599
32600         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32601
32602         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32603
32604         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32605
32606         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32607         file parsing and set FD_CLOEXEC.
32608
32609 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32610
32611         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32612
32613 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32614
32615         * malloc/arena.c (arena_get2): Don't call reused_arena when
32616         _int_new_arena failed.
32617
32618 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32619
32620         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32621         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32622         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32623         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32624         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32625         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32626         to compile strcasecmp and strncasecmp.
32627         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32628         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32629
32630         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32631
32632 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32633
32634         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32635         locale-defines.sym to gen-as-const-headers.
32636         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32637         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32638         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32639         to compile strcasecmp and strncasecmp.
32640         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32641         strcasecmp_l and strncasecmp_l.
32642         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32643         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32644         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32645         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32646         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32647         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32648         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32649         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32650         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32651         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32652         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32653
32654 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32655
32656         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32657         result of SYSDEP_GETTIME_CPU to retval.
32658         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32659         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32660
32661         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32662         variable.
32663
32664         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32665         mantissa words.
32666         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32667
32668         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32669         from unused variable.
32670
32671         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32672         DWARF definitions.
32673         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32674         for assembling.
32675
32676         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32677         over namespaces.
32678
32679         * sunrpc/rpc_prot.c (rejected): Fix case value.
32680
32681         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32682         unsigned long long int to avoid warnings in shift.
32683
32684         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32685         of use of trans.
32686         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32687         variable tmp.
32688
32689         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32690         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32691         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32692
32693         * nis/nis_table.c (nis_list): Use variable of correct type for
32694         result of __follow_path call.
32695
32696 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32697
32698         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32699         of math functions ceil, trunc, floor, round, and sqrt, when
32700         avaliable on the platform.
32701         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32702         name clash.
32703         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32704         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32705         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32706
32707 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32708
32709         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32710         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32711
32712 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32713
32714         * include/unistd.h: Fix __readlink return type.
32715         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32716
32717 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32718
32719         * stdlib/ucontext.h: Undo last change for makecontext.
32720
32721 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32722
32723         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32724
32725         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32726         * setjmp/setjmp.h: Mark functions as non-leaf.
32727         * setjmp/bits/setjmp2.h: Likewise.
32728         * stdlib/ucontext.h: Likewise.
32729
32730 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32731
32732         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32733         (reused_arena): Don't check arena limit.
32734         (arena_get2): Atomically check arena limit.
32735
32736 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32737
32738         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32739         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32740
32741         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32742         instructions.
32743
32744 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32745
32746         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32747         handler when locking.
32748
32749         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32750         Fix size of allocated buffer.
32751
32752 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32753
32754         [BZ #10103]
32755         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32756         declarations for long double functions.
32757         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32758
32759         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32760
32761 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32762
32763         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32764         installed.
32765
32766         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32767         is disabled.
32768
32769 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32770
32771         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32772
32773 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32774
32775         * include/alloca.h (stackinfo_alloca_round): Define.
32776         (extend_alloca): Use it.
32777         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32778         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32779         here.
32780
32781         * scripts/check-local-headers.sh: Ignore libaudit.h.
32782
32783         * nscd/Makefile (extra-objs): Make recursively expanded.
32784
32785 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32786
32787         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32788         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32789
32790         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32791         * posix/tst-rfc3484-2.c: Likewise.
32792         * posix/tst-rfc3484-3.c: Likewise.
32793
32794         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32795         process_vm_writev.
32796         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32797         process_vm_writev.
32798         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32799         process_vm_writev from libc using GLIBC_2.15 version.
32800
32801         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32802
32803 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32804
32805         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32806         stack usage.
32807
32808 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32809
32810         [BZ #13367]
32811         * nss/getent.c (initgroups_keys): Show error message in case no group
32812         names are given.
32813
32814         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32815         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32816         __bump_nl_timestamp.
32817         * nscd/connections (nscd_init): When host database is served open
32818         netlink socket and request notification about configuration changes.
32819         (main_loop_poll): Track netlink file descriptor and bump timestamp
32820         in case data becomes available.
32821         (main_loop_epoll): Likewise.
32822         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32823         (database_pers_head): Add extra_data fileds.
32824         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32825         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32826         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32827         Adjust caller.
32828         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32829         in6ai data, call __free_in6ai.
32830         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32831         Add -DHAVE_NETLINK.
32832         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32833         interface information.  Reuse previous data if netlink timestamp
32834         is not changed.
32835         (__bump_nl_timestamp): New function.
32836         (__free_in6ai): New function.
32837
32838 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32839
32840         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32841         close_not_cancel_no_status here.
32842         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32843
32844 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32845
32846         [BZ #13276]
32847         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32848         return value.
32849
32850         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32851         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32852         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32853
32854 2011-07-03  Andreas Jaeger  <aj@suse.de>
32855
32856         [BZ #10709]
32857         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32858         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32859         * math/libm-test.inc (sin_test): Add test case.
32860
32861 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32862
32863         [BZ #13337]
32864         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32865         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32866
32867         * elf/chroot_canon.c (chroot_canon): Cleanups.
32868
32869         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32870
32871         [BZ #13335]
32872         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32873         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32874
32875         * string/test-strchr.c: Make usable for strchrnul testing.
32876         * string/test-strchrnul.c: New file.
32877         * string/Makefile (strop-tests): Add strchrnul.
32878
32879         * po/it.po: Update from translation team.
32880         * po/es.po: Likewise.
32881
32882 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32883
32884         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32885         the three constants needed as parameters.  Drop the others.
32886         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32887         __m128i_strloadu_tolower.
32888         Create and initialize variable zero and use it in all the places
32889         where _mm_setzero_si128 was used.
32890
32891         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32892         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32893         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32894         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32895         anymore.
32896         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32897         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32898         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32899         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32900         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32901         __mpranred, __mptan.
32902         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32903         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32904         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32905         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32906         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32907         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32908         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32909         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32910         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32911
32912 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32913
32914         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32915         redefine if SHARED.
32916         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32917
32918         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32919         wide char related routines to wcsmbs subdir.
32920
32921 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32922
32923         [BZ #13344]
32924         * misc/sys/cdefs.h (__THROWNL): Define.
32925         * posix/unistd.h: Use __THREADNL instead of __THREAD
32926         for memory synchronization functions.
32927
32928 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32929
32930         [BZ #13349]
32931         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32932         doesn't exist.
32933         * manual/stdio.texi (Obstack Streams): Node removed.
32934
32935 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32936
32937         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32938         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32939         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32940
32941         * math/math_private.h (math_force_eval): Allow non-addressable
32942         arguments.
32943         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32944
32945 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32946
32947         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32948         file is not needed.
32949
32950         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32951         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32952         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32953         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32954         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32955         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32956         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32957         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32958         Add AVX variants.
32959         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32960         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32961         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32962         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32963         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32964         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32965         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32966         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32967         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32968         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32969         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32970         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32971         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32972         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32973         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32974         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32975         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32976         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32977         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32978
32979         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32980         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32981
32982         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32983         place.  Use VEX encoding when compiling for AVX.
32984
32985 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32986
32987         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32988         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32989
32990         * string/test-strchr.c (do_test): Don't generate NUL bytes.
32991
32992 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32993
32994         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
32995         useless if() expression.
32996         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32997         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
32998         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
32999         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33000         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
33001         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
33002         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33003         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33004         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
33005         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33006         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33007         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33008         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
33009         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33010         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
33011         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
33012         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33013         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33014         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
33015
33016         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
33017
33018 2011-10-25  Andreas Schwab  <schwab@redhat.com>
33019
33020         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
33021         condition.
33022         * elf/dl-fini.c (_dl_sort_fini): Likewise.
33023
33024 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
33025
33026         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
33027         .text section.  Avoid duplicate constants.
33028         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
33029         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33030         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33031         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33032         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33033         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33034         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33035         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33036         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
33037         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
33038         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
33039         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
33040         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
33041         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
33042         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
33043         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
33044         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
33045         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
33046         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
33047         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33048         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
33049         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
33050         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
33051         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
33052         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
33053         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
33054         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
33055         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
33056         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
33057         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
33058         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
33059         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
33060         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
33061         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
33062         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
33063         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
33064         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
33065         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
33066         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
33067         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
33068         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
33069         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
33070         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
33071         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
33072         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
33073
33074 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
33075
33076         * sysdeps/x86_64/dla.h: Move to ...
33077         * sysdeps/x86_64/fpu/dla.h: ...here.
33078         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
33079         situations.  Use __builtin_fma only for gcc 4.6 and up.
33080
33081         * config.make.in: Add have-mfma4 entry.
33082         * configure.in: Substitute libc_cv_cc_fma4.
33083         * math/Makefile (dbl-only-routines): Add sincostab.
33084         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
33085         Use __sincostab not sincos.
33086         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
33087         name is a macro.
33088         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33089         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33090         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33091         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
33092         using __copysign.
33093         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
33094         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
33095         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
33096         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
33097         and __inv.
33098         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
33099         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
33100         __copysign.
33101         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
33102         define aliases when function name is a macro.
33103         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
33104         sysdeps/ieee754/dbl-64/sincos.tbl.
33105         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
33106         fma4-enabled routines.
33107         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
33108         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
33109         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
33110         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
33111         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
33112         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
33113         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
33114         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
33115         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
33116         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
33117         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
33118         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
33119         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
33120         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
33121         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
33122         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
33123         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
33124         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
33125         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
33126         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
33127         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
33128         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
33129         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
33130         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
33131         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
33132         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
33133         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
33134         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
33135         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
33136         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
33137
33138         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
33139         rename.
33140         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33141         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33142         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33143         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33144         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33145         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33146         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33147         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33148
33149 2011-10-24  Andreas Schwab  <schwab@redhat.com>
33150
33151         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
33152
33153 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33154
33155         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
33156
33157         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
33158         prediction.
33159         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
33160
33161         * string/strnlen.c: Don't define STRNLEN, reverse logic.
33162         Remove unused variable magic_bits.
33163         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
33164
33165         * string/strnlen.c: Define and use STRNLEN macro.
33166         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
33167         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
33168         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
33169         * wcsmbs/wcslen.c: Define and use WCSLEN.
33170         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
33171         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
33172         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
33173         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
33174         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
33175         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
33176         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33177
33178 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33179
33180         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33181         strnlen-sse2-no-bsf.
33182         Rename strlen-no-bsf to strlen-sse2-no-bsf.
33183         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
33184         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
33185         Add strnlen support.
33186         (USE_AS_STRNLEN): New macro.
33187         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
33188         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
33189         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
33190         * sysdeps/x86_64/wcslen.S: New file.
33191
33192 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
33193
33194         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
33195         XMM-moves are used for copying on small sizes.
33196
33197 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33198
33199         * wcsmbs/Makefile (strop-tests): Add wcschr.
33200         * wcsmbs/test-wcschr.c: New file.
33201         * string/test-strchr.c: Update.
33202         Add wcschr support.
33203         (WIDE): New macro.
33204
33205 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33206
33207         * wcsmbs/Makefile (strop-tests): Add wcslen.
33208         * wcsmbs/test-wcslen.c: New file.
33209         * string/test-strlen.c: Update.
33210         Add wcslen support.
33211         (WIDE): New macro.
33212
33213 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33214
33215         * po/it.po: Update from translation team.
33216
33217 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33218
33219         * sysdeps/x86_64/wcscmp.S: Update.
33220         Fix wrong comparison semantics.
33221         wcscmp shall use signed comparison not unsigned.
33222         Don't use substraction to avoid overflow bug.
33223         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
33224         * wcsmbc/wcscmp.c: Likewise.
33225         * string/test-strcmp.c: Likewise.
33226         Add new tests to check cases with negative values.
33227
33228 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33229
33230         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
33231         * sysdeps/x86_64/dla.h: ...here.  New file.
33232         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
33233         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33234         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33235         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33236         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33237         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33238         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33239         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33240         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33241
33242 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
33243
33244         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
33245         __ynl_finite aliases.
33246
33247 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33248
33249         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33250
33251         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
33252         define DLA_FMA.
33253         [DLA_FMA] (EMULV): Use DLA_FMA.
33254         [DLA_FMA] (MUL12): Use EMULV.
33255         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
33256         that are not needed.
33257         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33258         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33259         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33260         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33261         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33262         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33263         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33264
33265 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
33266
33267         * math/s_nan.c: Undef __nan.
33268         * math/s_nanf.c: Undef __nanf.
33269         * math/s_nanl.c: Undef __nanl.
33270         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
33271         "math_private.h".
33272
33273 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33274
33275         * math/s_catan.c: Add branch predictions.
33276         * math/s_catanf.c: Likewise.
33277         * math/s_catanh.c: Likewise.
33278         * math/s_catanhf.c: Likewise.
33279         * math/s_catanhl.c: Likewise.
33280         * math/s_catanl.c: Likewise.
33281         * math/s_cexp.c: Likewise.
33282         * math/s_cexpf.c: Likewise.
33283         * math/s_cexpl.c: Likewise.
33284         * math/s_clog.c: Likewise.
33285         * math/s_clog10.c: Likewise.
33286         * math/s_clog10f.c: Likewise.
33287         * math/s_clog10l.c: Likewise.
33288         * math/s_clogf.c: Likewise.
33289         * math/s_clogl.c: Likewise.
33290         * math/s_csqrt.c: Likewise.
33291         * math/s_csqrtf.c: Likewise.
33292         * math/s_csqrtl.c: Likewise.
33293         * math/s_ctanf.c: Likewise.
33294         * math/s_ctanh.c: Likewise.
33295         * math/s_ctanhf.c: Likewise.
33296         * math/s_ctanhl.c: Likewise.
33297         * math/s_ctanl.c: Likewise.
33298
33299         * math/math_private.h: Define __nan, __nanf, __nanl.
33300         * math/s_cacosh.c: Include <math_private.h>.
33301         * math/s_cacoshl.c: Likewise.
33302         * math/s_casinh.c: Likewise.
33303         * math/s_casinhf.c: Likewise.
33304         * math/s_casinhl.c: Likewise.
33305         * math/s_ccos.c: Rely entire on ccosh.
33306         * math/s_ccosf.c: Rely entire on ccoshf.
33307         * math/s_ccosl.c: Rely entirely on ccoshl.
33308         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
33309         Remove tests for FE_INVALID.
33310         * math/s_ccoshf.c: Likewise.
33311         * math/s_ccoshl.c: Likewise.
33312         * math/s_csin.c: Likewise.
33313         * math/s_csinf.c: Likewise.
33314         * math/s_csinh.c Likewise.
33315         * math/s_csinhf.c: Likewise.
33316         * math/s_csinhl.c: Likewise.
33317         * math/s_csinl.c: Likewise.
33318         * math/s_ctan.c: Likewise.
33319         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
33320         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
33321         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
33322
33323 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
33324
33325         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
33326         compilation problems.
33327
33328         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
33329         __builtin_expect.
33330
33331 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
33332
33333         * sysdeps/i386/configure.in: Test for -mfma4 option.
33334         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
33335         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
33336         COMMON_CPUID_INDEX_80000001.
33337         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
33338         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
33339         use it if FMA3 is not supported.
33340         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
33341
33342         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
33343         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33344
33345 2011-10-20  Andreas Schwab  <schwab@redhat.com>
33346
33347         [BZ #12892]
33348         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
33349         it would create a cycle with a link time dependency.
33350
33351 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
33352
33353         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
33354         instruction.
33355         * string/Makefile (strop-tests): Add rawmemchr.
33356         * string/test-rawmemchr.c: New file.
33357
33358         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
33359         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
33360         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
33361         when compiling str{,n}casecmp and when AVX is available.  Hook up
33362         new optimized code in initializers.
33363
33364 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33365
33366         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33367         __feraiseexcept instead of feraiseexcept.
33368
33369 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33370
33371         * math/math_private.h: Define defaults for libc_fetestexcept and
33372         libc_feupdateenv.
33373         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33374         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33375         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33376         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33377         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33378         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33379         libc_fetestexcept and libc_feupdateenv.
33380
33381         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33382         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33383         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33384         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33385         libc_feholdexcept_setround.
33386
33387         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33388         Add s_nearbyint-c and s_nearbyintf-c.
33389         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33390         nearbyintf inlines.
33391         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33392         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33393         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33394         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33395
33396         * math/math_private.h: Define defaults for libc_fegetround,
33397         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33398         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33399         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33400         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33401         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33402         standard functions.
33403         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33404         Remove comments and hacks for old compiler versions.
33405         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33406         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33407         libc_feholdexceptl.
33408
33409 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33410
33411         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33412         (__feraiseexcept_renamed): Add __NTH.
33413         (feraiseexcept): Add __NTH.  Rename local variables to fix
33414         namespace violations.
33415
33416 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33417
33418         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33419
33420         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33421
33422         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33423         recently added interfaces.
33424         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33425
33426         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33427         about macro parameter expansion.
33428
33429         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33430         __NO_MATH_INLINES is defined.  Cleanups.
33431
33432         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33433         and __floorf is target has SSE4.1.
33434         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33435         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33436         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33437         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33438
33439         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33440         name.
33441         (floorf): Likewise.
33442
33443         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33444
33445 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33446
33447         * misc/sys/cdefs.h: Fix last change.
33448
33449         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33450         database lookup.
33451
33452 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33453
33454         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33455
33456         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33457         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33458         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33459         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33460         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33461         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33462         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33463         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33464         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33465         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33466         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33467         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33468         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33469         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33470         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33471         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33472         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33473         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33474         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33475         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33476         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33477         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33478
33479         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33480         ceil, ceilf, floor, floorf.
33481
33482         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33483         Perform IRELATIVE relocations last.
33484
33485         * elf/do-rel.h: Add another parameter nrelative, replacing the
33486         local variable with the same name.  Change name of the function
33487         to end in Rel or Rela (uppercase).
33488         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33489         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33490         elf_dynamic_do_##reloc function.
33491
33492 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33493
33494         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33495         is sufficient, at least on modern CPUs.
33496
33497         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33498
33499         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33500         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33501
33502         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33503         __expl_finite.
33504         * math/bits/math-finite.h: Add entries for exp.
33505         * math/e_expl.c: Add __*_finite alias.
33506         * sysdeps/i386/fpu/e_exp.S: Likewise.
33507         * sysdeps/i386/fpu/e_expf.S: Likewise.
33508         * sysdeps/i386/fpu/e_expl.c: Likewise.
33509         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33510         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33511         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33512         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33513         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33514         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33515         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33516
33517         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33518         is sufficient, at least on modern CPUs.
33519
33520         * ctype/ctype-info.c (__ctype_init): Define.
33521         * include/ctype.h (__ctype_init): Declare.
33522         (__ctype_b_loc): The variable is always initialized.
33523         (__ctype_toupper_loc): Likewise.
33524         (__ctype_tolower_loc): Likewise.
33525         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33526         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33527
33528 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33529
33530         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33531
33532         * configure.in: Also look in $cxxmachine/include for C++ system
33533         headers.
33534
33535 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33536
33537         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33538         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33539         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33540         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33541         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33542         (USE_AS_WMEMCMP): New macro.
33543         Fixing indents.
33544         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33545         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33546         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33547         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33548         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33549         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33550         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33551         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33552         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33553         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33554         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33555         (USE_AS_WMEMCMP): New macro.
33556         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33557         * sysdeps/string/test-memcmp.c: Update.
33558         Fix simple_wmemcmp.
33559         Add new tests.
33560         * wcsmbs/wmemcmp.c: Update.
33561         (WMEMCMP): New macro.
33562         Fix overflow bug.
33563
33564 2011-10-12  Andreas Jaeger  <aj@suse.de>
33565
33566         [BZ #13268]
33567         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33568
33569 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33570
33571         * libio/iofwide.c (do_length): Avoid warning.
33572
33573         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33574
33575 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33576
33577         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33578
33579         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33580         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33581         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33582         * sysdeps/i386/i686/fpu/e_log.S: New file.
33583         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33584         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33585
33586         * ctype/ctype.h: Add support for inlined isXXX functions when
33587         compiling C++ code.
33588
33589 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33590
33591         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33592
33593         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33594
33595 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33596
33597         [BZ #13291]
33598         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33599
33600 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33601
33602         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33603         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33604         feraiseexcept.
33605
33606         * sysdeps/x86_64/memrchr.S: Check for zero size.
33607
33608         * string/stratcliff.c: Add memrchr tests.
33609
33610 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33611
33612         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33613         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33614         rawmemchr-sse2 rawmemchr-sse2-bsf.
33615         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33616         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33617         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33618         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33619         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33620         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33621         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33622         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33623         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33624         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33625         * string/memrchr.c (MEMRCHR): New macro.
33626
33627 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33628
33629         Add integration with gcc's -ffinite-math-only and optimize wrapper
33630         functions in libm.
33631         * Versions.def: Define GLIBC_2.15 version for libm.
33632         * math/Makefile (headers): Add bits/math-finite.h.
33633         * math/bits/math-finite.h: New file.
33634         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33635         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33636         * math/e_acoshl.c: Add __*_finite alias.
33637         * math/e_acosl.c: Likewise.
33638         * math/e_asinl.c: Likewise.
33639         * math/e_atan2l.c: Likewise.
33640         * math/e_atanhl.c: Likewise.
33641         * math/e_coshl.c: Likewise.
33642         * math/e_exp10.c: Likewise.
33643         * math/e_exp10f.c: Likewise.
33644         * math/e_exp10l.c: Likewise.
33645         * math/e_exp2l.c: Likewise.
33646         * math/e_fmodl.c: Likewise.
33647         * math/e_gammal_r.c: Likewise.
33648         * math/e_hypotl.c: Likewise.
33649         * math/e_j0l.c: Likewise.
33650         * math/e_j1l.c: Likewise.
33651         * math/e_jnl.c: Likewise.
33652         * math/e_lgammal_r.c: Likewise.
33653         * math/e_log10l.c: Likewise.
33654         * math/e_log2l.c: Likewise.
33655         * math/e_logl.c: Likewise.
33656         * math/e_powl.c: Likewise.
33657         * math/e_sinhl.c: Likewise.
33658         * math/e_sqrtl.c: Likewise.
33659         * math/e_scalb.c: Completely rewritten and optimized.
33660         * math/e_scalbf.c: Likewise.
33661         * math/e_scalbl.c: Likewise.
33662         * math/w_acos.c: Likewise.
33663         * math/w_acosf.c: Likewise.
33664         * math/w_acosl.c: Likewise.
33665         * math/w_acosh.c: Likewise.
33666         * math/w_acoshf.c: Likewise.
33667         * math/w_acoshl.c: Likewise.
33668         * math/w_asin.c: Likewise.
33669         * math/w_asinf.c: Likewise.
33670         * math/w_asinl.c: Likewise.
33671         * math/w_atan2.c: Likewise.
33672         * math/w_atan2f.c: Likewise.
33673         * math/w_atan2l.c: Likewise.
33674         * math/w_atanh.c: Likewise.
33675         * math/w_atanhf.c: Likewise.
33676         * math/w_atanhl.c: Likewise.
33677         * math/w_exp10.c: Likewise.
33678         * math/w_exp10f.c: Likewise.
33679         * math/w_exp10l.c: Likewise.
33680         * math/w_fmod.c: Likewise.
33681         * math/w_fmodf.c: Likewise.
33682         * math/w_fmodl.c: Likewise.
33683         * math/w_j0.c: Likewise.
33684         * math/w_j0f.c: Likewise.
33685         * math/w_j0l.c: Likewise.
33686         * math/w_j1.c: Likewise.
33687         * math/w_j1f.c: Likewise.
33688         * math/w_j1l.c: Likewise.
33689         * math/w_jn.c: Likewise.
33690         * math/w_jnf.c: Likewise.
33691         * math/w_log.c: Likewise.
33692         * math/w_logf.c: Likewise.
33693         * math/w_logl.c: Likewise.
33694         * math/w_log10.c: Likewise.
33695         * math/w_log10f.c: Likewise.
33696         * math/w_log10l.c: Likewise.
33697         * math/w_log2.c: Likewise.
33698         * math/w_log2f.c: Likewise.
33699         * math/w_log2l.c: Likewise.
33700         * math/w_pow.c: Likewise.
33701         * math/w_powf.c: Likewise.
33702         * math/w_powl.c: Likewise.
33703         * math/w_remainder.c: Likewise.
33704         * math/w_remainderf.c: Likewise.
33705         * math/w_remainderl.c: Likewise.
33706         * math/w_scalb.c: Likewise.
33707         * math/w_scalbf.c: Likewise.
33708         * math/w_scalbl.c: Likewise.
33709         * math/w_sqrt.c: Likewise.
33710         * math/w_sqrtf.c: Likewise.
33711         * math/w_sqrtl.c: Likewise.
33712         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33713         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33714         used.
33715         * math/math_private.h: Declare __kernel_standard_f.
33716         * math/w_cosh.c: Remove cruft and optimize a bit.
33717         * math/w_coshf.c: Likewise.
33718         * math/w_coshl.c: Likewise.
33719         * math/w_exp2.c: Likewise.
33720         * math/w_exp2f.c: Likewise.
33721         * math/w_exp2l.c: Likewise.
33722         * math/w_hypot.c: Likewise.
33723         * math/w_hypotf.c: Likewise.
33724         * math/w_hypotl.c: Likewise.
33725         * math/w_lgamma.c: Likewise.
33726         * math/w_lgamma_r.c: Likewise.
33727         * math/w_lgammaf.c: Likewise.
33728         * math/w_lgammaf_r.c: Likewise.
33729         * math/w_lgammal.c: Likewise.
33730         * math/w_lgammal_r.c: Likewise.
33731         * math/w_sinh.c: Likewise.
33732         * math/w_sinhf.c: Likewise.
33733         * math/w_sinhl.c: Likewise.
33734         * math/w_tgamma.c: Likewise.
33735         * math/w_tgammaf.c: Likewise.
33736         * math/w_tgammal.c: Likewise.
33737         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33738         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33739         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33740         Minor optimizations.  Pretty printing.  Remove cruft.
33741         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33742         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33743         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33744         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33745         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33746         * sysdeps/i386/fpu/e_asin.S: Likewise.
33747         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33748         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33749         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33750         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33751         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33752         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33753         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33754         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33755         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33756         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33757         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33758         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33759         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33760         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33761         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33762         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33763         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33764         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33765         * sysdeps/i386/fpu/e_log.S: Likewise.
33766         * sysdeps/i386/fpu/e_log10.S: Likewise.
33767         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33768         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33769         * sysdeps/i386/fpu/e_log2.S: Likewise.
33770         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33771         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33772         * sysdeps/i386/fpu/e_logf.S: Likewise.
33773         * sysdeps/i386/fpu/e_logl.S: Likewise.
33774         * sysdeps/i386/fpu/e_pow.S: Likewise.
33775         * sysdeps/i386/fpu/e_powf.S: Likewise.
33776         * sysdeps/i386/fpu/e_powl.S: Likewise.
33777         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33778         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33779         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33780         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33781         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33782         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33783         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33784         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33785         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33786         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33787         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33788         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33789         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33790         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33791         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33792         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33793         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33794         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33795         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33796         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33797         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33798         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33799         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33800         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33801         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33802         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33803         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33804         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33805         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33806         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33807         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33808         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33809         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33810         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33811         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33812         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33813         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33814         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33815         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33816         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33817         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33818         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33819         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33820         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33821         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33822         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33823         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33824         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33825         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33826         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33827         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33828         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33829         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33830         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33831         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33832         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33833         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33834         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33835         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33836         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33837         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33838         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33839         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33840         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33841         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33842         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33843         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33844         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33845         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33846         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33847         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33848         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33849         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33850         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33851         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33852         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33853         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33854         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33855         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33856         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33857         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33858         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33859         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33860         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33861         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33862         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33863         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33864         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33865         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33866         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33867         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33868         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33869         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33870         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33871         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33872         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33873         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33874         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33875         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33876         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33877         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33878         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33879         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33880         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33881         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33882         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33883         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33884         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33885         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33886         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33887         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33888         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33889         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33890         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33891         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33892         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33893         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33894         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33895         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33896         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33897         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33898         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33899         (__isnanf): Likewise.
33900         (__isinf_ns): Likewise.
33901         (__isinf_nsf): Likewise.
33902         (__finite): Likewise.
33903         (__finitef): Likewise.
33904         (__ieee754_sqrt): Define as macro.
33905         (__ieee754_sqrtf): Define as macro.
33906         (__ieee754_sqrtl): Define as macro.
33907         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33908         inlined copy.
33909         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33910         __FINITE_MATH_ONLY__ consistent.
33911         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33912
33913 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33914
33915         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33916         of rawmemchr.
33917
33918         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33919
33920 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33921
33922         * po/ja.po: Update from translation team.
33923
33924 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33925
33926         * locale/programs/locarchive.c (prepare_address_space): New function.
33927         (create_archive, enlarge_archive, open_archive): Use it.
33928
33929         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33930         inside [SHARED], where it is used.
33931
33932         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33933
33934         * nss/getent.c (netgroup_keys): Remove unused variable.
33935         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33936
33937 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33938
33939         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33940         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33941         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33942         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33943         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33944         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33945         * math/Makefile (libm-calls): Add s_isinf_ns.
33946         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33947         * math/multc3.c: Likewise.
33948         * math/s_casin.c: Likewise.
33949         * math/s_casinf.c: Likewise.
33950         * math/s_casinl.c: Likewise.
33951         * math/s_ccos.c: Likewise.
33952         * math/s_ccosf.c: Likewise.
33953         * math/s_ccosl.c: Likewise.
33954         * math/s_ctan.c: Likewise.
33955         * math/s_ctanf.c: Likewise.
33956         * math/s_ctanh.c: Likewise.
33957         * math/s_ctanhf.c: Likewise.
33958         * math/s_ctanhl.c: Likewise.
33959         * math/s_ctanl.c: Likewise.
33960         * math/w_fmod.c: Likewise.
33961         * math/w_fmodf.c: Likewise.
33962         * math/w_fmodl.c: Likewise.
33963         * math/w_remainder.c: Likewise.
33964         * math/w_remainderf.c: Likewise.
33965         * math/w_remainderl.c: Likewise.
33966         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33967         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33968         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33969         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33970         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33971         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33972         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33973         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33974
33975         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33976         of the number.
33977         * stdio-common/printf_fphex.c: Likewise.
33978         * stdio-common/printf_size.c: Likewise.
33979
33980         * math/e_exp10.c: Include math_private.h using <...> not "...".
33981         * math/e_exp10f.c: Likewise.
33982         * math/e_exp10l.c: Likewise.
33983         * math/e_exp2l.c: Likewise.
33984         * math/e_j0l.c: Likewise.
33985         * math/e_j1l.c: Likewise.
33986         * math/e_jnl.c: Likewise.
33987         * math/e_lgammal_r.c: Likewise.
33988         * math/e_rem_pio2l.c: Likewise.
33989         * math/e_scalb.c: Likewise.
33990         * math/e_scalbf.c: Likewise.
33991         * math/e_scalbl.c: Likewise.
33992         * math/k_cosl.c: Likewise.
33993         * math/k_sinl.c: Likewise.
33994         * math/k_tanl.c: Likewise.
33995         * math/s_cacoshf.c: Likewise.
33996         * math/s_catan.c: Likewise.
33997         * math/s_catanf.c: Likewise.
33998         * math/s_catanh.c: Likewise.
33999         * math/s_catanhf.c: Likewise.
34000         * math/s_catanhl.c: Likewise.
34001         * math/s_catanl.c: Likewise.
34002         * math/s_ccosh.c: Likewise.
34003         * math/s_ccoshf.c: Likewise.
34004         * math/s_ccoshl.c: Likewise.
34005         * math/s_cexp.c: Likewise.
34006         * math/s_cexpf.c: Likewise.
34007         * math/s_cexpl.c: Likewise.
34008         * math/s_clog.c: Likewise.
34009         * math/s_clog10.c: Likewise.
34010         * math/s_clog10f.c: Likewise.
34011         * math/s_clog10l.c: Likewise.
34012         * math/s_clogf.c: Likewise.
34013         * math/s_clogl.c: Likewise.
34014         * math/s_csin.c: Likewise.
34015         * math/s_csinf.c: Likewise.
34016         * math/s_csinh.c: Likewise.
34017         * math/s_csinhf.c: Likewise.
34018         * math/s_csinhl.c: Likewise.
34019         * math/s_csinl.c: Likewise.
34020         * math/s_csqrt.c: Likewise.
34021         * math/s_csqrtf.c: Likewise.
34022         * math/s_csqrtl.c: Likewise.
34023         * math/s_ctan.c: Likewise.
34024         * math/s_ctanf.c: Likewise.
34025         * math/s_ctanh.c: Likewise.
34026         * math/s_ctanhf.c: Likewise.
34027         * math/s_ctanhl.c: Likewise.
34028         * math/s_ctanl.c: Likewise.
34029         * math/s_ldexp.c: Likewise.
34030         * math/s_ldexpf.c: Likewise.
34031         * math/s_ldexpl.c: Likewise.
34032         * math/s_significand.c: Likewise.
34033         * math/s_significandf.c: Likewise.
34034         * math/s_significandl.c: Likewise.
34035         * math/w_acos.c: Likewise.
34036         * math/w_acosf.c: Likewise.
34037         * math/w_acosh.c: Likewise.
34038         * math/w_acoshf.c: Likewise.
34039         * math/w_acoshl.c: Likewise.
34040         * math/w_acosl.c: Likewise.
34041         * math/w_asin.c: Likewise.
34042         * math/w_asinf.c: Likewise.
34043         * math/w_asinl.c: Likewise.
34044         * math/w_atan2.c: Likewise.
34045         * math/w_atan2f.c: Likewise.
34046         * math/w_atan2l.c: Likewise.
34047         * math/w_atanh.c: Likewise.
34048         * math/w_atanhf.c: Likewise.
34049         * math/w_atanhl.c: Likewise.
34050         * math/w_cosh.c: Likewise.
34051         * math/w_coshf.c: Likewise.
34052         * math/w_coshl.c: Likewise.
34053         * math/w_dremf.c: Likewise.
34054         * math/w_exp10.c: Likewise.
34055         * math/w_exp10f.c: Likewise.
34056         * math/w_exp10l.c: Likewise.
34057         * math/w_exp2.c: Likewise.
34058         * math/w_exp2f.c: Likewise.
34059         * math/w_fmod.c: Likewise.
34060         * math/w_fmodf.c: Likewise.
34061         * math/w_fmodl.c: Likewise.
34062         * math/w_hypot.c: Likewise.
34063         * math/w_hypotf.c: Likewise.
34064         * math/w_hypotl.c: Likewise.
34065         * math/w_j0.c: Likewise.
34066         * math/w_j0f.c: Likewise.
34067         * math/w_j0l.c: Likewise.
34068         * math/w_j1.c: Likewise.
34069         * math/w_j1f.c: Likewise.
34070         * math/w_j1l.c: Likewise.
34071         * math/w_jn.c: Likewise.
34072         * math/w_jnf.c: Likewise.
34073         * math/w_jnl.c: Likewise.
34074         * math/w_lgamma.c: Likewise.
34075         * math/w_lgamma_r.c: Likewise.
34076         * math/w_lgammaf.c: Likewise.
34077         * math/w_lgammaf_r.c: Likewise.
34078         * math/w_lgammal.c: Likewise.
34079         * math/w_lgammal_r.c: Likewise.
34080         * math/w_log.c: Likewise.
34081         * math/w_log10.c: Likewise.
34082         * math/w_log10f.c: Likewise.
34083         * math/w_log10l.c: Likewise.
34084         * math/w_log2.c: Likewise.
34085         * math/w_log2f.c: Likewise.
34086         * math/w_log2l.c: Likewise.
34087         * math/w_logf.c: Likewise.
34088         * math/w_logl.c: Likewise.
34089         * math/w_pow.c: Likewise.
34090         * math/w_powf.c: Likewise.
34091         * math/w_powl.c: Likewise.
34092         * math/w_remainder.c: Likewise.
34093         * math/w_remainderf.c: Likewise.
34094         * math/w_remainderl.c: Likewise.
34095         * math/w_scalb.c: Likewise.
34096         * math/w_scalbf.c: Likewise.
34097         * math/w_scalbl.c: Likewise.
34098         * math/w_sinh.c: Likewise.
34099         * math/w_sinhf.c: Likewise.
34100         * math/w_sinhl.c: Likewise.
34101         * math/w_sqrt.c: Likewise.
34102         * math/w_sqrtf.c: Likewise.
34103         * math/w_sqrtl.c: Likewise.
34104         * math/w_tgamma.c: Likewise.
34105         * math/w_tgammaf.c: Likewise.
34106         * math/w_tgammal.c: Likewise.
34107
34108         * po/ja.po: Update from translation team.
34109
34110 2011-09-29  Andreas Jaeger  <aj@suse.de>
34111
34112         [BZ #13179]
34113         * sunrpc/netname.c (netname2host): Fix logic.
34114
34115         [BZ #6779]
34116         [BZ #6783]
34117         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
34118         correctly.
34119         * math/w_remainder.c (__remainder): Likewise.
34120         * math/w_remainderf.c (__remainderf): Likewise.
34121         * math/libm-test.inc (remainder_test): Add test cases.
34122
34123 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34124
34125         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
34126         sdiv_qrnnd.
34127
34128 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34129
34130         * string/test-memcmp.c: Avoid unncessary #defines.
34131         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
34132
34133 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34134
34135         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
34136         Use new sse2 version for core i3 - i7 as it's faster
34137         than sse42 version.
34138         (bit_Prefer_PMINUB_for_stringop): New.
34139         * sysdeps/x86_64/rawmemchr.S: Update.
34140         Replace with faster SSE2 version.
34141         * sysdeps/x86_64/memrchr.S: New file.
34142         * sysdeps/x86_64/memchr.S: Update.
34143         Replace with faster SSE2 version.
34144
34145 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
34146
34147         * elf/dl-load.c (lose): Add cast to avoid warning.
34148
34149 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34150
34151         * po/ca.po: Update from translation team.
34152
34153         * inet/getnetgrent_r.c: Hook up nscd.
34154         * nscd/Makefile (routines): Add nscd_netgroup.
34155         (nscd-modules): Add netgroupcache.
34156         (CFLAGS-netgroupcache.c): Define.
34157         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
34158         (cache_search): Add const to second parameter.
34159         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
34160         INNETGR.
34161         (dbs): Add netgrdb entry.
34162         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
34163         (verify_persistent_db): Handle netgrdb.
34164         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
34165         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
34166         GETFDNETGR.
34167         (netgroup_response_header): Define.
34168         (innetgroup_response_header): Define.
34169         (datahead): Add netgroup_response_header and innetgroup_response_header
34170         elements.
34171         * nscd/nscd.conf: Add entries for netgroup cache.
34172         * nscd/nscd.h (dbtype): Add netgrdb.
34173         (_PATH_NSCD_NETGROUP_DB): Define.
34174         (netgroup_iov_disabled): Declare.
34175         (xmalloc, xcalloc, xrealloc): Move declarations here.
34176         (cache_search): Adjust prototype.
34177         Add netgroup-related prototypes.
34178         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
34179         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
34180         (__nscd_innetgr): Declare.
34181         * nscd/selinux.c (perms): Use access_vector_t as element type and
34182         add netgroup-related initializers.
34183         * nscd/netgroupcache.c: New file.
34184         * nscd/nscd_netgroup.c: New file.
34185         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
34186         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
34187         For four parameters use innetgr.
34188         * nss/nss_files/files-init.c: Add definition and callback for netgr.
34189         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
34190         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
34191         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
34192
34193         * nscd/connections.c (register_traced_file): Don't register file
34194         for disabled databases.
34195
34196 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
34197
34198         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
34199
34200         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
34201         from tree and freeing node.
34202
34203 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
34204
34205         * nss/nsswitch.c (__nss_database_lookup): Handle
34206         nss_parse_service_list out of memory case.
34207
34208 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
34209
34210         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
34211         out of memory case.
34212
34213 2011-10-04  Andreas Schwab  <schwab@redhat.com>
34214
34215         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
34216         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
34217         pass it down.
34218         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
34219         elf_machine_rela, elf_machine_lazy_rel.
34220         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
34221         (ELF_DYNAMIC_DO_REL): Likewise.
34222         (ELF_DYNAMIC_DO_RELA): Likewise.
34223         (ELF_DYNAMIC_RELOCATE): Likewise.
34224         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
34225         to ELF_DYNAMIC_DO_REL.
34226         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
34227         (dl_main): In trace mode always set __RTLD_NOIFUNC.
34228         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
34229         elf_machine_rela.
34230         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
34231         skip_ifunc, don't call ifunc function if non-zero.
34232         (elf_machine_rela): Likewise.
34233         (elf_machine_lazy_rel): Likewise.
34234         (elf_machine_lazy_rela): Likewise.
34235         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
34236         (elf_machine_lazy_rel): Likewise.
34237         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
34238         Likewise.
34239         (elf_machine_lazy_rel): Likewise.
34240         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34241         Likewise.
34242         (elf_machine_lazy_rel): Likewise.
34243         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
34244         (elf_machine_lazy_rel): Likewise.
34245         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
34246         (elf_machine_lazy_rel): Likewise.
34247         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
34248         (elf_machine_lazy_rel): Likewise.
34249         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
34250         (elf_machine_lazy_rel): Likewise.
34251         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
34252         (elf_machine_lazy_rel): Likewise.
34253         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
34254         (elf_machine_lazy_rel): Likewise.
34255
34256 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
34257
34258         * nss/nss_files/files-init.c (_nss_files_init): Use static
34259         initialization for all the *_traced_file variables.
34260
34261 2011-09-28  Andreas Schwab  <schwab@redhat.com>
34262
34263         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34264
34265 2011-09-27  Roland McGrath  <roland@hack.frob.com>
34266
34267         [BZ #13226]
34268         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
34269
34270 2011-09-27  Andreas Schwab  <schwab@redhat.com>
34271
34272         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
34273         Reread the line before reparsing it.
34274
34275 2011-09-26  Andreas Schwab  <schwab@redhat.com>
34276
34277         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
34278
34279 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
34280             Maxim Kuvyrkov  <maxim@codesourcery.com>
34281             Joseph Myers  <joseph@codesourcery.com>
34282
34283         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
34284         if needed for __stack_chk_guard.
34285
34286 2011-09-19  Roland McGrath  <roland@hack.frob.com>
34287
34288         * sysdeps/posix/spawni.c (script_execute): Always define it.
34289         It will be optimized away if unused.
34290         (maybe_script_execute): New function.
34291         (__spawni): Call it.
34292
34293         * Makerules: Don't include tls.make.
34294         (config-tls): Always set to thread.
34295         * tls.make.c: File removed.
34296
34297 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
34298
34299         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
34300         * config.make.in (CPPFLAGS-config): New substituted variable.
34301
34302 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34303
34304         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
34305
34306         [BZ #13192]
34307         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
34308         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
34309
34310 2011-09-15  Roland McGrath  <roland@hack.frob.com>
34311
34312         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
34313         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
34314         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34315         (CALL_FAIL): Likewise.
34316         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
34317         (CALL_FAIL): Macro removed.
34318         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
34319
34320 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34321
34322         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
34323         for __FINITE_MATH_ONLY__ == 1.
34324
34325 2011-09-15  Andreas Schwab  <schwab@redhat.com>
34326
34327         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
34328         __ieee754_sqrt instead of sqrt.
34329         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
34330         __ieee754_sqrtf instead of sqrtf.
34331         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
34332         __floorf instead of floorf.
34333         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
34334         __floorf, __truncf instead of floorf, truncf.
34335
34336 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
34337
34338         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
34339
34340         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
34341         __extern_always_inline.
34342         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
34343         32-bit.
34344
34345 2011-09-14  Andreas Schwab  <schwab@redhat.com>
34346
34347         * elf/rtld.c (dl_main): Also relocate in dependency order when
34348         doing symbol dependency testing.
34349
34350 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
34351
34352         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34353         Always define `refsym'.
34354
34355 2011-09-13  Andreas Schwab  <schwab@redhat.com>
34356
34357         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
34358         (__FD_ELT): Renamed from __FDELT.
34359         * misc/bits/select2.h (__FD_ELT): Likewise.
34360         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
34361         __FD_MASK instead of __FDELT, __FDMASK.
34362         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34363         Likewise.
34364         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34365         Likewise.
34366
34367         * elf/Makefile (gen-ldd): Fix pattern.
34368
34369         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34370         (init_tls): Likewise.
34371
34372 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34373
34374         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34375
34376 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34377
34378         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34379         `struct cmsghdr *' instead of `void *'.
34380         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34381         Likewise.
34382
34383 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34384
34385         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34386         if non-absolute.
34387         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34388         ldd_rewrite_script.
34389
34390 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34391
34392         * configure.in: Remove --with-tls option.
34393         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34394         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34395         out in case it is missing.
34396         * sysdeps/ia64/elf/configure.in: Likewise.
34397         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34398         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34399         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34400         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34401         * sysdeps/sh/elf/configure.in: Likewise.
34402         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34403         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34404         * sysdeps/x86_64/elf/configure.in: Likewise.
34405         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34406         * sysdeps/mach/hurd/tls.h: Likewise.
34407
34408         [BZ #13067]
34409         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34410
34411         [BZ #13090]
34412         * configure.in: Fix use of AC_INIT.
34413
34414         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34415
34416 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34417
34418         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34419         __set_errno.
34420         * malloc/hooks.c: Likewise.
34421
34422         [BZ #11929]
34423         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34424         variables statically.
34425         (narenas): Initialize.
34426         (list_lock): Initialize.
34427         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34428         initializtion of main_arena and list_lock.  Small cleanups.
34429         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34430         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34431         Add initializers to main_arena and mp_.
34432         (malloc_state): Remove pagesize member.  Change all users to use
34433         GLRO(dl_pagesize).
34434
34435         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34436         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34437         is always initialized.
34438
34439         * malloc/malloc.c: Removed unused configurations and dead code.
34440         * malloc/arena.c: Likewise.
34441         * malloc/hooks.c: Likewise.
34442         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34443
34444         * include/tls.h: Removed.  USE___THREAD must always be defined.
34445         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34446         * elf/dl-libc.c: Likewise.
34447         * elf/dl-tsd.c: Likewise.
34448         * include/errno.h: Likewise.
34449         * include/netdb.h: Likewise.
34450         * include/resolv.h: Likewise.
34451         * inet/herrno-loc.c: Likewise.
34452         * inet/herrno.c: Likewise.
34453         * malloc/arena.c: Likewise.
34454         * malloc/hooks.c: Likewise.
34455         * malloc/malloc.c: Likewise.
34456         * resolv/res-state.c: Likewise.
34457         * resolv/res_libc.c: Likewise.
34458         * sysdeps/i386/dl-machine.h: Likewise.
34459         * sysdeps/ia64/dl-machine.h: Likewise.
34460         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34461         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34462         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34463         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34464         * sysdeps/sh/dl-machine.h: Likewise.
34465         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34466         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34467         * sysdeps/unix/i386/sysdep.S: Likewise.
34468         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34469         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34470         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34471         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34472         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34473         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34474         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34475         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34476         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34477         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34478         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34479         * sysdeps/x86_64/dl-machine.h: Likewise.
34480         * tls.make.c: Likewise.
34481
34482         * configure.in: Remove --with-__thread option.  Make tests for
34483         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34484         tls_model attribute fail if no support is available.  Remove
34485         USE_IN_LIBIO.
34486         * Makeconfig: Adjust for dropped configure option.  All features are
34487         now mandatory.
34488         * Makerules: Likewise.
34489         * Versions.def: Likewise.
34490         * argp/argp-fmtstream.c: Likewise.
34491         * argp/argp-fmtstream.h: Likewise.
34492         * argp/argp-help.c: Likewise.
34493         * assert/assert.c: Likewise.
34494         * config.h.in: Likewise.
34495         * config.make.in: Likewise.
34496         * configure: Likewise.
34497         * configure.in: Likewise.
34498         * csu/Versions: Likewise.
34499         * csu/init.c: Likewise.
34500         * elf/tst-audit2.c: Likewise.
34501         * elf/tst-tls10.c: Likewise.
34502         * elf/tst-tls10.h: Likewise.
34503         * elf/tst-tls11.c: Likewise.
34504         * elf/tst-tls12.c: Likewise.
34505         * elf/tst-tls14.c: Likewise.
34506         * elf/tst-tlsmod11.c: Likewise.
34507         * elf/tst-tlsmod12.c: Likewise.
34508         * elf/tst-tlsmod13.c: Likewise.
34509         * elf/tst-tlsmod13a.c: Likewise.
34510         * elf/tst-tlsmod14a.c: Likewise.
34511         * elf/tst-tlsmod15b.c: Likewise.
34512         * elf/tst-tlsmod16a.c: Likewise.
34513         * elf/tst-tlsmod16b.c: Likewise.
34514         * elf/tst-tlsmod7.c: Likewise.
34515         * elf/tst-tlsmod8.c: Likewise.
34516         * elf/tst-tlsmod9.c: Likewise.
34517         * gmon/gmon.c: Likewise.
34518         * grp/fgetgrent_r.c: Likewise.
34519         * grp/putgrent.c: Likewise.
34520         * hurd/fopenport.c: Likewise.
34521         * include/libc-symbols.h: Likewise.
34522         * include/tls.h: Likewise.
34523         * intl/gettextP.h: Likewise.
34524         * intl/loadinfo.h: Likewise.
34525         * locale/global-locale.c: Likewise.
34526         * locale/localeinfo.h: Likewise.
34527         * mach/devstream.c: Likewise.
34528         * malloc/arena.c: Likewise.
34529         * malloc/set-freeres.c: Likewise.
34530         * misc/err.c: Likewise.
34531         * misc/getttyent.c: Likewise.
34532         * misc/mntent_r.c: Likewise.
34533         * posix/getopt.c: Likewise.
34534         * posix/wordexp.c: Likewise.
34535         * pwd/fgetpwent_r.c: Likewise.
34536         * resolv/Versions: Likewise.
34537         * resolv/res_hconf.c: Likewise.
34538         * shadow/fgetspent_r.c: Likewise.
34539         * shadow/putspent.c: Likewise.
34540         * stdio-common/printf_fphex.c: Likewise.
34541         * stdio-common/tmpfile.c: Likewise.
34542         * stdlib/abort.c: Likewise.
34543         * stdlib/fmtmsg.c: Likewise.
34544         * sunrpc/auth_unix.c: Likewise.
34545         * sunrpc/clnt_perr.c: Likewise.
34546         * sunrpc/clnt_tcp.c: Likewise.
34547         * sunrpc/clnt_udp.c: Likewise.
34548         * sunrpc/clnt_unix.c: Likewise.
34549         * sunrpc/openchild.c: Likewise.
34550         * sunrpc/svc_simple.c: Likewise.
34551         * sunrpc/svc_tcp.c: Likewise.
34552         * sunrpc/svc_udp.c: Likewise.
34553         * sunrpc/svc_unix.c: Likewise.
34554         * sunrpc/xdr.c: Likewise.
34555         * sunrpc/xdr_array.c: Likewise.
34556         * sunrpc/xdr_rec.c: Likewise.
34557         * sunrpc/xdr_ref.c: Likewise.
34558         * sunrpc/xdr_stdio.c: Likewise.
34559
34560 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34561
34562         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34563
34564 2011-07-03  Andreas Jaeger  <aj@suse.de>
34565
34566         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34567         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34568         regenerate with gen-libm-tests.pl.
34569
34570 2010-05-12  Petr Baudis  <pasky@suse.cz>
34571
34572         [BZ #11589]
34573         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34574         around j0() zero points by switching to j1().
34575         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34576         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34577         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34578         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34579
34580 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34581
34582         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34583         instead of 0.
34584         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34585         instead of 0.
34586         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34587         Patch in part by Pavel Roskin <proski@gnu.org>.
34588
34589         [BZ #13138]
34590         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34591         realloc.
34592         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34593         Free memory block if necessary.
34594
34595         [BZ #12847]
34596         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34597         be NULL.  Don't lock in this case.
34598
34599 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34600
34601         * elf/elf.h (ELFOSABI_GNU): New macro.
34602         (ELFOSABI_LINUX): Define to that.
34603
34604 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34605
34606         * string/strncat.c (strncat): Undef the symbol in case it has been
34607         defined in bits/string.h.
34608
34609 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34610
34611         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34612
34613         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34614         link map.
34615
34616 2011-08-17  Andreas Jaeger  <aj@suse.de>
34617
34618         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34619
34620 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34621             Ian Lance Taylor  <iant@google.com>
34622
34623         * math/libm-test.inc (lround_test): New testcase.
34624         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34625
34626 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34627
34628         * Makefile: Remove support for automatic cvs check-ins.
34629         * Makerules: Likewise.
34630         * config.make.in: Likewise.
34631         * configure.in: Likewise.
34632         * intl/Makefile: Likewise.
34633         * locale/Makefile: Likewise.
34634         * po/Makefile: Likewise.
34635         * posix/Makefile: Likewise.
34636         * sysdeps/gnu/Makefile: Likewise.
34637         * sysdeps/mach/hurd/Makefile: Likewise.
34638         * sysdeps/sparc/sparc32/Makefile: Likewise.
34639
34640         [BZ #13118]
34641         * posix/Makefile (bug-regex32-ENV): Define.
34642         Patch by John Stanley <jpsinthemix@verizon.net>.
34643
34644         * misc/Makefile (headers): Add bits/select2.h.
34645         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34646         * misc/bits/select2.h: New file.
34647         * include/bits/select2.h: New file.
34648         * debug/Makefile (routines): Add fdelt_chk.
34649         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34650         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34651         FD_ISSET.
34652         * debug/fdelt_chk.c: New file.
34653
34654         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34655         * wcsmbs/test-wmemcmp.c: Likewise.
34656         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34657         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34658
34659 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34660
34661         * string/Makefile (strop-tests): Add memcmp.
34662         * string/test-wmemcmp.c: New file.
34663         * string/test-memcmp.c: Add wmemcmp support.
34664
34665 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34666
34667         [BZ #13153]
34668         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34669         2011-07-19 change.
34670
34671         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34672         garbage value in a __mach_port_mod_refs call in the cases of the
34673         task-self and thread-self ports.
34674
34675 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34676
34677         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34678
34679 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34680
34681         * elf/dl-load.c (lose): Check for non-null L.
34682
34683 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34684
34685         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34686
34687         * elf/dl-libc.c (dlerror_run): Pass back error code from
34688         dl_catch_error.
34689
34690         [BZ #13123]
34691         * elf/dl-load.c (lose): Free l_origin if it is valid.
34692
34693         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34694         names.
34695         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34696         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34697         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34698         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34699         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34700         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34701
34702 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34703
34704         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34705         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34706         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34707         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34708         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34709         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34710         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34711         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34712         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34713         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34714
34715 2011-08-15  Alan Modra  <amodra@gmail.com>
34716
34717         [BZ #13092]
34718         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34719         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34720         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34721         ppc_mcount to static-only-routines.
34722         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34723         __mcount_internal.
34724         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34725         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34726
34727 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34728
34729         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34730         for finite and infinity parameters.
34731
34732 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34733
34734         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34735         and add nop instructions for throughput optimization.
34736         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34737
34738 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34739
34740         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34741         aligned copy for power7 with vector-scalar instructions.
34742         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34743
34744 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34745
34746         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34747         AVX check.
34748
34749 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34750
34751         [BZ #13144]
34752         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34753         last change.
34754
34755 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34756
34757         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34758         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34759         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34760         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34761         clock_gettime.
34762
34763 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34764
34765         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34766         Forgot to demangle the pointer.
34767
34768         * sysdeps/i386/sysdep.h: Define atom_text_section.
34769         * sysdeps/x86_64/sysdep.h: Likewise.
34770         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34771         section with atom_text_section.
34772         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34773         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34774         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34775         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34776         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34777
34778         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34779         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34780         already be defined.  Change to take two parameters and don't assign
34781         result to variable.  Adjust all users.
34782         Define INTERNAL_GETTIME if not already defined.
34783         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34784         call.
34785         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34786         HAVE_CLOCK_GETTIME_VSYSCALL.
34787         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34788
34789         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34790         gettimeofday vsyscall, just use time.
34791
34792 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34793
34794         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34795         <errno.h>.
34796
34797 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34798
34799         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34800         syscall on x86-64.
34801         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34802         syscall.
34803         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34804         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34805         syscall if possible.
34806
34807 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34808
34809         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34810         e_ident.  Don't pass to find_mapsXX.
34811         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34812
34813 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34814
34815         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34816         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34817         * sysdeps/x86_64/multiarch/strchr.S: Update.
34818         Check bit_slow_BSF bit.
34819         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34820         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34821         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34822
34823 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34824
34825         [BZ #13134]
34826         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34827         before glibc 2.15.
34828         (tryshell): Define.
34829         (__spawni): Change last parameter to be flag.  Test
34830         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34831         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34832         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34833         * posix/spawni.c: Likewise.
34834         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34835         * posix/spawnp.c: Likewise.  Change normal version to use
34836         SPAWN_XFLAGS_USE_PATH.
34837         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34838         SPAWN_XFLAGS_TRY_SHELL.
34839
34840         [BZ #13150]
34841         * posix/glob.h: Remove gcc 1.x support.
34842
34843         [BZ #13068]
34844         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34845
34846 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34847
34848         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34849         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34850         strrchr-sse2-bsf
34851         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34852         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34853         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34854         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34855         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34856         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34857
34858 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34859
34860         * sysdeps/x86_64/wcscmp.S: New file.
34861
34862         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34863         wcscmp-c wcscmp-sse2
34864         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34865         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34866         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34867         * wcsmbs/wcscmp.c: Allow renaming.
34868
34869 2011-09-05  David S. Miller  <davem@davemloft.net>
34870
34871         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34872         stack slot, rather than the struct return pointer slot.
34873         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34874         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34876         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34877
34878 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34879
34880         * po/ja.po: Update from translation team.
34881
34882         [BZ #13144]
34883         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34884         kernel in 64-bit binaries.
34885
34886 2011-09-01  David S. Miller  <davem@davemloft.net>
34887
34888         * elf/elf.h (HWCAP_SPARC_*): Move to..
34889         * sysdeps/sparc/sysdep.h: this new file and add new values.
34890         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34891         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34892         _DL_HWCAP_COUNT to 24.
34893         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34894         entries.
34895         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34896         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34897         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34898         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34899         instead of magic constants.
34900         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34901
34902 2011-08-31  David S. Miller  <davem@davemloft.net>
34903
34904         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34905         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34906         Reimplement to do errno handling inline.
34907         (SYSCALL_ERROR_HANDLER): New macro.
34908         (__SYSCALL_STRING): Do not do errno handling in asm.
34909         (__CLONE_SYSCALL_STRING): Delete.
34910         (__INTERNAL_SYSCALL_STRING): Delete.
34911         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34912         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34913         (PSEUDO): Reimplement to do errno handling inline.
34914         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34915         (SYSCALL_ERROR_HANDLER): New macro.
34916         (__SYSCALL_STRING): Do not do errno handling in asm.
34917         (__CLONE_SYSCALL_STRING): Delete.
34918         (__INTERNAL_SYSCALL_STRING): Delete.
34919         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34920         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34921         i386.
34922         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34923         (inline_syscall*): Add 'err' argument.
34924         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34925         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34926         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34927         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34928
34929         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34930         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34931
34932 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34933
34934         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34935
34936 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34937
34938         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34939         directive.
34940
34941 2011-08-24  David S. Miller  <davem@davemloft.net>
34942
34943         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34944
34945 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34946
34947         * elf/Makefile: Add rules to build and run unload8 test.
34948         * elf/unload8.c: New file.
34949         * elf/unload8mod1.c: New file.
34950         * elf/unload8mod1x.c: New file.
34951         * elf/unload8mod2.c: New file.
34952         * elf/unload8mod3.c: New file.
34953
34954         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34955         it wasn't used.
34956
34957 2011-08-23  David S. Miller  <davem@davemloft.net>
34958
34959         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34960         subtract stack bias.
34961         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34962         %sp not %fp in calculations.
34963         (_JMPBUF_UNWINDS_ADJ): Likewise.
34964
34965         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34966         (aio_suspend): Call it to force an exception region around the
34967         AIO_MISC_WAIT() invocation.
34968
34969 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34970
34971         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34972         backslash.
34973
34974 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34975
34976         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34977         protection macro.
34978         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34979         and <dl-machine.h>.
34980         (Elf64_FuncDesc): Remove.
34981
34982 2011-08-22  David S. Miller  <davem@davemloft.net>
34983
34984         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34985         sigaltstack check, add missing cfi directives.
34986         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34987         missing cfi directives, and sigaltstack handling.
34988
34989 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34990
34991         [BZ #11724]
34992         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
34993         object is seen twice.
34994         * elf/dl-fini.c (_dl_sort_fini): Likewise.
34995
34996         * elf/Makefile (distribute): Add tst-initorder2.c.
34997         (tests): Add tst-initorder2.
34998         (modules-names): Add tst-initorder2a tst-initorder2b
34999         tst-initorder2c tst-initorder2d.  Add rules to build them.
35000         ($(objpfx)tst-initorder2.out): New rule.
35001         * elf/tst-initorder2.c: New file.
35002         * elf/tst-initorder2.exp: New file.
35003
35004 2011-08-22  Andreas Schwab  <schwab@redhat.com>
35005
35006         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
35007
35008         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
35009         dependencies back to end of function.
35010
35011         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
35012         $(elfobjdir)/ld.so.
35013
35014 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
35015
35016         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
35017         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
35018         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
35019         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
35020         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
35021         of __vdso_gettimeofday.
35022         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
35023         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
35024         attribute_hidden.
35025         (_libc_vdso_platform_setup): Remove initialization of
35026         __vdso_gettimeofday and __vdso_time.
35027
35028 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
35029
35030         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
35031         and fgetc_unlocked.
35032         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
35033         getc_unlocked.
35034
35035         * elf/dl-open.c (add_to_global): Report additions to the global scope
35036         for LD_DEBUG=scopes.
35037         (dl_open_worker): Also print scope of newly loaded dependencies.
35038         (_dl_show_scope): Indicate if there is no scope.
35039
35040         [BZ #13114]
35041         * stdio-common/Makefile (tests): Add bug24.
35042         * stdio-common/bug24.c: New file.
35043
35044 2011-08-19  Andreas Jaeger  <aj@suse.de>
35045
35046         [BZ #13114]
35047         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
35048         non-existant file when using close-on-exec mode.
35049
35050 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
35051
35052         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
35053         the very first instruction.
35054
35055         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
35056         the CFI state in the end.
35057         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
35058         inclusion of dl-trampoline.h.
35059         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
35060
35061 2011-08-19  Andreas Schwab  <schwab@redhat.com>
35062
35063         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
35064         expectations for long double.
35065
35066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
35067         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
35068
35069 2011-08-14  David S. Miller  <davem@davemloft.net>
35070
35071         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
35072         artificual limit depends upon the system page size.
35073
35074 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
35075
35076         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
35077         * resolv/Makefile: Define CFLAGS-libresolv.
35078
35079 2011-08-17  Andreas Schwab  <schwab@redhat.com>
35080
35081         * nss/makedb.c (compute_tables): Make variables used in nested
35082         function static.
35083
35084 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
35085
35086         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
35087         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
35088         if buffer was too small.
35089
35090         * elf/pldd.c (main): Attach to all threads in the process.
35091         Rewrite /proc handling to use *at functions.
35092
35093 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
35094
35095         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
35096         specifies first scope to show.
35097         (dl_open_worker): Update callers.  Move printing scope of new
35098         object to before the relocation.
35099         * elf/rtld.c (dl_main): Update _dl_show_scope call.
35100         * sysdeps/generic/ldsodefs.h: Update declaration.
35101
35102         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
35103         string for the scope number.
35104
35105 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
35106
35107         * nscd/servicescache.c (cache_addserv): Make sure written is always
35108         initialized.
35109
35110 2011-08-14  Roland McGrath  <roland@hack.frob.com>
35111
35112         * sysdeps/i386/i486/bits/atomic.h
35113         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
35114         statement expression, so as to suppress "set but not used" warning.
35115         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
35116
35117         * string/strncat.c (STRNCAT): Use prototype definition.
35118
35119         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
35120         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
35121         -Iprograms here.
35122         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
35123         (localedef-modules): Add localedef.
35124         (locale-modules): Add locale.
35125
35126         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
35127         * elf/rtld.c (dl_main): Invert order of assignment in last change,
35128         to avoid a warning.
35129
35130 2011-08-14  David S. Miller  <davem@davemloft.net>
35131
35132         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
35133         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
35134
35135 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
35136
35137         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
35138         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
35139         * elf/rtld.c (dl_main): Set l_name of vDSO.
35140         Call _dl_show_scope when DL_DEBUG_SCOPES.
35141         (process_dl_debug): Recognize scopes flag and also set it for all.
35142         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
35143         Declare _dl_show_scope.
35144
35145         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
35146         (do_dlopen): Pass caller_dlopen to dl_open.
35147         (__libc_dlopen_mode): Initialize caller_dlopen.
35148
35149         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
35150         of libc.  Make tolower call locale-independent.  Optimize a bit by
35151         using isdigit instead of isalnum.
35152         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
35153
35154 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
35155
35156         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
35157         was a dependency or dynamically loaded.
35158
35159 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
35160
35161         * intl/l10nflist.c: Allow architecture-specific pop function.
35162         * sysdeps/x86_64/l10nflist.c: New file.
35163
35164         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
35165         classification.
35166
35167 2011-08-10  Andreas Schwab  <schwab@redhat.com>
35168
35169         * include/dirent.h: Add libc_hidden_proto for scandirat and
35170         scandirat64.  Don't declare __scandirat64.
35171         * dirent/scandirat.c: Add libc_hidden_def.
35172         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
35173         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
35174
35175 2011-08-10  David S. Miller  <davem@davemloft.net>
35176
35177         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
35178         enum.
35179         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35180         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35181         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35182
35183 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
35184
35185         * Versions.def [libc]: Add GLIBC_2.15.
35186         * dirent/Makefile (routines): Add scandirat and scandirat64.
35187         * dirent/Versions [libc]: Export scandirat and scandirat64 for
35188         GLIBC_2.15.
35189         * dirent/dirent.h: Declare scandirat and scandirat64.
35190         * dirent/scandirat.c: New file.
35191         * dirent/scandirat64.c: New file.
35192         * sysdeps/wordsize-64/scandirat.c: New file.
35193         * sysdeps/wordsize-64/scandirat64.c: New file.
35194         * dirent/opendir.c: Define opendirat.
35195         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
35196         using scandirat.
35197         * dirent/scandir64.c: Adjust for scandir.c change.
35198         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
35199         __scandirat64, and __scandir_cancel_handler.
35200         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
35201         additional parameter and use openat instead of open (outside of ld.so).
35202         Add new __opendir as wrapper around __opendirat.
35203         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
35204         here without requiring old scandirat implementation.
35205
35206 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
35207
35208         * dirent/scandir.c (cancel_handler): Renamed to
35209         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
35210         defined.  Adjust users.
35211         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
35212         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
35213
35214 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
35215
35216         * string/test-string.h (IMPL): Use __STRING to expand name and then
35217         stringify it.
35218
35219         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
35220         of cleanups.
35221
35222 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35223
35224         * string/Makefile: Update.
35225         (strop-tests): Append strncat.
35226         * string/test-wcscmp.c: New file.
35227         New comprehensive test for wcscmp.
35228         * string/test-strcmp.c: Update.
35229         (WIDE): New define.
35230
35231 2011-07-22  Andreas Schwab  <schwab@redhat.com>
35232
35233         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
35234         line.
35235
35236 2011-07-26  Andreas Schwab  <schwab@redhat.com>
35237
35238         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
35239         encoding to ACE if AI_IDN.
35240
35241 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
35242
35243         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
35244         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
35245
35246 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35247
35248         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
35249         Fix overflow bug in strncat.
35250         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
35251
35252         * string/test-strncat.c: Update.
35253         Add new tests for checking overflow bugs.
35254
35255 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35256
35257         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35258         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
35259         * sysdeps/i386/i686/multiarch/strcat.S: New file.
35260         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
35261         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
35262         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
35263         * sysdeps/i386/i686/multiarch/strncat.S: New file.
35264         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
35265         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
35266
35267         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
35268         (USE_AS_STRCAT): Define.
35269         Add strcat and strncat support.
35270         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
35271
35272 2011-07-25  Andreas Schwab  <schwab@redhat.com>
35273
35274         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
35275         __n bigger than INT_MAX+1.
35276         (__strncmp_g): Likewise.
35277
35278 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
35279
35280         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
35281         * libio/stido.h: Likewise.
35282
35283         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
35284         (AF_NFC): Define.
35285         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
35286         (AF_NFC): Define.
35287
35288         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
35289         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35290         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35291         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35292         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35293
35294         [BZ #13021]
35295         * scripts/test-installation.pl: Don't expect libnss_test1 to be
35296         installed.
35297
35298         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
35299         typo.
35300         (_dl_x86_64_save_sse): Likewise.
35301
35302 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
35303
35304         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
35305         OSXSAVE.
35306         (_dl_x86_64_save_sse): Likewise.
35307
35308         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
35309
35310         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
35311
35312 2011-07-21  Andreas Schwab  <schwab@redhat.com>
35313
35314         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
35315         change.
35316         (_dl_x86_64_save_sse): Use correct AVX check.
35317
35318 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35319
35320         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
35321         bug in strncpy/strncat.
35322         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
35323
35324 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
35325
35326         * string/tester.c (test_strcat): Add tests for different alignments
35327         of source and destination.
35328         (test_strncat): Likewise.
35329
35330 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35331
35332         [BZ #12852]
35333         * posix/glob.c (glob): Check passed in values before using them in
35334         expressions to avoid some overflows.
35335         (glob_in_dir): Likewise.
35336
35337         [BZ #13007]
35338         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
35339         check for AVX enablement so that we don't crash with old kernels and
35340         new hardware.
35341         * elf/tst-audit4.c: Add same checks here.
35342         * elf/tst-audit6.c: Likewise.
35343
35344         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
35345
35346 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
35347
35348         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
35349
35350 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35351
35352         * po/cs.po: Update from translation team.
35353         * po/bg.po: Likewise.
35354
35355 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
35356
35357         * misc/sys/cdefs.h: Add support for const attribute.
35358         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
35359         to gnu_dev_{major,minor,makedev} functions.
35360
35361 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35362
35363         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35364
35365 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35366
35367         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35368         strlen results.
35369
35370 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35371
35372         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35373         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35374         register in order to avoid conflicts with the soft frame pointer
35375         being held in r11 when necessary.
35376         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35377         (INTERNAL_VSYSCALL_NCS): Likewise.
35378
35379 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35380
35381         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35382         * elf/dl-fini.c (_dl_fini): Adjust caller.
35383         * elf/dl-close.c (_dl_close_worker): Likewise.
35384         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35385
35386 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35387
35388         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35389         "aux_cache->nlibs < 0".
35390
35391         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35392         in the reload-count case.
35393
35394 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35395
35396         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35397         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35398         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35399         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35400         * sysdeps/x86_64/multiarch/strcat.S: New file.
35401         * sysdeps/x86_64/multiarch/strncat.S: New file.
35402         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35403         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35404         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35405         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35406         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35407         (USE_AS_STRCAT): Define.
35408         Add strcat and strncat support.
35409         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35410         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35411         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35412         * string/strncat.c: Update.
35413         (USE_AS_STRNCAT): Define.
35414         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35415         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35416         and i7.
35417         * sysdeps/x86_64/multiarch/init-arch.h
35418         (bit_Prefer_PMINUB_for_stringop): New.
35419         (index_Prefer_PMINUB_for_stringop): Likewise.
35420         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35421         bit_Prefer_PMINUB_for_stringop.
35422
35423 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35424
35425         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35426         buffer64.
35427         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35428         of casting of buffer.
35429         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35430         buffer32 and buffer64.
35431         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35432         writes instead of casting of buffer.
35433         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35434         buffer32.
35435         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35436         casting of buffer.
35437
35438 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35439
35440         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35441
35442 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35443
35444         * nscd/nscd.c (termination_handler): Don't do anything for a database
35445         if it has not yet been initialized.
35446
35447 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35448
35449         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35450
35451 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35452
35453         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35454
35455 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35456
35457         * po/nl.po: Update from translation team.
35458         * po/sv.po: Likewise.
35459
35460 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35461
35462         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35463         now disallowed by GCC.
35464
35465         * configure.in (use-default-link): Default to yes if a test -shared
35466         link meets our qualifications.
35467         * configure: Regenerated.
35468
35469         * config.make.in (output-format): New variable.
35470         * configure.in: Check for ld --print-output-format support.
35471         * configure: Regenerated.
35472         * Makerules ($(common-objpfx)format.lds)
35473         [$(output-format) != unknown]: Just use $(output-format),
35474         instead of the linker-script munging.
35475
35476 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35477
35478         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35479         of $(common-objpfx)shlib.lds.
35480         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35481
35482         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35483         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35484
35485         * configure.in (-z relro check): Adjust test code to add a large
35486         writable data section after it.
35487         * configure: Regenerated.
35488
35489 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35490
35491         * configure.in (-z relro check): Fix test code to make the variable
35492         truly const.
35493         * configure: Regenerated.
35494
35495 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35496
35497         * nscd/nscd.h (struct traced_file): Define.
35498         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35499         elements.  Add traced_files.
35500         (inotify_fd): Declare.
35501         (register_traced_file): Declare.
35502         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35503         (inotify_fd): Export.
35504         (resolv_conf_descr): Remove.
35505         (nscd_init): Move inotify descriptor creation to main.
35506         Don't register files for notification here.
35507         (register_traced_file): New function.
35508         (invalidate_cache): Don't use reset_res to determine whether to call
35509         res_init, go through the list of registered files.
35510         (main_loop_poll): The inotify descriptors are now stored in the
35511         structures for the traced files.
35512         (main_loop_epoll): Likewise
35513         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35514         to __nss_disable_nscd.
35515         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35516         for a database anymore.  Check the records for all the registered
35517         files instead.
35518         * nss/Makefile (libnss_files-routines): Add files-init.
35519         (libnss_db-routines): Add db-init.
35520         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35521         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35522         * nss/nss_db/db-init.c: New file.
35523         * nss/nss_files/files-init.c: New file.
35524         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35525         __nss_lookup_function.
35526         (__nss_lookup_function): Call nss_load_library.
35527         (nss_load_all_libraries): New function.
35528         (__nss_disable_nscd): Take parameter with callback function for files
35529         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35530         used for the cached services.
35531         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35532         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35533         options for features to all the files in nscd.
35534
35535         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35536
35537 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35538
35539         * csu/elf-init.c (__libc_csu_init): Comment typo.
35540
35541 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35542
35543         * po/pl.po: Update from translation team.
35544         * po/ja.po: Likewise.
35545         * po/ru.po: Likewise.
35546         * po/ko.po: Likewise.
35547         * po/fr.po: Likewise.
35548
35549 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35550
35551         * configure.in (.ctors/.dtors header and trailer check):
35552         Use an empirical test on a built program.
35553         * configure: Regenerated.
35554
35555         * configure.in (-z relro check): Use an empirical test on a built DSO.
35556         Detect, but do not require, on ia64.
35557         * configure: Regenerated.
35558
35559         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35560         Update tests that use readelf to use $READELF instead.
35561         * configure: Regenerated.
35562
35563 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35564
35565         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35566         if the result is not used.
35567
35568 2011-07-05  Andreas Jaeger  <aj@suse.de>
35569
35570         [BZ#9696]
35571         * stdlib/tst-strtod.c: Add testcase.
35572
35573 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35574
35575         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35576         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35577         The latter has a higher limit.  Take additional parameter to pass to
35578         the new function.
35579         (__pathconf): Pass file to __statfs_link_max.
35580         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35581         __statfs_link_max.
35582         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35583         __statfs_link_max.
35584
35585         [BZ #12868]
35586         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35587         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35588         Handle Lustre.
35589         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35590         (__statfs_filesize_max): Likewise.
35591         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35592
35593 2011-07-05  Andreas Jaeger  <aj@suse.de>
35594
35595         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35596
35597 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35598
35599         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35600         `status' variable.
35601         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35602         Likewise.
35603
35604 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35605
35606         * Makefile (strop-tests): Add strncat.
35607         * string/test-strncat.c: New file.
35608
35609 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35610
35611         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35612
35613 2011-06-21  Andreas Jaeger  <aj@suse.de>
35614
35615         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35616         Copy rule from iconvdata/Makefile.
35617
35618 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35619
35620         [BZ #12922]
35621         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35622         but no long options are defined, just return 'W'.
35623
35624 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35625
35626         [BZ #9696]
35627         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35628
35629 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35630
35631         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35632         netgroups to read.
35633         (innetgr): Likewise.
35634
35635 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35636
35637         * config.make.in (install_root): Default to $(DESTDIR).
35638
35639 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35640
35641         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35642
35643 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35644
35645         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35646
35647         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35648         containing directory rather than embedding absolute directory names.
35649
35650         * scripts/check-local-headers.sh: Rewritten using awk.
35651         Match by word, not by line.  Print error messages for matches.
35652         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35653
35654         * Makerules [shlib-lds-flags empty]:
35655         ($(common-objpfx)libc_pic.opts): New target.
35656         ($(common-objpfx)libc_pic.os.clean): New target.
35657         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35658
35659         * config.make.in (OBJCOPY): New variable.
35660         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35661         * configure: Regenerated.
35662
35663         * config.make.in (use-default-link): New variable.
35664         * configure.in (use_default_link): Grok --with-default-link to set it.
35665         * configure: Regenerated.
35666         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35667         (shlib-lds, shlib-lds-flags): Define to empty.
35668
35669         * Makerules (shlib-lds): New variable.
35670         (shlib-lds-flags): New variable.
35671         (build-shlib, build-moduile, build-module-asneeded): Use it.
35672         ($(common-objpfx)libc.so): Use $(shlib-lds).
35673         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35674         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35675
35676         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35677         DT_FLAGS/DT_FLAGS_1 with zero flags.
35678
35679         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35680         linker script munging.
35681
35682 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35683
35684         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35685         as 128-bit value.
35686         * crypt/sha512.c (sha512_process_block): Perform total addition using
35687         128-bit if possible.
35688         (__sha512_finish_ctx): Likewise.
35689         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35690         as 64-bit value.
35691         * crypt/sha256.c (SWAP64): Define.
35692         (sha256_process_block): Perform total addition using 64-bit if
35693         possible.
35694         (__sha256_finish_ctx): Likewise.
35695
35696 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35697
35698         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
35699         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35700         * nscd/hstcache.c (cache_addhst): Likewise.
35701         * nscd/grpcache.c (cache_addgr): Likewise.
35702         * nscd/aicache.c (addhstaiX): Likewise
35703         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35704
35705 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35706
35707         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35708         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35709         * nscd/hstcache.c (cache_addhst): Likewise.
35710         * nscd/grpcache.c (cache_addgr): Likewise.
35711         * nscd/aicache.c (addhstaiX): Likewise
35712
35713 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35714
35715         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35716         domain only when needed.
35717
35718 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35719
35720         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35721         is always restored.
35722
35723 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35724
35725         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35726         are re-adding the entry.
35727         * nscd/servicescache.c (cache_addserv): Likewise.
35728
35729 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35730
35731         * sysdeps/generic/dl-irel.h: fix protection against multiple
35732         inclusions.
35733         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35734
35735 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35736
35737         [BZ #12935]
35738         * malloc/memusage.sh: Fix quoting in message.
35739         * debug/xtrace.sh: Likewise.
35740
35741         * configure.in: Remove support for --experimental-malloc option, make
35742         it the default.
35743         * config.make.in: Likewise.
35744         * malloc/Makefile: Likewise.
35745
35746 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35747
35748         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35749         two-byte characters.
35750
35751 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35752
35753         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35754         AC_CACHE_CHECK invocation.
35755         * configure: Regenerated.
35756
35757         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35758
35759 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35760
35761         [BZ #12350]
35762         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35763         bit from old_res_options.
35764
35765         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35766
35767         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35768         value type for setfct.
35769
35770 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35771
35772         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35773         __gettimeofday instead of gettimeofday.
35774
35775 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35776
35777         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35778
35779 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35780
35781         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35782
35783         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35784         info.
35785
35786 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35787
35788         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35789         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35790         strcpy-sse2-unaligned strncpy-sse2-unaligned
35791         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35792         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35793         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35794         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35795         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35796         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35797         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35798         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35799         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35800         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35801         (STRCPY): Support SSE2 and SSSE3 versions.
35802
35803 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35804
35805         [BZ #12874]
35806         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35807         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35808         kernels which artificially limit size of requests.
35809
35810 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35811
35812         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35813         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35814         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35815         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35816         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35817         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35818         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35819         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35820         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35821         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35822         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35823         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35824         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35825         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35826         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35827         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35828         Enable unaligned load optimization for Intel Core i3, i5 and i7
35829         processors.
35830         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35831         Define.
35832         (index_Fast_Unaligned_Load): Define.
35833         (HAS_FAST_UNALIGNED_LOAD): Define.
35834
35835 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35836
35837         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35838
35839 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35840
35841         [BZ #12907]
35842         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35843         until it is clear that the information is realy needed.
35844         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35845
35846 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35847
35848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35849
35850 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35851
35852         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35853         /sys/devices/system/cpu/online if it is usable.
35854
35855         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35856         reading the information from the /proc filesystem to once a second.
35857
35858 2011-06-21  Andreas Jaeger  <aj@suse.de>
35859
35860         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35861         NULL after inclusion of kernel headers.
35862
35863 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35864
35865         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35866         calls to internal_setent.
35867
35868         [BZ #12885]
35869         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35870         addresses using gethostbyname4_r ignore IPv4 addresses.
35871
35872         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35873         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35874
35875         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35876
35877 2011-06-20  David S. Miller  <davem@davemloft.net>
35878
35879         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35880         inclusions.
35881         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35882
35883         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35884         (elf_irel): Use it.
35885         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35886         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35887         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35888         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35889         * sysdeps/x86_64/dl-irel.h: Likewise.
35890
35891         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35892         * elf/dl-sym.c: Likewise.
35893
35894 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35895
35896         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35897         need to dereference resplen2.
35898
35899 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35900
35901         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35902
35903 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35904
35905         * Makeconfig: Define vardbdir and inst_vardbdir.
35906         * nss/Makefile: Add rules to install db-Makefile.
35907
35908         * nss/nss_db/db-XXX.c: Cleanup.
35909
35910         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35911         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35912         GLIBC_PRIVATE.
35913         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35914         * nss/makedb.c: Implement -g option to specify that value strings
35915         are generated and should not be added to table iterated over for
35916         get*ent calls.
35917         * nss/nss_db/db-initgroups.c: New file.
35918
35919         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35920         interface.
35921
35922         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35923         (internal_getgrouplist): Adjust to name change.
35924         Update use_initgroups_entry if this is not the first call.
35925         * nss/databases.def: Add initgroups entry.
35926
35927         * nss/makedb.c (compute_tables): Check result of multiple hash table
35928         sizes to minimize maximum chain length.
35929
35930 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35931
35932         * Versions.def: Add entry for libnss_db.
35933         * shlib-versions: Likewise.
35934         * nss/Makefile: Add rules to build libnss_db.
35935         * nss/Versions: Add libnss_db information.  Organize libnss_files
35936         entries better.
35937         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35938         makedb progra.  Some minor improvements to generate smaller files.
35939         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35940         here from...
35941         * nss/makedb.c: ...here.
35942         Improve database format to be smaller and require less memory at
35943         runtime.
35944         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35945         db anymore.
35946         * nss/nss_db/db-netgrp.c: Likewise.
35947         * nss/nss_db/db-open.c: Likewise.
35948         * nss/nss_files/flies-XXX.x: Adjust comments.
35949         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35950         * nss/nss_files/files-grp.c: Likewise.
35951         * nss/nss_files/files-hosts.c: Likewise.
35952         * nss/nss_files/files-network.c: Likewise.
35953         * nss/nss_files/files-proto.c: Likewise.
35954         * nss/nss_files/files-pwd.c: Likewise.
35955         * nss/nss_files/files-rpc.c: Likewise.
35956         * nss/nss_files/files-service.c: Likewise.
35957         * nss/nss_files/files-sgrp.c: Likewise.
35958         * nss/nss_files/files-spwd.c: Likewise.
35959         * nss/nss_db/db-alias.c: Removed.
35960         * nss/nss_db/dummy-db.h: Removed.
35961
35962 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35963
35964         * nss/makedb.c: Rewritten to not use database library.
35965         * nss/Makefile: Update to build new makedb program.
35966
35967 2011-06-14  Andreas Jaeger  <aj@suse.de>
35968
35969         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35970         memset declaration.
35971
35972 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35973
35974         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35975         tmpbuf.
35976
35977 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35978
35979         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35980         * elf/Makefile ($(objpfx)ld.so): Likewise.
35981
35982         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35983         Don't list ld.so twice in dependencies.
35984
35985         * posix/bug-regex31.c: Include <stdlib.h>.
35986
35987         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35988
35989         * nis/nss_compat/compat-spwd.c
35990         (getspent_next_nss_netgr): Remove unused variable.
35991         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
35992
35993         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
35994         nonmembers" output to use the right array.
35995
35996         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
35997
35998         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
35999
36000         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
36001         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
36002         * catgets/gencat.c (read_input_file): Likewise.
36003         * locale/programs/locarchive.c (enlarge_archive): Likewise.
36004
36005         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
36006         variable definition inside #if's controlling its use.
36007
36008         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
36009
36010         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
36011
36012         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
36013
36014         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
36015         unreachable code.
36016
36017         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
36018
36019         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
36020         * configure: Regenerated.
36021
36022         * Makerules: Revert last change.
36023         * elf/Makefile: Likewise.
36024
36025 2011-06-09  Roland McGrath  <roland@hack.frob.com>
36026
36027         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
36028         * elf/Makefile ($(objpfx)librtld.os): Likewise.
36029         (reloc-link): Likewise.
36030
36031 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
36032
36033         * elf/Makefile: Add rules to build pldd.
36034         * elf/pldd.c: New file.
36035         * elf/pldd-xx.c: New file.
36036
36037 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
36038
36039         * version.h: Update for 2.15 development version.
36040
36041 2011-06-07  David S. Miller  <davem@davemloft.net>
36042
36043         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
36044         ifuncs.
36045         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
36046         elf_machine_lazy_rel): Likewise.
36047         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
36048         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
36049         elf_machine_lazy_rel): Likewise.
36050         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
36051         dl_hwcap via passed in argument.
36052         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
36053         Likewise.
36054
36055 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36056
36057         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
36058
36059 2011-06-06  Roland McGrath  <roland@hack.frob.com>
36060
36061         [BZ #12849]
36062         * manual/fdl-1.1.texi: New file, verbatim from:
36063         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
36064         * manual/lgpl-2.1.texi: New file, verbatim from:
36065         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
36066         * manual/Makefile (licenses): New variable, list those new file names.
36067         (texis): Use it.
36068         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
36069
36070         * manual/fdl.texi: File removed.
36071         * manual/lesser.texi: File removed.
36072         * manual/libc.texinfo (Copying, Documentation License):
36073         Use new @include file names, put @appendix directive before @include.
36074
36075 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
36076
36077         [BZ #12841]
36078         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
36079         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
36080         (mq_open): Add __NTH.
36081
36082 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
36083
36084         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36085         Assume Intel Core i3/i5/i7 processor if AVX is available.
36086
36087 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
36088
36089         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
36090         typo.
36091
36092 2011-05-31  Andreas Schwab  <schwab@redhat.com>
36093
36094         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
36095         memory.  Use alloca_account.  Fix memory leak when retrying.
36096
36097 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
36098
36099         * version.h (RELEASE): Bump for 2.14 release.
36100         * include/features.h (__GLIBC_MINOR__): Bump to 14.
36101
36102         * config.make.in (RANLIB): Remove entry.
36103
36104 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
36105
36106         * po/Makefile (po-sed-cmd): Add ksh to extensions.
36107         (libc.pot): Work around missing support for .ksh extension in xgettext.
36108
36109         [BZ #12684]
36110         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
36111         if both request failed.
36112         (send_dg): In case of server errors clear resplen or *resplen2.
36113
36114         [BZ #12454]
36115         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
36116         when there are multiple maps.
36117         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
36118         (_dl_fini): Remove test here.
36119
36120         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
36121
36122 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
36123
36124         [BZ #12350]
36125         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
36126         bit from old_res_options.
36127         (gaih_inet): Likewise.
36128
36129         [BZ #11099]
36130         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
36131         as signed.
36132
36133         * resolv/res_init.c (res_setoptions): Make the code more compact.
36134
36135         [BZ #11558]
36136         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
36137         set RES_USEVC.
36138
36139         [BZ #11634]
36140         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
36141
36142         * malloc/malloc.h: Mark malloc hook variables as deprecated.
36143
36144         [BZ #11781]
36145         * malloc/malloc.h: Declare malloc hook variables as volatile.
36146
36147         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
36148         in last patch.
36149
36150         [BZ #11799]
36151         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
36152         raise in the comment.
36153         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
36154         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
36155         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
36156
36157 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
36158
36159         [BZ #12811]
36160         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
36161         grow the buffers more if it already has to be sufficient.
36162         (build_wcs_upper_buffer): Likewise.
36163         * posix/regexec.c (check_matching): Likewise.
36164         (clean_state_log_if_needed): Likewise.
36165         (extend_buffers): Don't enlarge buffers beyond size of the input
36166         buffer.
36167         Patches mostly by Emil Wojak <emil@wojak.eu>.
36168         * posix/bug-regex32.c: New file.
36169         * posix/Makefile (tests): Add bug-regex32.
36170
36171         * locale/findlocale.c (_nl_find_locale): Return right away if
36172         _nl_explode_name failed.
36173         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
36174
36175         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
36176
36177         * debug/xtrace.sh: Unify messages.
36178         * malloc/memusage.sh: Likewise.
36179
36180         [BZ #12813]
36181         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
36182         time symbol from vDSO.  Substitute with vsyscall if not available.
36183         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
36184         __vdso_time.
36185
36186         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
36187         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
36188         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
36189         Add sendmmsg and internal_sendmmsg.
36190         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
36191         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
36192         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
36193
36194         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
36195         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
36196         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
36197
36198 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
36199
36200         [BZ #12813]
36201         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
36202         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
36203         available.
36204         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
36205         __vdso_getcpu.
36206
36207         [BZ #12814]
36208         * iconvdata/Makefile (tests): Add bug-iconv9.
36209         * iconvdata/bug-iconv9.c: New file.
36210
36211 2011-05-27  Andreas Schwab  <schwab@redhat.com>
36212
36213         [BZ #12814]
36214         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
36215
36216 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
36217
36218         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36219         (struct user_regs_struct): Change intcs field back to cs.
36220
36221 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
36222
36223         * po/ja.po: Update from translation team.
36224
36225 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
36226
36227         [BZ #12795]
36228         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
36229         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
36230
36231 2011-05-20  Andreas Schwab  <schwab@redhat.com>
36232
36233         * stdlib/longlong.h: Update from GCC.
36234
36235 2011-05-23  Andreas Schwab  <schwab@redhat.com>
36236
36237         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
36238         parameter name.
36239         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
36240         Add parameter name.
36241         (__sysconf): Pass it down.
36242
36243 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
36244
36245         [BZ #12671]
36246         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
36247         some situations.
36248         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36249         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
36250         add in in __libc_use_alloca calls.  Adjust callers.
36251         (glob): Use malloc in some situations.
36252
36253         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
36254         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
36255         pltexit.
36256
36257 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
36258
36259         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
36260         and CLOCK_BOOTTIME_ALARM.
36261
36262         [BZ #12782]
36263         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
36264         is returned.
36265
36266         * string/_strerror.c (__strerror_r): Print negative errors as signed
36267         numbers.
36268
36269         [BZ #12777]
36270         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
36271         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
36272         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
36273
36274         * configure.in: Fix typo in redirection and correct removal of test
36275         files in two cases.
36276
36277         [BZ #12788]
36278         * locale/setlocale.c (new_composite_name): Fix test to check for
36279         identical name of all categories.
36280
36281         [BZ #12792]
36282         * libio/filedoalloc.c (local_isatty): New function.
36283         (_IO_file_doallocate): Use local_isatty.
36284         * stdio-common/perror.c (perror): In case a new stream is used
36285         forward the stream error.
36286         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
36287         error flag.
36288
36289 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
36290
36291         [BZ #11869]
36292         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
36293         alloca.
36294         * include/alloca.h (extend_alloca_account): Define.
36295
36296         [BZ #11857]
36297         * posix/regex.h: Fix comments with documentation of user-accessible
36298         fields after compilation and describe correct free'ing of pattern
36299         after re_compile_pattern.
36300         Patch by Reuben Thomas <rrt@sc3d.org>.
36301
36302 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
36303
36304         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
36305         and -mno-altivec to prevent the compiler from using Altivec and/or
36306         VSX instructions when the corresponding registers are not available.
36307
36308 2011-05-19  Andreas Schwab  <schwab@redhat.com>
36309
36310         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
36311
36312 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
36313
36314         * libio/freopen.c (freopen): Use __dup2, not dup2.
36315         * libio/freopen64.c (freopen64): Likewise.
36316
36317 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
36318
36319         [BZ #12775]
36320         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
36321         * math/Makefile (tests): Add test-powl.
36322         (CFLAGS-test-powl.c): Define.
36323         * math/test-powl.c: New file.
36324
36325 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
36326
36327         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
36328
36329 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
36330
36331         [BZ #11837]
36332         * iconvdata/gb18030.c: Update to GB18020-2005.
36333
36334 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
36335
36336         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
36337         RE_SYNTAX_POSIX_AWK): Update to match recent development.
36338         Patch by Aharon Robbins <arnold@skeeve.com>.
36339
36340         [BZ #11892]
36341         * stdlib/putenv.c (putenv): Don't always create copy of the variable
36342         on the stack.
36343
36344         [BZ #11895]
36345         * misc/pselect.c (__pselect): Handle timeout value errors hidden
36346         through underflows.
36347
36348         [BZ #12766]
36349         * misc/error.c (error_at_line): Ensure file_name and old_file_name
36350         point to strings before performing equality test for error_one_per_line
36351         mode.
36352
36353         [BZ #11697]
36354         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
36355
36356         [BZ #11820]
36357         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36358         (struct user_fpregs_struct): Avoid __uint*_t types.
36359
36360         [BZ #6420]
36361         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36362         symbol info.  Use it instead of calling _dl_addr locally.
36363         (lock_and_info): New function.
36364         (tr_freehook): Call lock_and_info and pass symbol info as additional
36365         parameter to tr_where.
36366         (tr_mallochook): Likewise.
36367         (tr_reallochook): Likewise.
36368         (tr_memalignhook): Likewise.
36369
36370         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36371         used and couldn't be at all thread-safe.
36372
36373 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36374
36375         * libio/freopen.c (freopen): Don't close old file descriptor
36376         before the new one is opened.  Instead dup the new file descriptor
36377         to the old one after the new stream is created.
36378         * libio/freopen64.c (freopen64): Likewise.
36379         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36380         * libio/fileops.c (_IO_new_file_close_it): Handle new
36381         _IO_FLAGS2_NOCLOSE flag.
36382         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36383         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36384         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36385         _IO_FLAGS2_NOCLOSE flag.
36386         * include/unistd.h: Add hidden_proto for dup3.
36387         Define __have_dup3.
36388         * io/dup3.c: Define hidden symbol.
36389         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36390
36391         [BZ #7101]
36392         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36393         when an incomplete long option is used.
36394         * posix/tst-getopt_long1.c: New file.
36395         * posix/Makefile (tests): Add tst-getopt_long1.
36396
36397         [BZ #10138]
36398         * scripts/config.guess: Update from autoconf-2.68.
36399         * scripts/config.sub: Likewise.
36400
36401         [BZ #10157]
36402         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36403         tests into ...
36404         (has_cpuclock): ...this.  New function.
36405         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36406         macro here based on has_cpuclock code.
36407
36408         [BZ #10149]
36409         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36410         First byte (not low byte) is now always NUL.
36411         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36412
36413         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36414         Use non-cancelable interfaces.
36415
36416         [BZ #9809]
36417         * locale/iso-639.def: Add entry for Sorani.
36418
36419         [BZ #11901]
36420         * include/stdlib.h: Move include protection to the right place.
36421         Define abort_msg_s.  Declare __abort_msg with it.
36422         * stdlib/abort.c (__abort_msg): Adjust type.
36423         * assert/assert.c (__assert_fail_base): New function.  Majority
36424         of code from __assert_fail.  Allocate memory for __abort_msg with
36425         mmap.
36426         (__assert_fail): Now call __assert_fail_base.
36427         * assert/assert-perr.c: Remove bulk of implementation.  Use
36428         __assert_fail_base.
36429         * include/assert.hL Declare __assert_fail_base.
36430         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36431         mmap.
36432         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36433
36434 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36435
36436         [BZ #11952]
36437         [BZ #12453]
36438         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36439         until all modules are registered in the DTV.
36440         * elf/Makefile: Add rules to build and run tst-tls19.
36441         * elf/tst-tls19.c: New file.
36442         * elf/tst-tls19mod1.c: New file.
36443         * elf/tst-tls19mod2.c: New file.
36444         * elf/tst-tls19mod3.c: New file.
36445         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36446
36447         [BZ #12083]
36448         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36449         correctly.
36450
36451         [BZ #12601]
36452         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36453         two-byte sequence errors.
36454         * iconvdata/Makefile (tests): Add bug-iconv8.
36455         * iconvdata/bug-iconv8.c: New file.
36456
36457         [BZ #12626]
36458         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36459         buf2 definition.
36460
36461         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36462
36463         [BZ #12432]
36464         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36465         (dummy_getcfa): New function.
36466         (init): Get _Unwind_GetCFA address, use dummy if not found.
36467         (backtrace_helper): In recursion check, also check whether CFA changes.
36468         (__backtrace): Completely initialize arg.
36469
36470         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36471         storing incomplete byte sequence in state object.  Avoid testing for
36472         guaranteed too small input if we know there is enough data available.
36473
36474 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36475
36476         * Makeconfig (+link-pie): Indent.
36477         * Rules (binaries-pie): Define if $(have-fpie) and
36478         $(build-shared).
36479         (binaries-shared): Also filter out $(binaries-pie).
36480         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36481         * nscd/Makefile (others-pie): Add nscd.
36482         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36483         ($(objpfx)nscd): Remove command override.
36484         * login/Makefile (others-pie): Add pt_chown.
36485         ($(objpfx)pt_chown): Remove command override.
36486         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36487         remove command overrides.
36488
36489 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36490
36491         * libio/tst_putwc.c: Fix error messages.
36492
36493         [BZ #12724]
36494         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36495         currently writing and seek to current position when not.
36496         * libio/Makefile (tests): Add bug-fclose1.
36497         * libio/bug-fclose1.c: New file.
36498
36499 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36500
36501         [BZ #12511]
36502         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36503         don't set DF_1_NODELETE here.
36504         (do_lookup_x): When entering new entry test for copy relocation
36505         and if necessary set DF_1_NODELETE flag.
36506         * elf/tst-unique4.cc: New file.
36507         * elf/tst-unique4.h: New file.
36508         * elf/tst-unique4lib.cc: New file.
36509         * elf/Makefile: Add rules to build and run tst-unique4.
36510         Patch by Piotr Bury <pbury@goahead.com>.
36511
36512 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36513
36514         [BZ #12052]
36515         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36516
36517         [BZ #12625]
36518         * misc/mntent_r.c (addmntent): Flush the stream after the output
36519
36520         [BZ #12393]
36521         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36522         (is_trusted_path_normalize): Skip initial colon.  Append slash
36523         to empty buffer.  Duplicate is_trusted_path code but allow
36524         constructed patch to be prefix.
36525         (is_dst): Allow $ORIGIN followed by /.
36526         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36527         Correct testing of result of is_trusted_path_normalize
36528         (decompose_rpath): Fix warning.
36529
36530 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36531
36532         [BZ #11257]
36533         * grp/initgroups.c (internal_getgrouplist): When we found the service
36534         list through the initgroups entry in nsswitch.conf do not always
36535         continue on a successful lookup.  Don't always use the
36536         __nss_group_database value if it is set.
36537         * nss/nsswitch.conf (initgroups): Change action for successful db
36538         lookup to continue for compatibility.
36539
36540 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36541
36542         [BZ #11532]
36543         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36544         and CP774 modules.
36545         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36546         and CP774 modules.
36547         * iconvdata/tst-tables.sh: Likewise.
36548         * iconvdata/cp770.c: New file.
36549         * iconvdata/cp771.c: New file.
36550         * iconvdata/cp772.c: New file.
36551         * iconvdata/cp773.c: New file.
36552         * iconvdata/cp774.c: New file.
36553         * iconvdata/testdata/CP770: New file.
36554         * iconvdata/testdata/CP770..UTF8: New file.
36555         * iconvdata/testdata/CP771: New file.
36556         * iconvdata/testdata/CP771..UTF8: New file.
36557         * iconvdata/testdata/CP772: New file.
36558         * iconvdata/testdata/CP772..UTF8: New file.
36559         * iconvdata/testdata/CP773: New file.
36560         * iconvdata/testdata/CP773..UTF8: New file.
36561         * iconvdata/testdata/CP774: New file.
36562         * iconvdata/testdata/CP774..UTF8: New file.
36563
36564         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36565         END CHARMAP line.
36566         * iconvdata/gen-8bit-gap.sh: Likewise.
36567         * iconvdata/gen-8bit.sh: Likewise.
36568
36569         * locale/iso-639.def: Add ary entry.
36570
36571         [BZ #11258]
36572         * locale/C-translit.h.in: Add U20A1 transliteration.
36573
36574         [BZ #12178]
36575         * locale/iso-639.def: Add wae entry.
36576         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36577
36578         [BZ #12545]
36579         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36580         for n.
36581
36582         [BZ #12711]
36583         * locale/C-translit.h.in: Add entry for U20B9.
36584         Patch by pravin.d.s@gmail.com.
36585
36586 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36587
36588         [BZ #12713]
36589         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36590         ENAMETOOLONG use generic getcwd.
36591         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36592         in rtld.  Use *stat64.
36593         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36594         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36595         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36596         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36597         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36598         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36599         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36600         __fstatat64 macros.
36601         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36602         * dirent/rewinddir.c: Add libc_hidden_def.
36603         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36604         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36605
36606         * include/dirent.h (__alloc_dir): Add flags parameter.
36607         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36608         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36609         __alloc_dir.
36610         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36611         from fdopendir if O_CLOEXEC is already set.
36612
36613 2011-03-15  Alan Modra  <amodra@gmail.com>
36614
36615         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36616         l_tls_firstbyte_offset non-zero.  Save padding offset in
36617         l_tls_firstbyte_offset for later use.
36618         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36619         freeing static tls block.
36620
36621 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36622
36623         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36624         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36625         being defined by the kernel headers.
36626
36627 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36628
36629         [BZ #12734]
36630         * resolv/resolv.h: Define RES_NOTLDQUERY.
36631         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36632         no-tld-query and set RES_NOTLDQUERY.
36633         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36634         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36635         modern BIND to search name as TLD unless forbidden.
36636
36637 2011-05-07  Petr Baudis  <pasky@suse.cz>
36638             Ulrich Drepper  <drepper@gmail.com>
36639
36640         [BZ #12393]
36641         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36642         (is_trusted_path): ...to here.
36643         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36644         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36645         using is_trusted_path_normalize() in setuid scripts.
36646
36647 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36648
36649         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36650         __BEGIN/__END_DECLS.
36651
36652 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36653
36654         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36655         NSS_STATUS_NOTFOUND if no record was found.
36656
36657 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36658
36659         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36660         (headers-not-in-tirpc): Remove rpc/netdb.h
36661         * resolv/netdb.h: Revert last change.
36662
36663 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36664
36665         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36666         circular dependency between libgcc.a and libc.a.
36667
36668 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36669
36670         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36671         * nis/Makefile: Don't install rpcsvc/*.
36672         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36673         instead of <rpc/types.h>.
36674         (MAXHOSTNAMELEN): Define.
36675
36676 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36677
36678         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36679
36680 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36681
36682         [BZ #12714]
36683         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36684         gethostbyname4_r when IPv6 results are possible.
36685
36686 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36687
36688         [BZ #12723]
36689         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36690         _PC_PIPE_BUF handling.
36691
36692 2011-04-30  Bruno Haible  <bruno@clisp.org>
36693
36694         [BZ #12717]
36695         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36696         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36697         to 'int'.
36698         * inet/getnameinfo.c (getnameinfo): Likewise.
36699
36700 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36701
36702         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36703         to groups setting in database lookup.
36704         * nss/nsswitch.conf: Add initgroups entry.
36705
36706 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36707
36708         [BZ #12685]
36709         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36710         mode string.
36711         Patch by Eric Blake <eblake@redhat.com>.
36712
36713 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36714
36715         * sunrpc/Makefile (need-export-routines): Add svc_run.
36716         (routines): Remove svc_run.
36717         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36718         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36719         * sunrpc/svc_run.c (svc_run): Likewise.
36720         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36721
36722 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36723
36724         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36725         problem in reallocation in last patch.
36726
36727 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36728
36729         * sunrpc/Makefile: Move inclusion of Rules.
36730
36731 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36732
36733         * nss/nss_files/files-initgroups.c: New file.
36734         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36735         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36736         _nss_files_initgroups_dyn.
36737
36738 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36739
36740         * elf/elf.h (R_ARM_IRELATIVE): Define.
36741
36742 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36743
36744         * po/ru.po: Update from translation team.
36745
36746 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36747
36748         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36749         dependencies.
36750
36751 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36752
36753         [BZ #12653]
36754         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36755         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36756         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36757         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36758         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36759
36760 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36761
36762         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36763         differing bytes.
36764         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36765         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36766         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36767
36768 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36769
36770         [BZ #12420]
36771         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36772         storing it.
36773         * stdlib/bug-getcontext.c: New file.
36774         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36775
36776 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36777
36778         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36779         instructions into .machine "z9-109".
36780         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36781         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36782
36783 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36784
36785         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36786         between environment variables and auxiliary vector.
36787
36788 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36789
36790         * Makefile: Add rules to build linkobj/libc.so.
36791         * include/libc-symbols.h: Define libc_hidden_nolink.
36792         * include/rpc/auth.h: Mark functions which are to be hidden.
36793         * include/rpc/auth_des.h: Likewise.
36794         * include/rpc/auth_unix.h: Likewise.
36795         * include/rpc/clnt.h: Likewise.
36796         * include/rpc/des_crypt.h: Likewise.
36797         * include/rpc/key_prot.h: Likewise.
36798         * include/rpc/pmap_clnt.h: Likewise.
36799         * include/rpc/pmap_prot.h: Likewise.
36800         * include/rpc/pmap_rmt.h: Likewise.
36801         * include/rpc/rpc_msg.h: Likewise.
36802         * include/rpc/svc.h: Likewise.
36803         * include/rpc/svc_auth.h: Likewise.
36804         * include/rpc/xdr.h: Likewise.
36805         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36806         * nss/Makefile: Likewise.
36807         * sunrpc/Makefile: Don't install headers.  Build library with normal
36808         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36809         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36810         for the compat linking library.  Remove use of INTDEF/INTUSE.
36811         * sunrpc/auth_none.c: Likewise.
36812         * sunrpc/auth_unix.c: Likewise.
36813         * sunrpc/authdes_prot.c: Likewise.
36814         * sunrpc/authuxprot.c: Likewise.
36815         * sunrpc/clnt_gen.c: Likewise.
36816         * sunrpc/clnt_perr.c: Likewise.
36817         * sunrpc/clnt_raw.c: Likewise.
36818         * sunrpc/clnt_simp.c: Likewise.
36819         * sunrpc/clnt_tcp.c: Likewise.
36820         * sunrpc/clnt_udp.c: Likewise.
36821         * sunrpc/clnt_unix.c: Likewise.
36822         * sunrpc/des_crypt.c: Likewise.
36823         * sunrpc/des_soft.c: Likewise.
36824         * sunrpc/get_myaddr.c: Likewise.
36825         * sunrpc/key_call.c: Likewise.
36826         * sunrpc/key_prot.c: Likewise.
36827         * sunrpc/netname.c: Likewise.
36828         * sunrpc/pm_getmaps.c: Likewise.
36829         * sunrpc/pm_getport.c: Likewise.
36830         * sunrpc/pmap_clnt.c: Likewise.
36831         * sunrpc/pmap_prot.c: Likewise.
36832         * sunrpc/pmap_prot2.c: Likewise.
36833         * sunrpc/pmap_rmt.c: Likewise.
36834         * sunrpc/publickey.c: Likewise.
36835         * sunrpc/rpc_cmsg.c: Likewise.
36836         * sunrpc/rpc_common.c: Likewise.
36837         * sunrpc/rpc_dtable.c: Likewise.
36838         * sunrpc/rpc_prot.c: Likewise.
36839         * sunrpc/rpc_thread.c: Likewise.
36840         * sunrpc/rtime.c: Likewise.
36841         * sunrpc/svc.c: Likewise.
36842         * sunrpc/svc_auth.c: Likewise.
36843         * sunrpc/svc_authux.c: Likewise.
36844         * sunrpc/svc_raw.c: Likewise.
36845         * sunrpc/svc_run.c: Likewise.
36846         * sunrpc/svc_simple.c: Likewise.
36847         * sunrpc/svc_tcp.c: Likewise.
36848         * sunrpc/svc_udp.c: Likewise.
36849         * sunrpc/svc_unix.c: Likewise.
36850         * sunrpc/svcauth_des.c: Likewise.
36851         * sunrpc/xcrypt.c: Likewise.
36852         * sunrpc/xdr.c: Likewise.
36853         * sunrpc/xdr_array.c: Likewise.
36854         * sunrpc/xdr_float.c: Likewise.
36855         * sunrpc/xdr_intXX_t.c: Likewise.
36856         * sunrpc/xdr_mem.c: Likewise.
36857         * sunrpc/xdr_rec.c: Likewise.
36858         * sunrpc/xdr_ref.c: Likewise.
36859         * sunrpc/xdr_sizeof.c: Likewise.
36860         * sunrpc/xdr_stdio.c: Likewise.
36861
36862 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36863
36864         [BZ #12650]
36865         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36866         * sysdeps/ia64/dl-tls.h: Likewise.
36867         * sysdeps/powerpc/dl-tls.h: Likewise.
36868         * sysdeps/s390/dl-tls.h: Likewise.
36869         * sysdeps/sh/dl-tls.h: Likewise.
36870         * sysdeps/sparc/dl-tls.h: Likewise.
36871         * sysdeps/x86_64/dl-tls.h: Likewise.
36872         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36873
36874 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36875
36876         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36877         rpath element also skip the following colon.
36878         (expand_dynamic_string_token): Add is_path parameter and pass
36879         down to DL_DST_REQUIRED and _dl_dst_substitute.
36880         (decompose_rpath): Call expand_dynamic_string_token with
36881         non-zero is_path.  Ignore empty rpaths.
36882         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36883         with zero is_path.
36884
36885 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36886
36887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36888         Make cancelable.
36889
36890 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36891
36892         [BZ #12655]
36893         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36894         Patch by Filipe David Manana <fdmanana@apache.org>.
36895
36896 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36897
36898         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36899         Maintain aligned stack.
36900         (CHECK_RSP): Remove unused macro.
36901
36902 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36903
36904         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36905         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36906
36907 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36908
36909         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36910
36911         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36912
36913 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36914
36915         [BZ #12518]
36916         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36917         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36918         * sysdeps/x86_64/memmove.c: New file.
36919         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36920         (memcpy): Renamed to ...
36921         (__new_memcpy): This.
36922         (memcpy): Provide GLIBC_2_14 memcpy.
36923         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36924         (memcpy): Provide GLIBC_2_2_5 memcpy.
36925
36926 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36927
36928         [BZ #12631]
36929         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36930
36931 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36932
36933         * misc/syncfs.c: New file.
36934         * misc/Makefile (routines): Add syncfs.
36935         * posix/unistd.h: Declare syncfs.
36936         * sysdeps/unix/syscalls.list: Add syncfs.
36937
36938 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36939
36940         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36941         open_by_handle_at.
36942         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36943         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36944         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36945         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36946         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36947         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36948         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36949
36950 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36951
36952         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36953         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36954         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36955         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36956         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36957         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36958         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36959
36960         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36961         sync_file_range.c with -fexceptions.
36962         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36963         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36964         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36965         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36966         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36967         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36968         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36969         sync_file_range as cancellation point
36970         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36971         now a wrapper around __call_sync_file_range with cancellation handling.
36972         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36973         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36974         function name to __call_sync_file_range.
36975         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36976         Add call_sync_file_range.
36977
36978 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36979
36980         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36981         bits/timex.h.
36982
36983 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36984
36985         * iconv/iconv.h: Fix typo in comment.
36986         * io/fcntl.h: Likewise.
36987         * libio/stdio.h: Likewise.
36988         * posix/spawn.h: Likewise.
36989         * posix/unistd.h: Likewise.
36990         * stdlib/stdlib.h: Likewise.
36991         * time/time.h: Likewise.
36992         * wcsmbs/wchar.h: Likewise.
36993
36994         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
36995         open_by_handle): Add.
36996         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
36997         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
36998         Augment a few comments.
36999         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
37000         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
37001         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
37002         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
37003         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
37004         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
37005         open_by_handle.
37006
37007         * io/fcntl.h (AT_EMPTY_PATH): Define.
37008
37009 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
37010
37011         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
37012         * sysdeps/unix/sysv/linux/bits/time.h: New file.
37013         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
37014         to...
37015         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
37016         * Versions.def: Add GLIBC_2.14.
37017         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
37018         Export.
37019
37020 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
37021
37022         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
37023         round counter.
37024         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
37025
37026 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37027
37028         [BZ #12597]
37029         * string/test-strncmp.c (do_page_test): New function.
37030         (check2): Likewise.
37031         (test_main): Call check2.
37032         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
37033
37034 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
37035
37036         [BZ #12587]
37037         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
37038         Handle cache information in CPU leaf 4.
37039         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
37040
37041 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
37042
37043         [BZ #12583]
37044         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
37045         character representation.
37046         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
37047
37048 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
37049
37050         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
37051         END(__isnan) to END(__isnanf) to match function entry point/label
37052         EALIGN(__isnanf,...).
37053
37054 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
37055
37056         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
37057
37058 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
37059
37060         [BZ #12510]
37061         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
37062         copy from the symbol referenced in the relocation to initialize the
37063         used variable.
37064         Patch by Piotr Bury <pbury@goahead.com>.
37065         * elf/Makefile: Add rules to build and tst-unique3.
37066         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
37067         * elf/tst-unique3.cc: New file.
37068         * elf/tst-unique3.h: New file.
37069         * elf/tst-unique3lib.cc: New file.
37070         * elf/tst-unique3lib2.cc: New file.
37071
37072         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
37073
37074 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
37075
37076         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
37077         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
37078         to _start.
37079
37080 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
37081
37082         * elf/dl-load.c (_dl_map_object): If we are looking for the first
37083         to-be-loaded object along a path to loader is ld.so.
37084
37085 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
37086             Ulrich Drepper  <drepper@gmail.com>
37087
37088         * sysdeps/x86_64/memset.S: After aligning destination, code
37089         branches to different locations depending on the value of
37090         misalignment, when multiarch is enabled. Fix this.
37091
37092 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
37093
37094         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
37095         Set _x86_64_preferred_memory_instruction for AMD processsors.
37096         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37097         Set bit_Prefer_SSE_for_memop for AMD processors.
37098
37099 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
37100
37101         * libio/fmemopen.c (fmemopen): Optimize a bit.
37102
37103 2011-03-03  Andreas Schwab  <schwab@redhat.com>
37104
37105         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
37106
37107 2011-03-03  Roland McGrath  <roland@redhat.com>
37108
37109         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
37110
37111 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
37112
37113         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
37114         __bzero_ultra1 instead of __memset_ultra1.
37115
37116 2011-02-23  Andreas Schwab  <schwab@redhat.com>
37117             Ulrich Drepper  <drepper@gmail.com>
37118
37119         [BZ #12509]
37120         * include/link.h (struct link_map): Add l_orig_initfini.
37121         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
37122         returning unsuccessfully.
37123         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
37124         close of a file loaded at startup, restore the original l_initfini
37125         list.
37126         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
37127         list, store the pointer.
37128         * elf/Makefile ($(objpfx)noload-mem): New rule.
37129         (noload-ENV): Define.
37130         (tests): Add $(objpfx)noload-mem.
37131         * elf/noload.c: Include <memcheck.h>.
37132         (main): Call mtrace.  Close all opened handles.
37133
37134 2011-02-17  Andreas Schwab  <schwab@redhat.com>
37135
37136         [BZ #12454]
37137         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
37138         dependencies are missing.
37139
37140 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37141
37142         Fix __if_freereq crash: Unlike the generic version which uses free,
37143         Hurd needs munmap.
37144         * sysdeps/mach/hurd/ifreq.h: New file.
37145
37146 2011-01-27  Petr Baudis  <pasky@suse.cz>
37147             Ulrich Drepper  <drepper@gmail.com>
37148
37149         [BZ 12445]#
37150         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
37151         to extend_alloca().
37152         * stdio-common/bug23.c: New file.
37153         * stdio-common/Makefile (tests): Add bug23.
37154
37155 2010-09-28  Andreas Schwab  <schwab@redhat.com>
37156             Ulrich Drepper  <drepper@gmail.com>
37157
37158         [BZ #12489]
37159         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
37160         before performing relro protection.  At old place add assertion
37161         to make sure nothing changed.
37162
37163 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
37164             Glauber de Oliveira Costa  <glommer@gmail.com>
37165
37166         * elf/elf.h: Add new ARM TLS relocs.
37167
37168 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
37169
37170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
37171         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
37172         cast from r3.
37173         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
37174         'tests' variable.
37175         * sysdeps/wordsize-64/tst-writev.c: New file.
37176
37177 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
37178
37179         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
37180         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
37181         insns in _dl_start to prevent a TOC reference before relocs are
37182         resolved.
37183
37184 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
37185
37186         [BZ #12469]
37187         * Makeconfig: Remove RANLIB definition.
37188         * Makerules: Don't use RANLIB.
37189         * aclocal.m4: Remove ranlib test.
37190         * configure.in: No need to check for ranlib.
37191         * elf/rtld-Rules: Don't use RANLIB.
37192
37193 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37194
37195         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
37196         protection macro.
37197         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
37198         inclusion protection macro.
37199
37200         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
37201         SIGRTMIN and SIGRTMAX and print information in that case only when
37202         SIGRTMIN is defined.
37203
37204 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
37205
37206         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
37207         arginfo fn returning -1.
37208
37209         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
37210         and thousands string is zero terminated.
37211
37212 2011-02-03  Andreas Schwab  <schwab@redhat.com>
37213
37214         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
37215         sysdeps/unix/sysv/linux/bits/socket.h.
37216
37217 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37218
37219         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
37220         (__CPU_COUNT): Remove old macros.
37221         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
37222         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
37223         (__CPU_ALLOC, __CPU_FREE): Add macros.
37224         (__sched_cpualloc, __sched_cpufree): Add declarations.
37225
37226 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
37227
37228         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
37229         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
37230         * nscd/aicache.c (addhstaiX): Return timeout of added value.
37231         (readdhstai): Return value of addhstaiX call.
37232         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
37233         (addgrbyX): Return value returned by cache_addgr.
37234         (readdgrbyname): Return value returned by addgrbyX.
37235         (readdgrbygid): Likewise.
37236         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
37237         (addpwbyX): Return value returned by cache_addpw.
37238         (readdpwbyname): Return value returned by addhstbyX.
37239         (readdpwbyuid): Likewise.
37240         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
37241         (addservbyX): Return value returned by cache_addserv.
37242         (readdservbyname): Return value returned by addservbyX:
37243         (readdservbyport): Likewise.
37244         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
37245         (addhstbyX): Return value returned by cache_addhst.
37246         (readdhstbyname): Return value returned by addhstbyX.
37247         (readdhstbyaddr): Likewise.
37248         (readdhstbynamev6): Likewise.
37249         (readdhstbyaddrv6): Likewise.
37250         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
37251         (readdinitgroups): Return value returned by addinitgroupsX.
37252         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
37253         (prune_cache): Keep track of timeout value of re-added entries.
37254         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
37255         * nscd/nscd.h: Adjust prototypes of readd* functions.
37256
37257 2011-02-04  Roland McGrath  <roland@redhat.com>
37258
37259         * nis/nis_server.c (nis_servstate): Use the right name for 0.
37260         (nis_stats): Likewise.
37261         * nis/nis_modify.c (nis_modify): Likewise.
37262         * nis/nis_remove.c (nis_remove): Likewise.
37263         * nis/nis_add.c (nis_add): Likewise.
37264
37265         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
37266
37267         * posix/fnmatch_loop.c: Add some consts.
37268
37269         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
37270
37271 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
37272
37273         [BZ #12460]
37274         * config.make.in (config-cflags-novzeroupper): Define.
37275         * configure.in: Substitute libc_cv_cc_novzeroupper.
37276         * elf/Makefile (AVX-CFLAGS): Define.
37277         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
37278         (CFLAGS-tst-auditmod4a.c): Likewise.
37279         (CFLAGS-tst-auditmod4b.c): Likewise.
37280         (CFLAGS-tst-auditmod6b.c): Likewise.
37281         (CFLAGS-tst-auditmod6c.c): Likewise.
37282         (CFLAGS-tst-auditmod7b.c): Likewise.
37283         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
37284
37285 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
37286
37287         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
37288         function to the callback.
37289         Patch partly by Jiri Olsa <jolsa@redhat.com>.
37290
37291 2011-02-02  Andreas Schwab  <schwab@redhat.com>
37292
37293         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
37294         of errno.
37295
37296 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
37297
37298         [BZ #11724]
37299         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
37300         of constructors.
37301         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
37302         of destructors.
37303         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
37304
37305         [BZ #11724]
37306         * elf/Makefile: Add rules to build and run new test.
37307         * elf/tst-initorder.c: New file.
37308         * elf/tst-initorder.exp: New file.
37309         * elf/tst-initordera1.c: New file.
37310         * elf/tst-initordera2.c: New file.
37311         * elf/tst-initordera3.c: New file.
37312         * elf/tst-initordera4.c: New file.
37313         * elf/tst-initorderb1.c: New file.
37314         * elf/tst-initorderb2.c: New file.
37315         * elf/tst-order-a1.c: New file.
37316         * elf/tst-order-a2.c: New file.
37317         * elf/tst-order-a3.c: New file.
37318         * elf/tst-order-a4.c: New file.
37319         * elf/tst-order-b1.c: New file.
37320         * elf/tst-order-b2.c: New file.
37321         * elf/tst-order-main.c: New file.
37322         New test case by George Gensure <werkt0@gmail.com>.
37323
37324 2010-10-01  Andreas Schwab  <schwab@redhat.com>
37325
37326         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
37327         decoding ACE if AI_CANONIDN.
37328
37329 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
37330
37331         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
37332
37333 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
37334
37335         * version.h (RELEASE): Bump for 2.13 release.
37336         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
37337
37338         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
37339
37340         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
37341         MADV_NOHUGEPAGE.
37342         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
37343         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
37344         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37345         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37346         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37347         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37348
37349         * posix/getconf.c: Update copyright year.
37350         * catgets/gencat.c: Likewise.
37351         * csu/version.c: Likewise.
37352         * debug/catchsegv.sh: Likewise.
37353         * debug/xtrace.sh: Likewise.
37354         * elf/ldconfig.c: Likewise.
37355         * elf/ldd.bash.in: Likewise.
37356         * elf/sprof.c (print_version): Likewise.
37357         * iconv/iconv_prog.c: Likewise.
37358         * iconv/iconvconfig.c: Likewise.
37359         * locale/programs/locale.c: Likewise.
37360         * locale/programs/localedef.c: Likewise.
37361         * malloc/memusage.sh: Likewise.
37362         * malloc/mtrace.pl: Likewise.
37363         * nscd/nscd.c (print_version): Likewise.
37364         * nss/getent.c: Likewise.
37365
37366         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37367         PF_CAIF, and PF_ALG.
37368         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37369
37370 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37371
37372         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37373         (modules-names): Use them.
37374         (ifunc-test-modules, ifunc-pie-tests): Define.
37375         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37376         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37377         (test-extras): Likewise.
37378         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37379         $(compile-command.c).
37380         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37381         (all-built-dso): Define.
37382         (check-textrel.out, check-execstack.out): Depend on it.
37383
37384         * configure.in: Don't override --enable-multi-arch.
37385
37386 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37387
37388         [BZ #6812]
37389         * nscd/hstcache.c (tryagain): Define.
37390         (cache_addhst): Return tryagain not notfound for temporary errors.
37391         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37392         failed.
37393
37394 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37395
37396         [BZ #10563]
37397         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37398         to make the syscall.
37399         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37400
37401         [BZ #12378]
37402         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37403         and fall back to matching as normal character if the string ends before
37404         the matching ']' is found.  This is what POSIX requires.
37405         * posix/testfnm.c: Adjust test result.
37406         * posix/globtest.sh: Adjust test result.  Add new test.
37407         * posix/tst-fnmatch.input: Likewise.
37408         * posix/tst-fnmatch2.c: Add new test.
37409
37410 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37411
37412         * elf/Makefile (check-execstack): Revert last change.  Depend on
37413         check-execstack.h.
37414         (check-execstack.h): New target.
37415         (generated): Add check-execstack.h.
37416         * elf/check-execstack.c: Include "check-execstack.h".
37417         (main): Revert last change.
37418         (handle_file): Return zero if GNU_STACK is absent and
37419         DEFAULT_STACK_PERMS doesn't include PF_X.
37420
37421 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37422
37423         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37424         in child fails because the descriptor is already closed.
37425         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37426         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37427         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37428
37429         [BZ #12397]
37430         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37431         syscall.
37432
37433         [BZ #10484]
37434         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37435         temporary buffer used to handle multi lookups locally.
37436         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37437
37438 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37439
37440         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37441         loader is ld.so.
37442
37443 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37444
37445         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37446         alignment for SSE2.
37447
37448 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37449
37450         [BZ #12394]
37451         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37452         characters.  When rounding increased number of integer digits recompute
37453         number of groups.
37454         * stdio-common/tst-grouping.c: New file.
37455         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37456
37457 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37458
37459         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37460         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37461
37462         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37463         void.
37464         * bits/select.h: Likewise.
37465
37466 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37467
37468         * po/ja.po: Update from translation team.
37469
37470 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37471
37472         [BZ #11155]
37473         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37474         implementation just like for lxstat, fxstatat, et al.
37475
37476 2010-12-27  Jim Meyering  <meyering@redhat.com>
37477
37478         [BZ #12348]
37479         * posix/regexec.c (build_trtable): Return failure indication upon
37480         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37481
37482 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37483
37484         [BZ #12201]
37485         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37486         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37487         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37488         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37489
37490         [BZ #12207]
37491         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37492
37493         [BZ #12204]
37494         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37495         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37496
37497 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37498
37499         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37500         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37501         script has SORT_BY_INIT_PRIORITY.
37502         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37503         NO_CTORS_DTORS_SECTIONS is defined.
37504         * elf/soinit.c: Likewise.
37505         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37506         NO_CTORS_DTORS_SECTIONS is defined.
37507         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37508         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37509         * sysdeps/sh/init-first.c: Likewise.
37510         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37511
37512 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37513
37514         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37515         always use the slow path.
37516
37517 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37518
37519         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37520         similar rule which adds the sysdep directories to the header search in
37521         order to pick up the correct platform stackinfo.h.
37522         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37523         perform test if it is, otherwise return successfully without testing.
37524         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37525         DEFAULT_STACK_PERMS define in stackinfo.h.
37526         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37527         defined in stackinfo.h.
37528         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37529         DEFAULT_STACK_PERMS defined in stackinfo.h.
37530         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37531         * sysdeps/ia64/stackinfo.h: Likewise.
37532         * sysdeps/s390/stackinfo.h: Likewise.
37533         * sysdeps/sh/stackinfo.h: Likewise.
37534         * sysdeps/sparc/stackinfo.h: Likewise.
37535         * sysdeps/x86_64/stackinfo.h: Likewise.
37536         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37537         PF_X for powerpc64.  Retain PF_X for powerpc32.
37538
37539 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37540
37541         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37542         accurately.
37543         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37544         GETDENTS_64BIT_ALIGNED.
37545
37546 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37547
37548         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37549
37550 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37551
37552         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37553         _GNU_SOURCE.
37554
37555         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37556         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37557         Remove __restrict.
37558         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37559         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37560
37561 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37562
37563         [BZ #11655]
37564         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37565         are initialized.
37566
37567 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37568
37569         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37570
37571 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37572
37573         * po/it.po: Update from translation team.
37574
37575 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37576
37577         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37578         unused codes.
37579
37580 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37581
37582         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37583
37584 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37585
37586         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37587         specially.
37588         (gaih_getanswer_slice): Likewise.
37589
37590 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37591
37592         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37593
37594 2010-05-31  Petr Baudis  <pasky@suse.cz>
37595
37596         [BZ #11149]
37597         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37598         silently even in the chroot mode.
37599
37600 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37601
37602         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37603         last patch a bit.  Pretty printing
37604
37605 2010-05-31  Petr Baudis <pasky@suse.cz>
37606
37607         [BZ #10085]
37608         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37609         initialization of skip_initgroups_dyn.
37610
37611 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37612
37613         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37614         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37615
37616 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37617
37618         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37619
37620 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37621
37622         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37623         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37624         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37625         ($(objpfx)tst-fnmatch-mem): New rule.
37626         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37627         * posix/tst-fnmatch.c (main): Call mtrace.
37628
37629 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37630
37631         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37632         Support Intel processor model 6 and model 0x2c.
37633
37634 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37635
37636         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37637           signed comparison.
37638
37639 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37640
37641         [BZ #12205]
37642         * string/test-strncasecmp.c (check_result): New function.
37643         (do_one_test): Use it.
37644         (check1): New function.
37645         (test_main): Use it.
37646         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37647         Support strcasecmp and strncasecmp.
37648
37649 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37650
37651         [BZ #12194]
37652         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37653         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37654
37655 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37656
37657         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37658         IFUNC support.
37659         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37660         memset-x86-64.
37661         * sysdeps/x86_64/multiarch/bzero.S: New file.
37662         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37663         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37664         * sysdeps/x86_64/multiarch/memset.S: New file.
37665         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37666         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37667         Set bit_Prefer_SSE_for_memop for Intel processors.
37668         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37669         Define.
37670         (index_Prefer_SSE_for_memop): Define.
37671         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37672
37673 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37674
37675         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37676         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37677
37678 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37679
37680         [BZ #12191]
37681         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37682         (__x86_64_raw_data_cache_size_half): Likewise.
37683         (__x86_64_raw_shared_cache_size): Likewise.
37684         (__x86_64_raw_shared_cache_size_half): Likewise.
37685
37686         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37687         (__x86_64_raw_data_cache_size_half): Likewise.
37688         (__x86_64_raw_shared_cache_size): Likewise.
37689         (__x86_64_raw_shared_cache_size_half): Likewise.
37690         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37691         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37692         and __x86_64_raw_shared_cache_size_half.  Round
37693         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37694         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37695         to multiple of 256 bytes.
37696
37697 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37698
37699         [BZ #12167]
37700         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37701         of inacessible symlinks.  Verify result of symlink before returning it.
37702         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37703         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37704
37705 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37706
37707         * math/math.h (isinf): Fix typo in comment.
37708
37709 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37710
37711         * po/da.po: Update from translation team.
37712
37713 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37714
37715         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37716         is added to the list.
37717
37718 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37719             Ulrich Drepper  <drepper@gmail.com>
37720
37721         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37722         the global list here.  Move code to...
37723         (_dl_add_to_namespace_list): ...here.  New function.
37724         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37725         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37726         * elf/dl-load.c (lose): Don't remove the element from the list.
37727         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37728         (_dl_map_object): Likewise.
37729
37730 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37731
37732         [BZ #12159]
37733         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37734         into all bytes of SSE register.
37735         Patch by Richard Li <richardpku@gmail.com>.
37736
37737 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37738
37739         [BZ #12140]
37740         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37741         perturbing.
37742
37743 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37744
37745         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37746         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37747         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37748         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37750         submachine.
37751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37752
37753 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37754
37755         * include/dlfcn.h (__RTLD_SECURE): Define.
37756         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37757         mode & __RTLD_SECURE instead.
37758         (open_path): Rename preloaded parameter to secure.
37759         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37760         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37761         * elf/dl-deps.c (openaux): Likewise.
37762         * elf/rtld.c (struct map_args): Remove is_preloaded.
37763         (map_doit): Don't use it.
37764         (dl_main): Likewise.
37765         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37766         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37767
37768 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37769
37770         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37771         (sysd-rules-targets): Remove duplicates.
37772         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37773         rtld-%.$o dependency.
37774
37775 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37776
37777         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37778         _dl_map_object do it.
37779
37780 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37781
37782         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37783         fast fma builtins, define the macros in the C99 standard.
37784         (FP_FAST_FMAF): Likewise.
37785         (FP_FAST_FMAL): Likewise.
37786         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37787
37788         * bits/mathdef.h: Update copyright year.
37789         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37790
37791 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37792
37793         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37794         builtins, define the macros in the C99 standard.
37795         (FP_FAST_FMAF): Likewise.
37796         (FP_FAST_FMAL): Likewise.
37797         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37798         multiply/add.
37799         (FP_FAST_FMAF): Likewise.
37800
37801 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37802
37803         [BZ #3268]
37804         * math/libm-test.inc (fma_test): Some new testcases.
37805         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37806         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37807         y and infinite z.  Do multiplication by C already in long double.
37808         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37809         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37810         y and infinite z.  Do bitwise or of inexact bit into u.d.
37811         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37812         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37813         * sysdeps/i386/fpu/s_fma.S: Removed.
37814         * sysdeps/i386/fpu/s_fmal.S: Removed.
37815
37816 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37817
37818         [BZ #3268]
37819         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37820         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37821         computation is not scheduled after fetestexcept.  Fix value
37822         of minimum denormal long double.
37823
37824 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37825
37826         [BZ #3268]
37827         * math/libm-test.inc (fma_test): Add some more tests.
37828         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37829         correctly.
37830
37831 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37832
37833         * scripts/data/localplt-s390-linux-gnu.data: New file.
37834         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37835
37836 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37837
37838         [BZ #3268]
37839         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37840         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37841         instead of dbl-64.
37842         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37843         inlines.
37844         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37845         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37846         if one of x and y is very large and the other is subnormal.
37847         * sysdeps/s390/fpu/s_fmaf.c: New file.
37848         * sysdeps/s390/fpu/s_fma.c: New file.
37849         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37850         * sysdeps/powerpc/fpu/s_fma.S: New file.
37851         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37852         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37853         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37854
37855 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37856
37857         [BZ #3268]
37858         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37859         fma tests.
37860         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37861         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37862         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37863         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37864         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37865         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37866         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37867
37868 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37869
37870         [BZ #12078]
37871         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37872         * posix/bug-regex31.input: Add test case.
37873
37874 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37875
37876         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37877         * posix/bug-regex31.input: New file.
37878
37879         [BZ #12078]
37880         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37881         (parse_sub_exp): Fix last change, use postorder.
37882
37883         * posix/bug-regex31.c: New file.
37884         * posix/Makefile: Add rules to build and run bug-regex31.
37885
37886         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37887
37888         [BZ #12078]
37889         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37890
37891         [BZ #12108]
37892         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37893         to have entries in sys_siglist.
37894
37895         [BZ #12093]
37896         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37897         be NULL.
37898
37899 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37900
37901         [BZ #3268]
37902         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37903         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37904         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37905         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37906         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37907         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37908         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37909         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37910         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37911         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37912         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37913         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37914         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37915         * math/ftestexcept.c (fetestexcept): Likewise.
37916         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37917         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37918         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37919         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37920         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37921         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37922         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37923
37924 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37925
37926         [BZ #12107]
37927         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37928         newline.
37929
37930 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37931
37932         * string/bug-strstr1.c: New file.
37933         * string/Makefile: Add rules to build and run bug-strstr1.
37934
37935 2010-10-05  Eric Blake  <eblake@redhat.com>
37936
37937         [BZ #12092]
37938         * string/str-two-way.h (two_way_long_needle): Always clear memory
37939         when skipping input due to the shift table.
37940
37941 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37942
37943         [BZ #12005]
37944         * malloc/mcheck.c: Handle large requests.
37945
37946         [BZ #12077]
37947         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37948         for strncmp and strncasecmp.
37949         * string/stratcliff.c: Add tests for strcmp and strncmp.
37950         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37951
37952 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37953
37954         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37955         __set_fpscr.
37956
37957 2010-09-30  Andreas Jaeger  <aj@suse.de>
37958
37959         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37960         (CGROUP_SUPER_MAGIC): Define.
37961         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37962         Handle btrfs and cgroup file systems.
37963         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37964         Likewise.
37965
37966 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37967
37968         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37969         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37970
37971 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37972
37973         [BZ #12067]
37974         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37975         trying to locate the ELF header.
37976
37977 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37978
37979         [BZ #11611]
37980         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37981         Mask out sign-bit copies when constructing f_fsid.
37982
37983 2010-09-24  Petr Baudis <pasky@suse.cz>
37984
37985         * debug/stack_chk_fail_local.c: Add missing licence exception.
37986         * debug/warning-nop.c: Likewise.
37987
37988 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37989
37990         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
37991         implementing getdents64 using getdents syscall, set d_type if
37992         __ASSUME_GETDENTS32_D_TYPE.
37993
37994 2010-09-16  Andreas Schwab  <schwab@redhat.com>
37995
37996         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
37997         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
37998
37999 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
38000
38001         [BZ #12037]
38002         * posix/unistd.h: Undo change of feature selection for ftruncate from
38003         2010-01-11.
38004
38005 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
38006
38007         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
38008         detection.
38009
38010 2010-09-20  Andreas Schwab  <schwab@redhat.com>
38011
38012         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
38013         fanotify_mark.
38014         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38015
38016 2010-09-14  Andreas Schwab  <schwab@redhat.com>
38017
38018         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
38019         variables after CHECK_SP call.
38020         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
38021
38022 2010-09-13  Andreas Schwab  <schwab@redhat.com>
38023             Ulrich Drepper  <drepper@redhat.com>
38024
38025         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
38026         re-relocationg ld.so.
38027         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
38028         _dl_init_paths call.
38029         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
38030         here anymore.
38031
38032 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
38033
38034         * resolv/res_init.c (__res_vinit): Count the default server we added.
38035
38036 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
38037             Ulrich Drepper  <drepper@redhat.com>
38038
38039         [BZ #11968]
38040         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
38041         (____longjmp_chk): Use %ebx for saving value across system call.
38042         Add unwind info.
38043
38044 2010-09-06  Andreas Schwab  <schwab@redhat.com>
38045
38046         * manual/Makefile: Don't mix pattern rules with normal rules.
38047
38048 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
38049
38050         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
38051         operation.
38052         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
38053         * libio/iofopncook.c (_IO_cookie_init): Likewise.
38054         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
38055         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
38056         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
38057         Likewise.
38058
38059 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
38060
38061         [BZ #11979]
38062         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
38063         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
38064
38065 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
38066
38067         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
38068         * sysdeps/x86_64/addmul_1.S: Likewise.
38069         * sysdeps/x86_64/lshift.S: Likewise.
38070         * sysdeps/x86_64/mul_1.S: Likewise.
38071         * sysdeps/x86_64/rshift.S: Likewise.
38072         * sysdeps/x86_64/sub_n.S: Likewise.
38073         * sysdeps/x86_64/submul_1.S: Likewise.
38074
38075 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38076
38077         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
38078         Define __sched_param instead of SCHED_* and sched_param when
38079         <bits/sched.h> is included with __need_schedparam defined.
38080         * bits/sched.h [__need_schedparam]
38081         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
38082         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
38083         (__defined_schedparam): Define to 1.
38084         (__sched_param): New structure, identical to sched_param.
38085         (__need_schedparam): Undefine.
38086
38087 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
38088
38089         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
38090         (epoll_create1): Declare.
38091
38092         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
38093
38094 2010-08-31  Andreas Schwab  <schwab@redhat.com>
38095
38096         [BZ #7066]
38097         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
38098         shifting retval into place.
38099
38100 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
38101
38102         * nis/rpcsvc/nis.h: Update copyright notice.
38103         * nis/rpcsvc/nis.x: Likewise.
38104         * nis/rpcsvc/nis_callback.h: Likewise.
38105         * nis/rpcsvc/nis_callback.x: Likewise.
38106         * nis/rpcsvc/nis_object.x: Likewise.
38107         * nis/rpcsvc/nis_tags.h: Likewise.
38108         * nis/rpcsvc/yp.h: Likewise.
38109         * nis/rpcsvc/yp.x: Likewise.
38110         * nis/rpcsvc/ypupd.h: Likewise.
38111         * nis/yp_xdr.c: Likewise.
38112         * nis/ypupdate_xdr.c: Likewise.
38113
38114         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
38115         mainly the body of pmap_getport.  Add parameters to specify timeouts.
38116         (pmap_getport): Use __libc_rpc_getport.
38117         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
38118         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
38119         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
38120
38121 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
38122
38123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
38124         fanotify_mark.
38125
38126 2010-08-27  Roland McGrath  <roland@redhat.com>
38127
38128         * sysdeps/i386/i686/multiarch/Makefile
38129         (CFLAGS-varshift.c): New variable.
38130
38131 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
38132
38133         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
38134         * sysdeps/i386/i686/multiarch/varshift.c: New file.
38135
38136         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
38137
38138         * sysdeps/x86_64/strlen.S: Minimal code improvement.
38139
38140 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
38141
38142         * sysdeps/x86_64/strlen.S: Unroll the loop.
38143         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38144         strlen-sse2 strlen-sse2-bsf.
38145         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
38146         __strlen_no_bsf if bit_Slow_BSF is set.
38147         (__strlen_sse42): Removed.
38148         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
38149         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
38150
38151 2010-08-25  Roland McGrath  <roland@redhat.com>
38152
38153         * sysdeps/x86_64/multiarch/varshift.S: File removed.
38154         * sysdeps/x86_64/multiarch/varshift.c: New file.
38155         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
38156         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
38157         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
38158         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
38159
38160 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
38161
38162         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38163         strlen-sse2 strlen-sse2-bsf.
38164         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
38165         __strlen_sse2_bsf if bit_Slow_BSF is unset.
38166         (__strlen_sse2): Removed.
38167         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
38168         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
38169         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
38170         bit_Slow_BSF for Atom.
38171         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
38172         (index_Slow_BSF): Define.
38173         (HAS_SLOW_BSF): Define.
38174
38175 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
38176
38177         [BZ #10851]
38178         * resolv/res_init.c (__res_vinit): When no server address at all
38179         is given default to loopback.
38180
38181 2010-08-24  Roland McGrath  <roland@redhat.com>
38182
38183         * configure.in: Remove config-name.h generation.
38184         * configure: Regenerated.
38185         * config-name.in: File removed.
38186         * scripts/config-uname.sh: New file.
38187         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
38188         ($(objdir)config-name.h): New target.
38189
38190         * sunrpc/rpc_parse.h: Avoid nested comment.
38191
38192 2010-08-24  Richard Henderson  <rth@redhat.com>
38193             Ulrich Drepper  <drepper@redhat.com>
38194             H.J. Lu  <hongjiu.lu@intel.com>
38195
38196         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
38197         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
38198         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
38199         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
38200         _mm_alignr_epi8 with _mm_loadu_si128.
38201         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
38202         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
38203         (__m128i_shift_right): Removed.
38204         * sysdeps/i386/i686/multiarch/varshift.h: New file.
38205         * sysdeps/i386/i686/multiarch/varshift.S: New file.
38206         * sysdeps/x86_64/multiarch/varshift.h: New file.
38207         * sysdeps/x86_64/multiarch/varshift.S: New file.
38208
38209 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
38210
38211         * configure.in: Move assembler checks to before sysdep dir checking.
38212
38213 2010-08-20  Petr Baudis  <pasky@suse.cz>
38214
38215         * LICENSES: Sync the sunrpc license.
38216
38217 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
38218
38219         * sunrpc/auth_des.c: Update copyright notice once again.
38220         * sunrpc/auth_none.c: Likewise.
38221         * sunrpc/auth_unix.c: Likewise.
38222         * sunrpc/authdes_prot.c: Likewise.
38223         * sunrpc/authuxprot.c: Likewise.
38224         * sunrpc/bindrsvprt.c: Likewise.
38225         * sunrpc/clnt_gen.c: Likewise.
38226         * sunrpc/clnt_perr.c: Likewise.
38227         * sunrpc/clnt_raw.c: Likewise.
38228         * sunrpc/clnt_simp.c: Likewise.
38229         * sunrpc/clnt_tcp.c: Likewise.
38230         * sunrpc/clnt_udp.c: Likewise.
38231         * sunrpc/clnt_unix.c: Likewise.
38232         * sunrpc/des_crypt.c: Likewise.
38233         * sunrpc/des_soft.c: Likewise.
38234         * sunrpc/get_myaddr.c: Likewise.
38235         * sunrpc/getrpcport.c: Likewise.
38236         * sunrpc/key_call.c: Likewise.
38237         * sunrpc/key_prot.c: Likewise.
38238         * sunrpc/openchild.c: Likewise.
38239         * sunrpc/pm_getmaps.c: Likewise.
38240         * sunrpc/pm_getport.c: Likewise.
38241         * sunrpc/pmap_clnt.c: Likewise.
38242         * sunrpc/pmap_prot.c: Likewise.
38243         * sunrpc/pmap_prot2.c: Likewise.
38244         * sunrpc/pmap_rmt.c: Likewise.
38245         * sunrpc/rpc/auth.h: Likewise.
38246         * sunrpc/rpc/auth_unix.h: Likewise.
38247         * sunrpc/rpc/clnt.h: Likewise.
38248         * sunrpc/rpc/des_crypt.h: Likewise.
38249         * sunrpc/rpc/key_prot.h: Likewise.
38250         * sunrpc/rpc/netdb.h: Likewise.
38251         * sunrpc/rpc/pmap_clnt.h: Likewise.
38252         * sunrpc/rpc/pmap_prot.h: Likewise.
38253         * sunrpc/rpc/pmap_rmt.h: Likewise.
38254         * sunrpc/rpc/rpc.h: Likewise.
38255         * sunrpc/rpc/rpc_des.h: Likewise.
38256         * sunrpc/rpc/rpc_msg.h: Likewise.
38257         * sunrpc/rpc/svc.h: Likewise.
38258         * sunrpc/rpc/svc_auth.h: Likewise.
38259         * sunrpc/rpc/types.h: Likewise.
38260         * sunrpc/rpc/xdr.h: Likewise.
38261         * sunrpc/rpc_clntout.c: Likewise.
38262         * sunrpc/rpc_cmsg.c: Likewise.
38263         * sunrpc/rpc_common.c: Likewise.
38264         * sunrpc/rpc_cout.c: Likewise.
38265         * sunrpc/rpc_dtable.c: Likewise.
38266         * sunrpc/rpc_hout.c: Likewise.
38267         * sunrpc/rpc_main.c: Likewise.
38268         * sunrpc/rpc_parse.c: Likewise.
38269         * sunrpc/rpc_parse.h: Likewise.
38270         * sunrpc/rpc_prot.c: Likewise.
38271         * sunrpc/rpc_sample.c: Likewise.
38272         * sunrpc/rpc_scan.c: Likewise.
38273         * sunrpc/rpc_scan.h: Likewise.
38274         * sunrpc/rpc_svcout.c: Likewise.
38275         * sunrpc/rpc_tblout.c: Likewise.
38276         * sunrpc/rpc_util.c: Likewise.
38277         * sunrpc/rpc_util.h: Likewise.
38278         * sunrpc/rpcinfo.c: Likewise.
38279         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
38280         * sunrpc/rpcsvc/key_prot.x: Likewise.
38281         * sunrpc/rpcsvc/klm_prot.x: Likewise.
38282         * sunrpc/rpcsvc/mount.x: Likewise.
38283         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
38284         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
38285         * sunrpc/rpcsvc/rex.x: Likewise.
38286         * sunrpc/rpcsvc/rstat.x: Likewise.
38287         * sunrpc/rpcsvc/rusers.x: Likewise.
38288         * sunrpc/rpcsvc/sm_inter.x: Likewise.
38289         * sunrpc/rpcsvc/spray.x: Likewise.
38290         * sunrpc/rpcsvc/yppasswd.x: Likewise.
38291         * sunrpc/rtime.c: Likewise.
38292         * sunrpc/svc.c: Likewise.
38293         * sunrpc/svc_auth.c: Likewise.
38294         * sunrpc/svc_authux.c: Likewise.
38295         * sunrpc/svc_raw.c: Likewise.
38296         * sunrpc/svc_run.c: Likewise.
38297         * sunrpc/svc_simple.c: Likewise.
38298         * sunrpc/svc_tcp.c: Likewise.
38299         * sunrpc/svc_udp.c: Likewise.
38300         * sunrpc/svc_unix.c: Likewise.
38301         * sunrpc/svcauth_des.c: Likewise.
38302         * sunrpc/xcrypt.c: Likewise.
38303         * sunrpc/xdr.c: Likewise.
38304         * sunrpc/xdr_array.c: Likewise.
38305         * sunrpc/xdr_float.c: Likewise.
38306         * sunrpc/xdr_mem.c: Likewise.
38307         * sunrpc/xdr_rec.c: Likewise.
38308         * sunrpc/xdr_ref.c: Likewise.
38309         * sunrpc/xdr_sizeof.c: Likewise.
38310         * sunrpc/xdr_stdio.c: Likewise.
38311
38312         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
38313         handling.
38314
38315 2010-08-19  Andreas Schwab  <schwab@redhat.com>
38316
38317         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
38318
38319 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
38320
38321         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
38322         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
38323         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
38324         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
38325         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
38326         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
38327         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
38328         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
38329         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
38330         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
38331         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
38332         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
38333         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
38334         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
38335
38336 2010-07-26  Anton Blanchard  <anton@samba.org>
38337
38338         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
38339         * malloc/arena.c (heap_trim): Likewise.
38340
38341 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
38342
38343         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
38344         here.  Not...
38345         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
38346         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
38347
38348 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
38349
38350         * sysdeps/i386/elf/Makefile: New file.
38351
38352 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38353
38354         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
38355         from fanotify_init.
38356         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
38357         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38358
38359 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
38360
38361         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38362         of strncasecmp_l.
38363         * sysdeps/multiarch/strcmp.S: Likewise.
38364
38365 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38366
38367         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38368         strncase_l-nonascii.
38369         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38370         Add strncase_l-ssse3.
38371         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38372         * sysdeps/x86_64/strcmp.S: Likewise.
38373         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38374         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38375         * sysdeps/x86_64/strncase.S: New file.
38376         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38377         * sysdeps/x86_64/strncase_l.S: New file.
38378         * string/Makefile (strop-tests): Add strncasecmp.
38379         * string/test-strncasecmp.c: New file.
38380
38381         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38382         warning.
38383
38384         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38385         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38386
38387 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38388
38389         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38390
38391 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38392
38393         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38394         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38395         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38396
38397 2010-05-01  Alan Modra  <amodra@gmail.com>
38398
38399         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38400         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38401         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38402         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38403         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38404         tidying.  Don't tail-call __sigjmp_save for static lib.
38405         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38406         save location.
38407         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38408         (CALL_MCOUNT): Add eh info, and nop after bl.
38409         (TAIL_CALL_SYSCALL_ERROR): New macro.
38410         (PSEUDO_RET): Use it.
38411         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38412         Correct save location of integer regs and cr.
38413         (_dl_profile_resolve): Correct cr save location.  Delete nops
38414         after bl when SHARED.  Reduce cfi size a little by better
38415         placement of cfi directives.
38416         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38417         make a stack frame.  Instead use parm save area as a temp.
38418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38419         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38421         Don't make a stack frame for parent, use parm save area.
38422         Increase child stack frame to 112 bytes.  Don't save unused reg,
38423         and adjust reg usage.  Set up cfi on error recovery and
38424         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38426         (__makecontext): Add dummy nop after jump to exit.
38427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38428         Use correct parm save area and cr save, reduce stack frame.
38429         Correct cfi for possible PSEUDO_RET frame setup.
38430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38431         Branch to local label emitted by PSEUDO_RET rather than
38432         __syscall_error.
38433
38434 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38435
38436         [BZ #11904]
38437         * locale/programs/locale.c (print_assignment): New function.
38438         (show_locale_vars): Use it.
38439
38440 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38441
38442         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38443         field.
38444         (struct statfs64): Likewise.
38445         (_STATFS_F_FLAGS): Define.
38446         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38447         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38448         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38449         (ST_VALID): Define locally.
38450         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38451         __statvfs_getflags, use the provided value.
38452         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38453         __ASSUME_STATFS_F_FLAGS.
38454
38455         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38456
38457         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38458         Add sys/fanotify.h.
38459         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38460         fanotify_mask for GLIBC_2.13.
38461         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38462         fanotify_init and fanotify_mark.
38463         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38464         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38465
38466         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38467         Add prlimit.
38468         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38469         prlimit64 for GLIBC_2.13.
38470         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38471         prlimit64.
38472         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38473         syscall.
38474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38475         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38476         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38477         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38478         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38479         add prlimit alias.
38480         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38481
38482         [BZ #11903]
38483         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38484         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38485
38486         * nss/Makefile: Add rules to build and run tst-nss-test1.
38487         * shlib-versions: Add entry for libnss_test1.
38488         * nss/nss_test1.c: New file.
38489         * nss/tst-nss-test1.c: New file.
38490
38491         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38492         (__nss_configure_lookup): Set appropriate entry in
38493         __nss_configure_lookup to true.
38494         * nss/nsswitch.h: Define enum with indeces of databases in
38495         databases and __nss_database_custom arrays.  Declare
38496         __nss_database_custom.
38497         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38498         to avoid using nscd when custom rules are installed.
38499         * nss/getXXbyYY_r.c: Likewise.
38500         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38501
38502         * nss/nss_files/files-parse.c: Whitespace fixes.
38503
38504 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38505
38506         [BZ #11883]
38507         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38508         * posix/fnmatch_loop.c: Likewise.
38509
38510 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38511
38512         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38513         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38514         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38515         * Versions.def [GLIBC_2.13]: Add.
38516
38517 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38518
38519         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38520         Also fail if tpwd after pwuid call is NULL.
38521
38522 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38523
38524         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38525         when converting to ms.
38526
38527 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38528
38529         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38530         EOPNOTSUPP errors with ENOTTY.
38531         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38532         EOPNOTSUPP errors with ENOTTY.
38533
38534 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38535
38536         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38537         Add strcasecmp_l-ssse3.
38538         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38539         strcasecmp.
38540         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38541         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38542         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38543
38544 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38545
38546         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38547
38548         * string/Makefile (strop-tests): Add strcasecmp.
38549         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38550         strcasecmp_l-nonascii.
38551         (gen-as-const-headers): Add locale-defines.sym.
38552         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38553         * sysdeps/x86_64/strcasecmp.S: New file.
38554         * sysdeps/x86_64/strcasecmp_l.S: New file.
38555         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38556         * sysdeps/x86_64/locale-defines.sym: New file.
38557         * string/test-strcasecmp.c: New file.
38558
38559         * string/test-strcasestr.c: Test both ends of the range of characters.
38560         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38561
38562 2010-07-29  Roland McGrath  <roland@redhat.com>
38563
38564         [BZ #11856]
38565         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38566
38567 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38568
38569         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38570         for ld.so.
38571
38572 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38573
38574         * manual/memory.texi (Malloc Tunable Parameters): Document
38575         M_PERTURB.
38576
38577 2010-07-26  Roland McGrath  <roland@redhat.com>
38578
38579         [BZ #11840]
38580         * configure.in (-fgnu89-inline check): Set and substitute
38581         gnu89_inline, not libc_cv_gnu89_inline.
38582         * configure: Regenerated.
38583         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38584
38585 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38586
38587         * string/test-strnlen.c: New file.
38588         * string/Makefile (strop-tests): Add strnlen.
38589         * string/tester.c (test_strnlen): Add a few more test cases.
38590         * string/tst-strlen.c: Better error reporting.
38591
38592         * sysdeps/x86_64/strnlen.S: New file.
38593
38594 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38595
38596         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38597         lower-latency instructions.
38598
38599 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38600
38601         * string/test-strcasestr.c: New file.
38602         * string/test-strstr.c: New file.
38603         * string/Makefile (strop-tests): Add strstr and strcasestr.
38604         * string/str-two-way.h: Don't undefine MAX.
38605         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38606
38607 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38608
38609         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38610         strcasestr-nonascii.
38611         (CFLAGS-strcasestr-nonascii.c): Define.
38612         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38613         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38614         Remove unused attribute.
38615
38616 2010-07-20  Roland McGrath  <roland@redhat.com>
38617
38618         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38619         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38620         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38621         like LD_HWCAP_MASK can disable hwcaps.
38622
38623 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38624
38625         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38626
38627 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38628
38629         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38630         call in strcasestr.
38631         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38632         __strcasestr_sse42_nonascii.
38633         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38634         strcasestr-nonascii.c.
38635         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38636
38637 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38638
38639         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38640         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38641         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38642         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38643
38644 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38645
38646         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38647         fcntl.
38648
38649 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38650
38651         [BZ #11577]
38652         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38653         dl_signal_cerror.
38654
38655 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38656
38657         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38658         _PC_PIPE_BUF using F_GETPIPE_SZ.
38659
38660 2010-07-05  Roland McGrath  <roland@redhat.com>
38661
38662         * manual/arith.texi (Rounding Functions): Fix rint description
38663         implicit in round description.
38664
38665 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38666
38667         * elf/Makefile: Fix linking for a few tests to make recent linker
38668         happy.
38669
38670 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38671
38672         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38673         $(common-objpfx)libc_nonshared.a.
38674
38675 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38676
38677         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38678         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38679         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38680         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38681         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38682         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38683         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38684         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38699         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38700         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38701         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38702         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38703         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38704         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38705         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38706         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38707         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38708         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38709         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38710         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38725
38726 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38727
38728         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38729         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38730         * string/memmove.c (memmove): Renamed to ...
38731         (MEMMOVE): ...this.  Default to memmove.
38732         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38733         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38734         (END_CHK): Define.
38735         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38736         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38737         mempcpy-ssse3-back memmove-ssse3-back.
38738         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38739         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38740         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38741         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38742         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38743         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38744         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38745         * sysdeps/x86_64/multiarch/memmove.c: New file.
38746         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38747         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38748         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38749         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38750         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38751         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38752         Define.
38753         (index_Fast_Copy_Backward): Define.
38754         (HAS_ARCH_FEATURE): Define.
38755         (HAS_FAST_REP_STRING): Define.
38756         (HAS_FAST_COPY_BACKWARD): Define.
38757
38758 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38759
38760         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38761         Restore proper fallback handling.
38762
38763 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38764
38765         [BZ #11701]
38766         * posix/group_member.c (__group_member): Correct checking loop.
38767
38768         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38769         OOM in getpwuid_r correctly.  Return error number when the caller
38770         should return, otherwise -1.
38771         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38772         call returning > 0 value.
38773         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38774
38775 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38776
38777         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38778         libc_nonshared.a from targets in modules-names.
38779
38780 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38781
38782         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38783         requires it.
38784
38785 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38786
38787         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38788         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38789         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38790         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38791
38792 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38793
38794         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38795
38796 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38797
38798         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38799         and F_GETPIPE_SZ.
38800         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38801         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38802         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38803         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38804         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38805         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38806
38807 2010-06-14  Roland McGrath  <roland@redhat.com>
38808
38809         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38810
38811 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38812
38813         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38814         __REDIRECT followed by __THROW.
38815         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38816         * posix/getopt.h (getopt): Likewise.
38817
38818 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38819
38820         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38821         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38822         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38823         in AT_FLAGS.
38824         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38825         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38826
38827 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38828
38829         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38830
38831 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38832
38833         [BZ #11640]
38834         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38835         Properly check family and model.
38836
38837 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38838
38839         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38840
38841 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38842
38843         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38844
38845 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38846
38847         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38848         symbol reference.
38849
38850 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38851
38852         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38853         symbol reference.
38854
38855 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38856
38857         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38858         and internal_recvmmsg.
38859         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38860         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38861         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38862         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38863
38864         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38865         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38866         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38867
38868 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38869
38870         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38871
38872 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38873
38874         POWER7 optimizations.
38875         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38876         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38877
38878 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38879
38880         * version.h: Update for 2.13 development version.
38881
38882 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38883
38884         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38885         exceptions.  Return 0.
38886
38887 2010-05-07  Roland McGrath  <roland@redhat.com>
38888
38889         * elf/ldconfig.c (main): Add a const.
38890
38891 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38892
38893         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38894         (args_options): Add no-idn option.
38895         (ahosts_keys_int): Add idn_flags to ai_flags.
38896         (parse_option): Handle 'i' option to clear idn_flags.
38897
38898         * malloc/malloc.c (_int_free): Possible race in the most recently
38899         added check.  Only act on the data if no current modification
38900         happened.
38901
38902 See ChangeLog.17 for earlier changes.