manual: setjmp: fix typos/grammar
[jlayton/glibc.git] / ChangeLog
1 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
2
3         * manual/setjmp.texi: Fix typos/grammar errors.
4
5 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
6
7         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8         Only return early when n is <= 0.  Delete unused return statement.
9
10 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
11
12         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
13         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
14         * debug/tst-longjmp_chk3.c: New file.
15
16 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
17
18         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
19         (test_main): Replace code with set_fortify_handler call.
20         * debug/test-strcpy_chk.c: Likewise.
21         * debug/tst-chk1.c: Likewise.
22         * debug/tst-longjmp_chk.c: Likewise.
23         * test-skeleton.c: Include fcntl.h & paths.h
24         (set_fortify_handler): Define.
25
26 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
27
28         * debug/tst-longjmp_chk.c: Add header comment and include
29         ../test-skeleton.c.
30         (do_test): Mark static.
31         (TEST_FUNCTION): Define.
32
33 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
34
35         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
36         (IP_PMTUDISC_INTERFACE): Likewise.
37         (IP_MULTICAST_IF): Likewise.
38         (IP_MULTICAST_TTL): Likewise.
39         (IP_MULTICAST_LOOP): Likewise.
40         (IP_ADD_MEMBERSHIP): Likewise.
41         (IP_DROP_MEMBERSHIP): Likewise.
42         (IP_UNBLOCK_SOURCE): Likewise.
43         (IP_BLOCK_SOURCE): Likewise.
44         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
45         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
46         (IP_MSFILTER): Likewise.
47         (MCAST_JOIN_GROUP): Likewise.
48         (MCAST_BLOCK_SOURCE): Likewise.
49         (MCAST_UNBLOCK_SOURCE): Likewise.
50         (MCAST_LEAVE_GROUP): Likewise.
51         (MCAST_JOIN_SOURCE_GROUP): Likewise.
52         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
53         (MCAST_MSFILTER): Likewise.
54         (IP_MULTICAST_ALL): Likewise.
55         (IP_UNICAST_IF): Likewise.
56
57 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
58
59         * timezone/Makefile: Delete $(have-ksh) check.
60         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
61         * timezone/tzselect.ksh: Add +x mode bits.
62
63 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
64
65         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
66         (ANON_INODE_FS_MAGIC): Likewise.
67         (BDEVFS_MAGIC): Likewise.
68         (BINFMTFS_MAGIC): Likewise.
69         (BTRFS_TEST_MAGIC): Likewise.
70         (CRAMFS_MAGIC_WEND): Likewise.
71         (DEBUGFS_MAGIC): Likewise.
72         (ECRYPTFS_SUPER_MAGIC): Likewise.
73         (EXT3_SUPER_MAGIC): Likewise.
74         (EXT4_SUPER_MAGIC): Likewise.
75         (FUTEXFS_SUPER_MAGIC): Likewise.
76         (HOSTFS_SUPER_MAGIC): Likewise.
77         (HUGETLBFS_MAGIC): Likewise.
78         (MINIX3_SUPER_MAGIC): Likewise.
79         (MTD_INODE_FS_MAGIC): Likewise.
80         (NILFS_SUPER_MAGIC): Likewise.
81         (OPENPROM_SUPER_MAGIC): Likewise.
82         (PIPEFS_MAGIC): Likewise.
83         (PSTOREFS_MAGIC): Likewise.
84         (QNX6_SUPER_MAGIC): Likewise.
85         (RAMFS_MAGIC): Likewise.
86         (REISERFS_SUPER_MAGIC_STRING): Likewise.
87         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
88         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
89         (SECURITYFS_MAGIC): Likewise.
90         (SELINUX_MAGIC): Likewise.
91         (SMACK_MAGIC): Likewise.
92         (SOCKFS_MAGIC): Likewise.
93         (SQUASHFS_MAGIC): Likewise.
94         (STACK_END_MAGIC): Likewise.
95         (TMPFS_MAGIC): Likewise.
96         (USBDEVICE_SUPER_MAGIC): Likewise.
97         (V9FS_MAGIC): Likewise.
98         (XENFS_SUPER_MAGIC): Likewise.
99         (CRAMFS_MAGIC): Fix typo in comment.
100         (EXT2_SUPER_MAGIC): Update comment.
101         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
102
103 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
104
105         * sysdeps/arm: Move directory from ports/sysdeps/arm.
106         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
107         * sysdeps/unix/sysv/linux/arm: Move directory from
108         ports/sysdeps/unix/sysv/linux/arm.
109         * README: Update listing for arm-*-linux-gnueabi.
110
111         * README: Remove mention of am33.
112
113 2014-02-07  Roland McGrath  <roland@hack.frob.com>
114
115         * bits/sigset.h (__sigemptyset): Use a statement expression rather
116         than the comma operator, to avoid "rhs of comma has no effect"
117         compiler warnings.
118         (__sigfillset, __sigandset, __sigorset): Likewise.
119         * include/signal.h (__sigemptyset): Likewise.
120         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
121
122 2014-02-07  Allan McRae  <allan@archlinux.org>
123
124         * version.h (RELEASE): Set to "development".
125         (VERSION): Set to "2.19.90"
126         * NEWS: Add 2.20 section.
127
128 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
129
130         [BZ #16529]
131         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
132
133 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
134
135         * manual/contrib.texi: Update entry for Carlos O'Donell,
136         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
137
138 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
139
140         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
141
142         * sysdeps/unix/sysv/linux/kernel-features.h
143         [__LINUX_KERNEL_VERSION >= 0x020621]
144         (__ASSUME_PROC_PID_TASK_COMM): Define.
145
146 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
147
148         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
149         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
150         Leonard and Allan McRae.
151
152 2014-02-04  David S. Miller  <davem@davemloft.net>
153
154         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
155         32-bit.
156
157 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
158
159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist: New
160         file
161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
162         New file
163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist: New
164         file.
165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist: New
166         file.
167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
168         New file.
169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist: New
170         file.
171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist: New
172         file.
173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
174         New file.
175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
176         New file.
177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
178         New file.
179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
180         New file.
181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
182         New file.
183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
184         New file.
185
186 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
187
188         * nptl/shlib-versions: Change powerpc*le start to 2.17.
189         * shlib-versions: Likewise.
190
191 2014-02-04  Roland McGrath  <roland@hack.frob.com>
192             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
193
194         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
195         (abilist-pattern): New variable, set to %-le.abilist.
196
197         * Makerules (abilist-pattern): New variable.
198         (vpath): Use $(abilist-pattern) in place of %.abilist.
199         (check-abi-% pattern rule): Likewise.
200         (check-abi, update-abi): Likewise.
201
202 2014-02-04  Eric Wong  <normalperson@yhbt.net>
203
204         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
205
206 2014-02-04  Eric Wong  <normalperson@yhbt.net>
207
208         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
209
210 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
211
212         * manual/startup.texi: Add next, previous, and top entries for
213         the `Program Arguments' and `Environment Variables' nodes.
214
215 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
216
217         * manual/macros.texi: Add comments before MTASC-safety macros.
218
219         * manual/users.texi: Document MTASC-safety properties.
220
221         * manual/threads.texi (pthread_key_create, pthread_key_delete,
222         pthread_getspecific, pthread_setspecific): Format with
223         @deftypefun, and add @safety note.
224         * manual/signal.texi: Move comments that analyze the above
225         functions to their home place.
226
227 2014-02-03  Allan McRae  <allan@archlinux.org>
228
229         * po/sl.po: Update Slovenian translation from translation project.
230
231 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
232
233         * manual/time.texi (timegm): Add missing blank after @c.
234         Reported by Joseph Myers <joseph@codesourcery.com>.
235
236 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
237
238         * manual/check-safety.sh: New.
239         * manual/Makefile ($(objpfx)stamp-summary): Run it.
240
241         * manual/terminal.texi: Document MTASC-safety properties.
242
243         * manual/filesys.texi: Document MTASC-safety properties.
244
245         * manual/errno.texi: Document MTASC-safety properties.
246
247         * manual/intro.texi: Document safety identifiers and
248         conditionals.
249
250         * manual/string.texi (wcstok): Fix prototype.
251         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
252
253         * manual/time.texi: Document MTASC-safety properties.
254
255         * manual/string.texi: Document MTASC-safety properties.
256
257         * manual/threads.texi: Document MTASC-safety properties.
258
259         * manual/stdio.texi: Document MTASC-safety properties.
260
261         * manual/syslog.texi: Document MTASC-safety properties.
262
263         * manual/sysinfo.texi: Document MTASC-safety properties.
264
265         * manual/startup.texi: Document MTASC-safety properties.
266
267         * manual/socket.texi: Document MTASC-safety properties.
268
269         * manual/signal.texi: Document MTASC-safety properties.
270
271 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
272
273         * manual/setjmp.texi: Document MTASC-safety properties.
274
275         * manual/search.texi: Document MTASC-safety properties.
276
277         * manual/resource.texi: Document MTASC-safety properties.
278
279         * manual/process.texi: Document MTASC-safety properties.
280
281         * manual/platform.texi: Document MTASC-safety properties.
282
283         * manual/pipe.texi: Document MTASC-safety properties.
284
285         * manual/pattern.texi: Document MTASC-safety properties.
286
287         * manual/message.texi: Document MTASC-safety properties.
288
289         [BZ #12751]
290         * manual/memory.texi: Document MTASC-safety properties.
291
292         * manual/math.texi: Document MTASC-safety properties.
293
294         * manual/locale.texi: Document MTASC-safety properties.
295
296         * manual/llio.texi: Document MTASC-safety properties.
297
298         * manual/libdl.texi: New.
299
300         * manual/lang.texi: Document MTASC-safety properties.
301
302         * manual/job.texi: Document MTASC-safety properties.
303
304         * manual/getopt.texi: Document MTASC-safety properties.
305
306         * manual/ctype.texi: Document MTASC-safety properties.
307
308 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
309
310         [BZ #16046]
311         * csu/libc-tls.c (static_map): Remove variable.
312         (__libc_setup_tls): Use main executable's link map for TLS data.
313         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
314         casing for LM_ID_BASE and GL(dl_nns).
315         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
316         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
317         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
318         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
319         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
320         member.
321         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
322         l_phnum members.
323
324 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
325
326         * manual/debug.texi: Document MTASC-safety properties.
327
328 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
329
330         [BZ #16510]
331         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
332         of __x86_64__ when disabling x87 inline functions.
333
334 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
335
336         * manual/charset.texi: Document MTASC-safety properties.
337
338         * manual/crypt.texi: Document MTASC-safety properties.
339
340         * manual/conf.texi: Document MTASC-safety properties.
341
342         * manual/arith.texi: Document MTASC-safety properties.
343
344         * manual/argp.texi: Document MTASC-safety properties.
345
346         * manual/macros.texi: Introduce macros to document multi
347         thread, asynchronous signal and asynchronous cancellation
348         safety properties.
349         * manual/intro.texi: Introduce the properties themselves.
350
351 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
352
353         * sysdeps/sh/sh4/Makefile: New file.
354
355 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
356
357         * math/gen-libm-test.pl ($srcdir): New variable.
358         ($auto_input): Use it.
359
360 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
361
362         [BZ #16506]
363         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
364         access beyond array bounds when parsing netgroups file.
365
366         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
367         the old buffer before realloc.
368
369 2014-01-27  Allan McRae  <allan@archlinux.org>
370
371         * po/fr.po: Update French translation from translation project.
372
373 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
374
375         * sysdeps/sh/libm-test-ulps: Regenerate.
376
377 2014-01-24  David S. Miller  <davem@davemloft.net>
378
379         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
380
381 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
382
383         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
384         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
385
386 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
387
388         [BZ #16474]
389         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
390         string pointers after reallocation.
391
392 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
393
394         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
395         __SH4A__ instead of __SH_FPU_ANY__.
396
397 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
398
399         * sysdeps/sh/fpu_control.h: New file.
400         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
401         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
402         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
403         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
404         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
405         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
406         * sysdeps/sh/sys/ucontext.h: Remove.
407         * sysdeps/sh/sys: Remove directory.
408
409 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
410
411         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
412         s390/sys/ucontext.h.
413         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
414         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
415
416 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
417
418         [BZ #15605]
419         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
420
421 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
422
423         [BZ#16431]
424         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
425         Adjust the vDSO correctly for internal calls.
426         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
427
428 2014-01-20  Allan McRae  <allan@archlinux.org>
429
430         * po/ca.po: Update Catalan translation from translation project.
431
432 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
433
434         * sysdeps/s390/sotruss-lib.c: New file.
435
436 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
437
438         [BZ#16430]
439         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
440         (__GI___gettimeofday): Alias for a different internal symbol to avoid
441         local calls issues by not having a PLT stub required for IFUNC calls.
442         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
443
444 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
445
446         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
447         * math/test-fpucw-static.c: Likewise.
448
449 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
450
451         [BZ #16453]
452         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
453
454 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
455
456         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
457         implementation for powerpc.
458
459 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
460
461         [BZ #14782]
462         * sysdeps/posix/system.c (__libc_system): Do not enable
463         asynchronous cancellation.
464
465 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
466
467         [BZ #16427]
468         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
469         handling only for numbers special also in the IEEE case.
470
471 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
472
473         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
474
475 2014-01-11  Allan McRae  <allan@archlinux.org>
476
477         * po/bg.po: Update Bulgarian translation from translation project.
478
479         * po/de.po: Update German translation from translation project.
480
481 2014-01-10  Roland McGrath  <roland@hack.frob.com>
482
483         * sysdeps/generic/gcc-compat.h: New file.
484
485 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
486
487         * benchtests/asin-inputs: Correct slow inputs.
488         * benchtests/acos-inputs: Likewise.
489
490 2014-01-10  Allan McRae  <allan@archlinux.org>
491
492         * po:sv.po: Update Swedish translation from translation project.
493
494         * po/vi.po: Update Vietnamese translation from translation project.
495
496         * po/eo.po: Update Esperanto translation from translation project.
497
498         * po/cs.po: Update Czech translation from translation project.
499
500         * po/nl.po: Update Dutch translation from translation project.
501
502         * po/pl.po: Update Polish translation from translation project.
503
504         * po/ru.po: Update Russian translation from translation project.
505
506         * po/uk.po: Update Ukrainian translation from translation project.
507
508 2014-01-08  Brooks Moses  <bmoses@google.com>
509
510         * elf/dl-load.c: Fix comment typo.
511
512 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
513
514         * po/header.pot: Rename to...
515         * po/pot.header: ... this.
516         * po/Makefile: Use pot.header.
517
518 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
519             Maxim Kuvyrkov  <maxim@kugelworks.com>
520
521         [BZ #16394]
522         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
523         SRC and DEST against LEN.
524
525 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
526
527         [BZ #16414]
528         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
529         implementation.
530         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
531
532 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
533
534         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
535
536 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
537
538         [BZ #16408]
539         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
540         for large positive arguments.
541
542 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
543
544         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
545
546         * math/auto-libm-test-in: Mark various tests with
547         xfail-rounding:ldbl-128ibm.
548         * math/auto-libm-test-out: Regenerated.
549
550         [BZ #16407]
551         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
552         Increase overflow threshold.
553
554 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
555
556         [BZ #14286]
557         * stdio-common/vfprintf.c: Check for integer overflow.
558
559 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
560
561         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
562         the first argument and return value of __tls_get_addr_internal.
563
564 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
565
566         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
567         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
568
569 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
570
571         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
572         * sysdeps/s390/rtld-global-offsets.sym: New file.
573         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
574         GLIBC_2.19 symbol.
575         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
576         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
577         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
578         ... this.
579         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
580         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
581         ... this.
582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
583         Regenerate.
584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
585         Regenerate.
586         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
587         halfs of GPRs for high_gprs contexts.
588         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
589         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
590         field.
591         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
592         uc_flags field.
593         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
594         64 bit versions:
595         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
596         for high GPRs (uc_high_gprs) and for future extensions
597         (__reserved).
598         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
599         for future extensions (__reserved).
600         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
601         64 bit versions:
602         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
603         SC_HIGHGPRS offset definition.
604         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
605         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
606
607 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
608
609         * Versions.def: Add GLIBC_2.19 for libpthread.
610         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
611         siglongjmp for libpthread with GLIBC_2.19 symver.
612         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
613         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
614         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
615         * sysdeps/s390/__longjmp.c: New file.
616         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
617         * sysdeps/s390/longjmp.c: New file.
618         * sysdeps/s390/setjmp.S: New file.
619         * sysdeps/s390/sigjmp.S: New file.
620         * sysdeps/s390/v1-longjmp.c: New file.
621         * sysdeps/s390/v1-setjmp.h: New file.
622         * sysdeps/s390/v1-sigjmp.c: New file.
623         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
624         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
625         GLIBC_2.19 version.
626         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
627         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
628         versioned symbols for ____longjmp_chk.
629         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
630         Likewise.
631         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
632         Regenerate.
633         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
634         Regenerate.
635         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
636         Regenerate.
637         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
638         Regenerate.
639         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
640         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
641         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
642         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
643         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
644         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
645         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
646         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
647         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
648         * sysdeps/s390/rtld-__longjmp.c: New file.
649         * sysdeps/s390/rtld-setjmp.S: New file.
650
651 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
652
653         [BZ #16400]
654         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
655         Return -__logl (x) for small positive arguments without evaluating
656         a polynomial.
657
658 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
659
660         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
661         Rename to ...
662         (__ptrace_peeksiginfo_args): ... this.
663         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
664         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
665         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
666
667 2014-01-06  Allan McRae  <allan@archlinux.org>
668
669         * inet/netinet/in.h: Fix typo in comment.
670
671 2014-01-05  Andreas Jaeger  <aj@suse.de>
672
673         * sysdeps/i386/fpu/libm-test-ulps: Update.
674
675 2014-01-05  Allan McRae  <allan@archlinux.org>
676
677         * po/libc.pot: Regenerated.
678
679         * malloc/memusagestat.c: Fix gettext call formatting.
680
681 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
682
683         * nscd/nscd.c: Improve usage() output.
684
685 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
686
687         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
688         * sysdeps/unix/sysv/linux/configure: Regenerated.
689         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
690         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
691
692 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
693
694         [BZ #16390]
695         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
696         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
697
698 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
699
700         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
701         extra tokens at end of #undef directive.
702         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
703         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
704         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
705
706 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
707
708         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
709
710         * math/auto-libm-test-in: Mark various tests with
711         xfail-rounding:ldbl-128ibm.
712         * math/auto-libm-test-out: Regenerated.
713
714 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
715
716         [BZ #16386]
717         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
718         numbers with subnormal high part when calculating exponent.
719
720         [BZ #16385]
721         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
722         fabs.
723
724         [BZ #16384]
725         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
726         M_LN2l.
727         (__ieee754_acoshl): Use __log1pl not __log1p.
728
729 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
730
731         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all,
732         ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry,
733         __failing_morecore, ptmalloc_init, dump_heap, new_heap, grow_heap,
734         heap_trim, _int_new_arena, get_free_list, reused_arena, arena_get2):
735         Convert to GNU style.
736         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init,
737         mem2mem_check, mem2chunk_check, top_check, realloc_check,
738         memalign_check, __malloc_set_state): Likewise.
739         * malloc/mallocbug.c (main): Likewise.
740         * malloc/malloc.c (__malloc_assert, malloc_init_state, free_perturb,
741         do_check_malloced_chunk, do_check_malloc_state, sysmalloc, systrim,
742         mremap_chunk, __libc_malloc, __libc_free, __libc_realloc, _mid_memalign,
743         _int_malloc, malloc_consolidate, _int_realloc, _int_memalign, mtrim,
744         musable, __libc_mallopt, __posix_memalign, malloc_info): Likewise.
745         * malloc/malloc.h: Likewise.
746         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook, mallochook,
747         memalignhook, reallochook, mabort): Likewise.
748         * malloc/mcheck.h: Likewise.
749         * malloc/memusage.c (update_data, me, malloc, realloc, calloc, free, mmap,
750         mmap64, mremap, munmap, dest): Likewise.
751         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
752         * malloc/morecore.c (__default_morecore): Likewise.
753         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
754         * malloc/obstack.c (_obstack_begin, _obstack_newchunk,
755         _obstack_allocated_p, obstack_free, _obstack_memory_used,
756         print_and_abort): Likewise.
757         * malloc/obstack.h: Likewise.
758         * malloc/set-freeres.c (__libc_freeres): Likewise.
759         * malloc/tst-mallocstate.c (main): Likewise.
760         * malloc/tst-mtrace.c (main): Likewise.
761         * malloc/tst-realloc.c (do_test): Likewise.
762
763 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
764
765         [BZ #16366]
766         * nscd/netgroupcache.c (do_notfound): New function.
767         (addgetnetgrentX): Use it.
768
769         [BZ # 16365]
770         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
771         NSS_STATUS_NOTFOUND.
772
773 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
774
775         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
777
778 2014-01-01  Allan McRae  <allan@archlinux.org>
779
780         * scripts/update-copyrights: Update configure input file suffix.
781
782         * NEWS: Update copyright year.
783         * catgets/gencat.c: Likewise.
784         * csu/version.c: Likewise.
785         * debug/catchsegv.sh: Likewise.
786         * debug/pcprofiledump.c: Likewise.
787         * debug/xtrace.sh: Likewise.
788         * elf/ldconfig.c: Likewise.
789         * elf/ldd.bash.in: Likewise.
790         * elf/pldd.c: Likewise.
791         * elf/sotruss.ksh: Likewise.
792         * elf/sprof.c: Likewise.
793         * iconv/iconv_prog.c: Likewise.
794         * iconv/iconvconfig.c: Likewise.
795         * locale/programs/locale.c: Likewise.
796         * locale/programs/localedef.c: Likewise.
797         * login/programs/pt_chown.c: Likewise.
798         * malloc/memusage.sh: Likewise.
799         * malloc/memusagestat.c: Likewise.
800         * malloc/mtrace.pl: Likewise.
801         * manual/libc.texinfo: Likewise.
802         * nscd/nscd.c: Likewise.
803         * nss/getent.c: Likewise.
804         * nss/makedb.c: Likewise.
805         * posix/getconf.c: Likewise.
806         * scripts/test-installation.pl: Likewise.
807
808         * All files with FSF copyright notices: Update copyright dates
809         using scripts/update-copyrights.
810         * intl/plural.c: Regenerated.
811         * locale/programs/charmap-kw.h: Likewise.
812         * locale/programs/locfile-kw.h: Likewise.
813
814 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
815
816         * sysdeps/unix/sysv/linux/configure: Regenerated.
817         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
818         the linux/fanotify.h header.
819         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
820         HAVE_LINUX_FANOTIFY_H is defined.
821
822 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
823
824         * benchtests/cos-inputs: New inputs.
825         * benchtests/sin-inputs: Likewise.
826
827         * benchtests/atan-inputs: New inputs. Fix name of multiple
828         precision fallback inputs.
829
830         * benchtests/atanh-inputs: New inputs.
831         * benchtests/tanh-inputs: Likewise.
832
833         * benchtests/acosh-inputs: New inputs.
834         * benchtests/asinh-inputs: Likewise.
835
836         * benchtests/cosh-inputs: New inputs.
837         * benchtests/sinh-inputs: Likewise.
838
839         * benchtests/acos-inputs: Add more inputs.
840         * benchtests/asin-inputs: Likewise.
841
842 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
843
844         [BZ #16375]
845         * manual/arith.texi: Fix spelling.
846         * manual/charset.texi: Likewise.
847         * manual/errno.texi: Likewise.
848         * manual/filesys.texi: Likewise.
849         * manual/lang.texi: Likewise.
850         * manual/llio.texi: Likewise.
851         * manual/locale.texi: Likewise.
852         * manual/message.texi: Likewise.
853         * manual/resource.texi: Likewise.
854         * manual/search.texi: Likewise.
855         * manual/setjmp.texi: Likewise.
856         * manual/stdio.texi: Likewise.
857         * manual/string.texi: Likewise.
858         * manual/sysinfo.texi: Likewise.
859         * manual/time.texi: Likewise.
860
861 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
862
863         * po/sl.po: New file.
864
865 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
866
867         * .gitignore: Add core/.gdbinit/.gdb_history.
868
869 2013-12-27  Allan McRae  <allan@archlinux.org>
870
871         [BZ #16369]
872         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
873         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
874
875 2013-12-24  Brooks Moses  <bmoses@google.com>
876
877         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
878         all compilers that claim C++98 compliance, not just GCC.
879         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
880         Likewise.
881
882 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
883
884         * NEWS: Restore accidentally deleted bug-fix entries.
885
886 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
887             Ondřej Bílka  <neleai@seznam.cz>
888
889         [BZ #15073]
890         * malloc/malloc.c (_int_free): Perform sanity check only if we
891         have_lock.
892
893 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
894
895         [BZ #12986]
896         * manual/stdio.texi (String Input Conversions): Clarify that character
897         classes are not supported.
898
899 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
900
901         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
902
903 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
904
905         [BZ #16337]
906         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
907         Calculate results for small negative arguments directly rather
908         than using reflection formula with special underflow handling.
909
910         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
911         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
912         sysdeps/unix/bsd/bsd4.4/syscalls.list.
913         (fchflags): Likewise.
914         (revoke): Likewise.
915         (setlogin): Likewise.
916         (sigaltstack): Likewise.
917         (wait4): Likewise.
918         (sigblock): Remove.
919         (sigsetmask): Likewise.
920         (wait3): Likewise.
921         (waitpid): Likewise.
922         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
923         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
924         file.
925         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
926         * sysdeps/unix/bsd/Makefile: ... here.
927         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
928         * sysdeps/unix/bsd/Versions: ... here.
929         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
930         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
931         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
932         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
933         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
934         * sysdeps/unix/bsd/sigblock.c: ... here.
935         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
936         * sysdeps/unix/bsd/sigsetmask.c: ... here.
937         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
938         * sysdeps/unix/bsd/sigvec.c: ... here.
939         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
940         * sysdeps/unix/bsd/tcdrain.c: ... here.
941         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
942         * sysdeps/unix/bsd/tcgetattr.c: ... here.
943         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
944         * sysdeps/unix/bsd/tcsetattr.c: ... here.
945         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
946         * sysdeps/unix/bsd/wait.c: ... here.
947         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
948         * sysdeps/unix/bsd/wait3.c: ... here.
949         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
950         * sysdeps/unix/bsd/waitpid.c: ... here.
951
952 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
953
954         [BZ #16356]
955         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
956         round-to-nearest for [!USE_AS_EXPM1L].
957         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
958         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
959         more tests of exp and exp10.  Expect some exp10 tests to miss
960         exceptions or fail in directed rounding modes.
961         * math/auto-libm-test-out: Regenerated.
962         * math/libm-test.inc (exp10_tonearest_test_data): New array.
963         (exp10_test_tonearest): New function.
964         (exp10_towardzero_test_data): New array.
965         (exp10_test_towardzero): New function.
966         (exp10_downward_test_data): New array.
967         (exp10_test_downward): New function.
968         (exp10_upward_test_data): New array.
969         (exp10_test_upward): New function.
970         (main): Call the new functions.
971         * sysdeps/i386/fpu/libm-test-ulps: Update.
972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
973
974 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
975
976         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
977         asinh, atan, atan2, atanh, cbrt, cos and cosh.
978         * math/auto-libm-test-out: Regenerated.
979         * math/libm-test.inc (acosh_test_data): Add more tests.
980         (atanh_test_data): Likewise.
981         (ceil_test_data): Likewise.
982         (copysign_test_data): Likewise.
983         * sysdeps/i386/fpu/libm-test-ulps: Update.
984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
985
986         * timezone/checktab.awk: Update from tzcode 2013i.
987         * timezone/private.h: Likewise.
988         * timezone/scheck.c: Likewise.
989         * timezone/tzfile.h: Likewise.
990         * timezone/tzselect.ksh: Likewise.
991         * timezone/zdump.c: Likewise.
992         * timezone/zic.c: Likewise.
993
994         * math/auto-libm-test-in: Add tests of cpow.
995         * math/auto-libm-test-out: Regenerated.
996         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
997         * * math/gen-auto-libm-tests.c (func_calc_method): Add value
998         mpc_cc_c.
999         (func_calc_desc): Add mpc_cc_c union field.
1000         (test_functions): Add cpow.
1001         (special_fill_2pi): New function.
1002         (special_real_inputs): Add 2pi.
1003         (calc_generic_results): Handle mpc_cc_c.
1004         * sysdeps/i386/fpu/libm-test-ulps: Update.
1005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1006
1007         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
1008         csqrt, ctan and ctanh.
1009         * math/auto-libm-test-out: Regenerated.
1010         * math/libm-test.inc (TEST_COND_x86_64): New macro.
1011         (TEST_COND_x86): Likewise.
1012         (ccos_test_data): Use AUTO_TESTS_c_c.
1013         (ccosh_test_data): Likewise.
1014         (cexp_test_data): Likewise.
1015         (clog_test_data): Likewise.
1016         (csqrt_test_data): Likewise.
1017         (ctan_test_data): Likewise.
1018         (ctan_tonearest_test_data): Likewise.
1019         (ctan_towardzero_test_data): Likewise.
1020         (ctan_downward_test_data): Likewise.
1021         (ctan_upward_test_data): Likewise.
1022         (ctanh_test_data): Likewise.
1023         (ctanh_tonearest_test_data): Likewise.
1024         (ctanh_towardzero_test_data): Likewise.
1025         (ctanh_downward_test_data): Likewise.
1026         (ctanh_upward_test_data): Likewise.
1027         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1028         mpc_c_c.
1029         (func_calc_desc): Add mpc_c_c union field.
1030         (FUNC_mpc_c_c): New macro.
1031         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
1032         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
1033         ctanh.
1034         (special_fill_min_subnorm_p120): New function.
1035         (special_real_inputs): Add min_subnorm_p120.
1036         (calc_generic_results): Handle mpc_c_c.
1037         * sysdeps/i386/fpu/libm-test-ulps: Update.
1038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1039
1040 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1041
1042         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin,
1043         do_sin_slow): New functions.
1044         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2,
1045         cslow2, csloww1, csloww2): Use the new functions.
1046
1047         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
1048         Use M to change sign of result instead of X.  Assume X is
1049         positive.
1050         (csloww1): Likewise.
1051         (__sin): Adjust.
1052         (__cos): Adjust.
1053
1054         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
1055         arguments A and DA.
1056         (__sin): Adjust.
1057         (__cos): Likewise.
1058
1059         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
1060         (__cos): Likewise.
1061         (sloww1): Don't adjust sign of DX.
1062         (csloww1): Likewise.
1063         (sloww2): Use X directly and don't adjust sign of DX.
1064         (csloww2): Likewise.
1065
1066 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
1067
1068         * math/auto-libm-test-in: Add tests of cabs and carg.
1069         * math/auto-libm-test-out: Regenerated.
1070         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
1071         (carg_test_data): Likewise.
1072         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1073         mpc_c_f.
1074         (func_calc_desc): Add mpc_c_f union field.
1075         (test_functions): Add cabs and carg.
1076         (calc_generic_results): Handle mpc_c_f.
1077
1078         * sysdeps/powerpc/powerpc32/libgcc-compat.S
1079         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
1080         as a macro and a compat symbol.
1081         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
1082         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
1083         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
1084         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
1085         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
1086         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
1087         not use .hidden.
1088         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
1089         Likewise.
1090         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
1091         Likewise.
1092         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
1093         Likewise.
1094         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
1095         Likewise.
1096         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
1097         Likewise.
1098         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
1099         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
1100         from GLIBC_2.3.2.
1101
1102 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1103
1104         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1105
1106 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
1107
1108         * manual/texinfo.tex: Update to version 2013-11-26.10 with
1109         trailing whitespace removed.
1110         * scripts/config.guess: Update to version 2013-11-29.
1111         * scripts/config.sub: Update to version 2013-10-01.
1112
1113         * math/auto-libm-test-in: Add tests of sincos.
1114         * math/auto-libm-test-out: Regenerated.
1115         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
1116         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1117         mpfr_f_11.
1118         (func_calc_desc): Add mpfr_f_11 union field.
1119         (test_functions): Add sincos.
1120         (calc_generic_results): Handle mpfr_f_11.
1121         * sysdeps/i386/fpu/libm-test-ulps: Update.
1122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1123
1124 2013-12-19  Andreas Schwab  <schwab@suse.de>
1125
1126         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
1127         CALL_MCOUNT.
1128         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
1129         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
1130         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
1131
1132 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
1133
1134         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
1135         * sysdeps/i386/fpu/libm-test-ulps: Update.
1136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1137
1138         [BZ #16293]
1139         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
1140         round-to-nearest mode when using frndint.
1141         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
1142         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
1143         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
1144         Likewise.
1145         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
1146         sinh test to fail.
1147         * math/auto-libm-test-out: Regenerated.
1148         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
1149         (TEST_COND_x86): Likewise.
1150         (expm1_tonearest_test_data): New array.
1151         (expm1_test_tonearest): New function.
1152         (expm1_towardzero_test_data): New array.
1153         (expm1_test_towardzero): New function.
1154         (expm1_downward_test_data): New array.
1155         (expm1_test_downward): New function.
1156         (expm1_upward_test_data): New array.
1157         (expm1_test_upward): New function.
1158         (main): Run the new test functions.
1159         * sysdeps/i386/fpu/libm-test-ulps: Update.
1160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1161
1162         * include/features.h: Update comment documenting feature test
1163         macros.  Mention _DEFAULT_SOURCE in comment.
1164         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
1165         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
1166         _BSD_SOURCE and _SVID_SOURCE.
1167         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
1168         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
1169         !_SVID_SOURCE]: Likewise.
1170         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1171         (__USE_POSIX_IMPLICITLY): Define.
1172         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1173         (_POSIX_SOURCE): Undefine and redefine.
1174         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
1175         (_POSIX_C_SOURCE): Likewise.
1176         * manual/creature.texi (_DEFAULT_SOURCE): Document.
1177         (Feature Test Macros): Update documentation of default features.
1178
1179 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1180
1181         * benchtests/Makefile: Add bench-strtok.
1182         * benchtests/bench-strtok.c: New file: strtok benchtest.
1183
1184 2013-12-19  Allan McRae  <allan@archlinux.org>
1185
1186         * manual/install.texi: Suppress menu for plain text output.
1187         * INSTALL: Regenerated.
1188
1189 2013-12-18  Brooks Moses  <bmoses@google.com>
1190
1191         [BZ #15846]
1192         * misc/getauxval.c: Include errno.h.
1193         (__getauxval): Set errno to ENOENT if the requested type is not
1194         found.
1195         * misc/sys/auxv.h (getauxval): Document that it may set errno;
1196         don't declare with __attribute_const__.
1197         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
1198         * manual/startup.texi: Document that getauxval sets errno.
1199
1200 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1201
1202         * math/auto-libm-test-in: Add tests of jn and yn.
1203         * math/auto-libm-test-out: Regenerated.
1204         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
1205         (yn_test_data): Likewise.
1206         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1207         mpfr_if_f.
1208         (func_calc_desc): Add mpfr_if_f union field.
1209         (FUNC_mpfr_if_f): New macro.
1210         (test_functions): Add jn and yn.
1211         (calc_generic_results): Assert type of second input for
1212         mpfr_ff_f.  Handle mpfr_if_f.
1213         (output_for_one_input_case): Disable all checking for arguments
1214         fitting floating-point types in case of an integer argument.
1215         * sysdeps/i386/fpu/libm-test-ulps: Update.
1216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1217
1218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
1219         Don't expect fegetround reference in libm.so.
1220
1221 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1222
1223         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
1224         $(config-cflags-nofma).
1225
1226 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
1227
1228         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
1229         * math/auto-libm-test-out: Regenerated.
1230
1231         [BZ #16338]
1232         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
1233         to determine exponent and adjust argument to have exponent of -1.
1234         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
1235         log2.
1236         * math/auto-libm-test-out: Regenerated.
1237         * sysdeps/i386/fpu/libm-test-ulps: Update.
1238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1239
1240 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
1241
1242         * manual/probes.texi: Remove cases when per-thread arenas are
1243         disabled.
1244
1245 2013-12-18  Andreas Schwab  <schwab@suse.de>
1246
1247         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
1248         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
1249         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
1250         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
1251         * sysdeps/i386/i686/multiarch/Makefile: Update.
1252         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
1253
1254 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1255
1256         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
1257         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
1258
1259 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         [BZ #15968]
1262         Support TZ transition times < 00:00:00.
1263         This is needed for version-3 tz-format files; it supports time
1264         stamps past 2037 for America/Godthab (the only entry in the tz
1265         database for which this change is relevant).
1266         * manual/time.texi (TZ Variable): Document transition times
1267         from -167:59:59 through -00:00:01.
1268         * time/tzset.c (tz_rule): Time of day is now signed.
1269         (__tzset_parse_tz): Parse negative time of day.
1270
1271         Document TZ transition times >= 25:00:00.
1272         * manual/time.texi (TZ Variable): Document transition times from
1273         25:00:00 through 167:59:59.  These are already supported, and this
1274         support will help with version-3 tz-format files.
1275
1276         * manual/time.texi (TZ Variable): Modernize North America example
1277         to reflect current (i.e., 2007-and-later) daylight saving rules.
1278
1279         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
1280
1281 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1282
1283         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
1284         * sysdeps/unix/bsd/bits/stat.h: Likewise.
1285         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
1286         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1287         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
1288         * sysdeps/unix/bsd/bsdstat.h: Likewise.
1289         * sysdeps/unix/bsd/clock.c: Likewise.
1290         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
1291         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
1292         * sysdeps/unix/bsd/init-posix.c: Likewise.
1293         * sysdeps/unix/bsd/poll.c: Likewise.
1294         * sysdeps/unix/bsd/ptsname.c: Likewise.
1295         * sysdeps/unix/bsd/seekdir.c: Likewise.
1296         * sysdeps/unix/bsd/setegid.c: Likewise.
1297         * sysdeps/unix/bsd/seteuid.c: Likewise.
1298         * sysdeps/unix/bsd/setgid.c: Likewise.
1299         * sysdeps/unix/bsd/setrgid.c: Likewise.
1300         * sysdeps/unix/bsd/setruid.c: Likewise.
1301         * sysdeps/unix/bsd/setsid.c: Likewise.
1302         * sysdeps/unix/bsd/setuid.c: Likewise.
1303         * sysdeps/unix/bsd/sigaction.c: Likewise.
1304         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1305         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1306         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
1307         * sysdeps/unix/bsd/telldir.c: Likewise.
1308         * sysdeps/unix/bsd/times.c: Likewise.
1309         * sysdeps/unix/bsd/usleep.c: Likewise.
1310
1311         * misc/Makefile (install-lib): Remove libbsd-compat.a.
1312         ($(objpfx)libbsd-compat.a): Remove rule.
1313
1314         * include/features.h (__FAVOR_BSD): Do not define.
1315         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
1316         features conflicting with POSIX.
1317         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
1318         (_BSD_SOURCE): Remove description of not being a subset of other
1319         feature test macros.
1320         * manual/job.texi (getpgrp): Do not document BSD version.
1321         (getpgid): Do not document by reference to BSD getpgrp.
1322         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
1323         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
1324         * signal/signal.h [__FAVOR_BSD]: Likewise.
1325         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
1326         instead of making contents conditional on [__FAVOR_BSD].
1327         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
1328
1329 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1330
1331         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1332
1333 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
1334
1335         [BZ #16314]
1336         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
1337         values below 2**-450, not 2**-500.
1338         * math/auto-libm-test-in: Don't allow spurious underflow from
1339         hypot.
1340         * math/auto-libm-test-out: Regenerated.
1341
1342         [BZ #16316]
1343         [BZ #16330]
1344         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
1345         values of ha and hb and sort them after adjusting subnormal
1346         arguments.
1347         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1348         Likewise.
1349         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
1350         values of ea and eb and sort them after adjusting subnormal
1351         arguments.
1352         * math/auto-libm-test-in: Do not expect some hypot tests of
1353         subnormals to fail.  Add more hypot tests.
1354         * math/auto-libm-test-out: Regenerated.
1355
1356 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1357
1358         [BZ #13304]
1359         * sysdeps/sh/s_fma.c: New file.
1360         * sysdeps/sh/s_fmaf.c: New file.
1361         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
1362         version.
1363         * sysdeps/sh/Implies: Add sh/soft-fp.
1364
1365 2013-12-16  Roland McGrath  <roland@hack.frob.com>
1366
1367         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
1368         level of indirection to members `objname', `errstring', `malloced'.
1369         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
1370         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
1371         it as the __longjmp argument (just pass 1 instead).
1372         (_dl_catch_error): Initialize C with argument pointers and address of
1373         volatile local ERRCODE rather than copying values out of C at return.
1374
1375 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
1376
1377         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
1378         * math/auto-libm-test-out: Regenerated.
1379         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
1380         (hypot_test_data): Likewise.
1381         (pow_test_data): Likewise.
1382         (pow_tonearest_test_data): Likewise.
1383         * math/gen-auto-libm-tests.c (func_calc_method): Add value
1384         mpfr_ff_f.
1385         (func_calc_desc): Add mpfr_ff_f union field.
1386         (FUNC_mpfr_ff_f): New macro.
1387         (test_functions): Add atan2, hypot and pow.
1388         (special_fill_min): New function.
1389         (special_fill_minus_min): Likewise.
1390         (special_fill_min_subnorm): Likewise.
1391         (special_fill_minus_min_subnorm): Likewise.
1392         (special_real_inputs): Add min, -min, min_subnorm and
1393         -min_subnorm.
1394         (calc_generic_results): Handle mpfr_ff_f.
1395         * sysdeps/i386/fpu/libm-test-ulps: Update.
1396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1397
1398 2013-12-16  Will Newton  <will.newton@linaro.org>
1399
1400         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
1401         (Aligned Memory Blocks): Add documentation for aligned_alloc
1402         and suggest it as an alternative to posix_memalign.
1403         (Hooks for Malloc): Document __memalign_hook is also called
1404         for aligned_alloc.  (Summary of Malloc): Add summary for
1405         aligned alloc.  Document __memalign_hook is also called
1406         for aligned_alloc.
1407
1408 2013-12-16  Will Newton  <will.newton@linaro.org>
1409
1410         * manual/memory.texi (Malloc Examples): Clarify default
1411         alignment documentation.  Suggest posix_memalign rather
1412         than memalign or valloc.
1413         (Aligned Memory Blocks): Remove suggestion to use memalign
1414         or valloc.  Remove obsolete comment about BSD.
1415         Document memalign errno values and mark the function obsolete.
1416         Document posix_memalign returned error codes.  Mark valloc
1417         as obsolete.  (Hooks for Malloc): __memalign_hook is also
1418         called for posix_memalign and valloc.
1419         (Summary of Malloc): Add posix_memalign to function summary.
1420         __memalign_hook is also called for posix_memalign and valloc.
1421
1422 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1423
1424         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
1425         TAYLOR_SIN.
1426         (__sin): Adjust.
1427         (__cos): Likewise.
1428         (sloww): Use mynumber union.  Expand ternary operator into
1429         if-else statements.
1430         (cslow): use mynumber union.
1431
1432 2013-12-16  Allan McRae  <allan@archlinux.org>
1433
1434         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
1435         * configure: Regenerated.
1436
1437         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
1438
1439         [BZ #14120]
1440         * configure.ac: Added --enable-maintainer-mode. Check for
1441         autoconf when enabled.
1442         * configure: Regenerated.
1443
1444         * nscd/nscd.service: New file.
1445         * nscd/nscd.tmpfiles: New file.
1446
1447 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
1448
1449         [BZ #12100]
1450         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
1451         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
1452         * sysdeps/x86_64/multiarch/strstr.c: ... here.
1453         (strstr): Add __strstr_sse2_unaligned ifunc.
1454         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
1455         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
1456         (strcasestr): Remove __strcasestr_sse42 ifunc.
1457         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
1458         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1459         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1460
1461 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1462
1463         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
1464         * sysdeps/sh/bits/fenv.h: ... here.
1465         * sysdeps/sh/sh4/fpu/bits: Remove directory.
1466
1467 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1468
1469         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
1470
1471 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1472
1473         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
1474         hypotf multiarch implementations.
1475         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
1476         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
1477         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
1478         multiarch hypot for PPC64.
1479         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
1480         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
1481         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
1482         multiarch hypotf for PPC64.
1483
1484 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1485
1486         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
1487         modff multiarch implementations.
1488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
1489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
1490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
1491         multiarch modf for PPC64.
1492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
1493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
1494         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
1495         multiarch modff for PPC64.
1496
1497 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1498
1499         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
1500         and logl multiarch implementations.
1501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
1502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
1503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
1504         multiarch logb for PPC64.
1505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
1506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
1507         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
1508         multiarch logb for PPC64.
1509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
1510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
1511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
1512         multiarch logb for PPC64.
1513
1514 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1515
1516         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
1517         isinff multiarch implementation.
1518         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
1519         file.
1520         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
1521         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
1522         multiarch isinf for PPC64.
1523         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
1524         file.
1525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
1526         multiarch isinff for PPC64.
1527
1528 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1529
1530         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
1531         finitef multiarch implementation.
1532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
1533         file.
1534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
1535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
1536         multiarch finite for PPC64.
1537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
1538         file.
1539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
1540         multiarch finitef for PPC64.
1541
1542 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1543
1544         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
1545         lrint multiarch implementation.
1546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
1547         file.
1548         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
1549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
1550         multiarch llrint for PPC64.
1551         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
1552         multiarch lrint for PPC64.
1553
1554 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1555
1556         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
1557         copysignf multiarch implementation.
1558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
1559         file.
1560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
1561         file.
1562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
1563         multiarch copysign for PPC64.
1564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
1565         multiarch copysignf for PPC64.
1566
1567 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1568
1569         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
1570         multiarch implementation.
1571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
1572         file.
1573         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
1574         file.
1575         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
1576         file.
1577         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
1578         file.
1579         multiarch llround for PPC64.
1580         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
1581         multiarch trunc for PPC64.
1582         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
1583         multiarch truncf for PPC64.
1584
1585 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1586
1587         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
1588         multiarch implementation.
1589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
1590         file.
1591         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
1592         file.
1593         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
1594         file.
1595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
1596         file.
1597         multiarch llround for PPC64.
1598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
1599         multiarch round for PPC64.
1600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
1601         multiarch roundf for PPC64.
1602
1603 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1604
1605         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
1606         multiarch implementation.
1607         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
1608         file.
1609         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
1610         file.
1611         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
1612         file.
1613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
1614         file.
1615         multiarch llround for PPC64.
1616         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
1617         multiarch floor for PPC64.
1618         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
1619         multiarch floorf for PPC64.
1620
1621 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1622
1623         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
1624         multiarch implementation.
1625         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
1626         file.
1627         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
1628         file.
1629         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
1630         file.
1631         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
1632         file.
1633         multiarch llround for PPC64.
1634         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
1635         multiarch ceil for PPC64.
1636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
1637         multiarch ceilf for PPC64.
1638
1639 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1640
1641         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
1642         multiarch implementation.
1643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
1644         file.
1645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
1646         file.
1647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
1648         file.
1649         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
1650         multiarch llround for PPC64.
1651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
1652         multiarch lround for PPC64.
1653
1654 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1655
1656         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
1657         multiarch implementation.
1658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
1659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
1660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
1661         file.
1662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
1663         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
1664         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
1665         multiarch isnan for PPC64.
1666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
1667         multiarch isnanf for PPC64.
1668
1669 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1670
1671         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
1672         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
1673         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
1674         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
1675         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
1676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
1677
1678 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1679
1680         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
1681         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
1682         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1683         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1684
1685 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1686
1687         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
1688         multiarch implementations.
1689         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1690         (__libc_ifunc_impl_list): Likewise.
1691         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
1692         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
1693         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
1694         multiarch stpcpy for PPC64.
1695
1696 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1697
1698         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
1699         multiarch implementations.
1700         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1701         (__libc_ifunc_impl_list): Likewise.
1702         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
1703         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
1704         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
1705         multiarch strcpy for PPC64.
1706
1707 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1708
1709         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
1710         redefine function name.
1711         (_wordcopy_fwd_dest_aligned): Likewise.
1712         (_wordcopy_bwd_aligned): Likewise.
1713         (_wordcopy_bwd_dest_aligned): Likewise.
1714         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
1715         multiarch implementations.
1716         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1717         (__libc_ifunc_impl_list): Likewise.
1718         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
1719         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
1720         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
1721         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
1722         multiarch wcscpy for PPC64.
1723
1724 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1725
1726         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
1727         multiarch implementations.
1728         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1729         (__libc_ifunc_impl_list): Likewise.
1730         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
1731         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
1732         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
1733         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
1734         multiarch wcscpy for PPC64.
1735
1736 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1737
1738         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
1739         multiarch implementations.
1740         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1741         (__libc_ifunc_impl_list): Likewise.
1742         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
1743         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
1744         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
1745         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
1746         multiarch wcsrchr for PPC64.
1747
1748 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1749
1750         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
1751         multiarch implementations.
1752         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1753         (__libc_ifunc_impl_list): Likewise.
1754         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
1755         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
1756         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
1757         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
1758         multiarch wcschr for PPC64.
1759
1760 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1761
1762         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
1763         multiarch implementations.
1764         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1765         (__libc_ifunc_impl_list): Likewise.
1766         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
1767         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
1768         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
1769         multiarch strchrnul for PPC64.
1770
1771 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1772
1773         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
1774         implementations.
1775         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1776         (__libc_ifunc_impl_list): Likewise.
1777         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
1778         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
1779         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
1780         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
1781         strchr for PPC64.
1782
1783 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1784
1785         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
1786         implementations.
1787         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1788         (__libc_ifunc_impl_list): Likewise.
1789         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
1790         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
1791         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
1792         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
1793         strncmp for PPC64.
1794
1795 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1796
1797         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
1798         multiarch implementations.
1799         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1800         (__libc_ifunc_impl_list): Likewise.
1801         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
1802         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
1803         strncasecmp for PPC64.
1804         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
1805         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
1806         multiarch strncasecmp_l for PPC64.
1807
1808 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1809
1810         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
1811         multiarch implementations.
1812         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1813         (__libc_ifunc_impl_list): Likewise.
1814         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
1815         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
1816         multiarch strcasecmp for PPC64.
1817         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
1818         file.
1819         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
1820         multiarch strcasecmp_l for PPC64.
1821
1822 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1823
1824         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
1825         implementations.
1826         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1827         (__libc_ifunc_impl_list): Likewise.
1828         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
1829         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
1830         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
1831         strnlen for PPC64.
1832
1833 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1834
1835         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
1836         implementations.
1837         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1838         (__libc_ifunc_impl_list): Likewise.
1839         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
1840         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
1841         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
1842         strlen for PPC64.
1843
1844 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1845
1846         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
1847         implementations.
1848         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1849         (__libc_ifunc_impl_list): Likewise.
1850         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
1851         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
1852         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
1853         rawmemrchr for PPC64.
1854
1855 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1856
1857         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
1858         implementation.
1859         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1860         (__libc_ifunc_impl_list): Likewise.
1861         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
1862         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
1863         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
1864         memrchr for PPC64.
1865
1866 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1867
1868         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
1869         implementation.
1870         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1871         (__libc_ifunc_impl_list): Likewise.
1872         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
1873         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
1874         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
1875         memchr for PPC64.
1876
1877 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1878
1879         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
1880         implementation.
1881         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1882         (__libc_ifunc_impl_list): Likewise.
1883         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
1884         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
1885         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
1886         mempcpy for PPC64.
1887
1888 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1889
1890         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
1891         avoid cretion of __bzero symbol.
1892         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
1893         Likewise.
1894         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
1895         Likewise.
1896         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
1897         Likewise.
1898         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
1899         multiarch implementations.
1900         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1901         (__libc_ifunc_impl_list): Likewise.
1902         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
1903         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
1904         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
1905         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
1906         bzero for PPC32.
1907         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
1908         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
1909         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
1910         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
1911         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
1912         memset for PPC64.
1913         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
1914
1915 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1916
1917         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
1918         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
1919         implementations.
1920         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1921         (__libc_ifunc_impl_list): Likewise.
1922         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
1923         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
1924         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
1925         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
1926         memcmp for PPC64.
1927
1928 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1929
1930         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
1931         multiarch for POWER/PPC64.
1932         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1933         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
1934         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
1935         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
1936         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
1937         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
1938         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
1939         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
1940         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
1941         memcpy for PPC64.
1942
1943 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1944
1945         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
1946         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
1947         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
1948         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
1949         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
1950         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
1951         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
1952         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
1953         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
1954         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
1955         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
1956         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
1957         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
1958         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
1959         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
1960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
1961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
1962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
1963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
1964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
1965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
1966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
1967
1968 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1969
1970         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
1971
1972 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1973
1974         * benchtests/Makefile (bench): Add exp2 and log2.
1975         (LDLIBS-bench-exp2): Add -lm.
1976         (LDLIBS-bench-log2): Likewise.
1977         * benchtests/exp2-inputs: New inputs file.
1978         * benchtests/log2-inputs: New inputs file.
1979         * benchtests/log-inputs: Add new inputs.
1980         * benchtests/tan-inputs: Likewise.
1981
1982 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1983
1984         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
1985         definition...
1986         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
1987         csloww1, csloww2): ... from here.
1988
1989         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
1990         instead of structures.
1991         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
1992         (POLYNOMIAL): Likewise.
1993         (TAYLOR_SLOW): Likewise.
1994         (__sin): Likewise.
1995         (__cos): Likewise.
1996         (slow1): Likewise.
1997         (slow2): Likewise.
1998         (sloww): Likewise.
1999         (sloww1); Likewise.
2000         (sloww2): Likewise.
2001         (bsloww1): Likewise.
2002         (bsloww2): Likewise.
2003         (cslow2): Likewise.
2004         (csloww): Likewise.
2005         (csloww1): Likewise.
2006         (csloww2): Likewise.
2007
2008 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
2009
2010         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
2011         (__malloc_assert, __libc_realloc, __libc_calloc,
2012         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
2013         memcpy and memset.
2014         * malloc/hooks.c (realloc_check): Likewise.
2015
2016 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
2017
2018         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
2019         * malloc/arena.c: Remove PER_THREAD conditional.
2020         [!PER_THREAD]: Remove code.
2021         (ptmalloc_unlock_all2): Likewise.
2022         (ptmalloc_init): Likewise.
2023         (_int_new_arena): Likewise.
2024         (arena_get2): Likewise.
2025         * malloc/hooks.c (__malloc_get_state): Likewise.
2026         (__malloc_set_state): Likewise.
2027         * malloc/malloc.c: Likewise.
2028         (struct malloc_state): Likewise.
2029         (struct malloc_par): Likewise.
2030         (__libc_realloc): Likewise.
2031         (__libc_mallopt): Likewise.
2032
2033 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2034
2035         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
2036
2037 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
2038
2039         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
2040         macro to a function.  Check for zero perturb_byte.
2041         (_int_malloc, _int_free): Remove zero perturb_byte checks.
2042
2043 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
2044
2045         * malloc/malloc.c: (force_reg): Remove.
2046         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
2047         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
2048         force_reg by atomic_forced_read.
2049         * malloc/arena.c (ptmalloc_init): Likewise.
2050         * malloc/hooks.c (top_check): Likewise.
2051
2052 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2053
2054         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2055
2056 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
2057
2058         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2059
2060 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
2061
2062         * math/auto-libm-test-in: Add tests of lgamma.
2063         * math/auto-libm-test-out: Regenerated.
2064         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
2065         (M_LOG_2_SQRT_PIl): Likewise.
2066         (lgamma_test_data): Use AUTO_TESTS_f_f1.
2067         * math/gen-auto-libm-tests.c (func_calc_method): Add value
2068         mpfr_f_f1.
2069         (func_calc_desc): Add mpfr_f_f1 union field.
2070         (ARGS1): New macro.
2071         (ARGS2): Likewise.
2072         (ARGS3): Likewise.
2073         (ARGS4): Likewise.
2074         (RET1): Likewise.
2075         (RET2): Likewise.
2076         (CALC): Likewise.
2077         (FUNC): Likewise.
2078         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
2079         (test_functions): Add lgamma.
2080         (calc_generic_results): Handle mpfr_f_f1.
2081         * sysdeps/i386/fpu/libm-test-ulps: Update.
2082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2083
2084 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2085
2086         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
2087         __mpn_add_n for PowerPC64/POWER7.
2088         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
2089         __mpn_sub_n for PowerPC64/POWER7.
2090
2091 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2092
2093         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
2094         __mpn_addmul_1 for PowerPC64.
2095         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
2096         __mpn_submul_1 for PowerPC64.
2097         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
2098         for PowerPC64.
2099         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
2100         for PowerPC64.
2101
2102 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
2103
2104         [BZ #15089]
2105         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
2106
2107 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2108
2109         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
2110
2111 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2112
2113         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
2114         add multiarch folders.
2115         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
2116         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
2117         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
2118         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
2119         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
2120         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
2121         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
2122         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
2123         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
2124         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
2125         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
2126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
2127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
2128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
2129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
2131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
2132
2133 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2134
2135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2136         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
2137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
2138         New file.
2139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
2140         New file.
2141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
2142         multiarch __ieee754_hypot for PowerPC32.
2143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
2144         New file.
2145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
2146         New file.
2147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
2148         multiarch __ieee754_hypotf for PowerPC32.
2149
2150 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2151
2152         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
2153         long_double_symbol only if __logbl is defined.
2154         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
2155         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
2156         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
2157         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
2158         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
2159         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
2160         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
2161         path for implementation.
2162         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2163         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
2165         logb, and logbl multiarch implementations for PowerPC32.
2166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
2167         file.
2168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
2169         file.
2170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
2171         multiarch logb for PowerPC32.
2172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
2173         file.
2174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
2175         file.
2176         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
2177         multiarch logbf for PowerPC32.
2178         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
2179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
2180         file.
2181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
2182         multiarch logbl implementation for PowerPC32.
2183
2184 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2185
2186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
2187         and modff multiarch implementations.
2188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2189         New file.
2190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
2191         New file.
2192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
2193         multiarch modf for PowerPC32.
2194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2195         New file.
2196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
2197         New file.
2198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
2199         multiarch modff for PowerPC32.
2200
2201 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2202
2203         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
2204         and lrintf multiarch implementations.
2205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
2206         New file.
2207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2208         New file.
2209         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
2210         multiarch lrint for PowerPC32.
2211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
2212         file: multiarch lrintf for PowerPC32.
2213
2214 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2215
2216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
2217         and lroundf multiarch implementations.
2218         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2219         New file.
2220         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
2221         New file.
2222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2223         New file.
2224         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
2225         multiarch lround for PowerPC32.
2226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
2227         file: multiarch lroundf for PowerPC32.
2228
2229 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2230
2231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
2232         copysign and copysignf multiarch implementations.
2233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2234         New file.
2235         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2236         New file.
2237         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
2238         file: multiarch copysign for PowerPC32.
2239         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
2240         file: multiarch copysignf for PowerPC32.
2241
2242 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2243
2244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
2245         and truncf multiarch implementations.
2246         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
2247         New file.
2248         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
2249         file.
2250         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
2251         multiarch trunc for PowerPC32.
2252         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
2253         New file.
2254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
2255         New file.
2256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
2257         multiarch truncf for PowerPC32.
2258
2259 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2260
2261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
2262         and roundf multiarch implementations.
2263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
2264         New file.
2265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
2266         file.
2267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
2268         multiarch round for PowerPC32.
2269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
2270         New file.
2271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
2272         New file.
2273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
2274         multiarch roundf for PowerPC32.
2275
2276 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2277
2278         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
2279         and floorf multiarch implementations.
2280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
2281         New file.
2282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
2283         file.
2284         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
2285         multiarch floor for PowerPC32.
2286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
2287         New file.
2288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
2289         New file.
2290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
2291         multiarch floorf for PowerPC32.
2292
2293 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2294
2295         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
2296         and ceilf multiarch implementations.
2297         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
2298         New file.
2299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
2300         file.
2301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
2302         multiarch ceil for PowerPC32.
2303         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
2304         New file.
2305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
2306         file.
2307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
2308         multiarch ceilf for PowerPC32.
2309
2310 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2311
2312         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
2313         is defined.
2314         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
2315         FINITEF is defined.
2316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
2317         and finitef multiarch implementations.
2318         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2319         New file.
2320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
2321         file.
2322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
2323         multiarch finite for PowerPC32.
2324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2325         New file.
2326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
2327         file: multiarch finitef for PowerPC32.
2328
2329 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2330
2331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
2332         and isinff multiarch implementations.
2333         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
2334         file.
2335         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
2336         file.
2337         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
2338         multiarch isinf for PowerPC32.
2339         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2340         New file.
2341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
2342         multiarch isinff for PowerPC32.
2343
2344 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2345
2346         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
2347         alias when __isnan is defined.
2348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
2349         and isnanf multiarch implementations.
2350         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
2351         file.
2352         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
2353         file.
2354         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
2355         file.
2356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
2357         file.
2358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
2359         multiarch isnan for PowerPC32.
2360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2361         New file.
2362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
2363         New file.
2364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
2365         multiarch isnanf for PowerPC32.
2366
2367 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2368
2369         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
2370         and sqrtf multiarch implementations.
2371         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
2372         file.
2373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
2374         file.
2375         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
2376         multiarch sqrt for PowerPC32.
2377         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
2378         file.
2379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
2380         file.
2381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
2382         multiarch sqrtf for PowerPC32.
2383
2384 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2385
2386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
2387         and llroundf multiarch implementations.
2388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2389         New file.
2390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2391         New file.
2392         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2393         New file.
2394         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
2395         file: multiarch llround for PowerPC32.
2396         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
2397         file: multiarch llroundf for PowerPC32.
2398
2399 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2400
2401         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
2402         multiarch PowerPC32 fpu implementations.
2403         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2404         New file.
2405         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2406         New file.
2407         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
2408         multiarch llrint for PowerPC32.
2409         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2410         New file.
2411         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2412         New file.
2413         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
2414         file.
2415
2416 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2417
2418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
2419
2420 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2421
2422         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
2423         file.
2424         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
2425         file.
2426         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
2427         file.
2428         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
2429         multiarch wordcopy for PPC32.
2430         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2431         wordcopy objects.
2432         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2433         (__libc_ifunc_impl_list): Likewise.
2434         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
2435         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
2436         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
2437         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
2438         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
2439         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
2440
2441 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2442
2443         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
2444         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
2445         file.
2446         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
2447         file.
2448         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
2449         file.
2450         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
2451         multiarch wcscpy for PPC32.
2452         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
2453         multiarch objects.
2454         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2455         (__libc_ifunc_impl_list): Likewise.
2456         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2457         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2458         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
2459         sysdeps/powerpc/power6/wcscpy.c.
2460
2461 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2462
2463         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
2464         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
2465         file.
2466         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
2467         file.
2468         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
2469         file.
2470         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
2471         multiarch wcsrchr for PPC32.
2472         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2473         multiarch objects.
2474         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2475         (__libc_ifunc_impl_list): Likewise.
2476         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
2477         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
2478         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
2479         sysdeps/powerpc/power6/wcsrchr.c.
2480
2481 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2482
2483         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
2484         file.
2485         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
2486         file.
2487         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
2488         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
2489         multiarch wcschr for PPc32.
2490         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
2491         multiarch objects.
2492         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2493         (__libc_ifunc_impl_list): Likewise.
2494         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
2495         * sysdeps/powerpc/power6/wcschr.c: ... to here.
2496         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
2497         sysdeps/powerpc/power6/wcschr.c.
2498
2499 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2500
2501         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
2502         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
2503         file.
2504         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
2505         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
2506         file: multiarch strchr for PPC32.
2507         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
2508         multiarch objects.
2509         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2510         (__libc_ifunc_impl_list): Likewise.
2511
2512 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2513
2514         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
2515         name.
2516         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
2517         file.
2518         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
2519         file.
2520         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
2521         multiarch strchrnul for PPC32.
2522         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
2523         multiarch objects.
2524         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2525         (__libc_ifunc_impl_list): Likewise.
2526
2527 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2528
2529         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
2530         file.
2531         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
2532         multiarch strncasecmp for PPC32.
2533         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
2534         file.
2535         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
2536         multiarch strncasecmp_l for PPC32.
2537         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
2538         strncasecmp multiarch objects.
2539         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2540         (__libc_ifunc_impl_list): Likewise.
2541
2542 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2543
2544         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
2545         file.
2546         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
2547         multiarch strncasecmp for PPC32.
2548         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
2549         New file.
2550         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
2551         multiarch strcasecmp_l for PPC32.
2552         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
2553         multiarch objects.
2554         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2555         (__libc_ifunc_impl_list): Likewise.
2556
2557 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2558
2559         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
2560         file.
2561         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
2562         file.
2563         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
2564         multiarch strncmp for PPC32.
2565         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
2566         multiarch objects.
2567         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2568         (__libc_ifunc_impl_list): Likewise.
2569
2570 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2571
2572         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
2573         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
2574         file.
2575         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
2576         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
2577         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
2578         multiarch objects.
2579         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2580         (__libc_ifunc_impl_list): Likewise.
2581
2582 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2583
2584         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
2585         file.
2586         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
2587         file.
2588         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
2589         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
2590         multiarch objects.
2591         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2592         (__libc_ifunc_impl_list): Likewise.
2593
2594 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2595
2596         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
2597         file.
2598         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
2599         file.
2600         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
2601         multiarch rawmemchr for PPC32.
2602         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
2603         multiarch objects.
2604         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2605         (__libc_ifunc_impl_list): Likewise.
2606
2607 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2608
2609         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
2610         file.
2611         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
2612         file.
2613         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
2614         file: memrchr multiarch for PPC32.
2615         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
2616         multiarch objects.
2617         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
2618         (__libc_ifunc_impl_list): Likewise.
2619
2620 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2621
2622         * string/memchr.c (__memchr): Using macro to redefine symbol name.
2623         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
2624         file.
2625         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
2626         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
2627         multiarch memchr for PPC32.
2628         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
2629         multiarch objects.
2630         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2631         (__libc_ifunc_impl_list): Likewise.
2632
2633 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2634
2635         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
2636         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
2637         file.
2638         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
2639         file.
2640         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
2641         file: multiarch mempcpy for PPC32.
2642         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
2643         multiarch objects.
2644         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2645         (__libc_ifunc_impl_list): Likewise.
2646
2647 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2648
2649         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
2650         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
2651         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
2652         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
2653         multiarch bzero for PPC32.
2654         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
2655         file.
2656         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
2657         file.
2658         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
2659         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
2660         file: multiarch memset for PPC32.
2661         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
2662         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
2663         memset multiarch objects.
2664         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2665         (__libc_ifunc_impl_list): Likewise.
2666
2667 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2668
2669         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
2670         file.
2671         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
2672         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
2673         memcmp for PPC32.
2674         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
2675         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
2676         multiarch objects.
2677         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2678         (__libc_ifunc_impl_list): Likewise.
2679
2680 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2681
2682         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
2683         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
2684         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
2685         file.
2686         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
2687         file.
2688         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
2689         file.
2690         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
2691         multiarch memcpy for PPC32.
2692         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
2693         multiarch objects.
2694         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
2695         (__libc_ifunc_impl_list): Likewise.
2696
2697 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2698
2699         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
2700         support multiarch for POWER/PPC32.
2701         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2702         Likewise.
2703         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
2704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
2705         Implies file to make multiarch folder appers before the fpu and
2706         default folder for power4 configuration.
2707
2708 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2709
2710         * scripts/bench.pl: Append volatile keyword to type.
2711
2712 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2713
2714         * sysdeps/sh/sotruss-lib.c: New file.
2715         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
2716
2717 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2718
2719         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2720
2721 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
2722
2723         [BZ #6810]
2724         * math/w_tgamma.c: Include <errno.h>.
2725         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
2726         * math/w_tgammaf.c: Include <errno.h>.
2727         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
2728         * math/w_tgammal.c: Include <errno.h>.
2729         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
2730         * math/auto-libm-test-in: Do not allow missing errno on tgamma
2731         underflow.  Add more tgamma tests.
2732         * math/auto-libm-test-out: Regenerated.
2733         * sysdeps/i386/fpu/libm-test-ulps: Update.
2734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2735
2736         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
2737         sin, sinh, tan, tanh, tgamma, y0 and y1.
2738         * math/auto-libm-test-out: Regenerated.
2739         * math/libm-test.inc (TEST_COND_x86_64): New macro.
2740         (TEST_COND_x86): Likewise.
2741         (M_E2l): Remove macro.
2742         (M_E3l): Likewise.
2743         (M_2_SQRT_PIl): Likewise.
2744         (M_SQRT_PIl): Likewise.
2745         (M_1_DIV_El): Likewise.
2746         (log_test_data): Use AUTO_TESTS_f_f.
2747         (log10_test_data): Likewise.
2748         (log1p_test_data): Likewise.
2749         (log2_test_data): Likewise.
2750         (sin_test_data): Likewise.
2751         (sin_tonearest_test_data): Likewise.
2752         (sin_towardzero_test_data): Likewise.
2753         (sin_downward_test_data): Likewise.
2754         (sin_upward_test_data): Likewise.
2755         (sinh_test_data): Likewise.
2756         (sinh_tonearest_test_data): Likewise.
2757         (sinh_towardzero_test_data): Likewise.
2758         (sinh_downward_test_data): Likewise.
2759         (sinh_upward_test_data): Likewise.
2760         (tan_test_data): Likewise.
2761         (tan_tonearest_test_data): Likewise.
2762         (tan_towardzero_test_data): Likewise.
2763         (tan_downward_test_data): Likewise.
2764         (tan_upward_test_data): Likewise.
2765         (tanh_test_data): Likewise.
2766         (tgamma_test_data): Likewise.
2767         (y0_test_data): Likewise.
2768         (y1_test_data): Likewise.
2769         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
2770         (special_real_inputs): Add pi/4.
2771         * sysdeps/i386/fpu/libm-test-ulps: Update.
2772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2773
2774 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2775
2776         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
2777         "longjmp_target" static probes.
2778         (__longjmp): Rename to __longjmp_symbol.
2779         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2780         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
2781         on which longjmp to generate.
2782         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
2783         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
2784         probe.
2785         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2786         (__sigjmp_save): Rename to __sigjmp_save_symbol.
2787         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2788         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
2789         and __sigjmp_save_symbol based on which sigsetjmp to generated.
2790         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
2791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
2792         __longjmp_symbol based on which __longjmp to generate.
2793         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
2794         probe.
2795         (setjmp): Rename to setjmp_symbol.
2796         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2797         (_setjmp): Rename to _setjmp_symbol.
2798         (__sigsetjmp): Rename to __sigsetjmp_symbol.
2799         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
2800         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
2801         which setjmp to generate.
2802         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
2803         "longjmp_target" static probes.
2804
2805 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2806
2807         * benchtests/README: Add note about output arguments.
2808         * benchtests/bench-sincos.c: Remove file.
2809         * benchtests/sincos-inputs: New file.
2810         * scripts/bench.pl: Identify output arguments and define
2811         static variables for them.
2812
2813         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
2814
2815         [BZ #15941]
2816         * Makefile (INSTALL): Add install-plain.texi as the primary
2817         dependency.
2818         * manual/install-plain.texi: New file.
2819         * manual/install.texi: Include node directive only for
2820         non-plaintext output.
2821
2822 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2823
2824         * stdlib/longlong.h: Update from GCC.
2825
2826         [BZ #6807]
2827         [BZ #15901]
2828         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
2829         * math/w_j0f.c (y0f): Likewise.
2830         * math/w_j0l.c (__y0l): Likewise.
2831         * math/w_j1.c (y1): Likewise.
2832         * math/w_j1f.c (y1f): Likewise.
2833         * math/w_j1l.c (__y1l): Likewise
2834         * math/w_jn.c (yn): Likewise.
2835         * math/w_jnf.c (ynf): Likewise.
2836         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
2837         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
2838         value for Bessel function domain errors outside _SVID_ mode.
2839         Adjust sign of return value for yn (negative integer, 0).
2840         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
2841         by zero in return for negative x and set sign appropriately for
2842         negative n.
2843         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
2844         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
2845         * math/libm-test.inc (y0_test_data): Add more tests and adjust
2846         expectations in error cases.
2847         (y1_test_data): Likewise.
2848         (yn_test_data): Likewise.
2849         * sysdeps/i386/fpu/libm-test-ulps: Update.
2850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2851
2852 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2853
2854         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
2855         "64" to "64-v1".  Add "64-v2".
2856         (abi-64-options): Rename to ...
2857         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
2858         (abi-64-condition): Rename to ...
2859         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
2860         (abi-64-ld-soname): Rename to ...
2861         (abi-64-v1-ld-soname): ... this.
2862         (abi-64-v2-options): Define.
2863         (abi-64-v2-condition): Likewise.
2864         (abi-64-v2-ld-soname): Likewise.
2865         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
2866         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
2867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
2868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
2869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
2870
2871 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2872             Alan Modra  <amodra@gmail.com>
2873
2874         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
2875         New versions for use with the ELFv2 ABI.
2876         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
2877         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
2878         declaration.
2879         (struct La_ppc64v2_retval): Likewise.
2880         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
2881         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
2882         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
2883         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
2884         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
2885         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
2886         Do not save or restore CR.
2887         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
2888         (_dl_profile_resolve): Do no save or restore CR.  Support extended
2889         return values for ELFv2 ABI.  Fix location of FPR return registers.
2890         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
2891         updated values for _CALL_ELF == 2.
2892         (La_regs, La_retval, int_retval): Likewise.
2893
2894 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2895
2896         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
2897         (FRAME_MIN_SIZE_PARM): Likewise.
2898         (FRAME_BACKCHAIN): Likewise.
2899         (FRAME_CR_SAVE): Likewise.
2900         (FRAME_LR_SAVE): Likewise.
2901         (FRAME_TOC_SAVE): Likewise.
2902         (FRAME_PARM_SAVE): Likewise.
2903         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2904         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2905         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2906         (call_mcount_parm_offset): New macro.
2907         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
2908         (PROF): Use symbolic stack frame offsets.
2909         (TAIL_CALL_SYSCALL_ERROR): Likewise.
2910         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
2911         Redefine in terms of FRAME_MIN_SIZE.
2912         (_dl_runtime_resolve): Use symbolic stack frame offsets.
2913         (_dl_profile_resolve): Likewise.  Update comment.
2914         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
2915         symbols stack frame offsets.
2916         (__sigsetjmp): Likewise.
2917         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
2918         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
2919         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
2920         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
2921
2922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
2923         (FRAME_BACKCHAIN): Remove.
2924         (FRAME_CR_SAVE): Likewise.
2925         (FRAME_LR_SAVE): Likewise.
2926         (FRAME_COMPILER_DW): Likewise.
2927         (FRAME_LINKER_DW): Likewise.
2928         (FRAME_TOC_SAVE): Likewise.
2929         (FRAME_PARM_SAVE): Likewise.
2930         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
2931         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
2932         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
2933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
2934         (CHECK_SP): Use symbolic stack frame offsets.
2935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
2936         zone" instead of caller's parameter save area for temp storage.
2937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2938         Likewise.  Also, use symbolic stack frame offsets.
2939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
2940         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
2941         our own stack frame instead of the caller's.
2942         (__socket): Use symbolic stack frame offsets.
2943
2944 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2945             Alan Modra  <amodra@gmail.com>
2946
2947         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
2948         Define.
2949         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
2950         PPC64_LOCAL_ENTRY_OFFSET): Define.
2951         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
2952         New function.
2953         (elf_machine_fixup_plt): Call it.
2954         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
2955         reloc arguments.
2956         (elf_machine_rela): Update call to elf_machine_plt_conflict.
2957         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
2958         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
2959         r2 before calling target.
2960
2961 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2962             Alan Modra  <amodra@gmail.com>
2963
2964         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
2965         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
2966         versions of macros to support ELFv2 ABI.
2967         (LOCALENTRY): New macro.
2968         (ENTRY, EALIGN): Use it.
2969         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
2970         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
2971         fall through into ENTRY entry point.
2972         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
2973         Only define if _CALL_ELF != 2.
2974
2975         (elf_machine_matches_host): Verify ABI version matches.
2976         (RTLD_START): Use LOCALENTRY.
2977         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
2978         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
2979         (PLT_ENTRY_WORDS): New macro.
2980         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
2981         (elf_machine_runtime_setup): Support ELFv2 ABI.
2982         (elf_machine_fixup_plt): Likewise.
2983         (elf_machine_plt_conflict): Likewise.
2984         (resolve_ifunc): Likewise.
2985         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
2986         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2987         Likewise.
2988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2989         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
2990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2991         (makecontext): Support ELFv2 ABI.
2992         * elf/elf.h (EF_PPC64_ABI): Define.
2993
2994 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2995
2996         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
2997         New assembler macro.
2998         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
2999         [ASSEMBLER] (ENTRY): ... but instead here ...
3000         [ASSEMBLER] (EALIGN): ... and here.
3001         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
3002         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
3003         [!ASSEMBLER] (ENTRY_2): Use it.
3004         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
3005         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
3006         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
3007         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
3008         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
3009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
3010         Use PPC64_LOAD_FUNCPTR.
3011
3012 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3013
3014         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
3015
3016 2013-12-04  Alan Modra  <amodra@gmail.com>
3017
3018         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
3019         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
3020         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
3021         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
3022
3023         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
3024         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
3025         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
3026         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
3027         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
3028         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
3029
3030 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3031
3032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3033         (__makecontext): Fix incorrect CFI when backtracing out of
3034         context created via makecontext.
3035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
3036         (__setcontext): Fix incorrect CFI during switch to new context.
3037         (__novec_setcontext): Likewise.
3038
3039 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
3040
3041         [BZ #4772]
3042         * time/strptime_l.c (__strptime_internal): Allow modifiers
3043         in strptime.
3044         * time/tst-strptime.c (day_tests): Add testcase.
3045
3046
3047 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3048
3049         * scripts/bench.pl: Skip over blank lines.
3050
3051 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
3052
3053         [BZ #926]
3054         * manual/time.texi (Calendar Time): Clarify what timezone functions
3055         use.
3056
3057 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3058
3059         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3060
3061 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
3062
3063         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
3064         implementation.
3065         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
3066         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
3067         * debug/memset_chk.c (__memset_chk): Likewise.
3068         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
3069         * debug/strncpy_chk.c: Likewise.
3070
3071 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
3072
3073         [BZ #15268]
3074         [BZ #15425]
3075         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
3076         (__ieee754_exp): For possibly underflowing results, check size of
3077         result and force underflow exception if required.
3078         * math/auto-libm-test-in: Add more tests of exp.
3079         * math/auto-libm-test-out: Regenerated.
3080         * sysdeps/i386/fpu/libm-test-ulps: Update.
3081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3082
3083         [BZ #16283]
3084         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
3085         * math/w_exp2f.c (__exp2f): Likewise.
3086         * math/w_exp2l.c (__exp2l): Likewise.
3087         * math/auto-libm-test-in: Do not allow missing errno on exp2
3088         underflow.
3089         * math/auto-libm-test-out: Regenerated.
3090
3091 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
3092
3093         [BZ #16274]
3094         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
3095         handle filename validation.
3096         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
3097         (do_open): Delete.
3098
3099 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
3100
3101         [BZ #6786]
3102         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
3103         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
3104         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
3105         <float.h>.
3106         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
3107         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
3108         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3109         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
3110         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3111         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
3112         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
3113         * math/auto-libm-test-in: Don't allow missing errno from erfc.
3114         Add more erfc tests.
3115         * math/auto-libm-test-out: Regenerated.
3116         * sysdeps/i386/fpu/libm-test-ulps: Update.
3117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3118
3119         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
3120         exp2, expm1, j0 and j1.
3121         * math/auto-libm-test-out: Regenerated.
3122         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
3123         (erfc_test_data): Likewise.
3124         (exp_test_data): Likewise.
3125         (exp_tonearest_test_data): Likewise.
3126         (exp_towardzero_test_data): Likewise.
3127         (exp_downward_test_data): Likewise.
3128         (exp_upward_test_data): Likewise.
3129         (exp10_test_data): Likewise.
3130         (exp2_test_data): Likewise.
3131         (expm1_test_data): Likewise.
3132         (j0_test_data): Likewise.
3133         (j1_test_data): Likewise.
3134         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
3135         (input_flag_type): Add flag_xfail_rounding.
3136         (input_flags): Add xfail-rounding.
3137         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
3138         (output_for_one_input_case): Handle flag_xfail_rounding.
3139         * sysdeps/i386/fpu/libm-test-ulps: Update.
3140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3141
3142 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
3143
3144         [BZ #16289]
3145         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
3146         division by 0.
3147
3148 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3149
3150         [BZ #16195]
3151         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3152         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
3153         (STAP_PROBE0): New macro.
3154         (STAP_PROBE1): Likewise.
3155         (STAP_PROBE2): Likewise.
3156         (STAP_PROBE3): Likewise.
3157         (STAP_PROBE4): Likewise.
3158
3159 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
3160
3161         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
3162
3163 2013-12-02  Steve Ellcey  <sellcey@mips.com>
3164
3165         * benchtests/Makefile (bench): Add sqrt.
3166         (LDLIBS-bench-sqrt): New.
3167         * benchtests/sqrt-input: New.
3168
3169 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
3170
3171         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
3172         (GAIH_EAI): Likewise.
3173         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
3174         (gaih_inet): Likewise.
3175         (getaddrinfo): Don't use GAIH_EAI.
3176
3177         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
3178         (struct gaih): Remove definition.
3179
3180 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
3181
3182         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
3183         Use HERRNOP directly.
3184
3185 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3186
3187         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3188
3189 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
3190
3191         * math/gen-auto-libm-tests.c (test_functions): Add more
3192         single-argument functions.
3193         (special_fill_pi_2): New function.
3194         (special_fill_minus_pi_2): Likewise.
3195         (special_fill_pi_6): Likewise.
3196         (special_fill_minus_pi_6): Likewise.
3197         (special_fill_pi_3): Likewise.
3198         (special_fill_2pi_3): Likewise.
3199         (special_fill_e): Likewise.
3200         (special_fill_1_e): Likewise.
3201         (special_fill_e_minus_1): Likewise.
3202         (special_real_inputs): Add more special inputs.
3203         (output_for_one_input_case): Do not require ERANGE on underflow to
3204         zero if round-to-nearest result does not underflow to zero, unless
3205         exact results required.
3206         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
3207         atan, atanh, cbrt, cos and cosh.
3208         * math/auto-libm-test-out: Regenerated.
3209         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
3210         (acos_tonearest_test_data): Likewise.
3211         (acos_towardzero_test_data): Likewise.
3212         (acos_downward_test_data): Likewise.
3213         (acos_upward_test_data): Likewise.
3214         (acosh_test_data): Likewise.
3215         (asin_test_data): Likewise.
3216         (asin_tonearest_test_data): Likewise.
3217         (asin_towardzero_test_data): Likewise.
3218         (asin_upward_test_data): Likewise.
3219         (asinh_test_data): Likewise.
3220         (atan_test_data): Likewise.
3221         (atanh_test_data): Likewise.
3222         (cbrt_test_data): Likewise.
3223         (cos_test_data): Likewise.
3224         (cos_tonearest_test_data): Likewise.
3225         (cos_towardzero_test_data): Likewise.
3226         (cos_downward_test_data): Likewise.
3227         (cos_upward_test_data): Likewise.
3228         (cosh_test_data): Likewise.
3229         (cosh_tonearest_test_data): Likewise.
3230         (cosh_towardzero_test_data): Likewise.
3231         (cosh_downward_test_data): Likewise.
3232         (cosh_upward_test_data): Likewise.
3233         * sysdeps/i386/fpu/libm-test-ulps: Update.
3234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3235
3236 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
3237
3238         [BZ #6787]
3239         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
3240         * math/w_exp10f.c (__exp10f): Likewise.
3241         * math/w_exp10l.c (__exp10l): Likewise.
3242         * math/libm-test.inc (exp10_test_data): Add more tests and expect
3243         errno settings in existing tests.
3244
3245         [BZ #14032]
3246         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
3247         precision control set to double precision.
3248         * sysdeps/i386/fpu/w_sqrt.c: New file.
3249         * math/auto-libm-test-in: Add more tests.
3250         * math/auto-libm-test-out: Update.
3251
3252         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
3253         (sqrt_test_tonearest): New function.
3254         (sqrt_towardzero_test_data): New variable.
3255         (sqrt_test_towardzero): New function.
3256         (sqrt_downward_test_data): New variable.
3257         (sqrt_test_downward): New function.
3258         (sqrt_upward_test_data): New variable.
3259         (sqrt_test_upward): New function.
3260         (main): Call the new functions.
3261
3262         * math/gen-auto-libm-tests.c: New file.
3263         * math/auto-libm-test-in: Likewise.
3264         * math/auto-libm-test-out: New generated file.
3265         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
3266         variables.
3267         (%beautify): Add generated representations of zero.
3268         (top level): Set $auto_input and call parse_auto_input.
3269         (beautify): Remove trailing "f" from hex float constants.
3270         (parse_args): Handle XFAIL_TEST.
3271         (convert_condition): New function.
3272         (or_value): Likewise.
3273         (or_cond_value): Likewise.
3274         (generate_testfile): Handle AUTO_TESTS_* lines.
3275         (parse_auto_input): New function.
3276         * math/libm-test.inc (XFAIL_TEST): New macro.
3277         (ERRNO_UNCHANGED): Update value.
3278         (ERRNO_EDOM): Likewise.
3279         (ERRNO_ERANGE): Likewise.
3280         (IGNORE_RESULT): Likewise.
3281         (TEST_COND_flt_32): New macro.
3282         (TEST_COND_dbl_64): Likewise.
3283         (TEST_COND_ldbl_96_intel): Likewise.
3284         (TEST_COND_ldbl_96_m68k): Likewise.
3285         (TEST_COND_ldbl_128): Likewise.
3286         (TEST_COND_ldbl_128ibm): Likewise.
3287         (TEST_COND_long32): Likewise.
3288         (TEST_COND_long64): Likewise.
3289         (TEST_COND_before_rounding): Likewise.
3290         (TEST_COND_after_rounding): Likewise.
3291         (enable_test): Handle XFAIL_TEST flag.
3292         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
3293         with finite results.
3294         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
3295         auto-libm-test-out.
3296
3297 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3298             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3299
3300         [BZ #16214]
3301         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
3302         __tls_get_addr_internal instead of __tls_get_offset in order to
3303         avoid GOT pointer dependency.  Make rtld export
3304         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
3305         __tls_get_addr since we are a __tls_get_offset platform.
3306         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
3307         GOT pointer being set up before.
3308         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
3309
3310 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
3311
3312         * manual/math.texi (Errors in Math Functions): Document accuracy
3313         goals.
3314
3315         [BZ #15004]
3316         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
3317         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
3318         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
3319         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
3320         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
3321         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
3322         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
3323         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
3324         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3325         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
3326         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
3327         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
3328         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
3329         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
3330         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
3331         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
3332
3333         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
3334         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
3335         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
3336         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
3337         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
3338         Likewise.
3339         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
3340         Likewise.
3341         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
3342         Likewise.
3343         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
3344         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3345         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
3346         atomic-feupdateenv and flt-rounds.
3347         * sysdeps/powerpc/nofpu/Versions (libc): Add
3348         __atomic_feholdexcept, __atomic_feclearexcept,
3349         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
3350         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
3351         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
3352         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
3353         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
3354         here.
3355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
3356         Update.
3357
3358         * manual/arith.texi (FP Exceptions): Document that exceptions may
3359         not be raised when matherr is used.
3360         (Math Error Reporting): Document overflow in directed rounding
3361         modes.  Document that errno may not be set when finite values are
3362         returned on overflow.  Document intent to set errno on underflow
3363         only for underflow to zero.
3364
3365         [BZ #16271]
3366         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
3367         round-to-nearest then adjust result for other rounding modes.
3368         * include/fenv.h (fegetround): Use libm_hidden_proto.
3369         * math/fegetround.c (fegetround): Use libm_hidden_def.
3370         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
3371         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
3372         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3373         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
3374         Likewise.
3375         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
3376         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3377         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
3378         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
3379
3380 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3381
3382         [BZ #16077]
3383         * nss/Versions (libnss_files): Add
3384         _nss_files_gethostbyname3_r.
3385         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
3386         New function.
3387         (HOST_DB_LOOKUP): Remove macro.
3388         (_nss_files_gethostbyname_r): Implement function without the
3389         HOST_DB_LOOKUP macro.
3390         (_nss_files_gethostbyname2_r): Likewise.
3391
3392 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
3393
3394         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
3395
3396 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
3397
3398         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
3399         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
3400         warning.
3401
3402 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3403
3404         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
3405         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
3406         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3407         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
3408         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
3409         __fe_nomask_env_priv and attribute_hidden.
3410         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
3411         (libc_feupdateenv_test_ppc): Likewise.
3412         (libc_feresetround_ppc): Likewise.
3413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3414         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
3415         compat_symbol macro.
3416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3417         (__fe_nomask_env): Likewise.
3418         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
3419
3420 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3421
3422         * string/Makefile: Remove ifunc tests.
3423         * string/test-string.h: Define TEST_IFUNC.
3424         * string/test-bcopy-ifunc.c: Remove.
3425         * string/test-bzero-ifunc.c: Likewise.
3426         * string/test-memccpy-ifunc.c: Likewise.
3427         * string/test-memchr-ifunc.c: Likewise.
3428         * string/test-memcmp-ifunc.c: Likewise.
3429         * string/test-memcpy-ifunc.c: Likewise.
3430         * string/test-memmem-ifunc.c: Likewise.
3431         * string/test-memmove-ifunc.c: Likewise.
3432         * string/test-mempcpy-ifunc.c: Likewise.
3433         * string/test-memrchr-ifunc.c: Likewise.
3434         * string/test-memset-ifunc.c: Likewise.
3435         * string/test-rawmemchr-ifunc.c: Likewise.
3436         * string/test-stpcpy-ifunc.c: Likewise.
3437         * string/test-stpncpy-ifunc.c: Likewise.
3438         * string/test-strcasecmp-ifunc.c: Likewise.
3439         * string/test-strcasestr-ifunc.c: Likewise.
3440         * string/test-strcat-ifunc.c: Likewise.
3441         * string/test-strchr-ifunc.c: Likewise.
3442         * string/test-strchrnul-ifunc.c: Likewise.
3443         * string/test-strcmp-ifunc.c: Likewise.
3444         * string/test-strcpy-ifunc.c: Likewise.
3445         * string/test-strcspn-ifunc.c: Likewise.
3446         * string/test-strlen-ifunc.c: Likewise.
3447         * string/test-strncasecmp-ifunc.c: Likewise.
3448         * string/test-strncat-ifunc.c: Likewise.
3449         * string/test-strncmp-ifunc.c: Likewise.
3450         * string/test-strncpy-ifunc.c: Likewise.
3451         * string/test-strnlen-ifunc.c: Likewise.
3452         * string/test-strpbrk-ifunc.c: Likewise.
3453         * string/test-strrchr-ifunc.c: Likewise.
3454         * string/test-strspn-ifunc.c: Likewise.
3455         * string/test-strstr-ifunc.c: Likewise.
3456
3457 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3458
3459         * benchtests/Makefile: Remove ifunc tests.
3460         * benchtests/bench-string.h: Define TEST_IFUNC.
3461         * benchtests/bench-bcopy-ifunc.c: Remove.
3462         * benchtests/bench-bzero-ifunc.c: Likewise.
3463         * benchtests/bench-memccpy-ifunc.c: Likewise.
3464         * benchtests/bench-memchr-ifunc.c: Likewise.
3465         * benchtests/bench-memcmp-ifunc.c: Likewise.
3466         * benchtests/bench-memcpy-ifunc.c: Likewise.
3467         * benchtests/bench-memmem-ifunc.c: Likewise.
3468         * benchtests/bench-memmove-ifunc.c: Likewise.
3469         * benchtests/bench-mempcpy-ifunc.c: Likewise.
3470         * benchtests/bench-memrchr-ifunc.c: Likewise.
3471         * benchtests/bench-memset-ifunc.c: Likewise.
3472         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
3473         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
3474         * benchtests/bench-stpcpy-ifunc.c: Likewise.
3475         * benchtests/bench-stpncpy-ifunc.c: Likewise.
3476         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
3477         * benchtests/bench-strcasestr-ifunc.c: Likewise.
3478         * benchtests/bench-strcat-ifunc.c: Likewise.
3479         * benchtests/bench-strchr-ifunc.c: Likewise.
3480         * benchtests/bench-strchrnul-ifunc.c: Likewise.
3481         * benchtests/bench-strcmp-ifunc.c: Likewise.
3482         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
3483         * benchtests/bench-strcpy-ifunc.c: Likewise.
3484         * benchtests/bench-strcspn-ifunc.c: Likewise.
3485         * benchtests/bench-strlen-ifunc.c: Likewise.
3486         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
3487         * benchtests/bench-strncat-ifunc.c: Likewise.
3488         * benchtests/bench-strncmp-ifunc.c: Likewise.
3489         * benchtests/bench-strncpy-ifunc.c: Likewise.
3490         * benchtests/bench-strnlen-ifunc.c: Likewise.
3491         * benchtests/bench-strpbrk-ifunc.c: Likewise.
3492         * benchtests/bench-strrchr-ifunc.c: Likewise.
3493         * benchtests/bench-strsep-ifunc.c: Likewise.
3494         * benchtests/bench-strspn-ifunc.c: Likewise.
3495         * benchtests/bench-strstr-ifunc.c: Likewise.
3496
3497 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3498
3499         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
3500
3501 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
3502
3503         * resolv/netdb.h: Use __glibc_reserved instead __unused.
3504         * rt/aio.h: Likewise.
3505         * sysdeps/gnu/bits/utmp.h: Likewise.
3506         * sysdeps/gnu/bits/utmpx.h: Likewise.
3507         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3508         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
3509         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
3510         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
3511         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3512         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3513         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
3514         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
3515         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
3516         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3517         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3518         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3519         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
3521         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3522         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
3523         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3524         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3525         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3526         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3527         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
3528         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
3529         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
3530         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
3531         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3532         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3533         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
3534         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3535         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3536         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3537         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3538         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
3539         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
3540         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
3541         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3542         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
3543         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3544         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3545         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
3546         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
3547         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3548         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3549
3550 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
3551
3552         [BZ #16245]
3553         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
3554         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
3555
3556 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
3557
3558         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
3559         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
3560         Likewise.
3561
3562 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3563
3564         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3565         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
3566         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
3567         (__fesetround): Remove define.
3568         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
3569         rounding and exceptions handling.
3570         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
3571         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
3572         (__fe_nomask_env): Likewise.
3573         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
3574         __fegetround instead of fegetround.
3575         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
3576         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
3577
3578 2013-11-21  Roland McGrath  <roland@hack.frob.com>
3579
3580         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
3581         it's there.
3582
3583         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
3584
3585 2013-11-21  Meador Inge  <meadori@codesourcery.com>
3586
3587         [BZ #11157]
3588         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
3589         (encrypt_r): Likewise.
3590         * malloc/obstack.h (obstack_free): Likewise.
3591         * posix/unistd.h (encrypt): Likewise.
3592
3593 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
3594
3595         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
3596         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
3597         DL_CALL_DT_FINI() that call the functions directly.
3598         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
3599         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
3600         * elf/dl-fini.c: Likewise.
3601
3602 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
3603
3604         * malloc/hooks.c (memalign_check): Add alignment rounding.
3605         * malloc/malloc.c (_mid_memalign): New function.
3606         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
3607         Implement by calling _mid_memalign.
3608         * manual/probes.texi (Memory Allocation Probes): Remove
3609         memory_valloc_retry and memory_pvalloc_retry.
3610
3611 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3612
3613         * locale/programs/locarchive.c (open_archive): Add const
3614         qualifier to ARCHIVEFNAME and copy default fname to
3615         DEFAULT_FNAME.
3616
3617         [BZ #15601]
3618         * libio/tst-widetext.input: Rename Oriya to Odia.
3619         * locale/iso-639.def: Likewise.
3620
3621         * manual/probes.texi (Mathematical Function Probes): Add
3622         documentation for sin, cos, asin and acos probes.
3623         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
3624         (__sin32): Add slowasin probe.
3625         (__cos32): Add slowacos probe.
3626         (__mpsin): Add slowsin probe.
3627         (__mpcos): Add slowcos probe.
3628
3629 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
3630
3631         [BZ #15483]
3632         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
3633         thread-local __sim_exceptions_thread and global
3634         __sim_exceptions_global.
3635         (__sim_disabled_exceptions): Change to thread-local
3636         __sim_disabled_exceptions_thread and global
3637         __sim_disabled_exceptions_global.
3638         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3639         and global __sim_round_mode_global.
3640         (__simulate_exceptions): Use thread-local floating-point state and
3641         set global state from it as needed.
3642         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
3643         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
3644         __sim_round_mode_thread.
3645         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
3646         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
3647         and global __sim_exceptions_global.
3648         (__sim_disabled_exceptions): Change to thread-local
3649         __sim_disabled_exceptions_thread and global
3650         __sim_disabled_exceptions_global.
3651         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
3652         and global __sim_round_mode_global.
3653         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
3654         (SIM_SET_GLOBAL): Likewise.
3655         * sysdeps/powerpc/soft-fp/sfp-machine.h
3656         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
3657         __sim_round_mode_thread.
3658         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
3659         __sim_disabled_exceptions_thread.
3660         (__sim_exceptions): Change to __sim_exceptions_thread.
3661         (__sim_disabled_exceptions): Change to
3662         __sim_disabled_exceptions_thread.
3663         (__sim_round_mode): Change to __sim_round_mode_thread.
3664         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
3665         thread-local floating-point state and set global state from it as
3666         needed.
3667         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
3668         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
3669         (__sim_disabled_exceptions): Remove extern declaration.
3670         (feenableexcept): Use thread-local floating-point state and set
3671         global state from it as needed.
3672         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
3673         extern declaration.
3674         (__sim_disabled_exceptions): Likewise.
3675         (__sim_round_mode): Likewise.
3676         (__fegetenv): Use thread-local floating-point state.
3677         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
3678         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
3679         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
3680         floating-point state and set global state from it as needed.
3681         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
3682         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
3683         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
3684         Likewise.
3685         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
3686         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
3687         Likewise.
3688         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
3689         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
3690         Use __sim_round_mode_thread.
3691         * math/test-fenv-tls.c: New file.
3692         * math/Makefile (tests): Add test-fenv-tls.
3693         ($(objpfx)test-fenv-tls): Depend on
3694         $(common-objpfx)nptl/libpthread.so.
3695
3696 2013-11-19  Andreas Schwab  <schwab@suse.de>
3697
3698         * locale/programs/locale.c (show_info): Decode wordarray elements.
3699         * locale/categories.def (LC_MONETARY): Add element for
3700         _NL_MONETARY_CRNCYSTR.
3701         * locale/C-monetary.c (conversion_rate): New variable.
3702         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
3703         element.
3704
3705 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
3706
3707         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
3708         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
3709
3710 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3711
3712         * elf/Makefile (tst-auxv): New test.
3713         * elf/tst-auxv.c: New
3714         * elf/rtld.c (dl_main): Adjust AT_EXECFN
3715
3716 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
3717
3718         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
3719         (hidden_proto): Caller changed.
3720         (hidden_tls_proto): New macro.
3721         (libc_hidden_tls_proto): Likewise.
3722         (rtld_hidden_tls_proto): Likewise.
3723         (libm_hidden_tls_proto): Likewise.
3724         (libresolv_hidden_tls_proto): Likewise.
3725         (librt_hidden_tls_proto): Likewise.
3726         (libdl_hidden_tls_proto): Likewise.
3727         (libnss_files_hidden_tls_proto): Likewise.
3728         (libnsl_hidden_tls_proto): Likewise.
3729         (libnss_nisplus_hidden_tls_proto): Likewise.
3730         (libutil_hidden_tls_proto): Likewise.
3731
3732 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
3733
3734         [BZ #10253]
3735         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
3736         (decompose_rpath): Defer expansion to fillin_rpath.
3737         (_dl_init_paths): Pass linkmap to fillin_rpath.
3738
3739 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3740
3741         * benchtests/Makefile: Add strsep.
3742         * benchtests/bench-strsep.c: New file: strsep benchtest.
3743         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
3744
3745 2013-11-18  Andreas Schwab  <schwab@suse.de>
3746
3747         * locale/programs/locale.c (show_info) [case byte]: Check for
3748         '\377' instead of '\177'.
3749         * locale/C-monetary.c (not_available): Always use "\377".
3750         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
3751         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
3752         detect unavailable sign_posn locale elements.
3753         * locale/localeconv.c (__localeconv): For grouping and
3754         mon_grouping handle "\177" and "\377" like no grouping.
3755         (INT_ELEM): New macro.  Use it to set all numeric members.
3756         * locale/programs/ld-monetary.c (monetary_read)
3757         <tok_mon_grouping>: Normalize single -1 to the empty string.
3758         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
3759         Likewise.
3760
3761 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3762
3763         [BZ #16055]
3764         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
3765         when we match (nil).
3766         * stdio-common/tst-sscanf.c (struct test): Add testcase.
3767
3768 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
3769
3770         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
3771         (NO_TEST_INLINE): Update value.
3772         (ERRNO_UNCHANGED): Likewise.
3773         (ERRNO_EDOM): Likewise.
3774         (ERRNO_ERANGE): Likewise.
3775         (IGNORE_RESULT): Likewise.
3776         (check_float_internal): Check signs of NaN results if
3777         TEST_NAN_SIGN used.
3778         (check_complex): Pass TEST_NAN_SIGN flag through to second
3779         check_float_internal call.
3780         (copysign_test_data): Add tests with quiet NaNs as second
3781         argument.  Use TEST_NAN_SIGN.
3782         (fabs_test_data): Add test of negative quiet NaN argument.  Use
3783         TEST_NAN_SIGN.
3784         (signbit_test_data): Add tests of quiet NaN argument.
3785         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
3786
3787         * math/gen-libm-test.pl (show_exceptions): Take extra argument
3788         $ignore_result.
3789         (parse_args): Handle function results specified as IGNORE.
3790         * math/libm-test.inc (IGNORE_RESULT): New macro.
3791         (check_float_internal): Do not check numerical result if flag
3792         IGNORE_RESULT set.
3793         (check_complex): Pass through IGNORE_RESULT to second
3794         check_float_internal call.
3795         (check_int): Do not check numerical result if flag IGNORE_RESULT
3796         set.
3797         (check_long): Likewise.
3798         (check_bool): Likewise.
3799         (check_longlong): Likewise.
3800         (lrint_test_data): Add tests of infinite and NaN arguments.
3801         (lrint_tonearest_test_data): Likewise.
3802         (lrint_towardzero_test_data): Likewise.
3803         (lrint_downward_test_data): Likewise.
3804         (lrint_upward_test_data): Likewise.
3805         (llrint_test_data): Likewise.
3806         (llrint_tonearest_test_data): Likewise.
3807         (llrint_towardzero_test_data): Likewise.
3808         (llrint_downward_test_data): Likewise.
3809         (llrint_upward_test_data): Likewise.
3810         (lround_test_data): Likewise.
3811         (llround_test_data): Likewise.
3812
3813         * math/libm-test.inc (NO_TEST_INLINE): New macro.
3814         (ERRNO_UNCHANGED): Update value.
3815         (ERRNO_EDOM): Likewise.
3816         (ERRNO_ERANGE): Likewise.
3817         (NO_TEST_INLINE_FLOAT): New macro.
3818         (NO_TEST_INLINE_DOUBLE): Likewise.
3819         (enable_test): New function.
3820         (RUN_TEST_f_f): Check enable_test before running test.
3821         (RUN_TEST_2_f): Likewise.
3822         (RUN_TEST_fff_f): Likewise.
3823         (RUN_TEST_c_f): Likewise.
3824         (RUN_TEST_f_f1): Likewise.
3825         (RUN_TEST_fF_f1): Likewise.
3826         (RUN_TEST_fI_f1): Likewise.
3827         (RUN_TEST_ffI_f1): Likewise.
3828         (RUN_TEST_c_c): Likewise.
3829         (RUN_TEST_cc_c): Likewise.
3830         (RUN_TEST_f_i): Likewise.
3831         (RUN_TEST_f_i_tg): Likewise.
3832         (RUN_TEST_ff_i_tg): Likewise.
3833         (RUN_TEST_f_b): Likewise.
3834         (RUN_TEST_f_b_tg): Likewise.
3835         (RUN_TEST_f_l): Likewise.
3836         (RUN_TEST_f_L): Likewise.
3837         (RUN_TEST_fFF_11): Likewise.
3838         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
3839         conditionals.
3840         (cosh_test_data): Likewise.
3841         (exp_test_data): Likewise.
3842         (expm1_test_data): Likewise.
3843         (hypot_test_data): Likewise.
3844         (pow_test_data): Likewise.
3845         (sinh_test_data): Likewise.
3846         (tanh_test_data): Likewise.
3847         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
3848         flags argument.
3849
3850         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
3851         tests with quiet NaN input and output.
3852         (acosh_test_data): Likewise.
3853         (asin_test_data): Likewise.
3854         (asinh_test_data): Likewise.
3855         (atan_test_data): Likewise.
3856         (atanh_test_data): Likewise.
3857         (atan2_test_data): Likewise.
3858         (cbrt_test_data): Likewise.
3859         (cos_test_data): Likewise.
3860         (cosh_test_data): Likewise.
3861         (erf_test_data): Likewise.
3862         (erfc_test_data): Likewise.
3863         (exp_test_data): Likewise.
3864         (exp10_test_data): Likewise.
3865         (exp2_test_data): Likewise.
3866         (expm1_test_data): Likewise.
3867         (hypot_test_data): Likewise.
3868         (j0_test_data): Likewise.
3869         (j1_test_data): Likewise.
3870         (jn_test_data): Likewise.
3871         (lgamma_test_data): Likewise.
3872         (log_test_data): Likewise.
3873         (log10_test_data): Likewise.
3874         (log1p_test_data): Likewise.
3875         (log2_test_data): Likewise.
3876         (pow_test_data): Likewise.
3877         (scalb_test_data): Likewise.
3878         (sin_test_data): Likewise.
3879         (sincos_test_data): Likewise.
3880         (sinh_test_data): Likewise.
3881         (tan_test_data): Likewise.
3882         (tanh_test_data): Likewise.
3883         (tgamma_test_data): Likewise.
3884         (y0_test_data): Likewise.
3885         (y1_test_data): Likewise.
3886         (yn_test_data): Likewise.
3887
3888         [BZ #16167]
3889         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
3890         argument being NaN and avoid computations with second argument in
3891         that case.
3892         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
3893         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3894         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3895
3896 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
3897
3898         * locale/iso-639.def: Add Chitwani Tharu (the).
3899
3900 2013-11-14  Andreas Schwab  <schwab@suse.de>
3901
3902         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
3903         word instead of empty string.
3904
3905 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3906
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3908         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
3909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3910         (__fe_nomask_env): Likewise.
3911
3912 2013-11-13  Steve Ellcey  <sellcey@mips.com>
3913
3914         * benchtests/bench-timing.h: Include time.h.
3915
3916 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
3917
3918         [BZ #15997]
3919         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
3920         to 3.4.0 for x32.
3921         * sysdeps/unix/sysv/linux/configure: Regenerated.
3922
3923 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
3924
3925         [BZ #16151]
3926         * stdlib/strtod_l.c (round_and_return): Do not consider
3927         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
3928         exponent one less than half the least subnormal exponent.
3929         * stdlib/test-strtod-round-data: Add more tests.
3930         * stdlib/tst-strtod-round.c (tests): Regenerated.
3931
3932 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3933
3934         [BZ #14143]
3935         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
3936         (__fe_mask_env): Likewise.
3937         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
3938         libm_hidden_proto and add function prototype.
3939         (__fe_mask_env): Add function prototype.
3940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3941         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
3942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3943         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
3944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3945         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
3946
3947 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3948
3949         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
3950         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
3951
3952 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3953
3954         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
3955         of htab_find_slot().
3956
3957 2013-11-11  David S. Miller  <davem@davemloft.net>
3958
3959         [BZ #16150]
3960         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
3961         symbol in the non-vis3 case in static builds.
3962         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
3963         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
3964         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
3965         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
3966
3967 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3968
3969         [BZ #387]
3970         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
3971         it is empty.
3972
3973 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3974
3975         * benchtests/Makefile: Add bench-strtod.
3976         * benchtests/bench-strtod.c: New file: strtod benchtest
3977
3978 2013-11-11  Andreas Schwab  <schwab@suse.de>
3979
3980         [BZ #16153]
3981         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
3982         terminating NUL in key length.
3983
3984 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3985
3986         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
3987         Add artificial ODP entry for vDSO symbol for PPC64.
3988         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
3989         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
3990
3991 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
3992
3993         [BZ #15374]
3994         * nss/getent.c (services_keys): Recognize services starting with digit.
3995
3996 2013-11-06  David S. Miller  <davem@davemloft.net>
3997
3998         [BZ #15985]
3999         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
4000         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
4001
4002 2013-11-06  Will Newton  <will.newton@linaro.org>
4003
4004         * manual/memory.texi (Malloc Examples): Remove register
4005         keyword from examples.
4006
4007 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
4008
4009         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
4010
4011 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
4012
4013         [BZ #6981]
4014         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
4015         depending on [__GCC_IEC_559 > 0].
4016         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
4017         depending on [__GCC_IEC_559_COMPLEX > 0].
4018
4019 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
4020
4021         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
4022         to iso-639.def.
4023
4024 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
4025
4026         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
4027
4028 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
4029
4030         [BZ #16112]
4031         * malloc/malloc (malloc_info): Do not handle first bin as
4032         special case.
4033
4034 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
4035
4036         * locale/iso-639.def: Add Central Nahuatl (nhn).
4037
4038 2013-11-01  Bruno Haible  <bruno@clisp.org>
4039
4040         [BZ #7003]
4041         * manual/math.texi (BSD Random): Specify range upper bound as
4042         in POSIX.
4043
4044 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
4045
4046         * locale/iso-639.def: Add Meadow Mari (mhr).
4047
4048 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
4049
4050         [BZ #14752], [BZ #15763]
4051         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
4052         Validate name.
4053         * rt/tst_shm.c: Add test for escaping directory.
4054
4055 2013-10-31  Andreas Schwab  <schwab@suse.de>
4056
4057         [BZ #15917]
4058         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
4059         followed by 'x' as part of digit sequence.
4060         * stdio-common/tst-sscanf.c (double_tests2): New tests.
4061
4062 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
4063
4064         [BZ #16037]
4065         * configure.ac: allow GNU Make 4.0 and greater.
4066         * configure: Regenerated.
4067
4068 2013-10-30  Will Newton  <will.newton@linaro.org>
4069
4070         [BZ #16038]
4071         * malloc/hooks.c (memalign_check): Limit alignment to the
4072         maximum representable power of two.
4073         * malloc/malloc.c (__libc_memalign): Likewise.
4074         * malloc/tst-memalign.c (do_test): Add test for very
4075         large alignment values.
4076         * malloc/tst-posix_memalign.c (do_test): Likewise.
4077
4078 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
4079
4080         [BZ #11087]
4081         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
4082         (munmap_chunk): Likewise.
4083         (mremap_chunk): Likewise.
4084
4085 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
4086
4087         [BZ #15799]
4088         * stdlib/div.c (div): Remove obsolete code.
4089         * stdlib/ldiv.c (ldiv): Likewise.
4090         * stdlib/lldiv.c (lldiv): Likewise.
4091
4092 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4093
4094         [BZ #16071]
4095         * nss/nss_files/files-XXX.c (get_contents_ret): New
4096         enumerator.
4097         (get_contents): New function.
4098         (internal_getent): Use it.  Expand size of LINEBUFLEN.
4099
4100 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
4101
4102         * configure.in: Moved to ...
4103         * configure.ac: ... here. Change reference to configure.in
4104         to configure.ac.
4105         * sysdeps/arm/preconfigure.ac: ... here.
4106         configure.in to configure.ac.
4107         * sysdeps/gnu/configure.in: Moved to ...
4108         * sysdeps/gnu/configure.ac: ... here.
4109         * sysdeps/i386/configure.in: Moved to ...
4110         * sysdeps/i386/configure.ac: ... here.
4111         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
4112         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
4113         * sysdeps/mach/configure.in: Moved to ...
4114         * sysdeps/mach/configure.ac: ... here.
4115         * sysdeps/mach/hurd/configure.in: Moved to ...
4116         * sysdeps/mach/hurd/configure.ac: ... here.
4117         * sysdeps/powerpc/configure.in: Moved to ...
4118         * sysdeps/powerpc/configure.ac: ... here.
4119         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
4120         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
4121         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
4122         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
4123         * sysdeps/s390/s390-32/configure.in: Moved to ...
4124         * sysdeps/s390/s390-32/configure.ac: ... here.
4125         * sysdeps/s390/s390-64/configure.in: Moved to ...
4126         * sysdeps/s390/s390-64/configure.ac: ... here.
4127         * sysdeps/sh/configure.in: Moved to ...
4128         * sysdeps/sh/configure.ac: ... here.
4129         * sysdeps/sparc/configure.in: Moved to ...
4130         * sysdeps/sparc/configure.ac: ... here.
4131         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
4132         * sysdeps/unix/sysv/linux/configure.ac: ... here.
4133         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
4134         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
4135         * sysdeps/x86_64/configure.in: Moved to ...
4136         * sysdeps/x86_64/configure.ac: ... here.
4137         * sysdeps/x86_64/preconfigure.in: Moved to ...
4138         * sysdeps/x86_64/preconfigure.ac: ... here.
4139         * aclocal.m4: Change reference to configure.in to configure.ac.
4140         * config.h.in: Likewise.
4141         * manual/install.texi: Likewise.
4142         * manual/maint.texi: Likewise.
4143         * Makefile: Likewise.
4144         * malloc/Makefile: Likewise.
4145         * nscd/Makefile: Likewise.
4146         * Makeconfig: Change reference to configure.in and
4147         preconfigure.in to configure.ac and preconfigure.ac
4148         respectively.
4149         * INSTALL: Regenerated.
4150         * configure: Likewise.
4151         * sysdeps/gnu/configure: Likewise.
4152         * sysdeps/i386/configure: Likewise.
4153         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
4154         * sysdeps/mach/configure: Likewise.
4155         * sysdeps/mach/hurd/configure: Likewise.
4156         * sysdeps/powerpc/configure: Likewise.
4157         * sysdeps/powerpc/powerpc32/configure: Likewise.
4158         * sysdeps/powerpc/powerpc64/configure: Likewise.
4159         * sysdeps/s390/s390-32/configure: Likewise.
4160         * sysdeps/s390/s390-64/configure: Likewise.
4161         * sysdeps/sh/configure: Likewise.
4162         * sysdeps/sparc/configure: Likewise.
4163         * sysdeps/unix/sysv/linux/configure: Likewise.
4164         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
4165         * sysdeps/x86_64/configure: Likewise.
4166         * sysdeps/x86_64/preconfigure: Likewise.
4167
4168 2013-10-29  Andreas Schwab  <schwab@suse.de>
4169
4170         * stdio-common/Makefile (tst-swscanf-ENV): Define.
4171
4172 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4173
4174         * benchtests/pow-inputs: Add new inputs.
4175
4176         * benchtests/exp-inputs: Add new inputs.
4177
4178         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
4179         conditional check for return value.
4180         (__cos32): Likewise.
4181
4182 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4183
4184         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
4185         to provide a boost for large inputs with word alignment.
4186         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
4187         implementation based on optimized PPC64 strcpy.
4188         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
4189         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
4190         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
4191         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
4192
4193 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4194
4195         [BZ #2801]
4196         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
4197
4198 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4199
4200         [BZ #14876]
4201         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
4202         * time/tst-strptime.c (day_tests): Add testcase.
4203
4204 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
4205
4206         [BZ #14029]
4207         * manual/pattern.texi: Acknowledge that fnmatch can fail.
4208
4209 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
4210
4211         [BZ #16074]
4212         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
4213         MAP_FAILED on error.
4214
4215 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4216
4217         [BZ #16072]
4218         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
4219         heap for large requests.
4220
4221 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
4222
4223         [BZ #9954]
4224         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
4225         result if the result has no associated interface.
4226         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
4227         interface for all 127.X.Y.Z addresses.
4228
4229 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
4230
4231         * locale/iso-639.def: Add Ligurian (lij)
4232
4233 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
4234
4235         [BZ #15825]
4236         * sunrpc/rpc_main.c: Document rpcgen -5.
4237
4238 2013-10-19  Michael Stahl  <mstahl@redhat.com>
4239
4240         * elf/rtld.c (do_preload): Print the reason why preloading failed.
4241
4242 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4243
4244         [BZ #10278]
4245         * posix/glob.c: Match only directories when trailing slash is present.
4246         * posix/tst-gnuglob.c (my_opendir): Do not open files.
4247         (main): Add testcase.
4248
4249 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
4250
4251         [BZ #15670]
4252         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
4253
4254 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
4255
4256         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
4257         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
4258         AUTH_DES and cindex for FIPS 140-2.
4259         (DES Encryption): Add cindex FIPS 46-3.
4260
4261         * locale/locarchive.h (struct locarhandle): Add fname.
4262         * locale/programs/localedef.c (main): Pass ARGV[remaining]
4263         if an optional argument was specified to --list-archive,
4264         otherwise NULL.
4265         * locale/programs/locarchive.c (show_archive_content): Take new
4266         argument fname and pass it via ah.fname to open_archive.
4267         * locale/programs/localedef.h: Update decl.
4268         (open_archive): If AH->fname is non-null, open that file
4269         rather than the default file name, and don't ignore ENOENT.
4270         (create_archive): Set AH.fname to NULL.
4271         (delete_locales_from_archive): Likewise.
4272         (add_locales_to_archive): Likewise.
4273         * locale/programs/locfile.c (write_all_categories): Likewise.
4274
4275 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
4276             Aldy Hernandez  <aldyh@redhat.com>
4277
4278         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
4279         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
4280         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
4281         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
4282         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
4283         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
4284         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
4285         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
4286         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
4287         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
4288         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
4289         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
4290         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
4291         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
4292         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
4293         Likewise.
4294         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
4295         Likewise.
4296         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
4297         Likewise.
4298         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
4299         Likewise.
4300         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
4301         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
4302         Likewise.
4303         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
4304         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
4305         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
4306         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
4307         Likewise.
4308         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
4309         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
4310         * sysdeps/powerpc/preconfigure: Likewise.
4311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4312         Likewise.
4313         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
4314         Replace contents of file by #include of <fenv_libc.h>.
4315         * sysdeps/powerpc/soft-fp/sfp-machine.h
4316         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
4317         and <sys/prctl.h>.
4318         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
4319         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
4320         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
4321         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
4322         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
4323         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
4324         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
4325         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
4326         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
4327         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
4328         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
4329         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
4330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
4331         Allow copysignl PLT reference to be missing.
4332
4333 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
4334             Joseph Myers  <joseph@codesourcery.com
4335
4336         [BZ #15948]
4337         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
4338         single character.
4339         (add_to_tablewc): Assert sequence of wide characters is nonempty.
4340
4341 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4342
4343         * elf/tst-tls-dlinfo.c: Don't include tls.h.
4344         * elf/tst-tls1.c: Likewise.
4345         * elf/tst-tls10.h: Likewise.
4346         * elf/tst-tls14.c: Likewise.
4347         * elf/tst-tls2.c: Likewise.
4348         * elf/tst-tls3.c: Likewise.
4349         * elf/tst-tls4.c: Likewise.
4350         * elf/tst-tls5.c: Likewise.
4351         * elf/tst-tls6.c: Likewise.
4352         * elf/tst-tls7.c: Likewise.
4353         * elf/tst-tls8.c: Likewise.
4354         * elf/tst-tls9.c: Likewise.
4355         * elf/tst-tlsmod1.c: Likewise.
4356         * elf/tst-tlsmod13.c: Likewise.
4357         * elf/tst-tlsmod13a.c: Likewise.
4358         * elf/tst-tlsmod14a.c: Likewise.
4359         * elf/tst-tlsmod16a.c: Likewise.
4360         * elf/tst-tlsmod16b.c: Likewise.
4361         * elf/tst-tlsmod2.c: Likewise.
4362         * elf/tst-tlsmod3.c: Likewise.
4363         * elf/tst-tlsmod4.c: Likewise.
4364         * elf/tst-tlsmod5.c: Likewise.
4365         * elf/tst-tlsmod6.c: Likewise.
4366
4367 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
4368
4369         [BZ #12486]
4370         * malloc/malloc.c: remove checks for statistics.
4371
4372 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4373
4374         [BZ #15277]
4375         * inet/inet_net.c (inet_network): Detect additional invalid strings.
4376         * inet/tst-network.c: Add testcase.
4377
4378 2013-10-17  Andreas Schwab  <schwab@suse.de>
4379
4380         [BZ #15218]
4381         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
4382         to determine canonical name.
4383
4384 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
4385
4386         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
4387         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
4388         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4389         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
4390         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4391         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4392         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4393         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
4394         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4395         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4396         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4397         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4398         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4399         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4400         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
4401         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
4402         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4403         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4404         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4405         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4406         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4407         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4408         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4409         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
4410         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
4411         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4412         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4413         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
4414         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4415         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
4416         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4417         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4418         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
4419         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4420         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4421         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4422         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4423         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4424         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4425         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4426         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4427         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4428         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
4429         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4430         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4431         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4432         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4433         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4434         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
4435         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4436         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
4437         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4438         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
4439         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
4440         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4441         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4442         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4443         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4444
4445 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
4446
4447         [BZ #16041]
4448         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
4449         make result into a quiet NaN.
4450
4451 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
4452
4453         * soft-fp/adddf3.c: Fix horizontal whitespace.
4454         * soft-fp/addsf3.c: Likewise.
4455         * soft-fp/addtf3.c: Likewise.
4456         * soft-fp/divdf3.c: Likewise.
4457         * soft-fp/divsf3.c: Likewise.
4458         * soft-fp/divtf3.c: Likewise.
4459         * soft-fp/double.h: Likewise.
4460         * soft-fp/eqdf2.c: Likewise.
4461         * soft-fp/eqsf2.c: Likewise.
4462         * soft-fp/eqtf2.c: Likewise.
4463         * soft-fp/extenddftf2.c: Likewise.
4464         * soft-fp/extended.h: Likewise.
4465         * soft-fp/extendsfdf2.c: Likewise.
4466         * soft-fp/extendsftf2.c: Likewise.
4467         * soft-fp/extendxftf2.c: Likewise.
4468         * soft-fp/fixdfdi.c: Likewise.
4469         * soft-fp/fixdfsi.c: Likewise.
4470         * soft-fp/fixdfti.c: Likewise.
4471         * soft-fp/fixsfdi.c: Likewise.
4472         * soft-fp/fixsfsi.c: Likewise.
4473         * soft-fp/fixsfti.c: Likewise.
4474         * soft-fp/fixtfdi.c: Likewise.
4475         * soft-fp/fixtfsi.c: Likewise.
4476         * soft-fp/fixtfti.c: Likewise.
4477         * soft-fp/fixunsdfdi.c: Likewise.
4478         * soft-fp/fixunsdfsi.c: Likewise.
4479         * soft-fp/fixunsdfti.c: Likewise.
4480         * soft-fp/fixunssfdi.c: Likewise.
4481         * soft-fp/fixunssfsi.c: Likewise.
4482         * soft-fp/fixunssfti.c: Likewise.
4483         * soft-fp/fixunstfdi.c: Likewise.
4484         * soft-fp/fixunstfsi.c: Likewise.
4485         * soft-fp/fixunstfti.c: Likewise.
4486         * soft-fp/floatdidf.c: Likewise.
4487         * soft-fp/floatdisf.c: Likewise.
4488         * soft-fp/floatditf.c: Likewise.
4489         * soft-fp/floatsidf.c: Likewise.
4490         * soft-fp/floatsisf.c: Likewise.
4491         * soft-fp/floatsitf.c: Likewise.
4492         * soft-fp/floattidf.c: Likewise.
4493         * soft-fp/floattisf.c: Likewise.
4494         * soft-fp/floattitf.c: Likewise.
4495         * soft-fp/floatundidf.c: Likewise.
4496         * soft-fp/floatundisf.c: Likewise.
4497         * soft-fp/floatunditf.c: Likewise.
4498         * soft-fp/floatunsidf.c: Likewise.
4499         * soft-fp/floatunsisf.c: Likewise.
4500         * soft-fp/floatunsitf.c: Likewise.
4501         * soft-fp/floatuntidf.c: Likewise.
4502         * soft-fp/floatuntisf.c: Likewise.
4503         * soft-fp/floatuntitf.c: Likewise.
4504         * soft-fp/fmadf4.c: Likewise.
4505         * soft-fp/fmasf4.c: Likewise.
4506         * soft-fp/fmatf4.c: Likewise.
4507         * soft-fp/gedf2.c: Likewise.
4508         * soft-fp/gesf2.c: Likewise.
4509         * soft-fp/getf2.c: Likewise.
4510         * soft-fp/ledf2.c: Likewise.
4511         * soft-fp/lesf2.c: Likewise.
4512         * soft-fp/letf2.c: Likewise.
4513         * soft-fp/muldf3.c: Likewise.
4514         * soft-fp/mulsf3.c: Likewise.
4515         * soft-fp/multf3.c: Likewise.
4516         * soft-fp/negdf2.c: Likewise.
4517         * soft-fp/negsf2.c: Likewise.
4518         * soft-fp/negtf2.c: Likewise.
4519         * soft-fp/op-1.h: Likewise.
4520         * soft-fp/op-2.h: Likewise.
4521         * soft-fp/op-4.h: Likewise.
4522         * soft-fp/op-8.h: Likewise.
4523         * soft-fp/op-common.h: Likewise.
4524         * soft-fp/quad.h: Likewise.
4525         * soft-fp/single.h: Likewise.
4526         * soft-fp/soft-fp.h: Likewise.
4527         * soft-fp/sqrtdf2.c: Likewise.
4528         * soft-fp/sqrtsf2.c: Likewise.
4529         * soft-fp/sqrttf2.c: Likewise.
4530         * soft-fp/subdf3.c: Likewise.
4531         * soft-fp/subsf3.c: Likewise.
4532         * soft-fp/subtf3.c: Likewise.
4533         * soft-fp/truncdfsf2.c: Likewise.
4534         * soft-fp/trunctfdf2.c: Likewise.
4535         * soft-fp/trunctfsf2.c: Likewise.
4536         * soft-fp/trunctfxf2.c: Likewise.
4537         * soft-fp/unorddf2.c: Likewise.
4538         * soft-fp/unordsf2.c: Likewise.
4539         * soft-fp/unordtf2.c: Likewise.
4540
4541 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
4542
4543         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
4544         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
4545
4546 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
4547
4548         * elf/dl-libc.c: Clear initfini list after freeing.
4549
4550 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
4551
4552         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
4553         * soft-fp/addsf3.c: Likewise.
4554         * soft-fp/addtf3.c: Likewise.
4555         * soft-fp/divdf3.c: Likewise.
4556         * soft-fp/divsf3.c: Likewise.
4557         * soft-fp/divtf3.c: Likewise.
4558         * soft-fp/double.h: Likewise.
4559         * soft-fp/eqdf2.c: Likewise.
4560         * soft-fp/eqsf2.c: Likewise.
4561         * soft-fp/eqtf2.c: Likewise.
4562         * soft-fp/extenddftf2.c: Likewise.
4563         * soft-fp/extended.h: Likewise.
4564         * soft-fp/extendsfdf2.c: Likewise.
4565         * soft-fp/extendsftf2.c: Likewise.
4566         * soft-fp/extendxftf2.c: Likewise.
4567         * soft-fp/fixdfdi.c: Likewise.
4568         * soft-fp/fixdfsi.c: Likewise.
4569         * soft-fp/fixdfti.c: Likewise.
4570         * soft-fp/fixsfdi.c: Likewise.
4571         * soft-fp/fixsfsi.c: Likewise.
4572         * soft-fp/fixsfti.c: Likewise.
4573         * soft-fp/fixtfdi.c: Likewise.
4574         * soft-fp/fixtfsi.c: Likewise.
4575         * soft-fp/fixtfti.c: Likewise.
4576         * soft-fp/fixunsdfdi.c: Likewise.
4577         * soft-fp/fixunsdfsi.c: Likewise.
4578         * soft-fp/fixunsdfti.c: Likewise.
4579         * soft-fp/fixunssfdi.c: Likewise.
4580         * soft-fp/fixunssfsi.c: Likewise.
4581         * soft-fp/fixunssfti.c: Likewise.
4582         * soft-fp/fixunstfdi.c: Likewise.
4583         * soft-fp/fixunstfsi.c: Likewise.
4584         * soft-fp/fixunstfti.c: Likewise.
4585         * soft-fp/floatdidf.c: Likewise.
4586         * soft-fp/floatdisf.c: Likewise.
4587         * soft-fp/floatditf.c: Likewise.
4588         * soft-fp/floatsidf.c: Likewise.
4589         * soft-fp/floatsisf.c: Likewise.
4590         * soft-fp/floatsitf.c: Likewise.
4591         * soft-fp/floattidf.c: Likewise.
4592         * soft-fp/floattisf.c: Likewise.
4593         * soft-fp/floattitf.c: Likewise.
4594         * soft-fp/floatundidf.c: Likewise.
4595         * soft-fp/floatundisf.c: Likewise.
4596         * soft-fp/floatunsidf.c: Likewise.
4597         * soft-fp/floatunsisf.c: Likewise.
4598         * soft-fp/floatuntidf.c: Likewise.
4599         * soft-fp/floatuntisf.c: Likewise.
4600         * soft-fp/floatuntitf.c: Likewise.
4601         * soft-fp/fmadf4.c: Likewise.
4602         * soft-fp/fmasf4.c: Likewise.
4603         * soft-fp/fmatf4.c: Likewise.
4604         * soft-fp/gedf2.c: Likewise.
4605         * soft-fp/gesf2.c: Likewise.
4606         * soft-fp/getf2.c: Likewise.
4607         * soft-fp/ledf2.c: Likewise.
4608         * soft-fp/lesf2.c: Likewise.
4609         * soft-fp/letf2.c: Likewise.
4610         * soft-fp/muldf3.c: Likewise.
4611         * soft-fp/mulsf3.c: Likewise.
4612         * soft-fp/multf3.c: Likewise.
4613         * soft-fp/negdf2.c: Likewise.
4614         * soft-fp/negsf2.c: Likewise.
4615         * soft-fp/negtf2.c: Likewise.
4616         * soft-fp/op-1.h: Likewise.
4617         * soft-fp/op-2.h: Likewise.
4618         * soft-fp/op-4.h: Likewise.
4619         * soft-fp/op-8.h: Likewise.
4620         * soft-fp/op-common.h: Likewise.
4621         * soft-fp/quad.h: Likewise.
4622         * soft-fp/single.h: Likewise.
4623         * soft-fp/soft-fp.h: Likewise.
4624         * soft-fp/sqrtdf2.c: Likewise.
4625         * soft-fp/sqrtsf2.c: Likewise.
4626         * soft-fp/sqrttf2.c: Likewise.
4627         * soft-fp/subdf3.c: Likewise.
4628         * soft-fp/subsf3.c: Likewise.
4629         * soft-fp/subtf3.c: Likewise.
4630         * soft-fp/truncdfsf2.c: Likewise.
4631         * soft-fp/trunctfdf2.c: Likewise.
4632         * soft-fp/trunctfsf2.c: Likewise.
4633         * soft-fp/trunctfxf2.c: Likewise.
4634         * soft-fp/unorddf2.c: Likewise.
4635         * soft-fp/unordsf2.c: Likewise.
4636         * soft-fp/unordtf2.c: Likewise.
4637
4638 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
4639
4640         [BZ #15672]
4641         * misc/error.c (error_tail): Fix possible buffer overflow.
4642
4643 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
4644
4645         [BZ #13028]
4646         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
4647         address.
4648
4649 2013-10-14  P. J. McDermott  <pj@pehjota.net>
4650
4651         [BZ #832]
4652         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
4653         testing pipefail option.
4654
4655 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4656
4657         * soft-fp/double.h: Indent preprocessor directives inside #if.
4658         * soft-fp/extended.h: Likewise.
4659         * soft-fp/op-2.h: Likewise.
4660         * soft-fp/op-4.h: Likewise.
4661         * soft-fp/op-common.h: Likewise.
4662         * soft-fp/quad.h: Likewise.
4663         * soft-fp/single.h: Likewise.
4664         * soft-fp/soft-fp.h: Likewise.
4665
4666 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
4667
4668         * iconv/iconv_prog.c: Fix typos.
4669         * stdio-common/psiginfo-data.h: Likewise.
4670
4671 2013-10-12   Reuben Thomas <rrt@sc3d.org>
4672
4673         [BZ #15764]
4674         * locale/setlocale.c: Fix typo.
4675
4676 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
4677
4678         [BZ #16036]
4679         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
4680         signaling NaN arguments.
4681         * soft-fp/unordsf2.c (__unordsf2): Likewise.
4682         * soft-fp/unordtf2.c (__unordtf2): Likewise.
4683
4684         [BZ #14910]
4685         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
4686         unordered operands.
4687         * soft-fp/gesf2.c (__gesf2): Likewise.
4688         * soft-fp/getf2.c (__getf2): Likewise.
4689         * soft-fp/ledf2.c (__ledf2): Likewise.
4690         * soft-fp/lesf2.c (__lesf2): Likewise.
4691         * soft-fp/letf2.c (__letf2): Likewise.
4692
4693         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
4694         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4695         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4696         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
4697         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
4698         * soft-fp/fixdfti.c (__fixdfti): Likewise.
4699         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
4700         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
4701         * soft-fp/fixsfti.c (__fixsfti): Likewise.
4702         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
4703         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
4704         * soft-fp/fixtfti.c (__fixtfti): Likewise.
4705         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
4706         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
4707         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
4708         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
4709         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
4710         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
4711         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
4712         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
4713         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
4714         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
4715         * soft-fp/floatdisf.c (__floatdisf): Likewise.
4716         * soft-fp/floatsisf.c (__floatsisf): Likewise.
4717         * soft-fp/floattidf.c (__floattidf): Likewise.
4718         * soft-fp/floattisf.c (__floattisf): Likewise.
4719         * soft-fp/floattitf.c (__floattitf): Likewise.
4720         * soft-fp/floatundidf.c (__floatundidf): Likewise.
4721         * soft-fp/floatundisf.c (__floatundisf): Likewise.
4722         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
4723         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
4724         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
4725         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
4726         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
4727         * soft-fp/gesf2.c (__gesf2): Likewise.
4728         * soft-fp/getf2.c (__getf2): Likewise.
4729         * soft-fp/ledf2.c (__ledf2): Likewise.
4730         * soft-fp/lesf2.c (__lesf2): Likewise.
4731         * soft-fp/letf2.c (__letf2): Likewise.
4732
4733         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
4734         Undefine and redefine.
4735         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
4736         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
4737         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
4738         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
4739         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4740         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
4741         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4742         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
4743         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4744         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
4745         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4746         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
4747         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4748         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
4749         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
4750
4751         [BZ #16032]
4752         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
4753         without decrementing exponent if mantissa >= that for the
4754         denominator, not >.
4755         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
4756         denominator, not >.  Decrement exponent in < case instead of
4757         incrementing in >= case.
4758         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
4759         without decrementing exponent if mantissa >= that for the
4760         denominator, not >.
4761
4762         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
4763         computing saturated result for unsigned overflow.
4764
4765 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4766             Jeff Law  <law@redhat.com>
4767
4768         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
4769         (atan2Mp): Add systemtap probe marker.
4770         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
4771         (__ieee754_log): Add systemtap probe marker.
4772         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
4773         (atanMp): Add systemtap probe marker.
4774         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
4775         (tanMp): Add systemtap probe marker.
4776         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
4777         (__slowexp): Add systemtap probe marker.
4778         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
4779         (__slowpow): Add systemtap probe marker.
4780         * manual/probes.texi: Document probes.
4781
4782 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
4783
4784         [BZ #15362]
4785         * libio/fileops.c (_IO_new_file_write): Return count of bytes
4786         written.
4787         (_IO_new_file_xsputn): Don't return EOF if nothing has been
4788         written.
4789         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
4790         written to buffer but not flushed.
4791         * libio/iofwrite_u.c:  Likewise.
4792         * libio/iopadn.c:  Return bytes returned even if EOF was
4793         encountered.
4794         * libio/iowpadn.c:  Likewise.
4795         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
4796         if _IO_padn does not write the whole buffer.
4797         [!COMPILE_WPRINTF] (PAD): Likewise.
4798
4799 2013-10-10  David S. Miller  <davem@davemloft.net>
4800
4801         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
4802         directory block.
4803
4804 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4805
4806         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
4807         instead of FSF address.
4808         * soft-fp/fixdfti.c: Likewise.
4809         * soft-fp/fixsfti.c: Likewise.
4810         * soft-fp/fixtfti.c: Likewise.
4811         * soft-fp/fixunsdfti.c: Likewise.
4812         * soft-fp/fixunssfti.c: Likewise.
4813         * soft-fp/fixunstfti.c: Likewise.
4814         * soft-fp/floattidf.c: Likewise.
4815         * soft-fp/floattisf.c: Likewise.
4816         * soft-fp/floattitf.c: Likewise.
4817         * soft-fp/floatuntidf.c: Likewise.
4818         * soft-fp/floatuntisf.c: Likewise.
4819         * soft-fp/floatuntitf.c: Likewise.
4820         * soft-fp/trunctfxf2.c: Likewise.
4821
4822         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
4823         * soft-fp/fixdfti.c: Likewise.
4824         * soft-fp/fixsfti.c: Likewise.
4825         * soft-fp/fixtfti.c: Likewise.
4826         * soft-fp/fixunsdfti.c: Likewise.
4827         * soft-fp/fixunssfti.c: Likewise.
4828         * soft-fp/fixunstfti.c: Likewise.
4829         * soft-fp/floattidf.c: Likewise.
4830         * soft-fp/floattisf.c: Likewise.
4831         * soft-fp/floattitf.c: Likewise.
4832         * soft-fp/floatuntidf.c: Likewise.
4833         * soft-fp/floatuntisf.c: Likewise.
4834         * soft-fp/floatuntitf.c: Likewise.
4835         * soft-fp/trunctfxf2.c: Likewise.
4836
4837 2013-10-10  David S. Miller  <davem@davemloft.net>
4838
4839         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4840
4841 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
4842
4843         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4844         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
4845         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
4846         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
4847         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
4848         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
4849         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
4850
4851         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
4852         for NaNs before doing comparisons on argument.
4853         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
4854         Likewise.
4855
4856 2013-10-10  Will Newton  <will.newton@linaro.org>
4857
4858         * malloc/hooks.c (memalign_check): Ensure the value of bytes
4859         passed to _int_memalign does not overflow.
4860
4861 2013-10-10  Torvald Riegel  <triegel@redhat.com>
4862
4863         * scripts/bench.pl: Add include-sources directive.
4864         * benchtests/README: Update documentation.
4865
4866 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
4867
4868         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
4869         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
4870         instead of FP_INIT_ROUNDMODE.
4871         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
4872         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
4873
4874         [BZ #16034]
4875         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
4876         copy class of input value.
4877         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
4878         not handle exceptions.
4879         * soft-fp/negsf2.c (__negsf2): Likewise.
4880         * soft-fp/negtf2.c (__negtf2): Likewise.
4881         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
4882
4883 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
4884
4885         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
4886         semicolon.  From Linux kernel.
4887
4888 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
4889
4890         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
4891
4892 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
4893
4894         [BZ #156]
4895         * manual/socket.texi: Added statement about buffer
4896         for gethostbyname2_r.
4897
4898 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
4899
4900         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
4901         Use .p2align directive instead, throughout.
4902         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4903         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4904         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
4905         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4906         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4907         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
4908         * sysdeps/x86_64/strchr.S: Likewise.
4909         * sysdeps/x86_64/strrchr.S: Likewise.
4910
4911 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
4912
4913         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
4914
4915         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
4916
4917         * sysdeps/generic/math_private.h (__mpsin1): Remove
4918         declaration.
4919         (__mpcos1): Likewise.
4920         (__mpsin): New argument __range_reduce.
4921         (__mpcos): Likewise.
4922         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4923         (slow): Use __mpsin and __mpcos.
4924         (slow1): Likewise.
4925         (slow2): Likewise.
4926         (sloww): Likewise.
4927         (sloww1): Likewise.
4928         (sloww2): Likewise.
4929         (bsloww): Likewise.
4930         (bsloww1): Likewise.
4931         (bsloww2): Likewise.
4932         (cslow2): Likewise.
4933         (csloww): Likewise.
4934         (csloww1): Likewise.
4935         (csloww2): Likewise.
4936         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
4937         range_reduce.  Merge in __mpsin1.
4938         (__mpcos): Likewise.
4939         (__mpsin1): Remove.
4940         (__mpcos1): Likewise.
4941
4942 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
4943
4944         * locale/loadlocale.c (_nl_intern_locale_data): Use
4945         LOCFILE_ALIGNED_P.
4946         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
4947         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
4948         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
4949         obstack data is appropriately aligned.
4950         (obstack_int32_grow_fast): Likewise.
4951         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
4952         * locale/programs/locfile.c (add_locale_uint32): Likewise.
4953         (add_locale_uint32_array): Likewise.
4954
4955 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
4956
4957         * benchtests/Makefile: Remove ARGLIST and RET variables.
4958         ($(objpfx)bench-%.c): Pass only function name to the script.
4959         * benchtests/README: Update documentation.
4960         * benchtests/acos-inputs: Add new directives.
4961         * benchtests/acosh-inputs: Likewise.
4962         * benchtests/asin-inputs: Likewise.
4963         * benchtests/asinh-inputs: Likewise.
4964         * benchtests/atan-inputs: Likewise.
4965         * benchtests/atanh-inputs: Likewise.
4966         * benchtests/cos-inputs: Likewise.
4967         * benchtests/cosh-inputs: Likewise.
4968         * benchtests/exp-inputs: Likewise.
4969         * benchtests/log-inputs: Likewise.
4970         * benchtests/pow-inputs: Likewise.
4971         * benchtests/rint-inputs: Likewise.
4972         * benchtests/sin-inputs: Likewise.
4973         * benchtests/sinh-inputs: Likewise.
4974         * benchtests/tan-inputs: Likewise.
4975         * benchtests/tanh-inputs: Likewise.
4976         * scripts/bench.pl: Add support for new directives.
4977
4978 2013-10-07  Alan Modra  <amodra@gmail.com>
4979
4980         * README: Fix careless merge.
4981
4982 2013-10-05  Alan Modra  <amodra@gmail.com>
4983
4984         * NEWS: Mention powerpc64le support and bugs fixed.
4985         * README: Both big-endian and little-endian powerpc64 supported.
4986
4987 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4988
4989         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
4990         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
4991         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
4992         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
4993
4994 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
4995
4996         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
4997         match prototype.
4998
4999 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
5000
5001         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
5002         Move -mhard-float appending from
5003         ports/sysdeps/powerpc/powerpc32/Makefile.
5004         [$(with-fp) = yes] (ASFLAGS): Likewise.
5005         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
5006         * sysdeps/powerpc/nofpu: Move directory from
5007         ports/sysdeps/powerpc/nofpu.
5008         * sysdeps/powerpc/soft-fp: Move directory from
5009         ports/sysdeps/powerpc/soft-fp.
5010         * sysdeps/powerpc/powerpc32/405: Move directory from
5011         ports/sysdeps/powerpc/powerpc32/405.
5012         * sysdeps/powerpc/powerpc32/440: Move directory from
5013         ports/sysdeps/powerpc/powerpc32/440.
5014         * sysdeps/powerpc/powerpc32/464: Move directory from
5015         ports/sysdeps/powerpc/powerpc32/464.
5016         * sysdeps/powerpc/powerpc32/476: Move directory from
5017         ports/sysdeps/powerpc/powerpc32/476.
5018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
5019         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
5020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
5021         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
5022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
5023         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
5024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
5025         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
5026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
5027         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
5028         * README: Update for powerpc-*-linux-gnu software floating point
5029         support in libc.
5030
5031         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
5032         case to powerpc/powerpc32*.
5033         * sysdeps/unix/sysv/linux/configure: Regenerated.
5034
5035         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
5036         (_FPU_MASK_OM): Define as 0x04.
5037         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
5038         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
5039         0x00c10080.
5040         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
5041         0x0000003c.
5042         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
5043
5044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5045         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
5046         getcontext_e500.
5047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5048         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
5049         setcontext_e500.
5050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5051         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
5052         and setcontext_e500.
5053
5054 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
5055
5056         * locale/iso-3166.def: Update iso-1366.def and related occurrences
5057
5058 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5059
5060         * manual/threads.texi (Default Thread Attributes): Fix typo.
5061
5062 2013-10-04  Will Newton  <will.newton@linaro.org>
5063
5064         * malloc/Makefile: Add tst-memalign.
5065         * malloc/tst-memalign.c: New file.
5066
5067         * malloc/tst-posix_memalign.c: Add comments.
5068         (do_test): Add comments and call free on all potentially
5069         allocated pointers. Add space after cast.
5070
5071         * malloc/tst-pvalloc.c: Add comments.
5072         (do_test): Add comments and call free on all potentially
5073         allocated pointers. Remove duplicate check for NULL pointer.
5074         Add space after cast.
5075
5076         * malloc/tst-valloc.c: Add comments.
5077         (do_test): Add comments and call free on all potentially
5078         allocated pointers. Remove duplicate check for NULL pointer.
5079         Add space after cast.
5080
5081 2013-10-04  Alan Modra  <amodra@gmail.com>
5082
5083         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5084         Use stdint types in rather than __attribute__((mode())).
5085         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5086
5087 2013-10-04  Alan Modra  <amodra@gmail.com>
5088
5089         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5090         Correct handling of unaligned relocs for little-endian.
5091         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5092
5093 2013-10-04  Alan Modra  <amodra@gmail.com>
5094
5095         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
5096         * configure: Regenerate.
5097         * nptl/shlib-versions: Powerpc*le starts at 2.18.
5098         * shlib-versions: Likewise.
5099
5100 2013-10-04  Alan Modra  <amodra@gmail.com>
5101
5102         * string/tester.c (test_memrchr): Increment reported test cycle.
5103
5104 2013-10-04  Alan Modra  <amodra@gmail.com>
5105
5106         * string/test-memcpy.c (do_one_test): When reporting errors, print
5107         string address and don't overrun end of string.
5108
5109 2013-10-04  Alan Modra  <amodra@gmail.com>
5110
5111         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
5112         insrdi.  Make better use of reg selection to speed exit slightly.
5113         Schedule entry path a little better.  Remove useless "are we done"
5114         checks on entry to main loop.  Handle wrapping around zero address.
5115         Correct main loop count.  Handle single left-over word from main
5116         loop inline rather than by using loop_small.  Remove extra word
5117         case in loop_small caused by wrong loop count.  Add little-endian
5118         support.
5119         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5120         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
5121         cache hint.
5122         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5123         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
5124         support.  Avoid rlwimi.
5125         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
5126
5127 2013-10-04  Alan Modra  <amodra@gmail.com>
5128
5129         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
5130         insrdi.  Formatting.
5131         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5132         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5133         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
5134         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
5135         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5136         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
5137
5138 2013-10-04  Alan Modra  <amodra@gmail.com>
5139
5140         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
5141         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5142         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
5143         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
5144         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5145         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5146         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5147         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
5148         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
5149         use of regs.  Use power7 mtocrf.  Tidy function tails.
5150
5151 2013-10-04  Alan Modra  <amodra@gmail.com>
5152
5153         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
5154         Formatting.  Consistently use rXXX register defines or rN defines.
5155         Use early exit labels that avoid restoring unused non-volatile regs.
5156         Make cr field use more consistent with rWORDn compares.  Rename
5157         regs used as shift registers for unaligned loop, using rN defines
5158         for short lifetime/multiple use regs.
5159         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5160         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
5161         addi 1,1,64 to pop stack frame.  Simplify return value code.
5162         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5163
5164 2013-10-04  Alan Modra  <amodra@gmail.com>
5165
5166         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
5167         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
5168         rather than rlwimi.
5169         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
5170         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
5171         little-endian support.  Correct typos.
5172         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
5173         rather than rlwimi.
5174         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
5175         in loop and entry code to keep "and." results.
5176         (strchr): Add little-endian support.  Comment.  Move cntlzd
5177         earlier in tail.
5178         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
5179
5180 2013-10-04  Alan Modra  <amodra@gmail.com>
5181
5182         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
5183         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
5184         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
5185         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
5186
5187 2013-10-04  Alan Modra  <amodra@gmail.com>
5188
5189         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
5190         (rTMP): Define as r11.
5191         (strcmp): Add little-endian support.  Optimise tail.
5192         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
5193         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5194         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5195         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5196         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5197         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5198         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5199
5200 2013-10-04  Alan Modra  <amodra@gmail.com>
5201
5202         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
5203         little-endian support.  Remove unnecessary "are we done" tests.
5204         Handle "s" wrapping around zero and extremely large "size".
5205         Correct main loop count.  Handle single left-over word from main
5206         loop inline rather than by using small_loop.  Correct comments.
5207         Delete "zero" tail, use "end_max" instead.
5208         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
5209
5210 2013-10-04  Alan Modra  <amodra@gmail.com>
5211
5212         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
5213         support.  Don't branch over align.
5214         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
5215         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
5216         support.  Rearrange tmp reg use to suit.  Comment.
5217         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
5218
5219 2013-10-04  Alan Modra  <amodra@gmail.com>
5220
5221         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
5222
5223 2013-10-04  Alan Modra  <amodra@gmail.com>
5224
5225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
5226         conditional form of branch and link when obtaining pc.
5227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
5228
5229 2013-10-04  Alan Modra  <amodra@gmail.com>
5230
5231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
5232         HIWORD/LOWORD.
5233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
5234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
5235
5236 2013-10-04  Alan Modra  <amodra@gmail.com>
5237
5238         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
5239         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
5240         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5241         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
5242         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
5243         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5244         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
5245         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5246         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5247         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
5248
5249 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5250             Alistair Popple <alistair@ozlabs.au.ibm.com>
5251             Alan Modra <amodra@gmail.com>
5252
5253         [BZ #15723]
5254         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
5255         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
5256         _dl_hwcap access for little-endian.
5257         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
5258         destroy vmx regs when saving unaligned.
5259         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
5260         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
5261         destroy vmx regs when saving unaligned.
5262
5263 2013-10-04  Alan Modra  <amodra@gmail.com>
5264
5265         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
5266         Don't use a union to pack hi/low value.
5267
5268 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5269
5270         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
5271         for little-endian.
5272         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
5273         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
5274         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5275         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
5276         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
5277
5278 2013-10-04  Alan Modra  <amodra@gmail.com>
5279
5280         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
5281         constants to usual value for .cst8 section, and remove redundant
5282         high address load.
5283         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
5284         constant for 0x1p52.  Load little-endian words of double from
5285         correct stack offsets.
5286
5287 2013-10-04  Alan Modra  <amodra@gmail.com>
5288
5289         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
5290         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
5291         words of double from correct stack offsets.
5292         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
5293         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
5294         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
5295         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
5296         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
5297         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
5298         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
5299         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
5300         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
5301         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
5302         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
5303         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
5304         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5305         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5306         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5307         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
5308         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
5309
5310 2013-10-04  Alan Modra  <amodra@gmail.com>
5311
5312         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
5313         64-bit int/double union.
5314         (_FPU_SETCW): Likewise.
5315         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5316         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
5317
5318 2013-10-04  Alan Modra  <amodra@gmail.com>
5319
5320         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
5321         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
5322
5323 2013-10-04  Alan Modra  <amodra@gmail.com>
5324
5325         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
5326         use vector int constants.
5327         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
5328
5329 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5330
5331         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
5332         array with long long.
5333         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
5334         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
5335         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
5336         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
5337         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
5338         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
5339         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
5340         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
5341         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
5342         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
5343         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
5344         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
5345         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
5346
5347 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
5348
5349         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
5350         (__signbit): Likewise.  Correct for little-endian.
5351         (__signbitl): Call __signbit.
5352         (lrint): Correct for little-endian.
5353         (lrintf): Call lrint.
5354
5355 2013-10-04  Alan Modra  <amodra@gmail.com>
5356
5357         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
5358         union 32-bit int array member with 64-bit int array.
5359         (t515, tm256): Double rather than long double.
5360         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
5361
5362 2013-10-04  Alan Modra  <amodra@gmail.com>
5363
5364         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
5365         Delete.
5366         (IEEE854_LONG_DOUBLE_BIAS): Delete.
5367         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
5368         version of math_ldbl.h.
5369
5370 2013-10-04  Alan Modra  <amodra@gmail.com>
5371
5372         [BZ #15734], [BZ #15735]
5373         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
5374         all uses of ieee875 long double macros and unions.  Simplify test
5375         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
5376         ldbl_extract_mantissa value for ix,iy exponents.  Properly
5377         normalize after ldbl_extract_mantissa, and don't add hidden bit
5378         already handled.  Don't treat low word of ieee854 mantissa like
5379         low word of IBM long double and mask off bit when testing for
5380         zero.
5381         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
5382         all uses of ieee875 long double macros and unions.  Simplify tests
5383         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
5384         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
5385         two1022, instead use their values.  Recognise that tests for large
5386         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
5387         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
5388         Rewrite all uses of ieee875 long double macros and unions.  Simplify
5389         test for 0.0L and nan.  Correct negation.
5390         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
5391         ieee875 long double macros and unions.  Correct output for large
5392         magnitude x.  Correct absolute value calculation.
5393         (__erfcl): Likewise.
5394         * math/libm-test.inc: Add tests for errors discovered in IBM long
5395         double versions of fmodl, remainderl, erfl and erfcl.
5396
5397 2013-10-04  Alan Modra  <amodra@gmail.com>
5398
5399         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
5400         all uses of ieee854 long double macros and unions.  Simplify tests
5401         for long doubles that are fully specified by the high double.
5402         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5403         Likewise.
5404         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
5405         Remove dead code too.
5406         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5407         (__ieee754_ynl): Likewise.
5408         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
5409         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
5410         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5411         Remove dead code too.
5412         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
5413         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
5414         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
5415         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
5416         Simplify.
5417         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
5418         Simplify.
5419         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
5420         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5421         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
5422         Comment on variable precision.
5423         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
5424         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5425         Likewise.
5426         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5427         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5428         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5429         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
5430         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
5431
5432 2013-10-04  Alan Modra  <amodra@gmail.com>
5433
5434         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
5435         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
5436         all uses of ieee854 long double macros and unions.
5437         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
5438         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
5439         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
5440         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
5441         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
5442         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5443         Likewise.
5444         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
5445         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5446         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
5447         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5448         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
5449         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
5450         Simplify sign and nan test too.
5451         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
5452         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5453         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
5454         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5455         Likewise.
5456         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5457         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
5458         Likewise.
5459         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5460         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
5461         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
5462         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
5463         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
5464         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
5465
5466 2013-10-04  Alan Modra  <amodra@gmail.com>
5467
5468         * stdio-common/printf_size.c (__printf_size): Don't use
5469         union ieee854_long_double in fpnum union.
5470         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
5471         signbit macro to retrieve sign from long double.
5472         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
5473         retrieve sign from long double.
5474         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
5475         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
5476         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
5477         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
5478         * math/test-misc.c (main): Don't use union ieee854_long_double.
5479
5480 2013-10-04  Alan Modra  <amodra@gmail.com>
5481
5482         [BZ #15680]
5483         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
5484         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5485         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
5486         calculation.  Remove unnecessary test for denormal exponent.
5487         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
5488         Correct handling of denormals.  Avoid undefined shift behaviour.
5489         Correct normalisation of low mantissa when low double is denormal.
5490         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
5491         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
5492         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
5493         Correct normalisation of low mantissa.  Test for overflow of high
5494         mantissa and normalise.
5495         (ldbl_nearbyint): Use more readable constant for two52.
5496         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5497         (__mpn_construct_long_double): Fix test for overflow of high
5498         mantissa and correct normalisation.  Avoid undefined shift.
5499
5500 2013-10-04  Alan Modra  <amodra@gmail.com>
5501
5502         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5503         (union ibm_extended_long_double): Define as an array of ieee754_double.
5504         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
5505         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
5506         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
5507         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5508         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5509         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
5510         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5511         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
5512         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
5513         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
5514         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
5515
5516 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
5517
5518         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
5519         page size instead of calling getpagesize.
5520
5521         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
5522         (LOCFILE_ALIGN_MASK): Likewise.
5523         (LOCFILE_ALIGN_UP): Likewise.
5524         (LOCFILE_ALIGNED_P): Likewise.
5525         * locale/programs/ld-collate.c (collate_output): Use the new
5526         macros instead of __alignof__ (int32_t).
5527         * locale/weight.h (findidx): Likewise.
5528
5529 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
5530
5531         [BZ #431]
5532         * manual/string.texi: Fix strncat and wcsncat.
5533
5534 2013-10-03  Brooks Moses  <bmoses@google.com>
5535
5536         [BZ #15915]
5537         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
5538         * Makerules: ...here, and adjust associated comments.
5539
5540 2013-10-02  Will Newton  <will.newton@linaro.org>
5541
5542         * malloc/Makefile: Add tst-pvalloc.
5543         * malloc/tst-pvalloc.c: New file.
5544
5545 2013-10-02  Will Newton  <will.newton@linaro.org>
5546
5547         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
5548         improve test coverage.
5549
5550 2013-10-02  Will Newton  <will.newton@linaro.org>
5551
5552         * malloc/Makefile: Add tst-posix_memalign.
5553         * malloc/tst-posix_memalign.c: New file.
5554
5555 2013-10-01  Eric Blake  <eblake@redhat.com>
5556
5557         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
5558         Use __THROWNL rather than __THROW on static functions.
5559
5560 2013-09-30  Petr Machata  <pmachata@redhat.com>
5561
5562         * elf/elf.h (R_AARCH64_ABS16): New macro.
5563         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
5564         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
5565         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
5566         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
5567         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
5568         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
5569         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
5570         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
5571         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
5572         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
5573         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
5574         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
5575         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
5576         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
5577         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
5578         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
5579         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
5580         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
5581         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
5582         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
5583         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
5584         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
5585         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
5586         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
5587         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
5588         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
5589         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
5590         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
5591         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
5592         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
5593         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
5594         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
5595         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
5596         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
5597         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
5598         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
5599         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
5600         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
5601         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
5602         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
5603         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
5604         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
5605         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
5606         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
5607         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
5608         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
5609         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
5610         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
5611         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
5612         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
5613         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
5614         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
5615         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
5616         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
5617         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
5618         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
5619         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
5620         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
5621         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
5622         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
5623         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
5624         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
5625         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
5626         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
5627         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
5628         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
5629         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
5630         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
5631         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
5632         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
5633         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
5634         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
5635         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
5636         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
5637         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
5638         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
5639         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
5640         (R_AARCH64_TLSDESC_LDR): Likewise.
5641         (R_AARCH64_TLSDESC_ADD): Likewise.
5642         (R_AARCH64_TLSDESC_CALL): Likewise.
5643
5644 2013-09-30  Andreas Schwab  <schwab@suse.de>
5645
5646         [BZ #15048]
5647         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
5648         the nss database lookup.
5649         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5650         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5651
5652 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
5653
5654         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
5655
5656 2013-09-28  P. J. McDermott  <pj@pehjota.net>
5657
5658         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
5659         ${Bash-specific parameter/pattern/string} parameter expansion.
5660         * sysdeps/unix/make-syscalls.sh: Likewise.
5661
5662 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5663
5664         * sysdeps/sh/stackguard-macros.h: New file.
5665
5666 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
5667
5668         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
5669         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
5670         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
5671         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
5672         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5673         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
5674
5675 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5676
5677         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
5678         Fix thread ID register.
5679
5680 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
5681
5682         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
5683         [POSIX || UNIX98]: Require rather than permitting all symbols from
5684         <time.h>.
5685         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
5686         element of struct sched_param.
5687         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
5688         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
5689         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
5690         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
5691         constant.
5692
5693 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
5694
5695         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
5696         argument calculation.
5697
5698 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5699
5700         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
5701         Expect macro.
5702         [POSIX] (pthread_attr_t): Do not require type.
5703         [POSIX] (pthread_cond_t): Likewise.
5704         [POSIX] (pthread_condattr_t): Likewise.
5705         [POSIX] (pthread_key_t): Likewise.
5706         [POSIX] (pthread_mutex_t): Likewise.
5707         [POSIX] (pthread_mutexattr_t): Likewise.
5708         [POSIX] (pthread_once_t): Likewise.
5709         [POSIX] (pthread_t): Likewise.
5710         [POSIX-based standards] (pthread_atfork): Expect function.
5711
5712 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
5713             Richard Sandiford  <richard@codesourcery.com>
5714
5715         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
5716         (swap_endianness_p): New extern variable.
5717         (set_big_endian): New inline function.
5718         (maybe_swap_uint32): Likewise.
5719         (maybe_swap_uint32_array): Likewise.
5720         (maybe_swap_uint32_obstack): Likewise.
5721         * locale/programs/locfile.c: Include <stdbool.h>.
5722         (swap_endianness_p): New variable.
5723         (add_locale_uint32): Call maybe_swap_uint32.
5724         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
5725         (write_locale_data): Call maybe_swap_uint32_array.
5726         * locale/programs/ld-collate.c (obstack_int32_grow): Call
5727         maybe_swap_uint32.
5728         (obstack_int32_grow_fast): Likewise.
5729         (output_weightwc): Call maybe_swap_uint32_obstack.
5730         (collate_output): Likewise.
5731         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
5732         (OPT_LITTLE_ENDIAN): Likewise.
5733         (options): Add --little-endian and --big-endian options.
5734         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
5735         * locale/programs/locarchive.c: Include "locfile.h".
5736         (GET): New macro.
5737         (SET): Likewise.
5738         (INC): Likewise.
5739         (create_archive): Use the new macros to access fields of
5740         structures directly mapped from or written to locale archives.
5741         (oldlocrecentcmp): Likewise.
5742         (enlarge_archive): Likewise.
5743         (insert_name): Likewise.
5744         (add_alias): Likewise.
5745         (add_locale): Likewise.
5746         (delete_locales_from_archive): Likewise.
5747         (show_archive_content): Likewise.
5748         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
5749         locale data.
5750
5751 2013-09-24  Roland McGrath  <roland@hack.frob.com>
5752
5753         * manual/freemanuals.texi: Updated from (newly) canonical copy at
5754         http://www.gnu.org/doc/freemanuals.texi.
5755         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
5756
5757 2013-09-24  Will Newton  <will.newton@linaro.org>
5758
5759         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
5760         macro.
5761
5762 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
5763
5764         * locale/hashval.h (compute_hashval): Interpret bytes of key as
5765         unsigned char.
5766
5767 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
5768
5769         * manual/threads.texi (POSIX Threads): Fix a typo.
5770
5771 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5772
5773         [BZ #14547]
5774         * string/tst-strcoll-overflow.c: New test case.
5775         * string/Makefile (xtests): Add tst-strcoll-overflow.
5776         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
5777         cache if string sizes may cause integer overflow.
5778
5779         [BZ #14547]
5780         * string/strcoll_l.c (coll_seq): New members rule, idx,
5781         save_idx and back_us.
5782         (get_next_seq_nocache): New function.
5783         (do_compare_nocache): New function.
5784         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
5785         when malloc fails.
5786
5787 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
5788
5789         [BZ #15754]
5790         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
5791         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
5792         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
5793
5794         [BZ #15754]
5795         * elf/Makefile (tests): Add tst-ptrguard1.
5796         (tests-static): Add tst-ptrguard1-static.
5797         (tst-ptrguard1-ARGS): Define.
5798         (tst-ptrguard1-static-ARGS): Define.
5799         * elf/tst-ptrguard1.c: New file.
5800         * elf/tst-ptrguard1-static.c: New file.
5801         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
5802         * sysdeps/i386/stackguard-macros.h: Likewise.
5803         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5804         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5805         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5806         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5807         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5808         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5809
5810 2013-09-23  Hector Marco  <hecmargi@upv.es>
5811             Ismael Ripoll  <iripoll@disca.upv.es>
5812             Carlos O'Donell  <carlos@redhat.com>
5813
5814         [BZ #15754]
5815         * sysdeps/generic/stackguard-macros.h: Define
5816         __pointer_chk_guard_local and POINTER_CHK_GUARD.
5817         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
5818         Define __pointer_chk_guard_local.
5819         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
5820         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
5821
5822 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
5823
5824         [BZ #15859]
5825         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
5826
5827 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
5828
5829         * include/string.h (__ffs): Declare as hidden.
5830         * string/ffs.c (__ffs): Define as hidden.
5831         * sysdeps/i386/ffs.c (__ffs): Likewise.
5832         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
5833         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
5834         * sysdeps/s390/ffs.c (__ffs): Likewise.
5835         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
5836
5837 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
5838
5839         * NEWS: Mention malloc probes.
5840
5841         * malloc/arena.c (new_heap): New memory_heap_new probe.
5842         (grow_heap): New memory_heap_more probe.
5843         (shrink_heap): New memory_heap_less probe.
5844         (heap_trim): New memory_heap_free probe.
5845         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
5846         (systrim): New memory_sbrk_less probe.
5847         * manual/probes.texi: Document them.
5848
5849         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
5850         * manual/probes.texi: Document it.
5851
5852         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
5853         (__libc_realloc): Add memory_realloc_retry probe.
5854         (__libc_memalign): Add memory_memalign_retry probe.
5855         (__libc_valloc): Add memory_valloc_retry probe.
5856         (__libc_pvalloc): Add memory_pvalloc_retry probe.
5857         (__libc_calloc): Add memory_calloc_retry probe.
5858         * manual/probes.texi: Document them.
5859
5860         * malloc/arena.c (get_free_list): Add probe
5861         memory_arena_reuse_free_list.
5862         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
5863         and memory_arena_reuse.
5864         (arena_get2) [!PER_THREAD]: Likewise.
5865         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
5866         memory_arena_reuse_realloc.
5867         * manual/probes.texi: Document them.
5868
5869         * malloc/malloc.c (__libc_free): Add
5870         memory_mallopt_free_dyn_thresholds probe.
5871         (__libc_mallopt): Add multiple memory_mallopt probes.
5872         * manual/probes.texi: Document them.
5873
5874         * malloc/malloc.c: Include stap-probe.h.
5875         (__libc_mallopt): Add memory_mallopt probe.
5876         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
5877         * manual/probes.texi: New.
5878         * manual/Makefile (chapters): Add probes.
5879         * manual/threads.texi: Set next node.
5880
5881 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
5882
5883         [BZ #15963, #13985]
5884         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
5885         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
5886         Add `Chinese' to `nan' entry name.
5887
5888 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5889
5890         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
5891         (POLYNOMIAL): Likewise.
5892         (TAYLOR_SINCOS): Likewise.
5893         (TAYLOR_SLOW): Likewise.
5894         (__sin): Use TAYLOR_SINCOS.
5895         (__cos): Likewise.
5896         (slow): Use TAYLOR_SLOW.
5897         (sloww): Likewise.
5898         (bsloww): Likewise.
5899         (csloww): Likewise.
5900
5901 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5902
5903         * stdlib/strtod_l.c: Fix buffer overrun.
5904
5905 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5906
5907         * benchtests/Makefile (bench): Add sincos.
5908         * benchtests/bench-sincos.c: New file.
5909
5910         * math/libm-test.inc (cos_test_data): New test inputs.
5911         (sin_test_data): Likewise.
5912
5913         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
5914         macro.
5915         (__sin): Use it.
5916         (__cos): Likewise.
5917         (slow1): Likewise.
5918         (slow2): Likewise.
5919         (sloww1): Likewise.
5920         (sloww2): Likewise.
5921         (bsloww1): Likewise.
5922         (bsloww2): Likewise.
5923         (cslow2): Likewise.
5924         (csloww1): Likewise.
5925         (csloww2): Likewise.
5926
5927         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
5928         function.
5929         (__sin): Use it.
5930         (__cos): Likewise.
5931
5932         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
5933         gotos.
5934         (__cos): Likewise.
5935
5936 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5937
5938         * config.h.in (HAVE_MIPS_NAN2008): New macro.
5939         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
5940         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
5941         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
5942         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
5943         * elf/cache.c (print_entry): Handle the new cache flags.
5944
5945 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5946             Aldy Hernandez  <aldyh@redhat.com>
5947
5948         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
5949         Change condition to [_SOFT_FLOAT].
5950         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
5951         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
5952         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
5953         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
5954         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
5955         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
5956         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
5957         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
5958         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
5959         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
5960         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
5961         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
5962         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
5963         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
5964         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
5965         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
5966         declaration.
5967
5968 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
5969
5970         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
5971         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5972         (__longjmp): Use LOAD_GP to load saved GPRs.
5973         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
5974         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
5975         (__sigsetjmp): Use SAVE_GP to save GPRs.
5976
5977         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
5978         Do not append -msoft-float.
5979         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
5980
5981 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5982
5983         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
5984
5985 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
5986
5987         [BZ #15966]
5988         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
5989         (_FPU_GETCW): Use initial "__" on variable and field names but not
5990         on macro parameter name.
5991         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
5992         parentheses around reference to macro parameter.
5993
5994 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
5995
5996         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
5997         prototype.
5998         (ctype_startup): Use uint32_t in cast and sizeof for
5999         ctype->charnames.
6000
6001 2013-09-11  Jia Liu  <proljc@gmail.com>
6002
6003         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
6004         __daddr_t_defined.
6005         [__FreeBSD__]: Likewise.
6006
6007 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
6008
6009         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
6010         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
6011         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
6012         (strchr): Remove __strchr_sse42 ifunc selection.
6013         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
6014         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
6015
6016 2013-09-11  Will Newton  <will.newton@linaro.org>
6017
6018         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
6019         parameter to RES. Remove hardcoded 1000 value.
6020         * benchtests/bench-skeleton.c (main): Pass RES parameter
6021         to TIMING_INIT and multiply result by 1000.
6022
6023 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6024
6025         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6026
6027 2013-09-11  Andreas Schwab  <schwab@suse.de>
6028
6029         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
6030         if not defined.
6031         (O_TMPFILE) [__USE_GNU]: Define.
6032         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
6033         Define.
6034
6035 2013-09-11  Will Newton  <will.newton@linaro.org>
6036
6037         [BZ #15857]
6038         * malloc/malloc.c (__libc_memalign): Check the value of bytes
6039         does not overflow.
6040
6041 2013-09-11  Will Newton  <will.newton@linaro.org>
6042
6043         [BZ #15856]
6044         * malloc/malloc.c (__libc_valloc): Check the value of bytes
6045         does not overflow.
6046
6047 2013-09-11  Will Newton  <will.newton@linaro.org>
6048
6049         [BZ #15855]
6050         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
6051         does not overflow.
6052
6053 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
6054
6055         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
6056         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6057         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6058         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6059         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6060
6061 2013-09-10  Allan McRae  <allan@archlinux.org>
6062
6063         [BZ #15748]
6064         * manual/arith.texi (Parsing of Floats): Clarify
6065         cross-reference.
6066
6067         [BZ #15849]
6068         * manual/install.texi (Running make install): Mention
6069         --enable-pt-chown.
6070         * INSTALL: Regenerated.
6071
6072 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
6073
6074         * csu/init-first.c (_init): Remove the !SHARED condition around
6075         FPU control word initialization.
6076         * elf/dl-support.c (_dl_fpu_control): New variable.
6077         (_dl_aux_init) <AT_FPUCW>: Initialize it.
6078         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
6079         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
6080         * math/test-fpucw-static.c: New file.
6081         * math/test-fpucw-ieee.c: New file.
6082         * math/test-fpucw-ieee-static.c: New file.
6083         * math/Makefile (tests): Add `test-fpucw-ieee' and
6084         `$(tests-static)'.
6085         (tests-static): New variable.
6086         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
6087         dependency to...
6088         [($(build-shared),yes)]
6089         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
6090         ... this.
6091         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
6092         New dependency.
6093
6094 2013-09-09  Allan McRae  <allan@archlinux.org>
6095
6096         [BZ #15939]
6097         * manual/string.texi (Collation Functions): Fix typo in
6098         strcoll example.
6099         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
6100
6101         [BZ #15893]
6102         * stdlib/isomac.c (get_null_defines): Fix memory leak.
6103
6104         [BZ #15892]
6105         * libio/memstream.c (open_memstream): Fix memory leak.
6106         * libio/wmemstream.c (open_wmemstream): Likewise.
6107
6108         [BZ #15895]
6109         * nscd/netgroupcache.c: Fix nesting of ifdefs.
6110
6111 2013-09-09  Will Newton  <will.newton@linaro.org>
6112
6113         * malloc/Makefile: Add tst-realloc to tests.
6114         * malloc/tst-realloc.c: New file.
6115
6116 2013-09-09  Allan McRae  <allan@archlinux.org>
6117
6118         [BZ #15844]
6119         * COPYING: Update from GNU website to fix FSF address.
6120         * COPYING.LIB: Likewise.
6121
6122 2013-09-06  David S. Miller  <davem@davemloft.net>
6123
6124         * po/zh_TW.po: Update Chinese (traditional) translation from
6125         translation project.
6126
6127 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
6128             Joseph Myers  <joseph@codesourcery.com>
6129
6130         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
6131         "localeinfo.h".
6132         (obstack_chunk_alloc): New macro.
6133         (obstack_chunk_free): Likewise.
6134         (record_offset): New function.
6135         (init_locale_data): Likewise.
6136         (align_locale_data): Likewise.
6137         (add_locale_empty): Likewise.
6138         (add_locale_raw_data): Likewise.
6139         (add_locale_raw_obstack): Likewise.
6140         (add_locale_string): Likewise.
6141         (add_locale_wstring): Likewise.
6142         (add_locale_uint32): Likewise.
6143         (add_locale_uint32_array): Likewise.
6144         (add_locale_char): Likewise.
6145         (start_locale_structure): Likewise.
6146         (end_locale_structure): Likewise.
6147         (start_locale_prelude): Likewise.
6148         (end_locale_prelude): Likewise.
6149         (write_locale_data): Take locale_file structure rather than an
6150         iovec.
6151         * locale/programs/locfile.h: Include "obstack.h".
6152         (struct locale_file): Change to store locale file contents instead
6153         of header.
6154         (init_locale_data): New prototype.
6155         (align_locale_data): Likewise.
6156         (add_locale_empty): Likewise.
6157         (add_locale_raw_data): Likewise.
6158         (add_locale_raw_obstack): Likewise.
6159         (add_locale_string): Likewise.
6160         (add_locale_wstring): Likewise.
6161         (add_locale_uint32): Likewise.
6162         (add_locale_uint32_array): Likewise.
6163         (add_locale_char): Likewise.
6164         (start_locale_structure): Likewise.
6165         (end_locale_structure): Likewise.
6166         (start_locale_prelude): Likewise.
6167         (end_locale_prelude): Likewise.
6168         (write_locale_data): Update prototype.
6169         * locale/programs/3level.h (struct TABLE): Remove result field.
6170         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
6171         Use new locale_file interface.
6172         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
6173         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
6174         * locale/programs/ld-address.c (address_output): Use new
6175         locale_file interface.
6176         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
6177         NO_ADD_LOCALE.
6178         (collate_finish): Don't call collseq_table_finalize.
6179         (collate_output): Use new locale_file interface.
6180         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
6181         in file.
6182         (NO_FINALIZE): Change to NO_ADD_LOCALE.
6183         (TABLE): Move defines earlier in file.
6184         (ELEMENT): Likewise.
6185         (DEFAULT): Likewise.
6186         (wctrans_table_add): Move macro and inline function earlier in
6187         file.
6188         (struct wctype_table): Move type earlier in file.
6189         (add_locale_wctype_table): New static prototype.
6190         (struct locale_ctype_t): Use logical types instead of struct iovec
6191         pointers for members.
6192         (ctype_output): Use new locale_file interface.
6193         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
6194         new locale_file interface.
6195         (allocate_arrays): Update for use of new locale_file interface.
6196         * locale/programs/ld-identification.c (identification_output): Use
6197         new locale_file interface.
6198         * locale/programs/ld-measurement.c (measurement_output): Likewise.
6199         * locale/programs/ld-messages.c (messages_output): Likewise.
6200         * locale/programs/ld-monetary.c (monetary_output): Likewise.
6201         * locale/programs/ld-name.c (name_output): Likewise.
6202         * locale/programs/ld-numeric.c (numeric_output): Likewise.
6203         * locale/programs/ld-paper.c (paper_output): Likewise.
6204         * locale/programs/ld-telephone.c (telephone_output): Likewise.
6205         * locale/programs/ld-time.c (time_output): Likewise.
6206
6207 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6208
6209         * benchtests/Makefile: Add memrchr benchmark.
6210         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
6211         benchmark as memrchr.
6212         * benchtests/bench-memrchr-ifunc.c: New file.
6213         * benchtests/bench-memrchr.c: New file.
6214
6215 2013-09-06   Will Newton  <will.newton@linaro.org>
6216
6217         * benchtests/Makefile (string-bench): Add memcpy.
6218
6219 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
6220             Cong Wang  <amwang@redhat.com>
6221
6222         [BZ #15850]
6223         * sysdeps/unix/sysv/linux/bits/in.h
6224         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
6225         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
6226         before __USE_KERNEL_IPV6_DEFS uses.
6227         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
6228         IPPROTO_BEETPH.
6229         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
6230         sockaddr_in6, or ipv6_mreq.
6231
6232 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6233
6234         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
6235         memory access for final bytes in some large inputs.
6236         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
6237
6238 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6239
6240         * string/test-memrchr.c: New file.
6241         * string/test-memrchr-ifunc.c: New file.
6242         * string/Makefile: Add new memrchr testcase.
6243
6244 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
6245
6246         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
6247         fanotify_init returns EPERM.
6248
6249 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6250
6251         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
6252         errors.
6253         (top level): Treat second token from macro or constant entries for
6254         allowed headers as allowed.
6255         * include/complex.h: Condition internal declarations on
6256         [!_ISOMAC].
6257         * include/fenv.h: Condition include of <stdbool.h> and internal
6258         declarations on [!_ISOMAC].
6259
6260 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
6261
6262         [BZ #15923]
6263         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
6264
6265 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
6266
6267         * configure.in (--enable-versioning): Remove configure option.
6268         (libc_cv_asm_symver_directive): Remove configure test.
6269         (libc_cv_ld_version_script_option): Likewise.
6270         (VERSIONING): Remove variable and AC_SUBST.
6271         (DO_VERSIONING): Remove AC_DEFINE.
6272         * configure: Regenerated.
6273         * config.h.in (DO_VERSIONING): Remove macro.
6274         * Makerules [$(versioning) = yes]: Change conditionals to
6275         [$(build-shared) = yes].
6276         * config.make.in (versioning): Remove variable.
6277         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
6278         [$(build-shared) = yes].
6279         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
6280         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
6281         * elf/Makefile [$(versioning) = yes]: Change conditionals to
6282         [$(build-shared) = yes].
6283         * extra-lib.mk [$(versioning) = yes]: Likewise.
6284         * hurd/Makefile [$(versioning) = yes]: Likewise.
6285         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
6286         [SHARED].
6287         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
6288         [SHARED].
6289         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6290         [SHARED && !NO_HIDDEN].
6291         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
6292         [SHARED].
6293         [SHARED && DO_VERSIONING]: Likewise..
6294         * libio/Makefile [$(versioning) = yes]: Change conditionals to
6295         [$(build-shared) = yes].
6296         * manual/install.texi (--disable-versioning): Remove
6297         documentation.
6298         * INSTALL: Regenerated.
6299         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
6300         to [SHARED].
6301         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
6302         [$(build-shared) = yes].
6303         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
6304         * sysdeps/i386/i686/multiarch/strstr-c.c
6305         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
6306         [SHARED && !NO_HIDDEN].
6307         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
6308         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
6309         * sysdeps/powerpc/powerpc32/dl-machine.c
6310         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
6311         * sysdeps/powerpc/powerpc32/sysdep.h
6312         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
6313         to [SHARED && PIC && !NO_HIDDEN].
6314         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
6315         conditional to [SHARED].
6316
6317 2013-09-04   Will Newton  <will.newton@linaro.org>
6318
6319         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
6320         * benchtests/bench-string.h: Include bench-timing.h instead
6321         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
6322         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
6323         call to HP_TIMING_DIFF_INIT.
6324         * benchtests/bench-memccpy.c: Use bench-timing.h macros
6325         instead of hp-timing.h macros.
6326         * benchtests/bench-memchr.c: Likewise.
6327         * benchtests/bench-memcmp.c: Likewise.
6328         * benchtests/bench-memcpy.c: Likewise.
6329         * benchtests/bench-memmem.c: Likewise.
6330         * benchtests/bench-memmove.c: Likewise.
6331         * benchtests/bench-memset.c: Likewise.
6332         * benchtests/bench-rawmemchr.c: Likewise.
6333         * benchtests/bench-strcasecmp.c: Likewise.
6334         * benchtests/bench-strcasestr.c: Likewise.
6335         * benchtests/bench-strcat.c: Likewise.
6336         * benchtests/bench-strchr.c: Likewise.
6337         * benchtests/bench-strcmp.c: Likewise.
6338         * benchtests/bench-strcpy.c: Likewise.
6339         * benchtests/bench-strcpy_chk.c: Likewise.
6340         * benchtests/bench-strlen.c: Likewise.
6341         * benchtests/bench-strncasecmp.c: Likewise.
6342         * benchtests/bench-strncat.c: Likewise.
6343         * benchtests/bench-strncmp.c: Likewise.
6344         * benchtests/bench-strncpy.c: Likewise.
6345         * benchtests/bench-strnlen.c: Likewise.
6346         * benchtests/bench-strpbrk.c: Likewise.
6347         * benchtests/bench-strrchr.c: Likewise.
6348         * benchtests/bench-strspn.c: Likewise.
6349         * benchtests/bench-strstr.c: Likewise.
6350
6351 2013-09-04  Will Newton  <will.newton@linaro.org>
6352
6353         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
6354
6355 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
6356
6357         [BZ #15427]
6358         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
6359         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
6360         * math/libm-test.inc (lgamma_test_data): Add more tests.
6361         * sysdeps/i386/fpu/libm-test-ulps: Update.
6362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6363
6364 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
6365
6366         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
6367         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6368         Add ifunc.
6369         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6370         Add strcmp-sse2-unaligned
6371         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
6372
6373 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6374
6375         * Versions.def (libc): Add GLIBC_2.19.
6376
6377 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
6378
6379         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
6380         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
6381
6382 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
6383
6384         [BZ #14155]
6385         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
6386         intermediate calculations in recurrence.
6387         (__ieee754_ynf): Likewise.
6388         * math/libm-test.inc (jn_test_data): Do not allow spurious
6389         underflow exception.  Add more tests.
6390         (yn_test_data): Add more tests.
6391         * sysdeps/i386/fpu/libm-test-ulps: Update.
6392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6393
6394 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
6395
6396         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
6397
6398 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6399
6400         * csu/init-first.c: Fix then/than typos.
6401         * locale/programs/ld-collate.c: Likewise.
6402         * locale/programs/linereader.h: Likewise.
6403         * manual/charset.texi: Likewise.
6404         * manual/filesys.texi: Likewise.
6405         * manual/stdio.texi: Likewise.
6406         * manual/string.texi: Likewise.
6407         * stdlib/fmtmsg.c: Likewise.
6408         * sysdeps/i386/stpncpy.S: Likewise.
6409         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6410         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
6411         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6412         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6413
6414 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
6415
6416         * elf/dl-open.c: Fix typos.
6417         * iconvdata/gbbig5.c: Likewise.
6418         * iconvdata/iso-2022-jp.c: Likewise.
6419         * iconv/gconv_int.h: Likewise.
6420         * iconv/loop.c: Likewise.
6421         * nis/rpcsvc/nis.h: Likewise.
6422         * resolv/ns_name.c: Likewise.
6423         * stdio-common/vfscanf.c: Likewise.
6424         * streams/stropts.h: Likewise.
6425         * sunrpc/rpc_thread.c: Likewise.
6426         * sysdeps/i386/strpbrk.S: Likewise.
6427         * sysdeps/ieee754/k_standard.c: Likewise.
6428         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6429         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6430         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6431         * sysdeps/mach/hurd/profil.c: Likewise.
6432         * sysdeps/s390/dl-procinfo.h: Likewise.
6433         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6434         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
6435         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6436         * sysdeps/x86_64/dl-trampoline.S: Likewise.
6437         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6438
6439 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
6440
6441         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
6442         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
6443
6444 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
6445
6446         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
6447         aix specific files.
6448         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
6449         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
6450         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
6451         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
6452         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
6453         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
6454         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
6455         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
6456
6457 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6458             Roland McGrath  <roland@hack.frob.com>
6459
6460         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
6461         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6462
6463 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6464
6465         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
6466         __executable_start symbol instead of _start.
6467
6468 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
6469
6470         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
6471         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
6472         Move macros to...
6473         * sysdeps/gnu/ldsodefs.h: ... this new file.
6474
6475         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
6476         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
6477         instead of ELFOSABI_LINUX.
6478
6479         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
6480         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
6481         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
6482         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
6483         Likewise.
6484         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
6485         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
6486         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
6487         Likewise.
6488         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
6489         (ibm_extended_long_double): Add ieee_nan member.
6490         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
6491         (do_test): New function.
6492
6493         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
6494         TEST_TRUNC.
6495         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
6496         functions, renamed from truncdfsf_test, trunctfsf_test,
6497         trunctfdf_test.
6498         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
6499         functions.
6500         (do_test): Run all these.
6501
6502 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
6503
6504         * argp/argp-help.c: Fix typos.
6505         * argp/argp-parse.c: Likewise.
6506         * debug/backtracesyms.c: Likewise.
6507         * elf/elf.h: Likewise.
6508         * malloc/malloc.c: Likewise.
6509         * nis/nis_print.c: Likewise.
6510         * resolv/res_comp.c: Likewise.
6511         * stdlib/stdlib.h: Likewise.
6512         * sunrpc/clnt_tcp.c: Likewise.
6513         * sunrpc/clnt_udp.c: Likewise.
6514         * sunrpc/clnt_unix.c: Likewise.
6515         * sysdeps/unix/bsd/ptsname.c: Likewise.
6516         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6517         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
6518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
6519         Likewise.
6520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
6521         Likewise.
6522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
6523         Likewise.
6524         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
6525
6526 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6527
6528         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
6529         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6530
6531 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
6532
6533         [BZ #15897]
6534         * dlfcn/Makefile (tests): Add bug-dl-leaf.
6535         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
6536         ($(objpfx)bug-dl-leaf): New rule.
6537         ($(objpfx)bug-dl-leaf.so): Likewise.
6538         ($(objpfx)bug-dl-leaf.out): Likewise.
6539         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
6540         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
6541         * dlfcn/bug-dl-leaf.c: New test.
6542         * dlfcn/bug-dl-leaf-lib.c: Likewise.
6543         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
6544         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
6545         (dlclose): Likewise.
6546         (dlmopen): Likewise.
6547
6548 2013-08-27  Roland McGrath  <roland@hack.frob.com>
6549
6550         * include/netdb.h [!_ISOMAC]:
6551         Don't include <tls.h>.
6552         (h_errno, __libc_h_errno): Move declaration and macros out of
6553         [_LIBC_REENTRANT].
6554
6555         * include/resolv.h [_RESOLV_H_]:
6556         Don't include <tls.h>.
6557         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
6558         * resolv/res_libc.c: Don't include <tls.h>.
6559         (_res): Use __attribute__ ((nocommon)) in place of
6560         __attribute__ ((section (".bss"))).
6561
6562         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
6563         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
6564
6565         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
6566
6567         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
6568         only under [SIOCGIFCONF && SIOCGIFNETMASK].
6569
6570         * resolv/res_mkquery.c: Include <sys/time.h>.
6571
6572         * inet/ifreq.c: Moved to ...
6573         * sysdeps/unix/ifreq.c: ... here.
6574         * inet/ifreq.c: New file, true stub version.
6575
6576         * socket/sa_len.c: New file.
6577         * socket/Makefile (aux): Add it.
6578         * sysdeps/unix/sysv/linux/Makefile
6579         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
6580         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
6581         and #include <socket/sa_len.c>.
6582         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
6583         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
6584
6585         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
6586         * bits/socket.h: ... here.
6587
6588         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
6589         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
6590         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
6591
6592 2013-08-27  Andreas Schwab  <schwab@suse.de>
6593
6594         [BZ #15736]
6595         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
6596         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
6597         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
6598         * string/test-strcasecmp.c (test_main): Run tests in several
6599         locales.
6600         * string/test-strncasecmp.c (test_main): Likewise.
6601
6602         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
6603         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
6604         to __strcasecmp_nonascii and __strncasecmp_nonascii.
6605         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
6606         (__strncasecmp_ssse3) [PIC]: Likewise.
6607
6608 2013-08-26  Roland McGrath  <roland@hack.frob.com>
6609
6610         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
6611
6612         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
6613         instead of explicitly declaring xdecrypt.
6614         * nis/nss_nis/nis-publickey.c: Likewise.
6615
6616 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6617
6618         [BZ #15890]
6619         * nscd/aicache.c: Include res_hconf.h.
6620         (addhstaiX): Initialize res_hconf.
6621
6622 2013-08-26  Andreas Schwab  <schwab@suse.de>
6623
6624         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
6625         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
6626
6627 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6628
6629         * nscd/aicache.c (addhstaiX): Fix indentation.
6630
6631 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
6632
6633         * configure.ac: Quote $build_pt_chown test.
6634         * configure: Regenerated.
6635
6636 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
6637
6638         [BZ #15532]
6639         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
6640         * math/s_cexpf.c (__cexpf): Likewise.
6641         * math/s_cexpl.c (__cexpl): Likewise.
6642         * math/libm-test.inc (cexp_test_data): Correct expected return
6643         value for NaN + i0.  Add another test.
6644
6645 2013-08-22  David S. Miller  <davem@davemloft.net>
6646
6647         * po/ca.po: Update Catalan translation from translation project.
6648         * po/uk.po: Add Ukrainian translations from translation project.
6649
6650 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
6651
6652         [BZ #15797]
6653         * math/s_fdim.c (__fdim): Check for infinite arguments if result
6654         is infinite, not alongside NaN test.
6655         * math/s_fdimf.c (__fdimf): Likewise.
6656         * math/s_fdiml.c (__fdiml): Likewise.
6657         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
6658         errno is unchanged.
6659
6660 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
6661
6662         * argp/argp-help.c: Fix typos.
6663         * crypt/speeds.c: Likewise.
6664         * csu/check_fds.c: Likewise.
6665         * elf/dl-load.c: Likewise.
6666         * elf/dl-open.c: Likewise.
6667         * elf/reldep3.c: Likewise.
6668         * elf/reldep.c: Likewise.
6669         * elf/sprof.c: Likewise.
6670         * iconv/iconv_charmap.c: Likewise.
6671         * iconv/skeleton.c: Likewise.
6672         * iconv/strtab.c: Likewise.
6673         * io/lockf64.c: Likewise.
6674         * libio/libioP.h: Likewise.
6675         * resolv/gai_notify.c: Likewise.
6676         * resolv/ns_name.c: Likewise.
6677         * resolv/ns_samedomain.c: Likewise.
6678         * resolv/res_send.c: Likewise.
6679         * stdlib/random.c: Likewise.
6680         * sunrpc/rpc/xdr.h: Likewise.
6681         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
6682         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
6683         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6684         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6685         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6686         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
6687         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
6688         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6689         * sysdeps/mach/hurd/check_fds.c: Likewise.
6690         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
6691         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
6692         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6693         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
6694         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
6695         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
6696         * sysdeps/pthread/aio_notify.c: Likewise.
6697         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6698         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
6699         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
6700         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6701         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
6702
6703 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6704
6705         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
6706         version if bit_Slow_SSE4_2 is set.
6707         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6708         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6709
6710 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6711
6712         [BZ #15867]
6713         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
6714         trampoline stack frame information.
6715         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
6716         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
6717         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
6718         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
6719         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
6720         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6721         (_libc_vdso_platform_setup): Initialize the signal trampolines.
6722         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
6723         sa_flags value.
6724         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
6725         interrupting a syscall and set with option SA_SIGINFO.
6726
6727 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6728
6729         [BZ #15531]
6730         * math/s_cproj.c (__cproj): Only return an infinity if one part of
6731         argument is infinite.
6732         * math/s_cprojf.c (__cprojf): Likewise.
6733         * math/s_cprojl.c (__cprojl): Likewise.
6734         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
6735         * math/libm-test.inc (cproj_test_data): Add more tests.
6736
6737         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
6738
6739         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
6740         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
6741         size.  Use __ffs to determine corresponding shift.
6742
6743 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
6744             Roland McGrath  <roland@hack.frob.com>
6745
6746         * Makefile (INSTALL): Remove trailing blank lines from output of
6747         makeinfo.
6748
6749 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6750
6751         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
6752         Align 32 bit compat elf_greg to 8 bytes.
6753
6754 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6755
6756         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
6757
6758 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6759
6760         * string/strcoll_l.c (coll_seq): New structure.
6761         (get_next_seq_cached): New function.
6762         (get_next_seq): New function.
6763         (do_compare): New function.
6764         (STRCOLL): Use GNU style definition.  Simplify implementation
6765         by using get_next_seq, get_next_seq_cached and do_compare.
6766
6767 2013-08-16  Florian Weimer  <fweimer@redhat.com>
6768
6769         [BZ #14699]
6770         CVE-2013-4237
6771         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
6772         member.
6773         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
6774         member.
6775         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
6776         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
6777         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
6778         conditional.
6779         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
6780         GETDENTS_64BIT_ALIGNED.
6781         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6782         * manual/filesys.texi (Reading/Closing Directory): Document
6783         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
6784         strongly.
6785         * manual/conf.texi (Limits for Files): Add portability note to
6786         NAME_MAX, PATH_MAX.
6787         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
6788
6789 2013-08-13  Andreas Schwab  <schwab@suse.de>
6790
6791         [BZ #15749]
6792         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
6793         of fabs.
6794         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
6795         LDBL_MAX_EXP >= 16384]: Add tests for it.
6796
6797 2013-08-12  David S. Miller  <davem@davemloft.net>
6798
6799         * version.h (RELEASE): Set to "development".
6800         (VERSION): Set to "2.18.90".
6801         * NEWS: Add 2.19 section.
6802
6803 2013-08-03  David S. Miller  <davem@davemloft.net>
6804
6805         * po/ko.po: Update Korean translation from translation project.
6806
6807 2013-08-01  David S. Miller  <davem@davemloft.net>
6808
6809         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
6810         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
6811         Bilka.
6812
6813 2013-07-30  David S. Miller  <davem@davemloft.net>
6814
6815         * po/fr.po: Update French translation from translation project.
6816
6817 2013-07-28  David S. Miller  <davem@davemloft.net>
6818
6819         * po/cs.po: Update Czech translation from translation project.
6820
6821         * po/sv.po: Update Swedish translation from translation project.
6822
6823 2013-07-27  David S. Miller  <davem@davemloft.net>
6824
6825         * po/eo.po: Update Esperanto translation from translation project.
6826
6827         * po/vi.po: Update Vietnamese translation from translation project.
6828
6829         * po/de.po: Update German translation from translation project.
6830
6831 2013-07-26  David S. Miller  <davem@davemloft.net>
6832
6833         * po/bg.po: Update Bulgarian translation from translation project.
6834
6835         * po/nl.po: Update Dutch translation from translation project.
6836         * po/pl.po: Update Polish translation from translation project.
6837         * po/ru.po: Update Russian translation from translation project.
6838
6839 2013-07-24  David S. Miller  <davem@davemloft.net>
6840
6841         * po/libc.pot: Update.
6842
6843 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6844
6845         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
6846         variable page size.
6847         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
6848         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
6849         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
6850
6851 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6852
6853         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
6854
6855 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6856             Andreas Schwab  <schwab@suse.de>
6857             Roland McGrath  <roland@hack.frob.com>
6858             Joseph Myers  <joseph@codesourcery.com>
6859             Carlos O'Donell  <carlos@redhat.com>
6860
6861         [BZ #15755]
6862         * config.h.in: Define HAVE_PT_CHOWN.
6863         * config.make.in (build-pt-chown): New variable.
6864         * configure.in (--enable-pt_chown): New configure option.
6865         * configure: Regenerate.
6866         * login/Makefile: Include Makeconfig.  Build pt_chown only if
6867         build-pt-chown is enabled.
6868         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
6869         pt_chown to fix pty ownership.
6870         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
6871         CLOSE_ALL_FDS.
6872         * manual/install.texi (Configuring and compiling): Mention
6873         --enable-pt_chown. Add @findex for grantpt.
6874         * INSTALL: Regenerate.
6875
6876 2013-07-20  David S. Miller  <davem@davemloft.net>
6877
6878         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
6879         difference between 32-bit and 64-bit.
6880
6881 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
6882
6883         [BZ #15711]
6884         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
6885         Avoid system header dependency with -ffreestanding.
6886         ($(objpfx)bits/syscall%d): Likewise.
6887
6888 2013-07-13  David S. Miller  <davem@davemloft.net>
6889
6890         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
6891         underflows from atanl/atan2l due to bug 15319.
6892         (casinh_test_data): Likewise.
6893
6894 2013-07-07  David S. Miller  <davem@davemloft.net>
6895
6896         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
6897
6898 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
6899
6900         * sysdeps/i386/fpu/libm-test-ulps: Update.
6901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6902
6903 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6904
6905         * configure.in (--enable-lock-elision): Fix message text.
6906         * INSTALL: Regenerate.
6907         * configure: Regenerate.
6908
6909 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6910
6911         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6912
6913 2013-07-03  Andreas Jaeger  <aj@suse.de>
6914
6915         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
6916         define.
6917         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
6918         (ptrace_peeksiginfo_args): Add.
6919         (__ptrace_peeksiginfo_flags): Add.
6920         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6921         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6922         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6923
6924 2013-07-03  Allan McRae  <allan@archlinux.org>
6925
6926         * sysdeps/i386/fpu/libm-test-ulps: Update.
6927
6928 2013-07-02  David S. Miller  <davem@davemloft.net>
6929
6930         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6931
6932 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
6933
6934         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6935
6936 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6937
6938         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6940
6941 2013-07-02  Andi Kleen <ak@linux.intel.com>
6942
6943         * config.h.in (ENABLE_LOCK_ELISION): Add.
6944         * configure.in (--enable-lock-elision): Add option.
6945         * manual/install.texi: Document --enable lock elision.
6946         * configure: Regenerate
6947         * INSTALL: Regenerate.
6948
6949 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
6950
6951         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
6952         SSE4.2 strcasecmp for libc.a.
6953         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
6954
6955 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
6956
6957         [BZ #13304]
6958         * soft-fp/op-common.h (_FP_FMA): New macro.
6959         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
6960         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
6961         (_FP_MUL_MEAT_1_imm): ... here.
6962         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
6963         (_FP_MUL_MEAT_1_wide): ... here.
6964         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
6965         (_FP_MUL_MEAT_1_hard): ... here.
6966         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
6967         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
6968         (_FP_MUL_MEAT_2_wide): ... here.
6969         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
6970         (_FP_MUL_MEAT_2_wide_3mul): ... here.
6971         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
6972         (_FP_MUL_MEAT_2_gmp): ... here.
6973         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
6974         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
6975         (_FP_MUL_MEAT_4_wide): ... here.
6976         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
6977         (_FP_MUL_MEAT_4_gmp): ... here.
6978         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
6979         (_FP_WFRACBITS_DW_S): Likewise.
6980         (_FP_WFRACXBITS_DW_S): Likewise.
6981         (_FP_HIGHBIT_DW_S): Likewise.
6982         (FP_FMA_S): Likewise.
6983         (_FP_FRAC_HIGH_DW_S): Likewise.
6984         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
6985         (_FP_WFRACBITS_DW_D): Likewise.
6986         (_FP_WFRACXBITS_DW_D): Likewise.
6987         (_FP_HIGHBIT_DW_D): Likewise.
6988         (FP_FMA_D): Likewise.
6989         (_FP_FRAC_HIGH_DW_D): Likewise.
6990         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
6991         (_FP_WFRACBITS_DW_E): Likewise.
6992         (_FP_WFRACXBITS_DW_E): Likewise.
6993         (_FP_HIGHBIT_DW_E): Likewise.
6994         (FP_FMA_E): Likewise.
6995         (_FP_FRAC_HIGH_DW_E): Likewise.
6996         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
6997         (_FP_WFRACBITS_DW_Q): Likewise.
6998         (_FP_WFRACXBITS_DW_Q): Likewise.
6999         (_FP_HIGHBIT_DW_Q): Likewise.
7000         (FP_FMA_Q): Likewise.
7001         (_FP_FRAC_HIGH_DW_Q): Likewise.
7002         * soft-fp/fmasf4.c: New file.
7003         * soft-fp/fmadf4.c: Likewise.
7004         * soft-fp/fmatf4.c: Likewise.
7005
7006 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7007
7008         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
7009         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
7010         Silvermont.
7011         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
7012         macro.
7013         (index_Slow_SSE4_2): Likewise.
7014         (index_Prefer_PMINUB_for_stringop): Likewise.
7015         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
7016         bit_Slow_SSE4_2 is set.
7017         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
7018         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7019
7020 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7021
7022         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
7023         rtld_global._dl_hwcap2.
7024         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
7025         POWER8.
7026         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
7027         POWER8 feature descriptions defined in _dl_hwcap2.
7028         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
7029         string handling for POWER8 feature bits.
7030         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
7031         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
7032         _dl_powerpc_cap_flags.
7033         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
7034         * sysdeps/powerpc/rtld-global-offsets.sym
7035         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
7036         _dl_hwcap2 in the rtld_global_ro structure.
7037
7038 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7039
7040         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
7041         hardware capabilities in support of AT_HWCAP2.
7042         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
7043         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
7044         GLRO(dl_hwcap2).
7045         (_dl_show_auxv): Add support for calling _dl_procinfo to display
7046         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
7047         explicitly the unknown a_type display mechanism is used.
7048         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
7049         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
7050         struct member.
7051         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
7052         to macro prototype for AT_HWCAP2 support.
7053         * sysdeps/i386/dl-procinfo.h: Likewise.
7054         * sysdeps/s390/dl-procinfo.h: Likewise.
7055         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
7056         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
7057         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
7058         return -1 for unknown a_type display fallback.
7059         * sysdeps/sparc/dl-procinfo.h: Likewise.
7060         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7061         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
7062
7063 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
7064
7065         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
7066         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
7067
7068 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
7069
7070         [BZ #12492]
7071         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
7072         mprotect making __stack_prot writable.
7073
7074 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7075             Joseph Myers  <joseph@codesourcery.com>
7076
7077         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
7078         as being properly aligned.
7079
7080 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
7081
7082         * dlfcn/modstatic5.c: New file.
7083         * dlfcn/tststatic5.c: New file.
7084         * dlfcn/Makefile (tests): Add tststatic5.
7085         (tests-static): Likewise.
7086         (modules-names): Add modstatic5.
7087         (tststatic5-ENV): New variable.
7088         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
7089
7090         [BZ #15022]
7091         * elf/dl-support.c (_dl_main_map): New variable.
7092         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
7093         (_dl_nns, _dl_load_adds): Set to 1.
7094         (_dl_initial_searchlist): Refer to _dl_main_map.
7095         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
7096         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
7097         call to _dl_get_origin.
7098         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
7099         around call_map.
7100         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
7101         * dlfcn/modstatic3.c: New file.
7102         * dlfcn/tststatic3.c: New file.
7103         * dlfcn/tststatic4.c: New file.
7104         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
7105         (tests-static): Likewise.
7106         (modules-names): Add modstatic3.
7107         (tststatic3-ENV, tststatic4-ENV): New variables.
7108         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
7109         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
7110
7111 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * configure.in (CC): Require GCC version 4.4 or later.
7114         * configure: Regenerated.
7115         * manual/install.texi (Tools for Compilation): Update GCC version
7116         requirement.
7117         * INSTALL: Regenerated.
7118
7119 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7120
7121         [BZ #15674]
7122         * string/test-memcmp.c (check2): New.
7123         (main): Call check2.
7124
7125         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
7126
7127 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
7128
7129         [BZ #15022]
7130         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
7131         over to...
7132         (dl_open_worker) [!SHARED]: ... here.
7133
7134 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7135
7136         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
7137
7138 2013-06-25  Richard Henderson  <rth@redhat.com>
7139
7140         * locale/programs/locarchive.c: Include <libc-internal.h>
7141
7142 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
7143
7144         * manual/texinfo.tex: Update to version 2013-06-21.17, with
7145         trailing whitespace removed.
7146
7147 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7148
7149         [BZ #10283]
7150         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
7151         * locale/programs/locarchive.c: Include libc-mmap.h.
7152         (prepare_address_space): Take two new outputs (the mmap base and len).
7153         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
7154         values.
7155         (create_archive): Declare new mmap base and len values for
7156         prepare_address_space, and store the result in ah.
7157         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
7158         (enlarge_archive): If ah->mmap_base is not NULL, use that and
7159         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7160         Declare new mmap base and len values for
7161         prepare_address_space, and store the result in new_ah.
7162         (open_archive): Declare new mmap base and len values for
7163         prepare_address_space, and store the result in ah.
7164         (close_archive): If ah->mmap_base is not NULL, use that and
7165         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
7166         * sysdeps/generic/libc-mmap.h: New file.
7167
7168 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
7169
7170         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
7171         (ALIGN_UP): Likewise.
7172         (PTR_ALIGN_DOWN): Likewise.
7173         (PTR_ALIGN_UP): Likewise.
7174
7175 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7176
7177         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
7178         entry mapped to PPC_PLATFORM_POWER8.
7179         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
7180         POWER8.
7181         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
7182         (_dl_string_platform): Add case for exporting platform position for
7183         POWER8.
7184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
7185         search path to sysdeps/powerpc/powerpc32/power8 directory.
7186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
7187         search path to sysdeps/powerpc/powerpc64/power8 directory.
7188         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
7189         power7 directories.
7190         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
7191         power7 directories.
7192
7193 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7194
7195         * INSTALL: Regenerate.
7196
7197         * nscd/connections.c (nscd_init): Fix comment.
7198
7199 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
7200
7201         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
7202
7203         [BZ #15667]
7204         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
7205         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
7206
7207 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7208
7209         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
7210         DL_DST_REQ_STATIC.
7211         (DL_DST_REQ_STATIC): Remove macro.
7212
7213 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
7214
7215         [BZ #7006]
7216         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
7217         with a shift of 0 bits.
7218
7219 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
7220
7221         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
7222         $(tststatic-ENV).
7223
7224 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7225
7226         [BZ #15655]
7227         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
7228
7229 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7230
7231         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
7232         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
7233         accepts -fno-tree-loop-distribute-patterns.
7234         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
7235         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
7236         recursive call.
7237         * string/memset.c (memset): Likewise.
7238         * string/test-memmove.c (simple_memmove): Disable loop transformation
7239         to library calls.
7240         * string/test-memset.c (simple_memset): Likewise.
7241         * benchtests/bench-memmove.c (simple_memmove): Likewise.
7242         * benchtests/bench-memset.c (simple_memset): Likewise.
7243         * configure: Regenerated.
7244
7245 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
7246
7247         * math/test-misc.c (main): Ignore fesetround failure when failures
7248         of subsequent rounding tests would be ignored.
7249
7250         [BZ #15654]
7251         * math/fedisblxcpt.c (fedisableexcept): Return 0.
7252         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
7253         * math/fegetenv.c (__fegetenv): Return 0.
7254         * math/fegetexcept.c (fegetexcept): Return 0.
7255         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
7256         FE_TONEAREST.
7257         * math/feholdexcpt.c (feholdexcept): Return 0.
7258         * math/fesetenv.c (__fesetenv): Return 0.
7259         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
7260         argument FE_TONEAREST.
7261         * math/feupdateenv.c (__feupdateenv): Return 0.
7262         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
7263
7264 2013-06-18  Roland McGrath  <roland@hack.frob.com>
7265
7266         * elf/rtld-Rules (rtld-compile-command.S): New variable.
7267         (rtld-compile-command.s, rtld-compile-command.c): New variables.
7268         ($(objpfx)rtld-%.os rules): Use them.
7269
7270 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7271
7272         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
7273         fields.
7274
7275 2013-06-17  Roland McGrath  <roland@hack.frob.com>
7276
7277         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
7278         length of target pattern, then descending length of dependency pattern.
7279         * configure.in (AWK): Require gawk 3.1.2 or newer.
7280         * manual/install.texi (Tools for Compilation): Say that we do.
7281         * configure: Regenerated.
7282
7283         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
7284         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
7285         * scripts/sysd-rules.awk: ... this new script.
7286         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
7287         than a glob-style pattern.
7288
7289 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
7290
7291         * math/test-misc.c (main): Do not treat incorrectly rounded
7292         conversions as failure unless ROUNDING_TESTS passes.
7293
7294 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
7295
7296         [BZ #15631]
7297         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
7298         restore exception state around main square root computation, then
7299         check for inexactness explicitly.
7300
7301         * math/libm-test.inc (fma_test_data): Add another test.
7302
7303 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7304
7305         * manual/threads.texi (Non-POSIX Extensions): New document
7306         node.  Document pthread_getattr_default_np and
7307         pthread_setattr_default_np.
7308
7309         * Versions.def (libpthread): Add GLIBC_2.18.
7310         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
7311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7312         Likewise.
7313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7314         Likewise.
7315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7316         Likewise.
7317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7318         Likewise.
7319         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
7320         Likewise.
7321         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7322         Likewise.
7323         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7324         Likewise.
7325         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7326         Likewise.
7327         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7328         Likewise.
7329
7330 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7331
7332         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7333         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
7334
7335 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7336             H.J. Lu  <hjl.tools@gmail.com>
7337
7338         [BZ #15627]
7339         * sysdeps/x86_64/rtld-memset.c: Remove file.
7340         * sysdeps/x86_64/rtld-memset.S: New file.
7341
7342 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
7343
7344         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
7345         (test_in_one_mode): Take arguments for whether the rounding mode
7346         is supported for each floating-point type.
7347         (do_test): Pass new arguments to test_in_one_mode using
7348         ROUNDING_TESTS.
7349
7350 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7351
7352         * posix/tst-waitid.c (do_test): Distinguish different instances of
7353         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
7354         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
7355         before entering the kernel for waitpid.
7356
7357 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7358
7359         * NEWS: Fix note on clock function precision.  Text by Roland
7360         McGrath.
7361
7362 2013-06-13  Roland McGrath  <roland@hack.frob.com>
7363
7364         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
7365         it into place only when and if the sanity check passes.
7366
7367 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
7368
7369         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
7370         output for whether conversion result is exact.  Take argument
7371         indicating whether type is IBM long double.
7372         (round_for_all): Change need_exact field to ibm_ld.
7373         * stdlib/tst-strtod-round.c (struct exactness): New type.
7374         (struct test): Change bool ld_ok field to struct exactness exact.
7375         (TEST): Update all definitions for change to field.
7376         (tests): Regenerate array contents.
7377         (test_in_one_mode): Take pointer to new field instead of old ld_ok
7378         field value.  Check for IBM long double here.
7379         (do_test): Update calls to test_in_one_mode.
7380
7381 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7382
7383         [BZ #12515]
7384         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
7385         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
7386
7387 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7388
7389         [BZ #15605]
7390         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
7391         generated by the compiler on loop optimizations.
7392         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
7393         general definitions.
7394
7395 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
7396
7397         * math/bug-nextafter.c: Include <math-tests.h>.
7398         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7399         the relevant type.
7400         * math/bug-nexttoward.c: Include <math-tests.h>.
7401         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7402         the relevant type.
7403         * math/test-misc.c: Include <math-tests.h>.
7404         (main): Only test for exceptions if EXCEPTION_TESTS is true for
7405         the relevant type.
7406
7407 2013-06-12  Andreas Jaeger  <aj@suse.de>
7408
7409         * po/ia.po: Update Interlingua translation from translation
7410         project.
7411
7412 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7413
7414         * include/fenv.h: Include stdbool.h.
7415         (struct rm_ctx): New structure.
7416         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
7417         Define macro.
7418         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
7419         (SET_RESTORE_ROUNDF): Likewise.
7420         (SET_RESTORE_ROUNDL): Likewise.
7421         (SET_RESTORE_ROUND_NOEX): Likewise.
7422         (SET_RESTORE_ROUND_NOEXF): Likewise.
7423         (SET_RESTORE_ROUND_NOEXL): Likewise.
7424         (SET_RESTORE_ROUND_53BIT): Likewise.
7425         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
7426         (libc_feresetround_noexf_ctx): Likewise.
7427         (libc_feresetround_noexl_ctx): Likewise.
7428         (libc_feholdsetround_53bit_ctx): Likewise.
7429         (libc_feresetround_53bit_ctx): Likewise.
7430         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
7431         (libc_feholdexcept_setround_sse_ctx): New function.
7432         (libc_fesetenv_sse_ctx): Likewise.
7433         (libc_feupdateenv_sse_ctx): Likewise.
7434         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
7435         (libc_feholdexcept_setround_387_ctx): Likewise.
7436         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
7437         (libc_feholdsetround_387_prec_ctx): Likewise.
7438         (libc_feholdsetround_387_ctx): Likewise.
7439         (libc_feholdsetround_387_53bit_ctx): Likewise.
7440         (libc_feholdsetround_sse_ctx): Likewise.
7441         (libc_feresetround_sse_ctx): Likewise.
7442         (libc_feresetround_387_ctx): Likewise.
7443         (libc_feupdateenv_387_ctx): Likewise.
7444         (libc_feholdexcept_setroundf_ctx): Define macro.
7445         (libc_fesetenvf_ctx): Likewise.
7446         (libc_feupdateenvf_ctx): Likewise.
7447         (libc_feholdsetroundf_ctx): Likewise.
7448         (libc_feresetroundf_ctx): Likewise.
7449         (libc_feholdexcept_setround_ctx): Likewise.
7450         (libc_fesetenv_ctx): Likewise.
7451         (libc_feupdateenv_ctx): Likewise.
7452         (libc_feholdsetround_ctx): Likewise.
7453         (libc_feresetround_ctx): Likewise.
7454         (libc_feholdexcept_setroundl_ctx): Likewise.
7455         (libc_feupdateenvl_ctx): Likewise.
7456         (libc_feholdsetroundl_ctx): Likewise.
7457         (libc_feresetroundl_ctx): Likewise.
7458         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
7459         (libc_feresetround_53bit_ctx): Likewise.
7460
7461 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7462
7463         * locale/iso-639.def: Convert to UTF-8.
7464
7465 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
7466
7467         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
7468         (EXCEPTION_TESTS_double): Likewise.
7469         (EXCEPTION_TESTS_long_double): Likewise.
7470         (EXCEPTION_TESTS): Likewise.
7471         * math/libm-test.inc (test_exceptions): Only test exceptions if
7472         EXCEPTION_TESTS (FLOAT).
7473
7474 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7475
7476         * benchtests/Makefile (string-bench): Add strcpy_chk and
7477         stpcpy_chk.
7478         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
7479         * benchtests/bench-stpcpy_chk.c: New file.
7480         * benchtests/bench-strcpy_chk-ifunc.c: New file.
7481         * benchtests/bench-strcpy_chk.c: New file.
7482         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
7483         code.
7484         (do_test): Likewise.
7485
7486 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7487
7488         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
7489         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
7490         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
7491         with tabs where appropriate.
7492         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
7493         dl-procinfo.h.
7494         [PPC_PLATFORM_PPC440]: Likewise.
7495         [PPC_PLATFORM_PPC464]: Likewise.
7496         [PPC_PLATFORM_PPC476]: Likewise.
7497         (_dl_string_platform): Add support for detecting ppc405, ppc440,
7498         ppc464, and ppc476 platform strings merging from ports/
7499         dl-procinfo.h.
7500
7501 2013-06-11  Andreas Schwab  <schwab@suse.de>
7502
7503         [BZ #14991]
7504         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
7505         (from_ucs4_idx): Regenerate.
7506         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
7507         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
7508         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
7509         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
7510         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
7511         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
7512         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
7513         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
7514         from FROM_LOOP and TO_LOOP specific macros.
7515         (BODY): Handle combining characters.
7516         * iconvdata/BIG5HKSCS.irreversible: Update.
7517         * iconvdata/BIG5HKSCS.precomposed: New file.
7518         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
7519         characters.
7520         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
7521
7522 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7523
7524         * include/sys/time.h: Fix indentation and add copyright header.
7525
7526         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
7527         (do_test): Likewise.
7528         * string/test-memchr.c (do_one_test): Likewise.
7529         (do_test): Likewise.
7530         * string/test-memcmp.c (do_one_test): Likewise.
7531         (do_test): Likewise.
7532         * string/test-memcpy.c (do_one_test): Likewise.
7533         (do_test): Likewise.
7534         * string/test-memmem.c (do_one_test): Likewise.
7535         (do_test): Likewise.
7536         (do_random_tests): Likewise.
7537         * string/test-memmove.c (do_one_test): Likewise.
7538         (do_test): Likewise.
7539         * string/test-memset.c (do_one_test): Likewise.
7540         (do_test): Likewise.
7541         * string/test-rawmemchr.c (do_one_test): Likewise.
7542         (do_test): Likewise.
7543         * string/test-strcasecmp.c (do_one_test): Likewise.
7544         (do_test): Likewise.
7545         * string/test-strcasestr.c (do_one_test): Likewise.
7546         (do_test): Likewise.
7547         * string/test-strcat.c (do_one_test): Likewise.
7548         (do_test): Likewise.
7549         * string/test-strchr.c (do_one_test): Likewise.
7550         (do_test): Likewise.
7551         * string/test-strcmp.c (do_one_test): Likewise.
7552         (do_test): Likewise.
7553         * string/test-strcpy.c (do_one_test): Likewise.
7554         (do_test): Likewise.
7555         * string/test-string.h: Likewise.
7556         (test_init): Likewise.
7557         * string/test-strlen.c (do_one_test): Likewise.
7558         (do_test): Likewise.
7559         * string/test-strncasecmp.c (do_one_test): Likewise.
7560         (do_test): Likewise.
7561         * string/test-strncat.c (do_one_test): Likewise.
7562         (do_test): Likewise.
7563         * string/test-strncmp.c (do_one_test): Likewise.
7564         (do_test_limit): Likewise.
7565         (do_test): Likewise.
7566         * string/test-strncpy.c (do_one_test): Likewise.
7567         (do_test): Likewise.
7568         * string/test-strnlen.c (do_one_test): Likewise.
7569         (do_test): Likewise.
7570         * string/test-strpbrk.c (do_one_test): Likewise.
7571         (do_test): Likewise.
7572         * string/test-strrchr.c (do_one_test): Likewise.
7573         (do_test): Likewise.
7574         * string/test-strspn.c (do_one_test): Likewise.
7575         (do_test): Likewise.
7576         * string/test-strstr.c (do_one_test): Likewise.
7577         (do_test): Likewise.
7578
7579         * benchtests/Makefile (string-bench): Add string benchmarks.
7580         * benchtests/bench-bcopy-ifunc.c: New file.
7581         * benchtests/bench-bcopy.c: New file.
7582         * benchtests/bench-bzero-ifunc.c: New file.
7583         * benchtests/bench-bzero.c: New file.
7584         * benchtests/bench-memccpy-ifunc.c: New file.
7585         * benchtests/bench-memccpy.c: New file.
7586         * benchtests/bench-memchr-ifunc.c: New file.
7587         * benchtests/bench-memchr.c: New file.
7588         * benchtests/bench-memcmp-ifunc.c: New file.
7589         * benchtests/bench-memcmp.c: New file.
7590         * benchtests/bench-memmem-ifunc.c: New file.
7591         * benchtests/bench-memmem.c: New file.
7592         * benchtests/bench-memmove-ifunc.c: New file.
7593         * benchtests/bench-memmove.c: New file.
7594         * benchtests/bench-mempcpy-ifunc.c: New file.
7595         * benchtests/bench-mempcpy.c: New file.
7596         * benchtests/bench-memset-ifunc.c: New file.
7597         * benchtests/bench-memset.c: New file.
7598         * benchtests/bench-rawmemchr-ifunc.c: New file.
7599         * benchtests/bench-rawmemchr.c: New file.
7600         * benchtests/bench-stpcpy-ifunc.c: New file.
7601         * benchtests/bench-stpcpy.c: New file.
7602         * benchtests/bench-stpncpy-ifunc.c: New file.
7603         * benchtests/bench-stpncpy.c: New file.
7604         * benchtests/bench-strcasecmp-ifunc.c: New file.
7605         * benchtests/bench-strcasecmp.c: New file.
7606         * benchtests/bench-strcasestr-ifunc.c: New file.
7607         * benchtests/bench-strcasestr.c: New file.
7608         * benchtests/bench-strcat-ifunc.c: New file.
7609         * benchtests/bench-strcat.c: New file.
7610         * benchtests/bench-strchr-ifunc.c: New file.
7611         * benchtests/bench-strchr.c: New file.
7612         * benchtests/bench-strchrnul-ifunc.c: New file.
7613         * benchtests/bench-strchrnul.c: New file.
7614         * benchtests/bench-strcmp-ifunc.c: New file.
7615         * benchtests/bench-strcmp.c: New file.
7616         * benchtests/bench-strcpy-ifunc.c: New file.
7617         * benchtests/bench-strcpy.c: New file.
7618         * benchtests/bench-strcspn-ifunc.c: New file.
7619         * benchtests/bench-strcspn.c: New file.
7620         * benchtests/bench-strlen-ifunc.c: New file.
7621         * benchtests/bench-strlen.c: New file.
7622         * benchtests/bench-strncasecmp-ifunc.c: New file.
7623         * benchtests/bench-strncasecmp.c: New file.
7624         * benchtests/bench-strncat-ifunc.c: New file.
7625         * benchtests/bench-strncat.c: New file.
7626         * benchtests/bench-strncmp-ifunc.c: New file.
7627         * benchtests/bench-strncmp.c: New file.
7628         * benchtests/bench-strncpy-ifunc.c: New file.
7629         * benchtests/bench-strncpy.c: New file.
7630         * benchtests/bench-strnlen-ifunc.c: New file.
7631         * benchtests/bench-strnlen.c: New file.
7632         * benchtests/bench-strpbrk-ifunc.c: New file.
7633         * benchtests/bench-strpbrk.c: New file.
7634         * benchtests/bench-strrchr-ifunc.c: New file.
7635         * benchtests/bench-strrchr.c: New file.
7636         * benchtests/bench-strspn-ifunc.c: New file.
7637         * benchtests/bench-strspn.c: New file.
7638         * benchtests/bench-strstr-ifunc.c: New file.
7639         * benchtests/bench-strstr.c: New file.
7640
7641         * benchtests/Makefile: Disable parallel execution of targets.
7642         (string-bench): Add memcpy.
7643         (benchset): New variable to store a list of benchmark sets.
7644         (bench-func): Renamed from bench.
7645         (bench-set): New target.
7646         (bench): Depend on bench-func and bench-set.
7647         * benchtests/README: Add section on benchmark sets.
7648         * benchtests/bench-memcpy-ifunc.c: New file.
7649         * benchtests/bench-memcpy.c: New file.
7650         * benchtests/bench-string.h: New file.
7651
7652 2013-06-11  Andreas Schwab  <schwab@suse.de>
7653
7654         [BZ #15577]
7655         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
7656         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
7657         values in the triple.
7658         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
7659         terminator in the group key.
7660
7661 2013-06-11  Andreas Jaeger  <aj@suse.de>
7662
7663         * po/zh_TW.po: Update Chinese (traditional) translation from
7664         translation project.
7665
7666 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7667
7668         * include/time.h (__clock_gettime): Add libc_hidden_proto.
7669         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
7670         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
7671         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7672         (clock_getcpuclockid): Likewise.
7673         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
7674         Add weak_alias and libc_hidden_def.
7675         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
7676         * rt/clock_gettime.c (clock_gettime): Rename to
7677         __clock_gettime.  Add weak_alias and libc_hidden_def.
7678         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
7679         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
7680         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
7681         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
7682         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
7683         Likewise.
7684         * rt/clock_settime.c (clock_settime): Rename to
7685         __clock_settime.  Add weak_alias and libc_hidden_def.
7686         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
7687
7688 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
7689
7690         * mach/err_boot.sub: Remove trailing whitespace.
7691         * mach/err_ipc.sub: Likewise.
7692         * mach/err_mach.sub: Likewise.
7693
7694         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
7695         (ROUNDING_TESTS_double): Likewise.
7696         (ROUNDING_TESTS_long_double): Likewise.
7697         (ROUNDING_TESTS): Likewise.
7698         * math/libm-test.inc: Include <math-tests.h>.
7699         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
7700         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
7701         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7702         (IF_ROUND_INIT_FE_UPWARD): Likewise.
7703
7704 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7705
7706         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
7707         of assigning.
7708
7709 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
7710
7711         * sysdeps/gnu/errlist.awk: Do not generate space at end of
7712         otherwise empty TRANS lines.
7713         * sysdeps/gnu/errlist.c: Regenerated.
7714
7715         * catgets/gencat.c (error_print): Use (void) in function
7716         definition.
7717         * crypt/crypt_util.c (__init_des): Likewise.
7718         * crypt/speeds.c (Stop): Likewise.
7719         (main): Likewise.
7720         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
7721         * inet/ruserpass.c (token): Likewise.
7722         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
7723         * intl/localealias.c (extend_alias_table): Likewise.
7724         * intl/plural-exp.c (init_germanic_plural): Likewise.
7725         * libio/fcloseall.c (__fcloseall): Likewise.
7726         * libio/genops.c (_IO_flush_all): Likewise.
7727         (_IO_flush_all_linebuffered): Likewise.
7728         (_IO_cleanup): Likewise.
7729         (_IO_iter_begin): Likewise.
7730         (_IO_iter_end): Likewise.
7731         (_IO_list_lock): Likewise.
7732         (_IO_list_unlock): Likewise.
7733         (_IO_list_resetlock): Likewise.
7734         * libio/getchar.c (getchar): Likewise.
7735         * libio/getchar_u.c (getchar_unlocked): Likewise.
7736         * libio/getwchar.c (getwchar): Likewise.
7737         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7738         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
7739         * login/getpt.c (__getpt): Likewise.
7740         * login/tst-utmp.c (main): Likewise.
7741         * malloc/hooks.c (__malloc_check_init): Likewise.
7742         * malloc/malloc.c (__malloc_stats): Likewise.
7743         * malloc/mtrace.c (tr_break): Likewise.
7744         (mtrace): Likewise.
7745         (muntrace): Likewise.
7746         * misc/fstab.c (endfsent): Likewise.
7747         * misc/getclktck.c (__getclktck): Likewise.
7748         * misc/getdtsz.c (__getdtablesize): Likewise.
7749         * misc/gethostid.c (gethostid): Likewise.
7750         * misc/getpagesize.c (__getpagesize): Likewise.
7751         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
7752         (__get_nprocs): Likewise.
7753         (__get_phys_pages): Likewise.
7754         (__get_avphys_pages): Likewise.
7755         * misc/getttyent.c (getttyent): Likewise.
7756         (setttyent): Likewise.
7757         (endttyent): Likewise.
7758         * misc/getusershell.c (getusershell): Likewise.
7759         (endusershell): Likewise.
7760         (setusershell): Likewise.
7761         (initshells): Likewise.
7762         * misc/hsearch.c (__hdestroy): Likewise.
7763         * misc/sync.c (sync): Likewise.
7764         * misc/syslog.c (closelog_internal): Likewise.
7765         (closelog): Likewise.
7766         * misc/ttyslot.c (ttyslot): Likewise.
7767         * misc/vhangup.c (vhangup): Likewise.
7768         * posix/fork.c (__fork): Likewise.
7769         * posix/getegid.c (__getegid): Likewise.
7770         * posix/geteuid.c (__geteuid): Likewise.
7771         * posix/getgid.c (__getgid): Likewise.
7772         * posix/getpid.c (__getpid): Likewise.
7773         * posix/getppid.c (__getppid): Likewise.
7774         * posix/getuid.c (__getuid): Likewise.
7775         * posix/pause.c (pause): Likewise.
7776         * posix/setpgrp.c (setpgrp): Likewise.
7777         * posix/setsid.c (__setsid): Likewise.
7778         * posix/test-vfork.c (noop): Likewise.
7779         * resolv/gethnamaddr.c (_endhtent): Likewise.
7780         (_gethtent): Likewise.
7781         (ht_endhostent): Likewise.
7782         (gethostent): Likewise.
7783         (dns_service): Likewise.
7784         * stdlib/drand48.c (drand48): Likewise.
7785         * stdlib/lrand48.c (lrand48): Likewise.
7786         * stdlib/mrand48.c (mrand48): Likewise.
7787         * stdlib/rand.c (rand): Likewise.
7788         * stdlib/random.c (__random): Likewise.
7789         * stdlib/setenv.c (clearenv): Likewise.
7790         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
7791         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
7792         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
7793         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
7794         (__get_nprocs): Likewise.
7795         (__get_phys_pages): Likewise.
7796         (__get_avphys_pages): Likewise.
7797         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
7798         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
7799         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
7800         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
7801         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
7802         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
7803         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
7804         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
7805         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
7806         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
7807         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
7808         * sysdeps/mach/hurd/sync.c (sync): Likewise.
7809         * sysdeps/posix/clock.c (clock): Likewise.
7810         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
7811         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
7812         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
7813         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7814         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
7815         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7816         (__get_nprocs_conf): Likewise.
7817         (__get_phys_pages): Likewise.
7818         (__get_avphys_pages): Likewise.
7819         * time/clock.c (clock): Likewise.
7820         * time/tzset.c (__tzname_max): Likewise.
7821
7822 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
7823
7824         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
7825         (__bswap_32): Do not use "register".
7826         * crypt/crypt.c (_ufc_doit_r): Likewise.
7827         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7828         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7829         * gmon/gmon.c (__monstartup): Likewise.
7830         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
7831         * hurd/hurdmalloc.c (more_memory): Likewise.
7832         (malloc): Likewise.
7833         (free): Likewise.
7834         (realloc): Likewise.
7835         (malloc_fork_prepare): Likewise.
7836         (malloc_fork_parent): Likewise.
7837         (malloc_fork_child): Likewise.
7838         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
7839         (_svcauth_des): Likewise.
7840         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7841         * inet/inet_net.c (inet_network): Likewise.
7842         * inet/inet_netof.c (inet_netof): Likewise.
7843         * inet/rcmd.c (__validuser2_sa): Likewise.
7844         * io/fts.c (fts_open): Likewise.
7845         (fts_load): Likewise.
7846         (fts_close): Likewise.
7847         (fts_read): Likewise.
7848         (fts_children): Likewise.
7849         (fts_build): Likewise.
7850         (fts_stat): Likewise.
7851         (fts_sort): Likewise.
7852         (fts_alloc): Likewise.
7853         (fts_lfree): Likewise.
7854         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
7855         (_IO_file_xsgetn): Likewise.
7856         (_IO_file_xsgetn_mmap): Likewise.
7857         * libio/iofopncook.c (_IO_cookie_read): Likewise.
7858         (_IO_cookie_write): Likewise.
7859         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
7860         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
7861         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
7862         * malloc/obstack.c (_obstack_begin): Likewise.
7863         (_obstack_begin_1): Likewise.
7864         (_obstack_newchunk): Likewise.
7865         (_obstack_allocated_p): Likewise.
7866         (obstack_free): Likewise.
7867         (_obstack_memory_used): Likewise.
7868         * misc/getttyent.c (getttynam): Likewise.
7869         (getttyent): Likewise.
7870         (skip): Likewise.
7871         (value): Likewise.
7872         * misc/getusershell.c (initshells): Likewise.
7873         * misc/syslog.c (__vsyslog_chk): Likewise.
7874         * misc/ttyslot.c (ttyslot): Likewise.
7875         * nis/nis_hash.c (__nis_hash): Likewise.
7876         * posix/fnmatch_loop.c (FCT): Likewise.
7877         * posix/getconf.c (print_all): Likewise.
7878         (main): Likewise.
7879         * posix/getopt.c (exchange): Likewise.
7880         * posix/glob.c (globfree): Likewise.
7881         (prefix_array): Likewise.
7882         (__glob_pattern_type): Likewise.
7883         * resolv/arpa/nameser.h (NS_GET16): Likewise.
7884         (NS_GET32): Likewise.
7885         (NS_PUT16): Likewise.
7886         (NS_PUT32): Likewise.
7887         * resolv/gethnamaddr.c (getanswer): Likewise.
7888         (gethostbyname2): Likewise.
7889         (gethostbyaddr): Likewise.
7890         (_gethtent): Likewise.
7891         (_gethtbyname2): Likewise.
7892         (_gethtbyaddr): Likewise.
7893         * resolv/ns_print.c (dst_s_get_int16): Likewise.
7894         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
7895         * resolv/res_init.c (__res_vinit): Likewise.
7896         (net_mask): Likewise.
7897         * resolv/res_mkquery.c (outchar): Likewise.
7898         (PRINT): Likewise.
7899         * stdio-common/printf_fp.c (outchar): Likewise.
7900         (PRINT): Likewise.
7901         * stdio-common/printf_fphex.c (outchar): Likewise.
7902         (PRINT): Likewise.
7903         * stdio-common/printf_size.c (outchar): Likewise.
7904         (PRINT): Likewise.
7905         * stdio-common/test_rdwr.c (main): Likewise.
7906         * stdio-common/tfformat.c (matches): Likewise.
7907         * stdio-common/vfprintf.c (outchar): Likewise.
7908         (printf_unknown): Likewise.
7909         (buffered_vfprintf): Likewise.
7910         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7911         * stdio-common/xbug.c (AppendToBuffer): Likewise.
7912         (ReadFile): Likewise.
7913         * stdlib/qsort.c (SWAP): Likewise.
7914         (_quicksort): Likewise.
7915         * stdlib/setenv.c (__add_to_environ): Likewise.
7916         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7917         * stdlib/strtol_l.c (__strtol_l): Likewise.
7918         * stdlib/tst-strtod.c (main): Likewise.
7919         * stdlib/tst-strtol.c (main): Likewise.
7920         * stdlib/tst-strtoll.c (main): Likewise.
7921         * string/bits/string2.h (__strcmp_cc): Likewise.
7922         (__strcmp_cg): Likewise.
7923         (__strcspn_c1): Likewise.
7924         (__strcspn_c2): Likewise.
7925         (__strcspn_c3): Likewise.
7926         (__strspn_c1): Likewise.
7927         (__strspn_c2): Likewise.
7928         (__strspn_c3): Likewise.
7929         (__strsep_1c): Likewise.
7930         (__strsep_2c): Likewise.
7931         (__strsep_3c): Likewise.
7932         * string/memccpy.c (__memccpy): Likewise.
7933         * string/stpcpy.c (__stpcpy): Likewise.
7934         * string/strcmp.c (strcmp): Likewise.
7935         * string/strrchr.c (strrchr): Likewise.
7936         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
7937         Likewise.
7938         * sysdeps/mach/hurd/getcwd.c
7939         (_hurd_canonicalize_directory_name_internal): Likewise.
7940         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
7941         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
7942         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
7943         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
7944         Likewise, in both definitions.
7945         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
7946         definitions.
7947         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
7948         64] (__bswap_64): Likewise.
7949         * time/test_time.c (main): Likewise.
7950         * time/tzfile.c (__tzfile_read): Likewise.
7951         (__tzfile_compute): Likewise.
7952         * time/tzset.c (__tzset_parse_tz): Likewise.
7953         (tzset_internal): Likewise.
7954         (compute_change): Likewise.
7955         * wcsmbs/wcscat.c (__wcscat): Likewise.
7956         * wcsmbs/wcschr.c (wcschr): Likewise.
7957         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
7958         * wcsmbs/wcscspn.c (wcscspn): Likewise.
7959         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
7960         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
7961         * wcsmbs/wcsspn.c (wcsspn): Likewise.
7962         * wcsmbs/wcsstr.c (wcsstr): Likewise.
7963         * wcsmbs/wmemchr.c (wmemchr): Likewise.
7964         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
7965         * wcsmbs/wmemset.c (wmemset): Likewise.
7966
7967 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
7968
7969         * scripts/config.guess: Update to version 2013-05-16.
7970         * scripts/config.sub: Update to version 2013-04-24.
7971         * scripts/install-sh: Update to version 2011-11-20.07.
7972         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
7973         * scripts/move-if-change: Update to version 2012-01-06 07:23.
7974
7975 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
7976
7977         * debug/fgetws_u_chk.c: Fix leading whitespaces.
7978         * elf/sln.c: Likewise.
7979         * hurd/hurd/ioctl.h: Likewise.
7980         * hurd/hurdmalloc.c: Likewise.
7981         * hurd/xattr.c: Likewise.
7982         * include/shlib-compat.h: Likewise.
7983         * inet/ruserpass.c: Likewise.
7984         * libio/iofgets_u.c: Likewise.
7985         * libio/iofgetws_u.c: Likewise.
7986         * locale/programs/ld-identification.c: Likewise.
7987         * locale/programs/ld-time.c: Likewise.
7988         * mach/msg-destroy.c: Likewise.
7989         * nss/nss_files/files-netgrp.c: Likewise.
7990         * resolv/res_data.c: Likewise.
7991         * soft-fp/op-1.h: Likewise.
7992         * soft-fp/op-2.h: Likewise.
7993         * soft-fp/op-4.h: Likewise.
7994         * soft-fp/op-common.h: Likewise.
7995         * stdio-common/printf_fphex.c: Likewise.
7996         * stdlib/strtod_l.c: Likewise.
7997         * sunrpc/rpc/clnt.h: Likewise.
7998         * sysdeps/generic/framestate.c: Likewise.
7999         * sysdeps/i386/bsd-_setjmp.S: Likewise.
8000         * sysdeps/i386/bsd-setjmp.S: Likewise.
8001         * sysdeps/i386/__longjmp.S: Likewise.
8002         * sysdeps/i386/setjmp.S: Likewise.
8003         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8004         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8005         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8006         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8007         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8008         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
8009         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8010         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8011         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8012         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
8013         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
8014         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8015         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8016         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8017         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8018         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8019         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8020         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
8021         * sysdeps/ieee754/support.c: Likewise.
8022         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8023         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
8024         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
8025         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
8026         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
8027         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
8028         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
8029         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
8030         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
8031         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
8032         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
8033         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
8034         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
8035         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
8036         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
8037         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
8038         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
8039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8040
8041 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
8042
8043         * posix/transbug.c: Remove executable mode.
8044
8045 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
8046
8047         * crypt/speeds.c: Remove trailing whitespace.
8048         * dlfcn/default.c: Likewise.
8049         * elf/ifuncdep2.c: Likewise.
8050         * elf/ifuncmain1.c: Likewise.
8051         * elf/ifuncmain1vis.c: Likewise.
8052         * elf/testobj.h: Likewise.
8053         * elf/tst-stackguard1.c: Likewise.
8054         * gmon/sys/gmon.h: Likewise.
8055         * hurd/hurdmsg.c: Likewise.
8056         * hurd/new-fd.c: Likewise.
8057         * hurd/ports-get.c: Likewise.
8058         * iconvdata/ibm1008_420.c: Likewise.
8059         * inet/tst-getni1.c: Likewise.
8060         * inet/tst-getni2.c: Likewise.
8061         * libio/ioungetc.c: Likewise.
8062         * libio/wfiledoalloc.c: Likewise.
8063         * manual/libm-err-tab.pl: Likewise.
8064         * math/w_dremf.c: Likewise.
8065         * misc/ftruncate.c: Likewise.
8066         * posix/bug-glob2.c: Likewise.
8067         * posix/tst-pcre.c: Likewise.
8068         * posix/wait4.c: Likewise.
8069         * resolv/README: Likewise.
8070         * resolv/res_debug.h: Likewise.
8071         * resolv/tst-inet_ntop.c: Likewise.
8072         * setjmp/bug269-setjmp.c: Likewise.
8073         * soft-fp/extended.h: Likewise.
8074         * soft-fp/op-1.h: Likewise.
8075         * soft-fp/op-2.h: Likewise.
8076         * soft-fp/op-4.h: Likewise.
8077         * soft-fp/op-8.h: Likewise.
8078         * soft-fp/testit.c: Likewise.
8079         * stdio-common/bug16.c: Likewise.
8080         * stdlib/random.c: Likewise.
8081         * sunrpc/rpcsvc/rquota.x: Likewise.
8082         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
8083         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8084         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8085         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8086         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8087         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8088         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8089         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8090         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8091         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8092         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8093         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
8094         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8095         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8096         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8097         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8098         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8099         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8100         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
8101         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8102         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8103         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8104         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
8105         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
8106         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8107         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8108         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8109         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8110         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8111         * sysdeps/ieee754/s_lib_version.c: Likewise.
8112         * sysdeps/mach/hurd/check_fds.c: Likewise.
8113         * sysdeps/mach/hurd/getsockname.c: Likewise.
8114         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
8115         * sysdeps/mach/hurd/recvfrom.c: Likewise.
8116         * sysdeps/powerpc/bits/link.h: Likewise.
8117         * sysdeps/powerpc/dl-procinfo.c: Likewise.
8118         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
8119         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
8120         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
8121         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
8122         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8123         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
8124         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
8125         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
8126         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
8127         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
8128         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
8129         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
8130         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
8131         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
8132         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
8133         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
8134         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
8135         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
8136         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8137         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8138         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
8139         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
8140         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
8141         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8142         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
8143         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
8144         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8145         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8146         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
8147         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
8148         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
8149         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8150         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8151         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
8152         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
8153         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
8154         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
8155         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
8156         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
8157         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
8158         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
8159         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
8160         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
8161         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
8162         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
8163         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
8164         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
8165         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
8166         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
8167         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8168         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8169         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8170         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8171         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
8172         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
8173         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
8174         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
8175         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
8176         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
8177         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
8178         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
8179         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
8180         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
8181         * sysdeps/powerpc/sysdep.h: Likewise.
8182         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8183         * sysdeps/s390/s390-64/sub_n.S: Likewise.
8184         * sysdeps/sh/dl-trampoline.S: Likewise.
8185         * sysdeps/sh/memset.S: Likewise.
8186         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
8187         * sysdeps/sh/strlen.S: Likewise.
8188         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
8189         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
8190         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
8191         * sysdeps/sparc/sparc32/rem.S: Likewise.
8192         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
8193         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
8194         * sysdeps/sparc/sparc32/strchr.S: Likewise.
8195         * sysdeps/sparc/sparc32/udiv.S: Likewise.
8196         * sysdeps/sparc/sparc32/urem.S: Likewise.
8197         * sysdeps/sparc/sparc64/add_n.S: Likewise.
8198         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8199         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
8200         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
8201         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
8202         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
8203         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
8204         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
8205         * sysdeps/unix/bsd/times.c: Likewise.
8206         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
8207         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
8208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
8209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
8210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
8211         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8212         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
8213         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8214         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
8215         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
8216         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
8217         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8218         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
8219         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8220         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8221         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
8222         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8223         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8224         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
8225         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
8226         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8227         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
8228         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8229         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
8230         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
8231         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8232         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
8233         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8234         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
8235         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
8236         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
8237         * sysdeps/x86_64/strcspn.S: Likewise.
8238
8239 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8240
8241         * locale/C-translit.h: Revert #include <stdint.h> because this is a
8242         generated file.  Regenerate properly from gen-translit.pl.
8243         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
8244         locale/C-translit.h.
8245
8246 2013-06-05  Andreas Schwab  <schwab@suse.de>
8247
8248         [BZ #15100]
8249         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
8250         week as 6 instead of -1.
8251         * time/tst-strptime.c (day_tests): Add test case.
8252
8253 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8254
8255         * sysdeps/generic/math_private.h
8256         (libc_feholdexcept_setround_53bit): Replace with
8257         libc_feholdsetround_53bit.
8258         (libc_feupdateenv_53bit): Replace with
8259         libc_feresetround_53bit.
8260         (SET_RESTORE_ROUND_53BIT): Adjust.
8261
8262 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8263
8264         * string/test-strchrnul.c: Add copyright header.
8265
8266         * posix/tst-getaddrinfo4.c: Increase test timeout.
8267
8268 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
8269
8270         [BZ #15536]
8271         * math/libm-test.inc (MAX_EXP): Remove
8272         (MIN_EXP): Define.
8273         (ulp): Use MIN_EXP - MANT_DIG.
8274         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
8275
8276 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
8277
8278         * po/be.po: Revert last change.
8279         * po/zh_CN.po: Likewise.
8280         * po/header.pot: Likewise.
8281
8282 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
8283
8284         * Makefile ($(common-objpfx)linkobj/libc.so): Define
8285         link-libc-deps to empty as target-specific variable.
8286         * Makerules (link-libc-args): New variable.
8287         (libc-for-link): Likewise.
8288         (link-libc-deps): Likewise.
8289         (lib%.so): Depend on $(link-libc-deps).  Link with
8290         $(link-libc-args).
8291         (build-module): Link with $(link-libc-args).
8292         (build-module-asneeded): Likewise.
8293         (build-module-helper-objlist): Filter out $(link-libc-deps) from
8294         list of objects.
8295         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
8296         target-specific variable.
8297         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
8298         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
8299         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
8300         libc.
8301         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
8302         libc and ld.so.
8303         ($(objpfx)libpcprofile.so): Likewise.
8304         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
8305         libc_nonshared.a.
8306         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
8307         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
8308         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
8309         $(link-libc-deps).
8310         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
8311         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
8312         * login/Makefile ($(objpfx)libutil.so): Likewise.
8313         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
8314         * math/Makefile ($(objpfx)libm.so): Likewise.
8315         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
8316         $(objpfx)libnsl.so): Define libc-for-link as target-specific
8317         variable instead of depending directly on libc.
8318         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
8319         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
8320         $(link-libc-deps).
8321         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
8322         libc.
8323         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
8324         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
8325         ($(objpfx)libanl.so): Likewise.
8326         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
8327         ld.so.
8328         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
8329         $(link-libc-deps).
8330         * sysdeps/i386/fpu/Makefile: Remove file.
8331         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
8332         ($(objpfx)libm.so): Remove dependency on ld.so.
8333
8334 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
8335
8336         [BZ # 15553]
8337         * nis/yp_xdr.c (XDRMAXNAME): Define.
8338         (XDRMAXRECORD): Define.
8339         (xdr_domainname): Use XDRMAXNAME.
8340         (xdr_mapname): Likewise.
8341         (xdr_peername): Likewise.
8342         (xdr_keydat): Use XDRMAXRECORD.
8343         (xdr_valdat): Likewise.
8344
8345 2013-05-30  Jeff Law  <law@redhat.com>
8346
8347         [BZ #14256]
8348         * manual/errno.texi (ESTALE): Update to account for more than
8349         just NFS file systems.
8350         * sysdeps/gnu/errlist.c: Regenerated.
8351
8352 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8353
8354         [BZ #15465]
8355         * elf/Makefile (tests): Add tst-null-argv.
8356         (modules-names):  Add tst-null-argv-lib.
8357         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
8358         (tst-null-argv-ENV): Set environment for tst-null-argv.
8359         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
8360         (RTLD_PROGNAME): New macro.
8361         * elf/tst-null-argv.c: New test case.
8362         * elf/tst-null-argv-lib.c: Library for test case.
8363         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
8364         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8365         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
8366         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
8367         * elf/dl-init.c (call_init): Likewise.
8368         (_dl_init): Likewise.
8369         * elf/dl-load.c (print_search_path): Likewise.
8370         (_dl_map_object): Likewise.
8371         * elf/dl-lookup.c (do_lookup_x): Likewise.
8372         (add_dependency): Likewise.
8373         (_dl_lookup_symbol_x): Likewise.
8374         (_dl_debug_bindings): Likewise.
8375         * elf/dl-open.c (_dl_show_scope): Likewise.
8376         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8377         * elf/dl-version.c (match_symbol): Likewise.
8378         (_dl_check_map_versions): Likewise.
8379         * elf/rtld.c (dl_main): Likewise.
8380         (print_unresolved): Use RTLD_PROGNAME.
8381         (print_missing_version): Likewise.
8382         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8383         (elf_machine_rela): Likewise.
8384         * sysdeps/powerpc/powerpc32/dl-machine.c
8385         (__process_machine_rela): Likewise.
8386         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8387         Likewise.
8388         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8389         Likewise.
8390         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8391         Likewise.
8392         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8393         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8394         Likewise.
8395         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8396         Likewise.
8397         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8398
8399 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
8400
8401         * po/be.po: Add descriptive title.
8402         * po/zh_CN.po: Likewise.
8403         * po/header.pot: Likewise.
8404
8405 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
8406
8407         * locale/programs/locarchive.c (create_archive): Inlucde fname in
8408         error message.
8409         (enlarge_archive): Likewise.
8410
8411 2013-05-28  Ben North  <ben@redfrontdoor.org>
8412
8413         * manual/arith.texi (frexp): It is the magnitude of the return
8414         value which lies in [0.5, 1), not the return value itself.
8415
8416 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8417
8418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8419
8420 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
8421
8422         * stdio-common/bug26.c (main): Correct fscanf template.
8423
8424         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
8425         declare _dl_skip_args.
8426
8427         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
8428         Don't declare.
8429
8430         * manual/platform.texi: Add missing @end deftypefun.
8431
8432 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8433
8434         [BZ #15529]
8435         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
8436         bit of mantissa of 2^16382.
8437         * math/libm-test.inc (hypot_test_data): Add more tests.
8438
8439         * math/libm-test.inc: Add drem and pow10 to list of tested
8440         functions.
8441         (pow10_test): New function.
8442         (drem_test): Likewise.
8443         (drem_test_tonearest): Likewise.
8444         (drem_test_towardzero): Likewise.
8445         (drem_test_downward): Likewise.
8446         (drem_test_upward): Likewise.
8447         (main): Call the new functions.
8448
8449         * math/libm-test.inc (finite_test_data): Remove.
8450         (finite_test): Run tests from isfinite_test_data.
8451         (gamma_test_data): Remove.
8452         (gamma_test): Run tests from lgamma_test_data.
8453         * sysdeps/i386/fpu/libm-test-ulps: Update.
8454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8455
8456 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8457
8458         * manual/platform.texi: Add PowerPC PPR function set documentation.
8459         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
8460         implementation.
8461
8462 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
8463
8464         * math/libm-test.inc (MAX_EXP): Define.
8465         (ULPDIFF): Define.
8466         (ulp): New function.
8467         (check_float_internal): Use ULPDIFF.
8468         (cpow_test): Disable failing test.
8469         (check_ulp): Test ulp() implemetnation.
8470         (main): Call check_ulp before starting tests.
8471
8472 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
8473
8474         * math/gen-libm-test.pl (generate_testfile): Do not handle
8475         START_DATA and END_DATA.
8476         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
8477         END_DATA.
8478         (acos_tonearest_test_data): Likewise.
8479         (acos_towardzero_test_data): Likewise.
8480         (acos_downward_test_data): Likewise.
8481         (acos_upward_test_data): Likewise.
8482         (acosh_test_data): Likewise.
8483         (asin_test_data): Likewise.
8484         (asin_tonearest_test_data): Likewise.
8485         (asin_towardzero_test_data): Likewise.
8486         (asin_downward_test_data): Likewise.
8487         (asin_upward_test_data): Likewise.
8488         (asinh_test_data): Likewise.
8489         (atan_test_data): Likewise.
8490         (atanh_test_data): Likewise.
8491         (atan2_test_data): Likewise.
8492         (cabs_test_data): Likewise.
8493         (cacos_test_data): Likewise.
8494         (cacosh_test_data): Likewise.
8495         (carg_test_data): Likewise.
8496         (casin_test_data): Likewise.
8497         (casinh_test_data): Likewise.
8498         (catan_test_data): Likewise.
8499         (catanh_test_data): Likewise.
8500         (cbrt_test_data): Likewise.
8501         (ccos_test_data): Likewise.
8502         (ccosh_test_data): Likewise.
8503         (ceil_test_data): Likewise.
8504         (cexp_test_data): Likewise.
8505         (cimag_test_data): Likewise.
8506         (clog_test_data): Likewise.
8507         (clog10_test_data): Likewise.
8508         (conj_test_data): Likewise.
8509         (copysign_test_data): Likewise.
8510         (cos_test_data): Likewise.
8511         (cos_tonearest_test_data): Likewise.
8512         (cos_towardzero_test_data): Likewise.
8513         (cos_downward_test_data): Likewise.
8514         (cos_upward_test_data): Likewise.
8515         (cosh_test_data): Likewise.
8516         (cosh_tonearest_test_data): Likewise.
8517         (cosh_towardzero_test_data): Likewise.
8518         (cosh_downward_test_data): Likewise.
8519         (cosh_upward_test_data): Likewise.
8520         (cpow_test_data): Likewise.
8521         (cproj_test_data): Likewise.
8522         (creal_test_data): Likewise.
8523         (csin_test_data): Likewise.
8524         (csinh_test_data): Likewise.
8525         (csqrt_test_data): Likewise.
8526         (ctan_test_data): Likewise.
8527         (ctan_tonearest_test_data): Likewise.
8528         (ctan_towardzero_test_data): Likewise.
8529         (ctan_downward_test_data): Likewise.
8530         (ctan_upward_test_data): Likewise.
8531         (ctanh_test_data): Likewise.
8532         (ctanh_tonearest_test_data): Likewise.
8533         (ctanh_towardzero_test_data): Likewise.
8534         (ctanh_downward_test_data): Likewise.
8535         (ctanh_upward_test_data): Likewise.
8536         (erf_test_data): Likewise.
8537         (erfc_test_data): Likewise.
8538         (exp_test_data): Likewise.
8539         (exp_tonearest_test_data): Likewise.
8540         (exp_towardzero_test_data): Likewise.
8541         (exp_downward_test_data): Likewise.
8542         (exp_upward_test_data): Likewise.
8543         (exp10_test_data): Likewise.
8544         (exp2_test_data): Likewise.
8545         (expm1_test_data): Likewise.
8546         (fabs_test_data): Likewise.
8547         (fdim_test_data): Likewise.
8548         (finite_test_data): Likewise.
8549         (floor_test_data): Likewise.
8550         (fma_test_data): Likewise.
8551         (fma_towardzero_test_data): Likewise.
8552         (fma_downward_test_data): Likewise.
8553         (fma_upward_test_data): Likewise.
8554         (fmax_test_data): Likewise.
8555         (fmin_test_data): Likewise.
8556         (fmod_test_data): Likewise.
8557         (fpclassify_test_data): Likewise.
8558         (frexp_test_data): Likewise.
8559         (gamma_test_data): Likewise.
8560         (hypot_test_data): Likewise.
8561         (ilogb_test_data): Likewise.
8562         (isfinite_test_data): Likewise.
8563         (isgreater_test_data): Likewise.
8564         (isgreaterequal_test_data): Likewise.
8565         (isinf_test_data): Likewise.
8566         (isless_test_data): Likewise.
8567         (islessequal_test_data): Likewise.
8568         (islessgreater_test_data): Likewise.
8569         (isnan_test_data): Likewise.
8570         (isnormal_test_data): Likewise.
8571         (issignaling_test_data): Likewise.
8572         (isunordered_test_data): Likewise.
8573         (j0_test_data): Likewise.
8574         (j1_test_data): Likewise.
8575         (jn_test_data): Likewise.
8576         (ldexp_test_data): Likewise.
8577         (lgamma_test_data): Likewise.
8578         (lrint_test_data): Likewise.
8579         (lrint_tonearest_test_data): Likewise.
8580         (lrint_towardzero_test_data): Likewise.
8581         (lrint_downward_test_data): Likewise.
8582         (lrint_upward_test_data): Likewise.
8583         (llrint_test_data): Likewise.
8584         (llrint_tonearest_test_data): Likewise.
8585         (llrint_towardzero_test_data): Likewise.
8586         (llrint_downward_test_data): Likewise.
8587         (llrint_upward_test_data): Likewise.
8588         (log_test_data): Likewise.
8589         (log10_test_data): Likewise.
8590         (log1p_test_data): Likewise.
8591         (log2_test_data): Likewise.
8592         (logb_test_data): Likewise.
8593         (logb_downward_test_data): Likewise.
8594         (lround_test_data): Likewise.
8595         (llround_test_data): Likewise.
8596         (modf_test_data): Likewise.
8597         (nearbyint_test_data): Likewise.
8598         (nextafter_test_data): Likewise.
8599         (nexttoward_test_data): Likewise.
8600         (pow_test_data): Likewise.
8601         (pow_tonearest_test_data): Likewise.
8602         (pow_towardzero_test_data): Likewise.
8603         (pow_downward_test_data): Likewise.
8604         (pow_upward_test_data): Likewise.
8605         (remainder_test_data): Likewise.
8606         (remainder_tonearest_test_data): Likewise.
8607         (remainder_towardzero_test_data): Likewise.
8608         (remainder_downward_test_data): Likewise.
8609         (remainder_upward_test_data): Likewise.
8610         (remquo_test_data): Likewise.
8611         (rint_test_data): Likewise.
8612         (rint_tonearest_test_data): Likewise.
8613         (rint_towardzero_test_data): Likewise.
8614         (rint_downward_test_data): Likewise.
8615         (rint_upward_test_data): Likewise.
8616         (round_test_data): Likewise.
8617         (scalb_test_data): Likewise.
8618         (scalbn_test_data): Likewise.
8619         (scalbln_test_data): Likewise.
8620         (signbit_test_data): Likewise.
8621         (sin_test_data): Likewise.
8622         (sin_tonearest_test_data): Likewise.
8623         (sin_towardzero_test_data): Likewise.
8624         (sin_downward_test_data): Likewise.
8625         (sin_upward_test_data): Likewise.
8626         (sincos_test_data): Likewise.
8627         (sinh_test_data): Likewise.
8628         (sinh_tonearest_test_data): Likewise.
8629         (sinh_towardzero_test_data): Likewise.
8630         (sinh_downward_test_data): Likewise.
8631         (sinh_upward_test_data): Likewise.
8632         (sqrt_test_data): Likewise.
8633         (tan_test_data): Likewise.
8634         (tan_tonearest_test_data): Likewise.
8635         (tan_towardzero_test_data): Likewise.
8636         (tan_downward_test_data): Likewise.
8637         (tan_upward_test_data): Likewise.
8638         (tanh_test_data): Likewise.
8639         (tgamma_test_data): Likewise.
8640         (trunc_test_data): Likewise.
8641         (y0_test_data): Likewise.
8642         (y1_test_data): Likewise.
8643         (yn_test_data): Likewise.
8644         (significand_test_data): Likewise.
8645
8646         * math/gen-libm-test.pl (@functions): Remove variable.
8647         (generate_testfile): Don't handle START and END lines.
8648         * math/libm-test.inc (START): New macro.
8649         (END): Likewise.
8650         (END_COMPLEX): Likewise.
8651         (acos_test): Use END macro without arguments.
8652         (acos_test_tonearest): Likewise.
8653         (acos_test_towardzero): Likewise.
8654         (acos_test_downward): Likewise.
8655         (acos_test_upward): Likewise.
8656         (acosh_test): Likewise.
8657         (asin_test): Likewise.
8658         (asin_test_tonearest): Likewise.
8659         (asin_test_towardzero): Likewise.
8660         (asin_test_downward): Likewise.
8661         (asin_test_upward): Likewise.
8662         (asinh_test): Likewise.
8663         (atan_test): Likewise.
8664         (atanh_test): Likewise.
8665         (atan2_test): Likewise.
8666         (cabs_test): Likewise.
8667         (cacos_test): Use END_COMPLEX macro without arguments.
8668         (cacosh_test): Likewise.
8669         (carg_test): Use END macro without arguments.
8670         (casin_test): Use END_COMPLEX macro without arguments.
8671         (casinh_test): Likewise.
8672         (catan_test): Likewise.
8673         (catanh_test): Likewise.
8674         (cbrt_test): Use END macro without arguments.
8675         (ccos_test): Use END_COMPLEX macro without arguments.
8676         (ccosh_test): Likewise.
8677         (ceil_test): Use END macro without arguments.
8678         (cexp_test): Use END_COMPLEX macro without arguments.
8679         (cimag_test): Use END macro without arguments.
8680         (clog_test): Use END_COMPLEX macro without arguments.
8681         (clog10_test): Likewise.
8682         (conj_test): Likewise.
8683         (copysign_test): Use END macro without arguments.
8684         (cos_test): Likewise.
8685         (cos_test_tonearest): Likewise.
8686         (cos_test_towardzero): Likewise.
8687         (cos_test_downward): Likewise.
8688         (cos_test_upward): Likewise.
8689         (cosh_test): Likewise.
8690         (cosh_test_tonearest): Likewise.
8691         (cosh_test_towardzero): Likewise.
8692         (cosh_test_downward): Likewise.
8693         (cosh_test_upward): Likewise.
8694         (cpow_test): Use END_COMPLEX macro without arguments.
8695         (cproj_test): Likewise.
8696         (creal_test): Use END macro without arguments.
8697         (csin_test): Use END_COMPLEX macro without arguments.
8698         (csinh_test): Likewise.
8699         (csqrt_test): Likewise.
8700         (ctan_test): Likewise.
8701         (ctan_test_tonearest): Likewise.
8702         (ctan_test_towardzero): Likewise.
8703         (ctan_test_downward): Likewise.
8704         (ctan_test_upward): Likewise.
8705         (ctanh_test): Likewise.
8706         (ctanh_test_tonearest): Likewise.
8707         (ctanh_test_towardzero): Likewise.
8708         (ctanh_test_downward): Likewise.
8709         (ctanh_test_upward): Likewise.
8710         (erf_test): Use END macro without arguments.
8711         (erfc_test): Likewise.
8712         (exp_test): Likewise.
8713         (exp_test_tonearest): Likewise.
8714         (exp_test_towardzero): Likewise.
8715         (exp_test_downward): Likewise.
8716         (exp_test_upward): Likewise.
8717         (exp10_test): Likewise.
8718         (exp2_test): Likewise.
8719         (expm1_test): Likewise.
8720         (fabs_test): Likewise.
8721         (fdim_test): Likewise.
8722         (finite_test): Likewise.
8723         (floor_test): Likewise.
8724         (fma_test): Likewise.
8725         (fma_test_towardzero): Likewise.
8726         (fma_test_downward): Likewise.
8727         (fma_test_upward): Likewise.
8728         (fmax_test): Likewise.
8729         (fmin_test): Likewise.
8730         (fmod_test): Likewise.
8731         (fpclassify_test): Likewise.
8732         (frexp_test): Likewise.
8733         (gamma_test): Likewise.
8734         (hypot_test): Likewise.
8735         (ilogb_test): Likewise.
8736         (isfinite_test): Likewise.
8737         (isgreater_test): Likewise.
8738         (isgreaterequal_test): Likewise.
8739         (isinf_test): Likewise.
8740         (isless_test): Likewise.
8741         (islessequal_test): Likewise.
8742         (islessgreater_test): Likewise.
8743         (isnan_test): Likewise.
8744         (isnormal_test): Likewise.
8745         (issignaling_test): Likewise.
8746         (isunordered_test): Likewise.
8747         (j0_test): Likewise.
8748         (j1_test): Likewise.
8749         (jn_test): Likewise.
8750         (ldexp_test): Likewise.
8751         (lgamma_test): Likewise.
8752         (lrint_test): Likewise.
8753         (lrint_test_tonearest): Likewise.
8754         (lrint_test_towardzero): Likewise.
8755         (lrint_test_downward): Likewise.
8756         (lrint_test_upward): Likewise.
8757         (llrint_test): Likewise.
8758         (llrint_test_tonearest): Likewise.
8759         (llrint_test_towardzero): Likewise.
8760         (llrint_test_downward): Likewise.
8761         (llrint_test_upward): Likewise.
8762         (log_test): Likewise.
8763         (log10_test): Likewise.
8764         (log1p_test): Likewise.
8765         (log2_test): Likewise.
8766         (logb_test): Likewise.
8767         (logb_test_downward): Likewise.
8768         (lround_test): Likewise.
8769         (llround_test): Likewise.
8770         (modf_test): Likewise.
8771         (nearbyint_test): Likewise.
8772         (nextafter_test): Likewise.
8773         (nexttoward_test): Likewise.
8774         (pow_test): Likewise.
8775         (pow_test_tonearest): Likewise.
8776         (pow_test_towardzero): Likewise.
8777         (pow_test_downward): Likewise.
8778         (pow_test_upward): Likewise.
8779         (remainder_test): Likewise.
8780         (remainder_test_tonearest): Likewise.
8781         (remainder_test_towardzero): Likewise.
8782         (remainder_test_downward): Likewise.
8783         (remainder_test_upward): Likewise.
8784         (remquo_test): Likewise.
8785         (rint_test): Likewise.
8786         (rint_test_tonearest): Likewise.
8787         (rint_test_towardzero): Likewise.
8788         (rint_test_downward): Likewise.
8789         (rint_test_upward): Likewise.
8790         (round_test): Likewise.
8791         (scalb_test): Likewise.
8792         (scalbn_test): Likewise.
8793         (scalbln_test): Likewise.
8794         (signbit_test): Likewise.
8795         (sin_test): Likewise.
8796         (sin_test_tonearest): Likewise.
8797         (sin_test_towardzero): Likewise.
8798         (sin_test_downward): Likewise.
8799         (sin_test_upward): Likewise.
8800         (sincos_test): Likewise.
8801         (sinh_test): Likewise.
8802         (sinh_test_tonearest): Likewise.
8803         (sinh_test_towardzero): Likewise.
8804         (sinh_test_downward): Likewise.
8805         (sinh_test_upward): Likewise.
8806         (sqrt_test): Likewise.
8807         (tan_test): Likewise.
8808         (tan_test_tonearest): Likewise.
8809         (tan_test_towardzero): Likewise.
8810         (tan_test_downward): Likewise.
8811         (tan_test_upward): Likewise.
8812         (tanh_test): Likewise.
8813         (tgamma_test): Likewise.
8814         (trunc_test): Likewise.
8815         (y0_test): Likewise.
8816         (y1_test): Likewise.
8817         (yn_test): Likewise.
8818         (significand_test): Likewise.
8819
8820 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
8821
8822         [BZ #15381]
8823         * libio/genops.c (_IO_no_init): Initialize wide struct info.
8824
8825 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8826
8827         [BZ #14894]
8828         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
8829         __ppc_mdoio and __ppc_mdoom.
8830         * manual/platform.texi: Document new functions __ppc_yield,
8831         __ppc_mdoio and __ppc_mdoom.
8832
8833 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
8834
8835         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
8836         (main): Mention "tls" pseudo-hwcap is legacy.
8837         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
8838
8839 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8840
8841         * math/gen-libm-test.pl (parse_args): Output only string of
8842         arguments as text for test name, not full call or descriptions of
8843         tests for extra outputs.
8844         (generate_testfile): Do not pass function name to parse_args.
8845         Generate this_func variable from START.
8846         * math/libm-test.inc (struct test_f_f_data): Rename test_name
8847         field to arg_str.
8848         (struct test_ff_f_data): Likewise.
8849         (test_ff_f_data_nexttoward): Likewise.
8850         (struct test_fi_f_data): Likewise.
8851         (struct test_fl_f_data): Likewise.
8852         (struct test_if_f_data): Likewise.
8853         (struct test_fff_f_data): Likewise.
8854         (struct test_c_f_data): Likewise.
8855         (struct test_f_f1_data): Likewise.  Remove field extra_name.
8856         (struct test_fF_f1_data): Likewise.
8857         (struct test_ffI_f1_data): Likewise.
8858         (struct test_c_c_data): Rename test_name field to arg_str.
8859         (struct test_cc_c_data): Likewise.
8860         (struct test_f_i_data): Likewise.
8861         (struct test_ff_i_data): Likewise.
8862         (struct test_f_l_data): Likewise.
8863         (struct test_f_L_data): Likewise.
8864         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
8865         and extra2_name.
8866         (COMMON_TEST_SETUP): New macro.
8867         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
8868         (COMMON_TEST_CLEANUP): Likewise.
8869         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
8870         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
8871         macros.
8872         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
8873         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
8874         macros.
8875         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
8876         (RUN_TEST_fff_f): Take argument string.  Call new setup and
8877         cleanup macros.
8878         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
8879         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
8880         macros.
8881         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
8882         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
8883         macros.
8884         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
8885         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
8886         cleanup macros.
8887         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
8888         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
8889         cleanup macros.
8890         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
8891         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
8892         cleanup macros.
8893         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
8894         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
8895         macros.
8896         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
8897         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
8898         macros.
8899         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
8900         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
8901         macros.
8902         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
8903         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
8904         cleanup macros.
8905         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
8906         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
8907         cleanup macros.
8908         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
8909         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
8910         macros.
8911         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
8912         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
8913         cleanup macros.
8914         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
8915         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
8916         macros.
8917         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
8918         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
8919         macros.
8920         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
8921         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
8922         cleanup macros.
8923         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
8924
8925 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
8926
8927         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
8928         to _sifields.sigfault.
8929         (si_addr_lsb): Define new macro.
8930         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8931         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8932         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
8933
8934 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
8935
8936         [BZ #15441]
8937         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
8938         returns -1.
8939         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
8940         null return -1.
8941         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
8942         loading the domain.
8943
8944 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
8945
8946         * math/gen-libm-test.pl (parse_args): Do not include expected
8947         result in test name.
8948         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
8949         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8950         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8951         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8952         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8954
8955 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8956
8957         * benchtests/Makefile: Sort function entries.
8958
8959         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
8960         tanh, asinh, acosh, atanh.
8961         * benchtests/acos-inputs: New file.
8962         * benchtests/acosh-inputs: New file.
8963         * benchtests/asin-inputs: New file.
8964         * benchtests/asinh-inputs: New file.
8965         * benchtests/atanh-inputs: New file.
8966         * benchtests/cosh-inputs: New file.
8967         * benchtests/log-inputs: New file.
8968         * benchtests/sinh-inputs: New file.
8969         * benchtests/tanh-inputs: New file.
8970
8971 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
8972
8973         [BZ #15339]
8974         * posix/tst-getaddrinfo4.c: New test.
8975         * posix/Makefile (tests): Add it.
8976
8977 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8978
8979         [BZ #15339]
8980         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
8981         when no services were used.
8982         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
8983         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
8984
8985 2013-05-21  Andreas Schwab  <schwab@suse.de>
8986
8987         [BZ #15014]
8988         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
8989         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
8990         successful.
8991         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
8992         redundant variable declarations and reallocation of buffer when
8993         parsing as IPv6 address.  Always set NSS status when called from
8994         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
8995         buffer too small.  Correct computation of needed size.
8996         * nss/Makefile (tests): Add test-digits-dots.
8997         * nss/test-digits-dots.c: New test.
8998
8999 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
9000
9001         * benchtests/Makefile: Remove instructions for adding
9002         benchmark tests.
9003         * benchtests/README: New file to explain how to execute and
9004         enhance the benchmark tests.
9005
9006 2013-05-21  Andreas Schwab  <schwab@suse.de>
9007
9008         [BZ #15493]
9009         * setjmp/Makefile (tests): Add tst-sigsetjmp.
9010         * setjmp/tst-sigsetjmp.c: New test.
9011
9012 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
9013
9014         * sysdeps/x86_64/memset.S (memset): New implementation.
9015         (__bzero): Likewise.
9016         (__memset_tail): New function.
9017
9018 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
9019
9020         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
9021         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
9022         __memcpy_sse2_unaligned ifunc selection.
9023         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
9024         Add memcpy-sse2-unaligned.S.
9025         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
9026         Add: __memcpy_sse2_unaligned.
9027
9028 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
9029
9030         [BZ #15490]
9031         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
9032         math_force_eval before restoring floating-point envrionment.
9033         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
9034         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9035         Likewise.
9036         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
9037         <math_private.h>.
9038         (__nearbyintl): Use math_force_eval before restoring
9039         floating-point environment.
9040         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
9041
9042         * math/gen-libm-test.pl (special_functions): Remove.
9043         (parse_args): Don't handle TEST_extra.  Handle functions with no
9044         return value.
9045         * math/libm-test.inc (struct test_sincos_data): Replace with
9046         struct test_fFF_11_data.
9047         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
9048         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
9049         (sincos_test_data): Change element type to struct
9050         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
9051         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
9052         RUN_TEST_LOOP_sincos.
9053         * math/README.libm-test: Don't mention special handling of
9054         individual functions.
9055         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
9056         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9057         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
9058         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
9059         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
9060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9061
9062         * math/gen-libm-test.pl (get_variable): Remove function.
9063         (parse_args): Don't show pointer parameters to call in test
9064         names.  Use "extra output N" in test names for extra outputs
9065         rather than naming variables.
9066
9067 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
9068
9069         [BZ #15488]
9070         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
9071         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
9072         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
9073         double tests.
9074         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
9075         disable.
9076         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
9077         check_long_double.
9078
9079         * math/gen-libm-test.pl (@tests): Remove variable.
9080         ($count): Likewise.
9081         (new_test): Remove function.
9082         (show_exceptions): New function.
9083         (special_functions): Use show_exceptions instead of new_test.
9084         (parse_args): Likewise.
9085         (generate_testfile): Pass only function name in generated call to
9086         print_max_error or print_complex_max_error.
9087         (get_ulps): Do not handle complex tests specially.
9088         (output_test): Rename to ...
9089         (get_all_ulps_for_test): ... this.  Return a string rather than
9090         printing to a file.  Require ulps to be present.
9091         (output_ulps): Generate arrays rather than #defines.
9092         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
9093         (struct ulp_data): New type.
9094         (BUILD_COMPLEX_ULP): Remove macro.
9095         (compare_ulp_data): New function.
9096         (find_ulps): Likewise.
9097         (find_test_ulps): Likewise.
9098         (find_function_ulps): Likewise.
9099         (find_complex_function_ulps): Likewise.
9100         (print_max_error): Determine allowed ulps using
9101         find_function_ulps.
9102         (print_complex_max_error): Determine allowed ulps using
9103         find_complex_function_ulps.
9104         (check_float_internal): Determine max ulps using find_test_ulps.
9105         (check_float): Do not take max_ulp parameter.  Update call to
9106         check_float_internal.
9107         (check_complex): Likewise.
9108         (check_int): Do not take max_ulp parameter.
9109         (check_long): Likewise.
9110         (check_bool): Likewise.
9111         (check_longlong): Likewise.
9112         (struct test_f_f_data): Remove max_ulp field.
9113         (struct test_ff_f_data): Likewise.
9114         (struct test_ff_f_data_nexttoward): Likewise.
9115         (struct test_fi_f_data): Likewise.
9116         (struct test_fl_f_data): Likewise.
9117         (struct test_if_f_data): Likewise.
9118         (struct test_fff_f_data): Likewise.
9119         (struct test_c_f_data): Likewise.
9120         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
9121         (struct test_fF_f1_data): Likewise.
9122         (struct test_ffI_f1_data): Likewise.
9123         (struct test_c_c_data): Remove max_ulp field.
9124         (struct test_cc_c_data): Likewise.
9125         (struct test_f_i_data): Likewise.
9126         (struct test_ff_i_data): Likewise.
9127         (struct test_f_l_data): Likewise.
9128         (struct test_f_L_data): Likewise.
9129         (struct test_sincos_data): Likewise.
9130         (RUN_TEST_f_f): Do not handle ulps.
9131         (RUN_TEST_LOOP_f_f): Likewise.
9132         (RUN_TEST_2_f): Likewise.
9133         (RUN_TEST_LOOP_2_f): Likewise.
9134         (RUN_TEST_fff_f): Likewise.
9135         (RUN_TEST_LOOP_fff_f): Likewise.
9136         (RUN_TEST_c_f): Likewise.
9137         (RUN_TEST_LOOP_c_f): Likewise.
9138         (RUN_TEST_f_f1): Likewise.
9139         (RUN_TEST_LOOP_f_f1): Likewise.
9140         (RUN_TEST_fF_f1): Likewise.
9141         (RUN_TEST_LOOP_fF_f1): Likewise.
9142         (RUN_TEST_fI_f1): Likewise.
9143         (RUN_TEST_LOOP_fI_f1): Likewise.
9144         (RUN_TEST_ffI_f1): Likewise.
9145         (RUN_TEST_LOOP_ffI_f1): Likewise.
9146         (RUN_TEST_c_c): Likewise.
9147         (RUN_TEST_LOOP_c_c): Likewise.
9148         (RUN_TEST_cc_c): Likewise.
9149         (RUN_TEST_LOOP_cc_c): Likewise.
9150         (RUN_TEST_f_i): Likewise.
9151         (RUN_TEST_LOOP_f_i): Likewise.
9152         (RUN_TEST_f_i_tg): Likewise.
9153         (RUN_TEST_LOOP_f_i_tg): Likewise.
9154         (RUN_TEST_ff_i_tg): Likewise.
9155         (RUN_TEST_LOOP_ff_i_tg): Likewise.
9156         (RUN_TEST_f_b): Likewise.
9157         (RUN_TEST_LOOP_f_b): Likewise.
9158         (RUN_TEST_f_b_tg): Likewise.
9159         (RUN_TEST_LOOP_f_b_tg): Likewise.
9160         (RUN_TEST_f_l): Likewise.
9161         (RUN_TEST_LOOP_f_l): Likewise.
9162         (RUN_TEST_f_L): Likewise.
9163         (RUN_TEST_LOOP_f_L): Likewise.
9164         (RUN_TEST_sincos): Likewise.
9165         (RUN_TEST_LOOP_sincos): Likewise.
9166
9167 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
9168
9169         [BZ #15480]
9170         [BZ #15485]
9171         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
9172         main case of finite arguments, set rounding mode to FE_TONEAREST
9173         and discard exceptions.
9174         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
9175         exceptions.
9176         (remainder_tonearest_test_data): New variable.
9177         (remainder_test_tonearest): New function.
9178         (remainder_towardzero_test_data): New variable.
9179         (remainder_test_towardzero): New function.
9180         (remainder_downward_test_data): New variable.
9181         (remainder_test_downward): New function.
9182         (remainder_upward_test_data): New variable.
9183         (remainder_test_upward): New function.
9184         (main): Call the new test functions.
9185
9186         * math/libm-test.inc (struct test_f_f1_data): Remove field
9187         extra_init.
9188         (struct test_fF_f1_data): Likewise.
9189         (struct test_ffI_f1_data): Likewise.
9190         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
9191         based on value of EXTRA_EXPECTED.
9192         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
9193         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
9194         EXTRA_VAR based on value of EXTRA_EXPECTED.
9195         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
9196         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
9197         EXTRA_VAR based on value of EXTRA_EXPECTED.
9198         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
9199         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
9200         EXTRA_VAR based on value of EXTRA_EXPECTED.
9201         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
9202         * math/gen-libm-test.pl (parse_args): Don't output initializers
9203         for extra output values.
9204
9205         * math/libm-test.inc (check_int): Expect result to be exactly
9206         equal to expected value and do not handle ulps.
9207         (check_long): Likewise.
9208         (check_longlong): Likewise.
9209
9210         * math/libm-test.inc (ceil_test_data): Test for "inexact"
9211         exceptions.
9212         (cimag_test_data): Likewise.
9213         (conj_test_data): Likewise.
9214         (copysign_test_data): Likewise.
9215         (cproj_test_data): Likewise.
9216         (creal_test_data): Likewise.
9217         (fabs_test_data): Likewise.
9218         (fdim_test_data): Likewise.
9219         (finite_test_data): Likewise.
9220         (floor_test_data): Likewise.
9221         (fmax_test_data): Likewise.
9222         (fmin_test_data): Likewise.
9223         (fmod_test_data): Likewise.
9224         (fpclassify_test_data): Likewise.
9225         (frexp_test_data): Likewise.
9226         (ilogb_test_data): Likewise.
9227         (isfinite_test_data): Likewise.
9228         (isgreater_test_data): Likewise.
9229         (isgreaterequal_test_data): Likewise.
9230         (isinf_test_data): Likewise.
9231         (isless_test_data): Likewise.
9232         (islessequal_test_data): Likewise.
9233         (islessgreater_test_data): Likewise.
9234         (isnan_test_data): Likewise.
9235         (isnormal_test_data): Likewise.
9236         (issignaling_test_data): Likewise.
9237         (isunordered_test_data): Likewise.
9238         (ldexp_test_data): Likewise.
9239         (lrint_test_data): Likewise.
9240         (lrint_test_data) [TEST_FLOAT]: Disable one test.
9241         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
9242         (lrint_tonearest_test_data): Test for "inexact" exceptions.
9243         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9244         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
9245         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9246         test input.
9247         (lrint_towardzero_test_data): Test for "inexact" exceptions.
9248         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9249         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
9250         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
9251         that test input.
9252         (lrint_downward_test_data): Test for "inexact" exceptions.
9253         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9254         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
9255         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
9256         test input.
9257         (lrint_upward_test_data): Test for "inexact" exceptions.
9258         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
9259         test input.
9260         (llrint_test_data): Test for "inexact" exceptions.
9261         (llrint_test_data) [TEST_FLOAT]: Disable one test.
9262         (llrint_tonearest_test_data): Test for "inexact" exceptions.
9263         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
9264         (llrint_towardzero_test_data): Test for "inexact" exceptions.
9265         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
9266         (llrint_downward_test_data): Test for "inexact" exceptions.
9267         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
9268         (llrint_upward_test_data): Test for "inexact" exceptions.
9269         (logb_test_data): Likewise.
9270         (logb_downward_test_data): Likewise.
9271         (nextafter_test_data): Likewise.
9272         (nexttoward_test_data): Likewise.
9273         (remainder_test_data): Likewise.
9274         (remquo_test_data): Likewise.
9275         (scalbn_test_data): Likewise.
9276         (scalbln_test_data): Likewise.
9277         (signbit_test_data): Likewise.
9278         (sqrt_test_data): Likewise.
9279         (significand_test_data): Likewise.
9280
9281 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9282
9283         [BZ #15424]
9284         * benchtests/bench-modf.c (struct args): Mark arg0 as
9285         volatile.
9286         * scripts/bench.pl: Mark members of struct args as volatile.
9287
9288 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9289
9290         [BZ # 15497]
9291         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
9292         negative infinity on POWER6 or lower.
9293         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
9294
9295 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9296
9297         [BZ #15442]
9298         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
9299         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
9300         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
9301         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
9302         (_FP_SETQNAN): New macro.
9303         (_FP_SETQNAN_SEMIRAW): Likewise.
9304         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
9305         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
9306         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
9307         (FP_EXTEND): Use _FP_FRAC_SNANP.
9308         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
9309         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
9310         into account.
9311         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9312         New macro.
9313         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
9314         Likewise.
9315
9316 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9317
9318         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
9319         with DIVIDE_BY_ZERO_EXCEPTION.
9320         (gamma_test_data): Likewise.
9321         (lgamma_test_data): Likewise.
9322         (log_test_data): Likewise.
9323         (log10_test_data): Likewise.
9324         (log2_test_data): Likewise.
9325         (tgamma_test_data): Likewise.
9326
9327         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
9328         (acos_test_tonearest): Likewise.
9329         (acos_test_towardzero): Likewise.
9330         (acos_test_downward): Likewise.
9331         (acos_test_upward): Likewise.
9332         (acosh_test): Likewise.
9333         (asin_test): Likewise.
9334         (asin_test_tonearest): Likewise.
9335         (asin_test_towardzero): Likewise.
9336         (asin_test_downward): Likewise.
9337         (asin_test_upward): Likewise.
9338         (asinh_test): Likewise.
9339         (atan_test): Likewise.
9340         (atanh_test): Likewise.
9341         (atan2_test): Likewise.
9342         (cabs_test): Likewise.
9343         (cacos_test): Likewise.
9344         (cacosh_test): Likewise.
9345         (casin_test): Likewise.
9346         (casinh_test): Likewise.
9347         (catan_test): Likewise.
9348         (catanh_test): Likewise.
9349         (cbrt_test): Likewise.
9350         (ccos_test): Likewise.
9351         (ccosh_test): Likewise.
9352         (cexp_test): Likewise.
9353         (clog_test): Likewise.
9354         (clog10_test): Likewise.
9355         (cos_test): Likewise.
9356         (cos_test_tonearest): Likewise.
9357         (cos_test_towardzero): Likewise.
9358         (cos_test_downward): Likewise.
9359         (cos_test_upward): Likewise.
9360         (cosh_test): Likewise.
9361         (cosh_test_tonearest): Likewise.
9362         (cosh_test_towardzero): Likewise.
9363         (cosh_test_downward): Likewise.
9364         (cosh_test_upward): Likewise.
9365         (cpow_test): Likewise.
9366         (csin_test): Likewise.
9367         (csinh_test): Likewise.
9368         (csqrt_test): Likewise.
9369         (ctan_test): Likewise.
9370         (ctan_test_tonearest): Likewise.
9371         (ctan_test_towardzero): Likewise.
9372         (ctan_test_downward): Likewise.
9373         (ctan_test_upward): Likewise.
9374         (ctanh_test): Likewise.
9375         (ctanh_test_tonearest): Likewise.
9376         (ctanh_test_towardzero): Likewise.
9377         (ctanh_test_downward): Likewise.
9378         (ctanh_test_upward): Likewise.
9379         (erf_test): Likewise.
9380         (erfc_test): Likewise.
9381         (exp_test): Likewise.
9382         (exp_test_tonearest): Likewise.
9383         (exp_test_towardzero): Likewise.
9384         (exp_test_downward): Likewise.
9385         (exp_test_upward): Likewise.
9386         (exp10_test): Likewise.
9387         (exp2_test): Likewise.
9388         (expm1_test): Likewise.
9389         (fmod_test): Likewise.
9390         (gamma_test): Likewise.
9391         (hypot_test): Likewise.
9392         (j0_test): Likewise.
9393         (j1_test): Likewise.
9394         (jn_test): Likewise.
9395         (lgamma_test): Likewise.
9396         (log_test): Likewise.
9397         (log10_test): Likewise.
9398         (log1p_test): Likewise.
9399         (log2_test): Likewise.
9400         (logb_test_downward): Likewise.
9401         (pow_test): Likewise.
9402         (pow_test_tonearest): Likewise.
9403         (pow_test_towardzero): Likewise.
9404         (pow_test_downward): Likewise.
9405         (pow_test_upward): Likewise.
9406         (remainder_test): Likewise.
9407         (remquo_test): Likewise.
9408         (sin_test): Likewise.
9409         (sin_test_tonearest): Likewise.
9410         (sin_test_towardzero): Likewise.
9411         (sin_test_downward): Likewise.
9412         (sin_test_upward): Likewise.
9413         (sincos_test): Likewise.
9414         (sinh_test): Likewise.
9415         (sinh_test_tonearest): Likewise.
9416         (sinh_test_towardzero): Likewise.
9417         (sinh_test_downward): Likewise.
9418         (sinh_test_upward): Likewise.
9419         (sqrt_test): Likewise.
9420         (tan_test): Likewise.
9421         (tan_test_tonearest): Likewise.
9422         (tan_test_towardzero): Likewise.
9423         (tan_test_downward): Likewise.
9424         (tan_test_upward): Likewise.
9425         (tanh_test): Likewise.
9426         (tgamma_test): Likewise.
9427         (y0_test): Likewise.
9428         (y1_test): Likewise.
9429         (yn_test): Likewise.
9430
9431         * math/gen-libm-test.pl (adjust_arg): Remove function.
9432         (special_function): Remove argument $in_func.  Only handle
9433         generating output for tables of tests, not inside functions.
9434         (parse_args): Likewise.
9435         (generate_testfile): Remove variable $in_func.  Update call to
9436         parse_args.
9437         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
9438         (MINUS_ZERO_INIT): Rename macro to minus_zero.
9439         (PLUS_INFTY_INIT): Rename macro to plus_infty.
9440         (MINUS_INFTY_INIT): Rename macro to minus_infty.
9441         (QNAN_VALUE_INIT): Rename macro to qnan_value.
9442         (MAX_VALUE_INIT): Rename macro to max_value.
9443         (MIN_VALUE_INIT): Rename macro to min_value.
9444         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
9445         (plus_zero): Remove variable.
9446         (minus_zero): Likewise.
9447         (plus_infty): Likewise.
9448         (minus_infty): Likewise.
9449         (qnan_value): Likewise.
9450         (max_value): Likewise.
9451         (min_value): Likewise.
9452         (min_subnorm_value): Likewise.
9453
9454 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9455
9456         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
9457         uint64_t or uint32_t usage.
9458         * crypt/sha256-block.c: Likewise.
9459         * crypt/sha256-crypt.c: Likewise.
9460         * crypt/sha256.c: Likewise.
9461         * crypt/sha512-block.c: Likewise.
9462         * crypt/sha512-crypt.c: Likewise.
9463         * crypt/sha512.c: Likewise.
9464         * debug/backtrace-tst.c: Likewise.
9465         * debug/pcprofiledump.c: Likewise.
9466         * elf/cache.c: Likewise.
9467         * elf/dl-cache.c: Likewise.
9468         * elf/dl-misc.c: Likewise.
9469         * elf/dl-profile.c: Likewise.
9470         * elf/dl-support.c: Likewise.
9471         * elf/ldconfig.c: Likewise.
9472         * elf/sprof.c: Likewise.
9473         * iconv/dummy-repertoire.c: Likewise.
9474         * iconv/iconv_charmap.c: Likewise.
9475         * iconv/skeleton.c: Likewise.
9476         * iconvdata/8bit-generic.c: Likewise.
9477         * iconvdata/cp737.h: Likewise.
9478         * iconvdata/cp775.h: Likewise.
9479         * iconvdata/ibm1008.h: Likewise.
9480         * iconvdata/ibm1025.h: Likewise.
9481         * iconvdata/ibm1046.h: Likewise.
9482         * iconvdata/ibm1097.h: Likewise.
9483         * iconvdata/ibm1112.h: Likewise.
9484         * iconvdata/ibm1122.h: Likewise.
9485         * iconvdata/ibm1123.h: Likewise.
9486         * iconvdata/ibm1124.h: Likewise.
9487         * iconvdata/ibm1129.h: Likewise.
9488         * iconvdata/ibm1130.h: Likewise.
9489         * iconvdata/ibm1132.h: Likewise.
9490         * iconvdata/ibm1133.h: Likewise.
9491         * iconvdata/ibm1137.h: Likewise.
9492         * iconvdata/ibm1140.h: Likewise.
9493         * iconvdata/ibm1141.h: Likewise.
9494         * iconvdata/ibm1142.h: Likewise.
9495         * iconvdata/ibm1143.h: Likewise.
9496         * iconvdata/ibm1144.h: Likewise.
9497         * iconvdata/ibm1145.h: Likewise.
9498         * iconvdata/ibm1146.h: Likewise.
9499         * iconvdata/ibm1147.h: Likewise.
9500         * iconvdata/ibm1148.h: Likewise.
9501         * iconvdata/ibm1149.h: Likewise.
9502         * iconvdata/ibm1153.h: Likewise.
9503         * iconvdata/ibm1154.h: Likewise.
9504         * iconvdata/ibm1155.h: Likewise.
9505         * iconvdata/ibm1156.h: Likewise.
9506         * iconvdata/ibm1157.h: Likewise.
9507         * iconvdata/ibm1158.h: Likewise.
9508         * iconvdata/ibm1160.h: Likewise.
9509         * iconvdata/ibm1161.h: Likewise.
9510         * iconvdata/ibm1162.h: Likewise.
9511         * iconvdata/ibm1163.h: Likewise.
9512         * iconvdata/ibm1164.h: Likewise.
9513         * iconvdata/ibm1166.h: Likewise.
9514         * iconvdata/ibm1167.h: Likewise.
9515         * iconvdata/ibm12712.h: Likewise.
9516         * iconvdata/ibm1390.h: Likewise.
9517         * iconvdata/ibm1399.h: Likewise.
9518         * iconvdata/ibm16804.h: Likewise.
9519         * iconvdata/ibm4517.h: Likewise.
9520         * iconvdata/ibm4899.h: Likewise.
9521         * iconvdata/ibm4909.h: Likewise.
9522         * iconvdata/ibm4971.h: Likewise.
9523         * iconvdata/ibm5347.h: Likewise.
9524         * iconvdata/ibm803.h: Likewise.
9525         * iconvdata/ibm856.h: Likewise.
9526         * iconvdata/ibm901.h: Likewise.
9527         * iconvdata/ibm902.h: Likewise.
9528         * iconvdata/ibm9030.h: Likewise.
9529         * iconvdata/ibm9066.h: Likewise.
9530         * iconvdata/ibm921.h: Likewise.
9531         * iconvdata/ibm922.h: Likewise.
9532         * iconvdata/ibm9448.h: Likewise.
9533         * iconvdata/isiri-3342.h: Likewise.
9534         * iconvdata/jis0201.h: Likewise.
9535         * include/link.h: Likewise.
9536         * include/netdb.h: Likewise.
9537         * inet/check_native.c: Likewise.
9538         * inet/check_pf.c: Likewise.
9539         * inet/getipv4sourcefilter.c: Likewise.
9540         * inet/getnameinfo.c: Likewise.
9541         * inet/getsourcefilter.c: Likewise.
9542         * inet/htonl.c: Likewise.
9543         * inet/setipv4sourcefilter.c: Likewise.
9544         * inet/setsourcefilter.c: Likewise.
9545         * inet/test-inet6_opt.c: Likewise.
9546         * inet/tst-network.c: Likewise.
9547         * locale/C-collate.c: Likewise.
9548         * locale/C-ctype.c: Likewise.
9549         * locale/C-time.c: Likewise.
9550         * locale/C-translit.h: Likewise.
9551         * locale/loadarchive.c: Likewise.
9552         * locale/programs/3level.h: Likewise.
9553         * locale/programs/charmap.c: Likewise.
9554         * locale/programs/charmap.h: Likewise.
9555         * locale/programs/ld-address.c: Likewise.
9556         * locale/programs/ld-collate.c: Likewise.
9557         * locale/programs/ld-ctype.c: Likewise.
9558         * locale/programs/ld-identification.c: Likewise.
9559         * locale/programs/ld-measurement.c: Likewise.
9560         * locale/programs/ld-messages.c: Likewise.
9561         * locale/programs/ld-monetary.c: Likewise.
9562         * locale/programs/ld-name.c: Likewise.
9563         * locale/programs/ld-numeric.c: Likewise.
9564         * locale/programs/ld-paper.c: Likewise.
9565         * locale/programs/ld-telephone.c: Likewise.
9566         * locale/programs/ld-time.c: Likewise.
9567         * locale/programs/linereader.c: Likewise.
9568         * locale/programs/locale.c: Likewise.
9569         * locale/programs/locarchive.c: Likewise.
9570         * locale/programs/locfile.h: Likewise.
9571         * locale/programs/repertoire.c: Likewise.
9572         * locale/programs/simple-hash.c: Likewise.
9573         * locale/programs/simple-hash.h: Likewise.
9574         * malloc/memusage.c: Likewise.
9575         * malloc/memusagestat.c: Likewise.
9576         * nis/nis_defaults.c: Likewise.
9577         * nis/nis_hash.c: Likewise.
9578         * nis/nis_print.c: Likewise.
9579         * nis/nis_xdr.c: Likewise.
9580         * nscd/connections.c: Likewise.
9581         * nscd/hstcache.c: Likewise.
9582         * nscd/nscd_gethst_r.c: Likewise.
9583         * nscd/nscd_getserv_r.c: Likewise.
9584         * nscd/nscd_helper.c: Likewise.
9585         * nscd/servicescache.c: Likewise.
9586         * nss/makedb.c: Likewise.
9587         * nss/nss_db/db-XXX.c: Likewise.
9588         * nss/nss_db/db-initgroups.c: Likewise.
9589         * nss/nss_db/db-netgrp.c: Likewise.
9590         * nss/nss_files/files-network.c: Likewise.
9591         * nss/nss_files/files-parse.c: Likewise.
9592         * posix/bug-regex5.c: Likewise.
9593         * posix/fnmatch_loop.c: Likewise.
9594         * posix/regcomp.c: Likewise.
9595         * posix/regexec.c: Likewise.
9596         * posix/tst-rfc3484-2.c: Likewise.
9597         * posix/tst-rfc3484-3.c: Likewise.
9598         * posix/tst-rfc3484.c: Likewise.
9599         * resolv/nss_dns/dns-canon.c: Likewise.
9600         * resolv/nss_dns/dns-network.c: Likewise.
9601         * resolv/res_init.c: Likewise.
9602         * resolv/res_mkquery.c: Likewise.
9603         * resolv/tst-aton.c: Likewise.
9604         * stdlib/cxa_atexit.c: Likewise.
9605         * stdlib/cxa_finalize.c: Likewise.
9606         * stdlib/gen-fpioconst.c: Likewise.
9607         * stdlib/strtol_l.c: Likewise.
9608         * string/tst-endian.c: Likewise.
9609         * sunrpc/auth_des.c: Likewise.
9610         * sunrpc/clnt_udp.c: Likewise.
9611         * sunrpc/rtime.c: Likewise.
9612         * sunrpc/svcauth_des.c: Likewise.
9613         * sunrpc/xdr.c: Likewise.
9614         * sunrpc/xdr_intXX_t.c: Likewise.
9615         * sunrpc/xdr_rec.c: Likewise.
9616         * sysdeps/generic/ldconfig.h: Likewise.
9617         * sysdeps/generic/ldsodefs.h: Likewise.
9618         * sysdeps/generic/memusage.h: Likewise.
9619         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9620         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
9621         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
9622         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9623         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9624         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9625         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9626         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9627         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9628         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
9629         * sysdeps/posix/getaddrinfo.c: Likewise.
9630         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9631         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9632         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9633         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9634         * sysdeps/powerpc/test-gettimebase.c: Likewise.
9635         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
9636         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
9637         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
9638         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
9639         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
9640         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9641         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9642         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
9643         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
9644         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
9645         * sysdeps/x86_64/dl-tls.h: Likewise.
9646         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
9647         * time/alt_digit.c: Likewise.
9648         * time/era.c: Likewise.
9649         * wcsmbs/tst-c16c32-1.c: Likewise.
9650
9651 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9652
9653         * math/libm-test.inc (struct test_sincos_data): New type.
9654         (RUN_TEST_LOOP_sincos): New macro.
9655         (sincos_test_data): New variable.
9656         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
9657
9658 2013-05-16  Richard Henderson  <rth@redhat.com>
9659
9660         * math/atest-exp2.c (LIMB64): New macro.
9661         (CONSTSZ): New macro.
9662         (mp_exp1, mp_exp_m1, mp_log2): New variables.
9663         (hexdig): Move ...
9664         (print_mpn_fp): ... to function scope.
9665         (read_mpn_hex): Remove.
9666         (get_log2): Remove.
9667         (exp2_mpn): Use mp_log2.
9668         (main): Use mp_exp1.
9669
9670 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
9671
9672         * math/libm-test.inc: Remove comment about not testing "inexact"
9673         exceptions.
9674         (INEXACT_EXCEPTION): New macro.
9675         (NO_INEXACT_EXCEPTION): Likewise.
9676         (INVALID_EXCEPTION_OK): Update value.
9677         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9678         (OVERFLOW_EXCEPTION_OK): Likewise.
9679         (UNDERFLOW_EXCEPTION_OK): Likewise.
9680         (IGNORE_ZERO_INF_SIGN): Likewise.
9681         (ERRNO_UNCHANGED): Likewise.
9682         (ERRNO_EDOM): Likewise.
9683         (ERRNO_ERANGE): Likewise.
9684         (test_exceptions): Handle testing "inexact" exceptions.
9685         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
9686         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
9687         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
9688         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
9689         INEXACT_EXCEPTION.
9690         (rint_towardzero_test_data): Likewise.
9691         (rint_downward_test_data): Likewise.
9692         (rint_upward_test_data): Likewise.
9693
9694         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
9695         with OVERFLOW_EXCEPTION.
9696         (exp10_test_data): Likewise.
9697         (exp2_test_data): Likewise.
9698         (expm1_test_data): Likewise.
9699         (lgamma_test_data): Likewise.
9700         (pow_test_data): Likewise.
9701         (tgamma_test_data): Likewise.
9702         (yn_test_data): Remove duplicate test of overflow.
9703
9704         * math/libm-test.inc (struct test_cc_c_data): New type.
9705         (RUN_TEST_LOOP_cc_c): New macro.
9706         (cpow_test_data): New variable.
9707         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
9708
9709         * math/libm-test.inc (struct test_f_L_data): New type.
9710         (RUN_TEST_LOOP_f_L): New macro.
9711         (llrint_test_data): New variable.
9712         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
9713         (llrint_tonearest_test_data): New variable.
9714         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
9715         (llrint_towardzero_test_data): New variable.
9716         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
9717         (llrint_downward_test_data): New variable.
9718         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
9719         (llrint_upward_test_data): New variable.
9720         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
9721         (llround_test_data): New variable.
9722         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
9723
9724 2013-05-13  Peter Collingbourne  <pcc@google.com>
9725
9726         * math/atest-exp2.c (get_log2): Remove const attribute.
9727
9728 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9729
9730         * math/libm-test.inc (struct test_f_l_data): New type.
9731         (RUN_TEST_LOOP_f_l): New macro.
9732         (lrint_test_data): New variable.
9733         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
9734         (lrint_tonearest_test_data): New variable.
9735         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
9736         (lrint_towardzero_test_data): New variable.
9737         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
9738         (lrint_downward_test_data): New variable.
9739         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
9740         (lrint_upward_test_data): New variable.
9741         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
9742         (lround_test_data): New variable.
9743         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
9744
9745 2013-05-15  Peter Collingbourne  <pcc@google.com>
9746
9747         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
9748         (EXTRACT_WORDS64) Use where appropriate.
9749         (INSERT_WORDS64) Likewise.
9750
9751         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
9752         constraints with x constraints.
9753         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
9754
9755         * malloc/obstack.c (_obstack_compat): Add initializer.
9756
9757 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
9758
9759         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
9760         si_trapno and add si_addr_lsb to _sifields.sigfault.
9761         (si_trapno): Remove macro.
9762         (si_addr_lsb): Define new macro.
9763         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
9764
9765 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
9766
9767         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
9768         instead of TEST_f_l.
9769         (llrint_test_tonearest): Likewise.
9770         (llrint_test_towardzero): Likewise.
9771         (llrint_test_downward): Likewise.
9772         (llrint_test_upward): Likewise.
9773         (llround_test): Likewise.
9774
9775         * math/libm-test.inc (struct test_f_i_data): Add comment.
9776         (RUN_TEST_LOOP_f_b): New macro.
9777         (RUN_TEST_LOOP_f_b_tg): Likewise.
9778         (finite_test_data): New variable.
9779         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
9780         (isfinite_test_data): New variable.
9781         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9782         (isinf_test_data): New variable.
9783         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9784         (isnan_test_data): New variable.
9785         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9786         (isnormal_test_data): New variable.
9787         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9788         (issignaling_test_data): New variable.
9789         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9790         (signbit_test_data): New variable.
9791         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
9792
9793         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
9794         with INVALID_EXCEPTION.
9795         (acosh_test_data): Likewise.
9796         (asin_test_data): Likewise.
9797         (atanh_test_data): Likewise.
9798         (fmod_test_data): Likewise.
9799         (log_test_data): Likewise.
9800         (log10_test_data): Likewise.
9801         (log2_test_data): Likewise.
9802         (pow_test_data): Likewise.
9803         (sqrt_test_data): Likewise.
9804         (y0_test_data): Likewise.
9805         (y1_test_data): Likewise.
9806         (yn_test_data): Likewise.
9807
9808         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
9809         function contents.
9810
9811         * math/libm-test.inc (struct test_ff_i_data): New type.
9812         (RUN_TEST_LOOP_ff_i_tg): New macro.
9813         (isgreater_test_data): New variable.
9814         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9815         (isgreaterequal_test_data): New variable.
9816         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9817         (isless_test_data): New variable.
9818         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9819         (islessequal_test_data): New variable.
9820         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9821         (islessgreater_test_data): New variable.
9822         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9823         (isunordered_test_data): New variable.
9824         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
9825
9826 2013-05-14  David S. Miller  <davem@davemloft.net>
9827
9828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9829
9830 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
9831
9832         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
9833
9834         * math/libm-test.inc (struct test_fF_f1_data): Change type of
9835         extra_test to int.
9836         (struct test_f_i_data): Change type of max_ulp to int.
9837
9838         * math/libm-test.inc (test_ffI_f1_data): New type.
9839         (RUN_TEST_LOOP_ffI_f1): New macro.
9840         (remquo_test_data): New variable.
9841         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
9842
9843         * setjmp/tst-setjmp-fp.c: New file.
9844         * setjmp/Makefile (tests): Add tst-setjmp-fp.
9845         (link-libm): New variable.
9846         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
9847
9848         * math/libm-test.inc (struct test_f_i_data): New type.
9849         (RUN_TEST_LOOP_f_i): New macro.
9850         (RUN_TEST_LOOP_f_i_tg): Likewise.
9851         (fpclassify_test_data): New variable.
9852         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
9853         (ilogb_test_data): New variable.
9854         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
9855
9856         * math/libm-test.inc (scalbln_test): Correct function name in END
9857         call.
9858
9859         * math/libm-test.inc (struct test_f_f1_data): Add comment.
9860         (RUN_TEST_LOOP_fI_f1): New macro.
9861         (frexp_test_data): New variable.
9862         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
9863
9864         * math/libm-test.inc (struct test_fF_f1_data): New type.
9865         (RUN_TEST_LOOP_fF_f1): New macro.
9866         (modf_test_data): New variable.
9867         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
9868
9869         * math/libm-test.inc (struct test_f_f1_data): New type.
9870         (RUN_TEST_LOOP_f_f1): New macro.
9871         (gamma_test_data): New variable.
9872         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9873         (lgamma_test_data): New variable.
9874         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
9875
9876 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
9877
9878         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
9879         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
9880         (main): Comment "tls" pseudo-hwcap.
9881
9882 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
9883
9884         * math/libm-test.inc (struct test_fl_f_data): New type.
9885         (RUN_TEST_LOOP_fl_f): New variable.
9886         (scalbln_test_data): New variable.
9887         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
9888
9889         * math/libm-test.inc (struct test_fi_f_data): New type.
9890         (RUN_TEST_LOOP_fi_f): New macro.
9891         (ldexp_test_data): New variable.
9892         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
9893         (scalbn_test_data): New variable.
9894         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
9895
9896         * math/libm-test.inc (struct test_c_f_data): New type.
9897         (RUN_TEST_LOOP_c_f): New macro.
9898         (cabs_test_data): New variable.
9899         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
9900         (carg_test_data): New variable.
9901         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
9902         (cimag_test_data): New variable.
9903         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
9904         (creal_test_data): New variable.
9905         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
9906
9907         * math/libm-test.inc (struct test_if_f_data): New type.
9908         (RUN_TEST_LOOP_if_f): New macro.
9909         (jn_test_data): New variable.
9910         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
9911         (yn_test_data): New variable.
9912         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
9913
9914         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
9915
9916 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9917
9918         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
9919         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
9920
9921 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9922
9923         * benchtests/Makefile (CPPFLAGS-nonlib): Add
9924         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
9925         (bench-deps): Add bench-timing.h.
9926         * benchtests-bench-skeleton.c: Include bench-timing.h.
9927         (main): Use TIMING_* macros instead of clock_gettime.
9928         * benchtests/bench-timing.h: New file.
9929
9930         [BZ #14582]
9931         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
9932         Renamed from _LIB_VERSION.
9933         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
9934
9935 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
9936
9937         * math/libm-test.inc (struct test_fff_f_data): New type.
9938         (RUN_TEST_LOOP_fff_f): New macro.
9939         (fma_test_data): New variable.
9940         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
9941         (fma_towardzero_test_data): New variable.
9942         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
9943         (fma_downward_test_data): New variable.
9944         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
9945         (fma_upward_test_data): New variable.
9946         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
9947
9948         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
9949         (struct test_c_c_data): New type.
9950         (RUN_TEST_LOOP_c_c): New macro.
9951         (cacos_test_data): New variable.
9952         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
9953         (cacosh_test_data): New variable.
9954         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
9955         (casin_test_data): New variable.
9956         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
9957         (casinh_test_data): New variable.
9958         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
9959         (catan_test_data): New variable.
9960         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
9961         (catanh_test_data): New variable.
9962         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
9963         (ccos_test_data): New variable.
9964         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
9965         (ccosh_test_data): New variable.
9966         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
9967         (cexp_test_data): New variable.
9968         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
9969         (clog_test_data): New variable.
9970         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
9971         (clog10_test_data): New variable.
9972         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
9973         (conj_test_data): New variable.
9974         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
9975         (cproj_test_data): New variable.
9976         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
9977         (csin_test_data): New variable.
9978         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
9979         (csinh_test_data): New variable.
9980         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
9981         (csqrt_test_data): New variable.
9982         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
9983         (ctan_test_data): New variable.
9984         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
9985         (ctan_tonearest_test_data): New variable.
9986         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9987         (ctan_towardzero_test_data): New variable.
9988         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9989         (ctan_downward_test_data): New variable.
9990         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
9991         (ctan_upward_test_data): New variable.
9992         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
9993         (ctanh_test_data): New variable.
9994         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
9995         (ctanh_tonearest_test_data): New variable.
9996         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
9997         (ctanh_towardzero_test_data): New variable.
9998         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
9999         (ctanh_downward_test_data): New variable.
10000         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
10001         (ctanh_upward_test_data): New variable.
10002         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
10003         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
10004         of BUILD_COMPLEX.
10005
10006         * math/libm-test.inc (struct test_ff_f_data): New type.
10007         (struct test_ff_f_data_nexttoward): Likewise.
10008         (RUN_TEST_LOOP_2_f): New macro.
10009         (RUN_TEST_LOOP_ff_f): Likewise.
10010         (atan2_test_data): New variable.
10011         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
10012         (copysign_test_data): New variable.
10013         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
10014         (fdim_test_data): New variable.
10015         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
10016         (fmax_test_data): New variable.
10017         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
10018         (fmin_test_data): New variable.
10019         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
10020         (fmod_test_data): New variable.
10021         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
10022         (hypot_test_data): New variable.
10023         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
10024         (nextafter_test_data): New variable.
10025         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
10026         (nexttoward_test_data): New variable.
10027         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
10028         (pow_test_data): New variable.
10029         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
10030         (pow_tonearest_test_data): New variable.
10031         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
10032         (pow_towardzero_test_data): New variable.
10033         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
10034         (pow_downward_test_data): New variable.
10035         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
10036         (pow_upward_test_data): New variable.
10037         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
10038         (remainder_test_data): New variable.
10039         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
10040         (scalb_test_data): New variable.
10041         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
10042         * sysdeps/i386/fpu/libm-test-ulps: Update.
10043
10044 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
10045
10046         * math/libm-test.inc (fma_test): Use max_value instead of local
10047         variable fltmax.
10048         (nextafter_test): Likewise.
10049
10050         * math/libm-test.inc (acos_towardzero_test_data): New variable.
10051         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10052         (acos_downward_test_data): New variable.
10053         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10054         (acos_upward_test_data): New variable.
10055         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10056         (acosh_test_data): New variable.
10057         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
10058         (asin_test_data): New variable.
10059         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
10060         (asin_tonearest_test_data): New variable.
10061         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10062         (asin_towardzero_test_data): New variable.
10063         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10064         (asin_downward_test_data): New variable.
10065         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10066         (asin_upward_test_data): New variable.
10067         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10068         (asinh_test_data): New variable.
10069         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
10070         (atan_test_data): New variable.
10071         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
10072         (atanh_test_data): New variable.
10073         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
10074         (cbrt_test_data): New variable.
10075         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
10076         (ceil_test_data): New variable.
10077         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
10078         (cos_test_data): New variable.
10079         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
10080         (cos_tonearest_test_data): New variable.
10081         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10082         (cos_towardzero_test_data): New variable.
10083         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10084         (cos_downward_test_data): New variable.
10085         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10086         (cos_upward_test_data): New variable.
10087         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10088         (cosh_test_data): New variable.
10089         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
10090         (cosh_tonearest_test_data): New variable.
10091         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10092         (cosh_towardzero_test_data): New variable.
10093         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10094         (cosh_downward_test_data): New variable.
10095         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10096         (cosh_upward_test_data): New variable.
10097         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10098         (erf_test_data): New variable.
10099         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
10100         (erfc_test_data): New variable.
10101         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
10102         (exp_test_data): New variable.
10103         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
10104         (exp_tonearest_test_data): New variable.
10105         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10106         (exp_towardzero_test_data): New variable.
10107         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10108         (exp_downward_test_data): New variable.
10109         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10110         (exp_upward_test_data): New variable.
10111         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10112         (exp10_test_data): New variable.
10113         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
10114         (exp2_test_data): New variable.
10115         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
10116         (expm1_test_data): New variable.
10117         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
10118         (fabs_test_data): New variable.
10119         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
10120         (floor_test_data): New variable.
10121         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
10122         (j0_test_data): New variable.
10123         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
10124         (j1_test_data): New variable.
10125         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
10126         (log_test_data): New variable.
10127         (log_test): Run tests with RUN_TEST_LOOP_f_f.
10128         (log10_test_data): New variable.
10129         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
10130         (log1p_test_data): New variable.
10131         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
10132         (log2_test_data): New variable.
10133         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
10134         (logb_test_data): New variable.
10135         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
10136         (logb_downward_test_data): New variable.
10137         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10138         (nearbyint_test_data): New variable.
10139         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
10140         (rint_test_data): New variable.
10141         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
10142         (rint_tonearest_test_data): New variable.
10143         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10144         (rint_towardzero_test_data): New variable.
10145         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10146         (rint_downward_test_data): New variable.
10147         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10148         (rint_upward_test_data): New variable.
10149         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10150         (round_test_data): New variable.
10151         (round_test): Run tests with RUN_TEST_LOOP_f_f.
10152         (sin_test_data): New variable.
10153         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
10154         (sin_tonearest_test_data): New variable.
10155         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10156         (sin_towardzero_test_data): New variable.
10157         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10158         (sin_downward_test_data): New variable.
10159         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10160         (sin_upward_test_data): New variable.
10161         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10162         (sinh_test_data): New variable.
10163         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
10164         (sinh_tonearest_test_data): New variable.
10165         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10166         (sinh_towardzero_test_data): New variable.
10167         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10168         (sinh_downward_test_data): New variable.
10169         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10170         (sinh_upward_test_data): New variable.
10171         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10172         (sqrt_test_data): New variable.
10173         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
10174         (tan_test_data): New variable.
10175         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
10176         (tan_tonearest_test_data): New variable.
10177         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10178         (tan_towardzero_test_data): New variable.
10179         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
10180         (tan_downward_test_data): New variable.
10181         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
10182         (tan_upward_test_data): New variable.
10183         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
10184         (tanh_test_data): New variable.
10185         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
10186         (tgamma_test_data): New variable.
10187         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
10188         (trunc_test_data): New variable.
10189         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
10190         (y0_test_data): New variable.
10191         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
10192         (y1_test_data): New variable.
10193         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
10194         (significand_test_data): New variable.
10195         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
10196
10197 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
10198
10199         [BZ #12387]
10200         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
10201
10202 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
10203
10204         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
10205
10206 2013-05-10  Andreas Jaeger  <aj@suse.de>
10207
10208         [BZ #15448]
10209         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
10210         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
10211
10212 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10213
10214         * math/gen-libm-test.pl (adjust_arg): New function.
10215         (special_functions): Handle generating output in both functions
10216         and arrays.
10217         (parse_args): Likewise.
10218         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
10219         $in_func argument to parse_args.
10220         * math/libm-test.inc (struct test_f_f_data): New type.
10221         (IF_ROUND_INIT_): New macro.
10222         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
10223         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
10224         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10225         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10226         (ROUND_RESTORE_): Likewise.
10227         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
10228         (ROUND_RESTORE_FE_TONEAREST): Likewise.
10229         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
10230         (ROUND_RESTORE_FE_UPWARD): Likewise.
10231         (RUN_TEST_LOOP_f_f): New macro.
10232         (acos_test_data): New variable.
10233         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
10234         (acos_tonearest_test_data): New variable.
10235         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
10236
10237 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10238
10239         * benchtests/bench-skeleton.c (startup): Fix coding style.
10240
10241 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
10242
10243         [BZ #6809]
10244         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
10245         negative infinity argument.
10246         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
10247         negative infinity argument.
10248         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
10249         negative infinity argument.
10250         * math/libm-test.inc (tgamma_test): Expect errno to be set for
10251         domain errors.
10252
10253 2013-05-10  Florian Weimer  <fweimer@redhat.com>
10254
10255         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
10256         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
10257         * iconv/iconv_prog.c (main): Likewise.
10258         * locale/programs/charmap-dir.c (charmap_readdir)
10259         (fopen_uncompressed): Likewise.
10260         * locale/programs/locfile.c (siblings_uncached)
10261         (write_locale_data): Use lstat64 instead of lstat.
10262         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
10263         stat.
10264
10265 2013-05-10  Andreas Jaeger  <aj@suse.de>
10266
10267         [BZ #15395]
10268         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
10269         localization.
10270         Include <locale.h>.
10271
10272 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
10273
10274         * elf/dl-close.c (_dl_close_worker): Add comments.
10275
10276 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
10277
10278         [BZ #15359]
10279         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
10280         high part of pi/2.
10281         (__ieee754_rem_pio2l): Update comments.
10282
10283         [BZ #15429]
10284         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
10285         high part of pi/2.
10286         (__ieee754_rem_pio2l): Update comments.
10287
10288         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
10289         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
10290
10291         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
10292         M_PI_4l.
10293
10294         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
10295         (M_PI_34_LOG10El): Likewise.
10296         (M_PI2_LOG10El): Likewise.
10297         (M_PI4_LOG10El): Likewise.
10298         (M_PI_LOG10El): Likewise.
10299
10300 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10301
10302         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10303
10304 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
10305
10306         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
10307         (MINUS_ZERO_INIT): Likewise.
10308         (PLUS_INFTY_INIT): Likewise.
10309         (MINUS_INFTY_INIT): Likewise.
10310         (QNAN_VALUE_INIT): Likewise.
10311         (MAX_VALUE_INIT): Likewise.
10312         (MIN_VALUE_INIT): Likewise.
10313         (MIN_SUBNORM_VALUE_INIT): Likewise.
10314         (plus_zero): Initialize with PLUS_ZERO_INIT.
10315         (minus_zero): Initialize with MINUS_ZERO_INIT.
10316         (plus_infty): Initialize with PLUS_INFTY_INIT.
10317         (minus_infty): Initialize with MINUS_INFTY_INIT.
10318         (qnan_value): Initialize with QNAN_VALUE_INIT.
10319         (max_value): Initialize with MAX_VALUE_INIT.
10320         (min_value): Initialize with MIN_VALUE_INIT.
10321         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
10322
10323         * math/libm-test.inc (RUN_TEST_if_f): New macro.
10324         (jn_test): Use TEST_if_f instead of TEST_ff_f.
10325         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
10326         (yn_test): Use TEST_if_f instead of TEST_ff_f.
10327
10328         * math/libm-test.inc (RUN_TEST_f_f): New macro.
10329         (RUN_TEST_2_f): Likewise.
10330         (RUN_TEST_ff_f): Likewise.
10331         (RUN_TEST_fi_f): Likewise.
10332         (RUN_TEST_fl_f): Likewise.
10333         (RUN_TEST_fff_f): Likewise.
10334         (RUN_TEST_c_f): Likewise.
10335         (RUN_TEST_f_f1): Likewise.
10336         (RUN_TEST_fF_f1): Likewise.
10337         (RUN_TEST_fI_f1): Likewise.
10338         (RUN_TEST_ffI_f1): Likewise.
10339         (RUN_TEST_c_c): Likewise.
10340         (RUN_TEST_cc_c): Likewise.
10341         (RUN_TEST_f_i): Likewise.
10342         (RUN_TEST_f_i_tg): Likewise.
10343         (RUN_TEST_ff_i_tg): Likewise.
10344         (RUN_TEST_f_b): Likewise.
10345         (RUN_TEST_f_b_tg): Likewise.
10346         (RUN_TEST_f_l): Likewise.
10347         (RUN_TEST_f_L): Likewise.
10348         (RUN_TEST_sincos): Likewise.
10349         * math/gen-libm-test.pl (new_test): Take new argument to indicate
10350         whether to show exceptions.  Do not include ");\n" in return
10351         value.
10352         (special_functions): Output call to RUN_TEST_sincos instead of
10353         check_float calls.  Update calls to new_test.
10354         (parse_args): Output call to single RUN_TEST_* macro instead of
10355         check_* calls and other assignments.  Update calls to new_test.
10356
10357         [BZ #2546]
10358         [BZ #2560]
10359         [BZ #5159]
10360         [BZ #15426]
10361         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
10362         input to result for tgamma overflow.
10363         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
10364         (gamma_coeff): New variable.
10365         (NCOEFF): New macro.
10366         (gamma_positive): New function.
10367         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
10368         underflow here.  Use gamma_positive instead of exp (lgamma) for
10369         other arguments.
10370         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
10371         (gamma_coeff): New variable.
10372         (NCOEFF): New macro.
10373         (gammaf_positive): New function.
10374         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
10375         underflow here.  Use gamma_positive instead of exp (lgamma) for
10376         other arguments.
10377         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
10378         (gamma_coeff): New variable.
10379         (NCOEFF): New macro.
10380         (gammal_positive): New function.
10381         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
10382         underflow here.  Use gamma_positive instead of exp (lgamma) for
10383         other arguments.
10384         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
10385         (gamma_coeff): New variable.
10386         (NCOEFF): New macro.
10387         (gammal_positive): New function.
10388         (__ieee754_gammal_r): Handle positive infinity, overflow and
10389         underflow here.  Handle NaN the same as positive infinity.  Remove
10390         check x < 0xffffffff for negative integers.  Use gamma_positive
10391         instead of exp (lgamma) for other arguments.
10392         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
10393         (gamma_coeff): New variable.
10394         (NCOEFF): New macro.
10395         (gammal_positive): New function.
10396         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
10397         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
10398         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10399         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
10400         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
10401         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10402         * sysdeps/generic/math_private.h (__gamma_productf): New
10403         prototype.
10404         (__gamma_product): Likewise.
10405         (__gamma_productl): Likewise.
10406         * math/Makefile (libm-calls): Add gamma_product.
10407         * math/libm-test.inc (tgamma_test): Add more tests.
10408         * sysdeps/i386/fpu/libm-test-ulps: Update.
10409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10410
10411 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
10412
10413         * benchtests/bench-skeleton.c (main): Preheat CPU.
10414
10415 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
10416
10417         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
10418
10419 2013-05-07  Roland McGrath  <roland@hack.frob.com>
10420
10421         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
10422         and _dl_skip_args_internal.
10423
10424 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
10425
10426         * manual/message.texi (Message Translation): Talk about users.
10427         Message to key mapping impacts design.
10428
10429 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10430
10431         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
10432
10433         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
10434
10435         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
10436         * sysdeps/wordsize-64/glob64.c: ... here.
10437
10438         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
10439         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
10440         New macros.
10441
10442         * debug/getlogin_r_chk.c: Moved to ...
10443         * login/getlogin_r_chk.c: ... here.
10444         * debug/Makefile (routines): Move getlogin_r_chk to ...
10445         * login/Makefile (routines): ... here.
10446         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
10447         * login/Versions (libc: GLIBC_2.4): ... here.
10448
10449         * io/poll.c (__poll): Renamed from poll.
10450         Add libc_hidden_def.
10451         (poll): Define as weak alias.
10452
10453         * debug/ptsname_r_chk.c: Moved to ...
10454         * login/ptsname_r_chk.c: ... here.
10455         * debug/Makefile (routines): Move ptsname_r_chk to ...
10456         * login/Makefile (routines): ... here.
10457         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
10458         * login/Versions (libc: GLIBC_2.4): ... here.
10459
10460         * posix/getlogin.c: Moved to ...
10461         * login/getlogin.c: ... here.
10462         * posix/getlogin_r.c: Moved to ...
10463         * login/getlogin_r.c: ... here.
10464         * posix/getlogin_r.c: Moved to ...
10465         * login/getlogin_r.c: ... here.
10466         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
10467         * login/Makefile (routines): ... here.
10468         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
10469         * login/Versions (libc: GLIBC_2.0): ... here.
10470
10471         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
10472         (setrlimit): Define as weak alias.
10473
10474         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
10475         Call __ names for open, ftruncate, and close.
10476         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
10477         (truncate): Define as weak alias.
10478
10479 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
10480
10481         * math/gen-libm-test.pl (parse_args): Initialize x before each
10482         test of frexp, modf and remquo.
10483
10484         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
10485         test signgam value.
10486
10487 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10488
10489         [BZ #15418]
10490         [BZ #15419]
10491         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
10492         internal tests.
10493         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10494
10495 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10496
10497         * elf/dl-writev.h: New file.
10498         * elf/dl-misc.c: Include it.
10499         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
10500         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
10501
10502 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
10503
10504         * math/libm-test.inc (noXFails): Remove variable.
10505         (noXPasses): Likewise.
10506         (BUILD_COMPLEX_INT): Remove macro.
10507         (print_screen): Remove xfail argument.
10508         (print_screen_max_error): Likewise.
10509         (update_stats): Likewise.
10510         (print_max_error): Likewise.  Update calls to other affected
10511         functions.
10512         (print_complex_max_error): Likewise.
10513         (test_single_exception): Update calls to print_screen.
10514         (test_single_errno): Likewise.
10515         (check_float_internal): Remove xfail argument.  Update calls to
10516         other affected functions.
10517         (check_float): Likewise.
10518         (check_complex): Likewise.
10519         (check_int): Likewise.
10520         (check_long): Likewise.
10521         (check_bool): Likewise.
10522         (check_longlong): Likewise.
10523         (main): Don't print noXFails and noXPasses.
10524         * math/gen-libm-test.pl (top level): Don't mention expected
10525         failure handling in comment.
10526         (new_test): Don't handle expected failures.
10527         (parse_args): Don't mention expected failure handling in comment.
10528         (generate_testfile): Don't handle expected failures.
10529         (parse_ulps): Likewise.
10530         (print_ulps_file): Likewise.
10531         (get_failure): Remove function.
10532         (output_test): Don't handle expected failures.
10533         * make/README.libm-test: Don't mention expected failure handling.
10534
10535         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
10536         (minus_zero): Likewise.
10537         (plus_infty): Likewise.
10538         (minus_infty): Likewise.
10539         (qnan_value): Likewise.
10540         (max_value): Likewise.
10541         (min_value): Likewise.
10542         (min_subnorm_value): Likewise.
10543         (initialize): Do not initialize those variables dynamically.
10544
10545 2013-05-03  Roland McGrath  <roland@hack.frob.com>
10546
10547         * io/open.c (__open_2): Moved to ...
10548         * io/open_2.c: ... this new file.
10549         * io/open64.c (__open64_2): Moved to ...
10550         * io/open64_2.c: ... this new file.
10551         * io/openat.c (__openat_2): Moved to ...
10552         * io/openat_2.c: ... this new file.
10553         * io/openat64.c (__openat64_2): Moved to ...
10554         * io/openat64_2.c: ... this new file.
10555         * io/Makefile (routines): Add them.
10556         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
10557         * sysdeps/unix/sysv/linux/open_2.c: File removed.
10558         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
10559         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
10560         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
10561         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
10562         (__openat64): Add hidden_ver.
10563         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
10564         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
10565
10566         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10567         Separately conditionalize setting of GLRO(dl_sysinfo) so
10568         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
10569         as well, but the actual setting is only under [NEED_DL_SYSINFO].
10570
10571 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10572
10573         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
10574         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
10575         definition.
10576         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
10577         * sysdeps/unix/sysv/linux/powerpc/init-first.c
10578         (_libc_vdso_platform_setup): Add __vdso_time initialization.
10579         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
10580         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
10581
10582 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
10583
10584         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
10585         test signgam value.
10586
10587         * math/libm-test.inc (hypot_test): Do not use
10588         IGNORE_ZERO_INF_SIGN.
10589
10590 2013-05-03  Andreas Jaeger  <aj@suse.de>
10591
10592         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
10593         Linux 3.9.
10594         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
10595         (PF_MAX): Adjust for VSOCK change.
10596
10597 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10598
10599         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10600
10601 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
10602
10603         [BZ #15264]
10604         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
10605         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
10606         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
10607
10608 2013-05-02  David S. Miller  <davem@davemloft.net>
10609
10610         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10611
10612 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
10613
10614         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
10615
10616 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10617
10618         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
10619
10620 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
10621
10622         [BZ #14952]
10623         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
10624         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10625         Use __attribute__ ((__gnu_inline__)).
10626         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
10627         Don't use __attribute__ ((__gnu_inline__)).
10628
10629 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
10630
10631         [BZ #15423]
10632         * math/s_catan.c (__catan): Handle small real or imaginary part of
10633         input specially to avoid spurious underflow.
10634         * math/s_catanf.c (__catanf): Likewise.
10635         * math/s_catanh.c (__catanh): Likewise.
10636         * math/s_catanhf.c (__catanhf): Likewise.
10637         * math/s_catanhl.c (__catanhl): Likewise.
10638         * math/s_catanl.c (__catanl): Likewise.
10639         * math/libm-test.inc (catan_test): Add more tests.
10640         (catanh_test): Likewise.
10641         * sysdeps/i386/fpu/libm-test-ulps: Update.
10642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10643
10644 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10645
10646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10647
10648 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
10649
10650         [BZ #15416]
10651         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
10652         accurately for denominator in atan2.
10653         * math/s_catanf.c (__catanf): Likewise.
10654         * math/s_catanh.c (__catanh): Likewise.
10655         * math/s_catanhf.c (__catanhf): Likewise.
10656         * math/s_catanhl.c (__catanhl): Likewise.
10657         * math/s_catanl.c (__catanl): Likewise.
10658         * math/libm-test.inc (catan_test): Add more tests.
10659         (catanh_test): Likewise.
10660         * sysdeps/i386/fpu/libm-test-ulps: Update.
10661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10662
10663 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10664
10665         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
10666
10667         * benchtests/Makefile (bench): Remove slow benchmarks.
10668         * benchtests/atan-inputs: Add slow benchmark inputs.
10669         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
10670         (BENCH_FUNC): Accept variant offset.
10671         (VARIANT): Define.
10672         * benchtests/bench-skeleton.c (main): Run benchmark for each
10673         variant.
10674         * benchtests/cos-inputs: Add slow benchmark inputs.
10675         * benchtests/exp-inputs: Likewise.
10676         * benchtests/pow-inputs: Likewise.
10677         * benchtests/sin-inputs: Likewise.
10678         * benchtests/slowatan-inputs: Remove.
10679         * benchtests/slowatan.c: Remove.
10680         * benchtests/slowcos-inputs: Remove.
10681         * benchtests/slowcos.c: Remove.
10682         * benchtests/slowexp-inputs: Remove.
10683         * benchtests/slowexp.c: Remove.
10684         * benchtests/slowpow-inputs: Remove.
10685         * benchtests/slowpow.c: Remove.
10686         * benchtests/slowsin-inputs: Remove.
10687         * benchtests/slowsin.c: Remove.
10688         * benchtests/slowtan-inputs: Remove.
10689         * benchtests/slowtan.c: Remove.
10690         * benchtests/tan-inputs: Add slow benchmark inputs.
10691         * scripts/bench.pl: Parse comments and directives.
10692
10693         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
10694         in CPPFLAGS.
10695         ($(objpfx)bench-%.c): Remove *-ITER.
10696         * benchtests/bench-modf.c: Remove definition of ITER.
10697         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
10698         (main): Loop for DURATION seconds instead of fixed number of
10699         iterations.
10700         * scripts/bench.pl: Don't expect iterations in parameters.
10701
10702 2013-04-29  Roland McGrath  <roland@hack.frob.com>
10703
10704         * io/fchdir.c (__fchdir): Renamed from fchdir.
10705         (fchdir): Define as weak alias.
10706
10707 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10708
10709         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
10710         (ERRNO_EDOM): Likewise.
10711         (ERRNO_ERANGE): Likewise.
10712         (noErrnoTests): New variable.
10713         (init_max_error): Set errno to 0.
10714         (test_single_errno): New function.
10715         (test_errno): Likewise.
10716         (check_float_internal): Call test_errno.  Set errno to 0.
10717         (check_complex): Refer to errno tests in comment.
10718         (check_int): Call test_errno.  Set errno to 0.
10719         (check_long): Likewise.
10720         (check_bool): Likewise.
10721         (check_longlong): Likewise.
10722         (cos_test): Use ERRNO_* flags for errno tests instead of
10723         check_int.
10724         (expm1_test): Likewise.
10725         (fmod_test): Likewise.
10726         (ilogb_test): Likewise.
10727         (lgamma_test): Likewise.
10728         (pow_test): Likewise.
10729         (remainder_test): Likewise.
10730         (sin_test): Likewise.
10731         (tan_test): Likewise.
10732         (yn_test): Likewise.
10733         (initialize): Set errno to 0.
10734         (main): Print number of errno tests.
10735         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
10736
10737 2013-04-29  Andreas Jaeger  <aj@suse.de>
10738
10739         [BZ #15084]
10740         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
10741         and RES_USEVC.
10742
10743         [BZ #15085]
10744         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
10745         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
10746         unimplemented.
10747
10748         [BZ #15380]
10749         * stdlib/random.c (__initstate): Return NULL if
10750         __initstate fails.
10751
10752         [BZ #15086]
10753         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
10754         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
10755         RES_SNGLKUPREOP.
10756
10757 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10758
10759         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10760
10761 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
10762
10763         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
10764         of individual tests.
10765         (casin_test): Likewise.
10766         (casinh_test): Likewise.
10767
10768 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
10769
10770         [BZ #15409]
10771         * math/s_catan.c (__catan): Handle arguments with large real or
10772         imaginary part separately without squaring.
10773         * math/s_catanf.c (__catanf): Likewise.
10774         * math/s_catanh.c (__catanh): Likewise.
10775         * math/s_catanhf.c (__catanhf): Likewise.
10776         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10777         and redefine.
10778         (__catanhl): Handle arguments with large real or imaginary part
10779         separately without squaring.
10780         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
10781         and redefine.
10782         (__catanl): Handle arguments with large real or imaginary part
10783         separately without squaring.
10784         * math/libm-test.inc (catan_test): Add more tests.
10785         (catanh_test): Likewise.
10786         * sysdeps/i386/fpu/libm-test-ulps: Update.
10787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10788
10789 2013-04-27  Andreas Jaeger  <aj@suse.de>
10790
10791         [BZ #15007]
10792         * stdlib/stdlib.h: Update guards for qecvt.
10793         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
10794         <stdlib.h>.
10795
10796 2013-04-27  Allan McRae  <allan@archlinux.org>
10797
10798         * sysdeps/i386/fpu/libm-test-ulps: Update.
10799
10800 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
10801
10802         [BZ #15406]
10803         * math/s_catan.c: Include <float.h>.
10804         (__catan): Ensure underflow exception occurs for underflowed
10805         result.
10806         * math/s_catanf.c: Include <float.h>.
10807         (__catanf): Ensure underflow exception occurs for underflowed
10808         result.
10809         * math/s_catanh.c: Include <float.h>.
10810         (__catanh): Ensure underflow exception occurs for underflowed
10811         result.
10812         * math/s_catanhf.c: Include <float.h>.
10813         (__catanhf): Ensure underflow exception occurs for underflowed
10814         result.
10815         * math/s_catanhl.c: Include <float.h>.
10816         (__catanhl): Ensure underflow exception occurs for underflowed
10817         result.
10818         * math/s_catanl.c: Include <float.h>.
10819         (__catanl): Ensure underflow exception occurs for underflowed
10820         result.
10821         * math/libm-test.inc (catan_test): Add more tests.
10822         (catanh_test): Likewise.
10823
10824         [BZ #15405]
10825         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
10826         underflowed result.
10827         * math/s_ccoshf.c (__ccoshf): Likewise.
10828         * math/s_ccoshl.c (__ccoshl): Likewise.
10829         * math/s_csin.c (__csin): Likewise.
10830         * math/s_csinf.c (__csinf): Likewise.
10831         * math/s_csinh.c (__csinh): Likewise.
10832         * math/s_csinhf.c (__csinhf): Likewise.
10833         * math/s_csinhl.c (__csinhl): Likewise.
10834         * math/s_csinl.c (__csinl): Likewise.
10835         * math/libm-test.inc (ccos_test): Add more tests.
10836         (ccosh_test): Likewise.
10837         (csin_test): Likewise.
10838         (csinh_test): Likewise.
10839
10840 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10841
10842         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
10843         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
10844         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
10845         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
10846         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
10847         powerpc/power5+/fpu folders.
10848         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
10849
10850
10851 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10852
10853         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10854
10855 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
10856
10857         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
10858         additions to variable.
10859         [$(config-machine) = x86_64] (modules-names): Likewise.
10860         ($(objpfx)tst-audit3): Remove dependency.
10861         ($(objpfx)tst-audit3.out): Likewise.
10862         ($(objpfx)tst-audit4): Likewise.
10863         ($(objpfx)tst-audit4.out): Likewise.
10864         ($(objpfx)tst-audit5): Likewise.
10865         ($(objpfx)tst-audit5.out): Likewise.
10866         ($(objpfx)tst-audit6): Likewise.
10867         ($(objpfx)tst-audit6.out): Likewise.
10868         ($(objpfx)tst-audit7): Likewise.
10869         ($(objpfx)tst-audit7.out): Likewise.
10870         (tst-audit3-ENV): Remove variable.
10871         (tst-audit4-ENV): Likewise.
10872         (tst-audit5-ENV): Likewise.
10873         (tst-audit6-ENV): Likewise.
10874         (tst-audit7-ENV): Likewise.
10875         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
10876         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
10877         addition to variable.
10878         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
10879         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
10880         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
10881         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
10882         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
10883         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
10884         tst-audit3, tst-audit4 and tst-audit5.
10885         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
10886         tst-audit6 and tst-audit7.
10887         [$(subdir) = elf] (modules-names): Add audit modules for those
10888         tests.
10889         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
10890         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
10891         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
10892         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
10893         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
10894         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
10895         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
10896         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
10897         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
10898         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
10899         [$(subdir) = elf] (tst-audit3-ENV): New variable.
10900         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
10901         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
10902         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
10903         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
10904         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
10905         Likewise.
10906         [$(subdir) = elf && $(config-cflags-avx) = yes]
10907         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
10908         [$(subdir) = elf && $(config-cflags-avx) = yes]
10909         (CFLAGS-tst-auditmod4a.c): Likewise.
10910         [$(subdir) = elf && $(config-cflags-avx) = yes]
10911         (CFLAGS-tst-auditmod4b.c): Likewise.
10912         [$(subdir) = elf && $(config-cflags-avx) = yes]
10913         (CFLAGS-tst-auditmod6b.c): Likewise.
10914         [$(subdir) = elf && $(config-cflags-avx) = yes]
10915         (CFLAGS-tst-auditmod6c.c): Likewise.
10916         [$(subdir) = elf && $(config-cflags-avx) = yes]
10917         (CFLAGS-tst-auditmod7b.c): Likewise.
10918         * elf/tst-audit3.c: Move to ...
10919         * sysdeps/x86_64/tst-audit3.c: ... here.
10920         * elf/tst-audit4.c: Move to ...
10921         * sysdeps/x86_64/tst-audit4.c: ... here.
10922         * elf/tst-audit5.c: Move to ...
10923         * sysdeps/x86_64/tst-audit5.c: ... here.
10924         * elf/tst-audit6.c: Move to ...
10925         * sysdeps/x86_64/tst-audit6.c: ... here.
10926         * elf/tst-audit7.c: Move to ...
10927         * sysdeps/x86_64/tst-audit7.c: ... here.
10928         * elf/tst-auditmod3a.c: Move to ...
10929         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
10930         * elf/tst-auditmod3b.c: Move to ...
10931         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
10932         * elf/tst-auditmod4a.c: Move to ...
10933         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
10934         * elf/tst-auditmod4b.c: Move to ...
10935         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
10936         * elf/tst-auditmod5a.c: Move to ...
10937         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
10938         * elf/tst-auditmod5b.c: Move to ...
10939         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
10940         * elf/tst-auditmod6a.c: Move to ...
10941         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
10942         * elf/tst-auditmod6b.c: Move to ...
10943         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
10944         * elf/tst-auditmod6c.c: Move to ...
10945         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
10946         * elf/tst-auditmod7a.c: Move to ...
10947         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
10948         * elf/tst-auditmod7b.c: Move to ...
10949         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
10950
10951 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10952
10953         [BZ #15366]
10954         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
10955         define unconditionally.
10956         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
10957         define unconditionally.
10958         (INT8_C, INT16_C, etc.): Likewise.
10959
10960 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
10961
10962         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
10963         __ehdr_start with hidden visibility.
10964
10965         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
10966
10967 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
10968
10969         * math/libm-test.inc (cos_test): Use accurate hex constants.
10970         (sincost_test): Likewise.
10971
10972 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
10973
10974         * math/libm-test.inc (catan_test): Add more tests.
10975         (catanh_test): Likewise.
10976
10977         * math/s_catanf.c (__catanf): Use suffixed floating-point
10978         constants.
10979         * math/s_catanhf.c (__catanhf): Likewise.
10980         * math/s_catanhl.c (__catanhl): Likewise.
10981         * math/s_catanl.c (__catanl): Likewise.
10982
10983         [BZ #15394]
10984         * math/s_catan.c (__catan): Calculate imaginary part of result
10985         with log1p not log unless computing log of number close to 0.
10986         * math/s_catanf.c (__catanf): Likewise.
10987         * math/s_catanl.c (__catanl): Likewise.
10988         * math/s_catanh.c (__catanh): Calculate real part of result with
10989         log1p not log unless computing log of number close to 0.
10990         * math/s_catanhf.c (__catanhf): Likewise.
10991         * math/s_catanhl.c (__catanhl): Likewise.
10992         * math/libm-test.inc (catan_test): Add more tests.
10993         (catanh_test): Likewise.
10994         * sysdeps/i386/fpu/libm-test-ulps: Update.
10995         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10996
10997 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10998
10999         * benchtests/Makefile: Mention files in which fast and slow
11000         paths of math functions are implemented.
11001
11002 2013-04-23  Roland McGrath  <roland@hack.frob.com>
11003
11004         * sysdeps/posix/timespec_get.c: New file.
11005
11006 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11007
11008         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
11009         POWER.
11010         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
11011         for POWER.
11012         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
11013         powerpc/power5/fpu folders.
11014         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
11015         * benchtests/Makefile: Add modf testcase.
11016         * benchtests/bench-modf.c: New file: Benchmark test for mo
11017
11018 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
11019
11020         [BZ #14888]
11021         * time/Makefile (tests): Add tst-strptime-whitespace.
11022         * time/strptime_l.c (get_number): Use ISSPACE.
11023         (__strptime_internal): Likewise.
11024         * time/tst-strptime-whitespace.c: New test case.
11025
11026 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
11027
11028         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
11029         member.
11030         (_nss_files_init): Set it here.
11031
11032 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
11033
11034         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
11035         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
11036         unsigned.
11037
11038 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
11039
11040         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
11041
11042 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11043
11044         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
11045         size just once.
11046
11047 2013-04-21  David S. Miller  <davem@davemloft.net>
11048
11049         * po/ru.po: Update Russion translation from translation project.
11050
11051 2013-04-17  Adam Conrad  <adconrad@0c3.net>
11052
11053         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
11054         and setfsgid.
11055
11056 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
11057
11058         * configure.in: Remove i386 configure warning. Remove i386 case.
11059         * configure: Regenerate.
11060         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
11061         Add example to error message.
11062         * sysdeps/i386/configure: Regenerate.
11063
11064 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
11065
11066         * benchtests/Makefile (bench): Add cos, tan, slowcos and
11067         slowtan.
11068         * benchtests/cos-inputs: New file.
11069         * benchtests/slowcos-inputs: New file.
11070         * benchtests/slowcos.c: New file.
11071         * benchtests/slowtan-inputs: New file.
11072         * benchtests/slowtan.c: New file.
11073         * benchtests/tan-inputs: New file.
11074
11075 2013-04-16  Roland McGrath  <roland@hack.frob.com>
11076
11077         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
11078         considered kosher.
11079
11080 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11081
11082         * benchtests/Makefile: Include cppflags-iterator.mk to add
11083         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
11084
11085         * Makefile.in (bench-clean): New target.
11086         * benchtests/Makefile (bench-clean): Likewise.
11087
11088 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
11089
11090         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
11091
11092 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
11093
11094         * stdio-common/tstdiomisc.c: Fix coding-style violation.
11095
11096 2013-04-15  Andreas Schwab  <schwab@suse.de>
11097
11098         * nscd/grpcache.c (cache_addgr): Properly check for short write.
11099         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11100         * nscd/pwdcache.c (cache_addpw): Likewise.
11101         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
11102         more than recsize.
11103
11104 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11105
11106         * benchtests/Makefile (bench): Write all output to
11107         bench-out.tmp together.
11108
11109 2013-04-15  Andreas Schwab  <schwab@suse.de>
11110
11111         * nscd/nscd.c (main): Don't fork again after closing files.
11112
11113 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11114
11115         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
11116
11117         * benchtests/Rules (bench-deps): Collect dependencies into a
11118         single variable.  Add Makefile to dependencies.
11119         ($(objpfx)bench-%.c): Depend on bench-deps.
11120
11121 2013-04-12  Roland McGrath  <roland@hack.frob.com>
11122             Xavier Roche  <roche+kml2@exalead.com>
11123
11124         [BZ #15361]
11125         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
11126         just that it's a file descriptor.
11127         * manual/llio.texi (Synchronizing AIO Operations): Update description
11128         for EBADF error from aio_fsync.
11129
11130 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
11131
11132         * Rules (bench): Move target definition...
11133         * benchtests/Makefile: ... here.
11134
11135 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
11136
11137         * math/libm-test.inc (cos_test): Fix PI/2 test.
11138         (sincos_test): Likewise.
11139         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
11140         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
11141
11142 2013-04-11  Andreas Schwab  <schwab@suse.de>
11143
11144         [BZ #13988]
11145         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
11146         accept exponent character only when digits were seen.
11147         * stdio-common/Makefile (tests): Add bug26.
11148         * stdio-common/bug26.c: New file.
11149
11150         [BZ #14293]
11151         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
11152         non-freeable.
11153
11154 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11155
11156         * Makeconfig (rtld-prefix): Define built linker prefix.
11157         * Rules (run-bench): Use it.
11158         * math/Makefile (run-regen-ulps): Likewise.
11159
11160         * Rules (bench): Remove eval.
11161
11162 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11163             Roland McGrath  <roland@hack.frob.com>
11164             Ondrej Bilka  <neleai@seznam.cz>
11165
11166         [BZ #15346]
11167         * time/getdate.c: Include ctype.h and alloca.h.
11168         (__getdate_r): Trim leading and trailing spaces of input.
11169         * time/tst-getdate.c (tests): Add tests with leading and
11170         trailing spaces.
11171
11172 2013-04-08  Roland McGrath  <roland@hack.frob.com>
11173
11174         [BZ #14280]
11175         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
11176         when computing value.
11177
11178 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11179
11180         * math/README.libm-test (How can I generate "libm-test-ulps"?):
11181         Use testrun.sh to run libm tests.
11182
11183         [BZ #15309]
11184         * elf/dl-open.c (dl_open_worker): memset all of seen array.
11185
11186 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
11187
11188         [BZ #15264]
11189         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
11190
11191 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11192
11193         * Makefile.in (regen-ulps): New target.
11194         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
11195         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
11196         [ifneq (no,$(PERL)] (regen-ulps): New target.
11197         [ifeq (no,$(PERL)] (regen-ulps): New target.
11198         * math/libm-test.inc (ulps_file_name): Define.
11199         (output_dir): New variable.
11200         (options): Add "output-dir" option.
11201         (parse_opt): Handle 'o' case.
11202         (main): If output_dir is non-NULL use it as a prefix
11203         otherwise use "".
11204         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
11205
11206 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11207
11208         [BZ #10060, #10062]
11209         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
11210         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
11211         fail configure if __sync_val_compare_and_swap is not inlined.
11212         * sysdeps/i386/configure: Regenerate.
11213         * configure.in: Build for i686 when configured for i386.
11214         * configure: Regenerate.
11215         * README: Remove i386 reference.
11216
11217 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
11218
11219         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
11220         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11221
11222 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11223
11224         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
11225         (lmsnanval): New variables.
11226         (F): Add conversion tests.
11227         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
11228         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
11229
11230         * stdio-common/tstdiomisc.c (F): Properly collect individual
11231         tests' results.
11232
11233         [BZ #14686, #15336]
11234         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
11235         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
11236         Instead, use input NaN values or generate a qNaN by arithmetic
11237         operation.  Also fix bugs to comply with the standard.
11238         * math/libm-test.inc (remainder_test): Add more tests.
11239
11240         [BZ #15335, #15342]
11241         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
11242         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
11243         input NaN values or generate a qNaN by arithmetic operation.
11244
11245         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
11246         unreachable code.
11247
11248         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
11249         definitions.
11250
11251 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
11252
11253         [BZ #14478]
11254         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
11255         underflowed result.
11256         * math/s_cexpf.c (__cexpf): Likewise.
11257         * math/s_cexpl.c (__cexpl): Likewise.
11258         * math/libm-test.inc (cexp_test): Add more tests.
11259
11260 2013-04-03  Andreas Schwab  <schwab@suse.de>
11261
11262         [BZ #15330]
11263         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
11264         order arrays from heap if bigger than alloca cutoff.
11265
11266 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
11267
11268         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
11269         (SNAN_TESTS_double): Refer to GCC PR56831.
11270         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
11271         GCC PR56828.
11272
11273 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11274
11275         * Rules (bench): Move bench.out after the run is complete.
11276
11277         * Rules (bench): Echo currently running benchmark.
11278
11279         * benchtests/Makefile (bench): Add atan and slowatan.
11280         * benchtests/atan-inputs: New file.
11281         * benchtests/slowatan-inputs: New file.
11282         * benchtests/slowatan.c: New file.
11283
11284         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
11285         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
11286         its value.
11287
11288         [BZ #15305]
11289         * sysdeps/unix/sysv/linux/kernel-features.h
11290         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
11291         __ASSUME_XFS_RESTRICTED_CHOWN.
11292         * sysdeps/unix/sysv/linux/pathconf.c
11293         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
11294         Save and restore errno.
11295
11296 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
11297
11298         [BZ #15327]
11299         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
11300         arguments using __kernel_casinh.
11301         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
11302         arguments using __kernel_casinhf.
11303         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
11304         arguments using __kernel_casinhl.
11305         * math/libm-test.inc (cacosh_test): Add more tests.
11306         * sysdeps/i386/fpu/libm-test-ulps: Update.
11307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11308
11309 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11310
11311         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
11312         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
11313
11314         * bench/Makefile (bench): Add sin and slowsin.
11315         * benchtests/sin-inputs: New file.
11316         * benchtests/slowsin-inputs: New file.
11317         * benchtests/slowsin.c: New file.
11318
11319         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
11320         (bench): Add slowexp and slowpow.
11321         (exp-ITER): Increase iterations.
11322         (pow-ITER): Likewise.
11323         * benchtests/exp-inputs: Change input.
11324         * benchtests/pow-inputs: Likewise.
11325         * benchtests/slowexp-inputs: New file.
11326         * benchtests/slowexp.c: New file.
11327         * benchtests/slowpow-inputs: New file.
11328         * benchtests/slowpow.c: New file.
11329
11330 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11331
11332         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
11333         instructions.
11334         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
11335         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
11336         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
11337         * benchtests/Makefile: Add rint benchtest.
11338         * benchtests/rint-inputs: Input for rint benchtest.
11339
11340 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11341
11342         * Versions.def (libm): Add GLIBC_2.18.
11343         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
11344         hidden libm prototypes.
11345         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
11346         * math/Makefile (libm-calls): Add s_issignaling.
11347         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
11348         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
11349         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
11350         declaration.
11351         * math/math.h [__USE_GNU] (issignaling): New macro.
11352         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
11353         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
11355         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
11356         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11357         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
11358         * manual/arith.texi (issignaling): New section.
11359         * manual/libm-err-tab.pl (@all_functions): Update comment.
11360         * math/gen-libm-test.pl (parse_args): Apply special handling for
11361         issignaling.
11362         * math/libm-test.inc (print_float, issignaling_test): New
11363         functions.
11364         (check_float_internal): Add issignaling checks.
11365         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
11366         default definition.
11367         * sysdeps/powerpc/math-tests.h: New file.
11368         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
11369         tests.
11370         * math/test-snan.c (TEST_FUNC): Likewise.
11371
11372 2013-03-30  David S. Miller  <davem@davemloft.net>
11373
11374         * po/de.po: Update from translation team.
11375
11376 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
11377
11378         [BZ #10357]
11379         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11380         imaginary part less than 1.0 and real part less than 0.5
11381         specially.
11382         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11383         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11384         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
11385         (cacos_test): Add more tests.
11386         (casin_test): Likewise.
11387         (casinh_test): Likewise.
11388         * sysdeps/i386/fpu/libm-test-ulps: Update.
11389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11390
11391 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11392
11393         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
11394         ONE with its value.
11395
11396         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
11397         (__pow_mp): Replace ONE and MONE with their values.
11398         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11399         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
11400         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11401         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
11402         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11403         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11404
11405         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
11406
11407         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
11408         (__pow_mp): Replace ZERO and MZERO with their values.
11409         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11410         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11411         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11412         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11413         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11414         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
11415         (__sqr): Likewise.
11416
11417         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
11418
11419         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
11420
11421 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11422
11423         * include/stdlib.h [!SHARED] (__call_tls_dtors):
11424         Declare with __attribute__ ((weak)).
11425         * stdlib/exit.c (__libc_atexit) [!SHARED]:
11426         Call __call_tls_dtors only if it's not NULL.
11427
11428 2013-03-28  Roland McGrath  <roland@hack.frob.com>
11429
11430         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
11431         didn't do it already, then set _dl_phdr and _dl_phnum based on the
11432         magic __ehdr_start linker symbol if it's defined.
11433         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
11434         them up here if it was already done.
11435
11436         * elf/dl-support.c (_dl_phdr): Make pointer to const.
11437         (_dl_aux_init): Use const in cast when setting it.
11438         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
11439         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
11440         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
11441
11442         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
11443         Declare them here.
11444         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
11445         * csu/libc-tls.c: Nor here.
11446         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
11447
11448         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
11449         (__libc_message): Never call vsyslog.
11450
11451 2013-03-28  Alan Modra  <amodra@gmail.com>
11452
11453         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
11454         Define as empty.
11455         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
11456         Likewise.
11457
11458 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11459
11460         [BZ #15214]
11461         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
11462         underflow.
11463         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11464
11465 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11466
11467         [BZ #15304]
11468         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
11469         Don't add gid passed as argument.
11470
11471         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
11472
11473 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
11474
11475         [BZ #15307]
11476         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11477         imaginary part between 1.0 and 1.5 and real part less than 0.5
11478         specially.
11479         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11480         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11481         * math/libm-test.inc (cacos_test): Add more tests.
11482         (casin_test): Likewise.
11483         (casinh_test): Likewise.
11484         * sysdeps/i386/fpu/libm-test-ulps: Update.
11485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11486
11487 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11488
11489         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
11490         constants.
11491         (norm): Likewise.
11492         (denorm): Likewise.
11493         (__dbl_mp): Likewise.
11494         (add_magnitudes): Likewise.
11495         (sub_magnitudes): Likewise.
11496         (__add): Likewise.
11497         (__sub): Likewise.
11498         (__mul): Likewise.
11499         (__sqr): Likewise.
11500         (__inv): Likewise.
11501         (__dvd): Likewise.
11502
11503         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
11504         commented code.
11505         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
11506         (__dubcos): Likewise.
11507         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
11508         (__ieee754_acos): Likewise.
11509         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
11510         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
11511         (__exp1): Likewise.
11512         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
11513         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11514         (log1): Likewise.
11515         (my_log2): Likewise.
11516         (checkint): Likewise.
11517         * sysdeps/ieee754/dbl-64/e_remainder.c
11518         (__ieee754_remainder): Likewise.
11519         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
11520         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11521         (bsloww): Likewise.
11522         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11523
11524         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11525         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
11526         MANTISSA_STORE_T to store computations on mantissa.  Use
11527         macros for rounding and division.
11528         (denorm): Likewise.
11529         (__dbl_mp): Likewise.
11530         (add_magnitudes): Likewise.
11531         (sub_magnitudes): Likewise.
11532         (__mul): Likewise.
11533         (__sqr): Likewise.
11534         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11535         powers of two in terms of TWOPOW macro.
11536         (mp_no): Make type of mantissa as MANTISSA_T.
11537         [!RADIXI]: Define RADIXI.
11538         [!TWO52]: Define TWO52.
11539         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11540
11541 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11542
11543         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
11544         llroundl symbol when building for PPC32.
11545
11546 2013-03-24  Mark H Weaver  <mhw@netris.org>
11547
11548         * manual/arith.texi (Normalization Functions): Fix prototypes for
11549         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
11550
11551 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11552
11553         [BZ #13889]
11554         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
11555         high value to check if expl overflow.
11556         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
11557         to check for underflow and overflow.
11558         * math/libm-test.inc: Add exp test.
11559
11560 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
11561
11562         [BZ #11120]
11563         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
11564         with NOT_IN_libc.
11565
11566 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11567
11568         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
11569         symbol.
11570
11571 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11572
11573         * math/gen-libm-test.pl (parse_args, special_functions): Properly
11574         wrap blocks consisting of several statements.
11575
11576         * sysdeps/generic/math-tests.h: New file.
11577         * sysdeps/i386/fpu/math-tests.h: Likewise.
11578         * math/test-snan.c: Include it.
11579         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
11580
11581 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11582
11583         [BZ #15285]
11584         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
11585         (__ieee754_j0l): Do not improve calculations using cos of twice
11586         input for inputs above LDBL_MAX / 2.0L.
11587         (__ieee754_y0l): Likewise.
11588         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
11589         (__ieee754_j1l): Do not improve calculations using cos of twice
11590         input for inputs above LDBL_MAX / 2.0L.
11591         (__ieee754_y1l): Likewise.
11592         * math/libm-test.inc (j0_test): Add another test.
11593         (j1_test): Likewise.
11594         (y0_test): Likewise.
11595         (y1_test): Likewise.
11596         * sysdeps/i386/fpu/libm-test-ulps: Update.
11597
11598 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11599
11600         * Rules ($(objpfx)bench-%.c): Include code from a C source
11601         file.
11602
11603 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
11604
11605         [BZ #15287]
11606         * math/k_casinh.c (__kernel_casinh): Handle arguments with
11607         imaginary part 1.0 and real part less than 0.5 specially.
11608         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11609         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11610         * math/libm-test.inc (cacos_test): Add more tests.
11611         (casin_test): Likewise.
11612         (casinh_test): Likewise.
11613         * sysdeps/i386/fpu/libm-test-ulps: Update.
11614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11615
11616 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11617
11618         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
11619         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
11620
11621 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
11622
11623         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
11624         * config.make.in (config-cflags-sse4): Remove variable.
11625         (config-cflags-avx): Likewise.
11626         (config-cflags-sse2avx): Likewise.
11627         (config-cflags-novzeroupper): Likewise.
11628         (config-asflags-i686): Likewise.
11629         (have-mfma4): Likewise.
11630         (have-as-vis3): Likewise.
11631         (MIG): Likewise.
11632         * configure.in (MIG): Do not AC_SUBST.
11633         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
11634         (libc_cv_cc_sse4): Do not AC_SUBST.
11635         (libc_cv_cc_avx): Likewise.
11636         (libc_cv_cc_sse2avx): Likewise.
11637         (libc_cv_cc_novzeroupper): Likewise.
11638         (libc_cv_cc_fma4): Likewise.
11639         (libc_cv_as_i686): Likewise.
11640         (libc_cv_sparc_as_vis3): Likewise.
11641         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
11642         LIBC_CONFIG_VAR.
11643         (config-asflags-i686): Likewise.
11644         (config-cflags-avx): Likewise.
11645         (config-cflags-sse2avx): Likewise.
11646         (have-mfma4): Likewise.
11647         (config-cflags-novzeroupper): Likewise.
11648         * sysdeps/mach/configure.in (MIG): Likewise.
11649         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
11650         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
11651         LIBC_CONFIG_VAR.
11652         (config-cflags-avx): Likewise.
11653         (config-cflags-sse2avx): Likewise.
11654         (have-mfma4): Likewise.
11655         (config-cflags-novzeroupper): Likewise.
11656         * configure: Regenerated.
11657         * sysdeps/i386/configure: Likewise.
11658         * sysdeps/mach/configure: Likewise.
11659         * sysdeps/sparc/configure: Likewise.
11660         * sysdeps/x86_64/configure: Likewise.
11661
11662 2013-03-20  Roland McGrath  <roland@hack.frob.com>
11663
11664         [BZ #14812]
11665         * locale/programs/localedef.c (options): Put N_ translation marker
11666         on argument names, not just descriptions.
11667
11668 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11669
11670         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
11671
11672 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
11673
11674         [BZ #14176]
11675         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
11676
11677 2013-03-19  Roland McGrath  <roland@hack.frob.com>
11678
11679         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
11680         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
11681         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
11682         [!BEFORE_ABORT] (before_abort): New function.
11683         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
11684         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
11685         (writev_for_fatal): New function.
11686         (WRITEV_FOR_FATAL): New macro; call that.
11687         (backtrace_and_maps): New function.
11688         (BEFORE_ABORT): New macro; call that.
11689         (struct str_list): Type removed.
11690         (__libc_message, __libc_fatal): Functions removed.
11691         Include <sysdeps/posix/libc_fatal.c> instead.
11692
11693 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
11694
11695         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
11696         constants.
11697         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
11698         double constants.
11699
11700 2013-03-19  Andreas Schwab  <schwab@suse.de>
11701
11702         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
11703         * sysdeps/gnu/configure: Regenerate.
11704
11705         * configure.in: Substitute libc_cv_rtlddir.
11706         * configure: Regenerate.
11707         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
11708         * Makeconfig (rtlddir, inst_rtlddir): New variables.
11709         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
11710         * elf/Makefile (install-others, CFLAGS-interp.c)
11711         (ldso_install, common-ldd-rewrite): Likewise.
11712         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
11713         $(inst_slibdir)/$(rtld-installed-name).
11714         * scripts/rellns-sh: Add -p option.
11715         * Makerules (make-shlib-link): Use rellns-sh to get relative name
11716         for source.
11717
11718 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11719
11720         * manual/nptl.texi: Renamed to ...
11721         * manual/threads.texi: ... this.
11722         * manual/Makefile (chapters): Update.
11723
11724 2013-03-18  Roland McGrath  <roland@hack.frob.com>
11725
11726         [BZ #14812]
11727         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
11728         on argument names, not just descriptions.
11729         * malloc/memusagestat.c (options): Likewise.
11730         * nss/getent.c (options): Likewise.
11731
11732 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
11733
11734         [BZ #14812]
11735         * iconv/iconv_prog.c (options): Put N_ translation marker
11736         on argument names, not just descriptions.
11737         * iconv/iconvconfig.c (options): Likewise.
11738
11739 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
11740
11741         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
11742         implementation which is faster on all x86_64 architectures.
11743         Tested on AMD, Intel Nehalem, SNB, IVB.
11744         * sysdeps/x86_64/strnlen.S: Likewise.
11745
11746         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
11747         Remove all multiarch strlen and strnlen versions.
11748         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11749         Remove strlen and strnlen related parts.
11750
11751         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
11752         Inline strlen part.
11753         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
11754
11755         * sysdeps/x86_64/multiarch/strlen.S: Remove.
11756         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
11757         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
11758         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
11759         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11760         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
11761
11762 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
11763
11764         * manual/memory.texi (Malloc Tunable Parameters):
11765         Sort parameters alphabetically. Add comments for missing entries.
11766
11767 2013-03-17  David S. Miller  <davem@davemloft.net>
11768
11769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11770
11771 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
11772
11773         [BZ #15283]
11774         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
11775         for arguments at most half maximum finite value.
11776         * math/libm-test.inc (j0_test): Add more tests.
11777         (j1_test): Likewise.
11778         (y0_test): Likewise.
11779         (y1_test): Likewise.
11780         * sysdeps/i386/fpu/libm-test-ulps: Update.
11781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11782
11783         [BZ #14155]
11784         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
11785         1 / x and functions P and Q for arguments above 0x1p256L.
11786         (__ieee754_y0l): Likewise.
11787         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11788         (__ieee754_y1l): Likewise.
11789         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
11790         (j1_test): Likewise.
11791         (y0_test): Likewise.
11792         (y1_test): Likewise.
11793
11794 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
11795
11796         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
11797         variable.
11798
11799 2013-03-15  Roland McGrath  <roland@hack.frob.com>
11800
11801         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
11802         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
11803         zero since it's initialized to EXEC_PAGESIZE.
11804
11805         * sysdeps/unix/sysv/linux/ldsodefs.h
11806         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
11807         * sysdeps/generic/ldsodefs.h: ... here.
11808
11809 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
11810
11811         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
11812
11813         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
11814         math/test-snan.c.
11815         * math/test-snan.c: Renamed from
11816         sysdeps/powerpc/fpu/test-powerpc-snan.c.
11817         * math/Makefile (tests): Add test-snan.
11818         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
11819         test-powerpc-snan.
11820
11821         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
11822         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
11823         functions.
11824         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
11825         __builtin_nan family of functions.
11826         * math/libm-test.inc (initialize): Initialize qnan_value with
11827         __builtin_nan family of functions.
11828         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
11829         Remove variables.
11830         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
11831         Remove functions.
11832         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
11833         storage class.  Initialize qNaN_var and sNaN_var with
11834         __builtin_nan and __builtin_nans families of functions,
11835         respectively.
11836
11837         * math/libm-test.inc (acosh_test): Also test with qNaN input.
11838         (sqrt_test): Remove duplicate test with qNaN input.
11839         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
11840         (round_test, signbit_test, significand_test): Note missing +/-Inf
11841         as well as qNaN tests.
11842
11843         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
11844         qNaN_var.  Fix a few strings, too.
11845         * math/libm-test.inc (nan_value): Rename to qnan_value.
11846         * math/gen-libm-test.pl (%beautify): Adjust to that.
11847         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
11848         * math/test-misc.c (main): Likewise.
11849         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
11850         to __qnan_bytes, and __qnan_union, respectively.
11851         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
11852         Likewise.
11853         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
11854         and lqnanval, respectively.
11855         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
11856         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
11857         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
11858         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
11859
11860         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
11861         * math/test-misc.c (main) [__x86_64__]: Enable test for long
11862         doubles.
11863
11864         * math/test-misc.c (main): Fix copy'n'pastos.
11865         * misc/tst-efgcvt.c (special): Likewise.
11866
11867         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
11868         Remove declarations.
11869
11870 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11871
11872         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
11873         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
11874         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
11875         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
11876
11877 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11878
11879         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
11880         macro to return vdso values correctly in IFUNC implementations.
11881         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
11882         Optimization by using IFUNC.
11883
11884 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11885             Richard Henderson  <rth@redhat.com>
11886             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11887
11888         * Makefile.in (bench): New target.
11889         * NEWS: Mention the benchmark framework.
11890         * Rules (bench): Likewise.
11891         (binaries-bench): Generate binaries for functions to
11892         benchmark.
11893         * benchtests/Makefile: New makefile for benchmark tests.
11894         * benchtests/bench-skeleton.c: New skeleton file for benchmark
11895         programs.
11896         * benchtests/exp-inputs: New input file for EXP function.
11897         * benchtests/pow-inputs: New input file for POW function.
11898         * scripts/bench.pl: New script to generate source files for
11899         benchmark programs.
11900
11901 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11902
11903         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
11904         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
11905         computations on mantissa.  Use macros for rounding and
11906         division.
11907         (denorm): Likewise.
11908         (__dbl_mp): Likewise.
11909         (add_magnitudes): Likewise.
11910         (sub_magnitudes): Likewise.
11911         (__mul): Likewise.
11912         (__sqr): Likewise.
11913         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
11914         powers of two in terms of TWOPOW macro.
11915         (mp_no): Make type of mantissa as MANTISSA_T.
11916         [!RADIXI]: Define RADIXI.
11917         [!TWO52]: Define TWO52.
11918         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
11919
11920         * manual/nptl.texi (cindex): Modify threads to pthreads.
11921
11922 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
11923
11924         * sysdeps/x86_64/preconfigure: Regenerated.
11925
11926 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
11927
11928         [BZ #14155]
11929         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
11930         0x1p28 and above.
11931         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
11932         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
11933         0x1p28 and above.
11934         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
11935         * math/libm-test.inc (j0_test): Do not allow one spurious
11936         underflow exception.
11937         (y1_test): Likewise.
11938
11939 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11940
11941         * manual/Makefile (chapters): Add nptl.
11942         * manual/debug.texi (Debugging Support): Add link to Threads
11943         chapter.
11944         * manual/nptl.texi: New file.
11945
11946         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
11947
11948 2013-03-14  Petr Baudis  <pasky@ucw.cz>
11949
11950         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
11951         for non-NULL pointer before the memory validity test. Pointed
11952         out by Holger Brunck <holger.brunck@keymile.com>.
11953
11954 2013-03-13  Andreas Schwab  <schwab@suse.de>
11955
11956         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
11957         instead of .os.
11958
11959 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
11960
11961         * timezone/zic.c: Update from tzcode 2013b.
11962
11963 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
11964
11965         * manual/install.texi (Configuring and compiling):
11966         Mention i686 and i586.
11967         * INSTALL: Regenerate.
11968
11969 2013-03-12  Roland McGrath  <roland@hack.frob.com>
11970
11971         * sysdeps/init_array/elf-init.c: New file.
11972         * csu/elf-init.c
11973         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
11974         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
11975
11976         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
11977         __gmon_start__ as global, but as static with a .preinit_array pointer.
11978         * sysdeps/init_array/gmon-start.c: New file.  Use that.
11979         * sysdeps/init_array/crti.S: New file, empty except for comments.
11980         * sysdeps/init_array/crtn.S: Likewise.
11981
11982 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
11983
11984         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
11985         definining bcopy.
11986         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11987         Remove Prefer_SSE_for_memop.
11988         * sysdeps/x86_64/multiarch/init-arch.h: Remove
11989         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
11990         HAS_PREFER_SSE_FOR_MEMOP.
11991         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
11992         memset-x86-64.
11993         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
11994         Remove bzero, memset ifunc support.
11995         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
11996         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
11997         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11998         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11999
12000 2013-03-11  Andreas Schwab  <schwab@suse.de>
12001
12002         [BZ #15234]
12003         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
12004         by SHLIB_COMPAT.
12005         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
12006         (GLIBC_2.16): Remove pthread_atfork.
12007
12008 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
12009
12010         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
12011         (ptestcases.h): Likewise.
12012
12013 2013-03-08  Roland McGrath  <roland@hack.frob.com>
12014
12015         * Makeconfig ($(common-objpfx)config.status): Depend on
12016         sysdeps/*/preconfigure{,.in} too.
12017
12018 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
12019
12020         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
12021         (__free_hook): Use void * instead of __malloc_ptr_t.
12022         (__malloc_hook): Likewise.
12023         (__realloc_hook): Likewise.
12024         (__memalign_hook): Likewise.
12025         (__after_morecore_hook): Likewise.
12026         * malloc/arena.c (save_malloc_hook): Likewise.
12027         (save_free_hook): Likewise.
12028         * malloc/hooks.c (malloc_hook_ini): Likewise.
12029         (realloc_hook_ini): Likewise.
12030         (memalign_hook_ini): Likewise.
12031         * malloc/malloc.c (malloc_hook_ini): Likewise.
12032         (realloc_hook_ini): Likewise.
12033         (memalign_hook_ini): Likewise.
12034         (__free_hook): Likewise.
12035         (__malloc_hook): Likewise.
12036         (__realloc_hook): Likewise.
12037         (__memalign_hook): Likewise.
12038         (__libc_malloc): Likewise.
12039         (__libc_free): Likewise.
12040         (__libc_realloc): Likewise.
12041         (__libc_memalign): Likewise.
12042         (__libc_valloc): Likewise.
12043         (__libc_pvalloc): Likewise.
12044         (__libc_calloc): Likewise.
12045         (__posix_memalign): Likewise.
12046         * malloc/morecore.c (__sbrk): Likewise.
12047         (__default_morecore): Likewise.
12048
12049         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
12050
12051         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
12052         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
12053         __malloc_ptrdiff_t.
12054
12055         * malloc/malloc.h (__malloc_size_t): Remove macro.
12056         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
12057         __malloc_size_t.
12058         (old_memalign_hook): Likewise.
12059         (old_realloc_hook): Likewise.
12060         (struct hdr): Likewise.
12061         (flood): Likewise.
12062         (mallochook): Likewise.
12063         (memalignhook): Likewise.
12064         (reallochook): Likewise.
12065         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
12066         (tr_old_realloc_hook): Likewise.
12067         (tr_old_memalign_hook): Likewise.
12068         (tr_mallochook): Likewise.
12069         (tr_reallochook): Likewise.
12070         (tr_memalignhook): Likewise.
12071
12072 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12073
12074         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
12075         default_ldbl_pack and using as default implementation.
12076         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
12077         implementation.
12078         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
12079         redundant definition.
12080         (ldbl_insert_mantissa): Likewise.
12081         (ldbl_canonicalize): Likewise.
12082         (ldbl_nearbyint): Likewise.
12083         (ldbl_pack): Rename to ldbl_pack_ppc.
12084         (ldbl_unpack): Rename to ldbl_unpack_ppc.
12085         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
12086         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
12087
12088 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12089
12090         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
12091         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
12092         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
12093         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
12094         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
12095         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
12096         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
12097         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
12098
12099 2013-03-07  Andreas Jaeger  <aj@suse.de>
12100
12101         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12102         bits/mman-linux.h.
12103
12104 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12105
12106         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
12107         Include mpa.h and declare __MPEXP.
12108         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
12109         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12110         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12111         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
12112         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12113         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
12114         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
12115
12116         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
12117         (__slowpow): Use long double EXPL and LOGL functions to
12118         compute POW.
12119         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
12120         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12121         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
12122         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
12123         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
12124         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
12125
12126         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
12127         intermediate variable to calculate exponent.
12128         (__sqr): Likewise.
12129         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
12130         Likewise.
12131         (__sqr): Likewise.
12132
12133         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
12134         [!NO__SQR]: Define __sqr.
12135         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
12136         and NO__SQR.  Remove all code except __mul and __sqr.  Include
12137         sysdeps/ieee754/dbl-64/mpa.c.
12138         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
12139
12140         [BZ #12723]
12141         * posix/Makefile (tests): Add tst-pathconf.
12142         * posix/tst-pathconf.c: New test case.
12143         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
12144         _PC_PIPE_BUF.
12145         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
12146
12147 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
12148
12149         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
12150
12151 2013-03-06  Andreas Jaeger  <aj@suse.de>
12152
12153         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
12154         definition via __MAP_ANONYMOUS.
12155
12156         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
12157         it's not part of Linux headers.
12158
12159         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
12160         (MAP_HUGE_MASK): Define.
12161
12162         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12163         Define.
12164         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12165         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12166         Define.
12167         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12168         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
12169         Define.
12170         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12171         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
12172         Define.
12173         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
12174
12175         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
12176         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
12177         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
12178         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
12179         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
12180         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
12181
12182         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
12183         Handle f2fs.
12184
12185         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12186         Handle f2fs and efivarfs.
12187
12188         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
12189         f2fs.
12190
12191         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
12192         (EFIVARFS_MAGIC): Add.
12193         (F2FS_LINK_MAX): Add.
12194
12195 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12196
12197         * stdio-common/vfprintf.c: Replace __builtin_expect with
12198         __glibc_unlikely.
12199
12200 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
12201
12202         [BZ #13550]
12203         * sysdeps/generic/bp-sym.h: Remove file.
12204         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
12205         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
12206         <bp-sym.h> and <bp-asm.h>.
12207         (__longjmp): Don't use BP_SYM.
12208         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
12209         and <bp-asm.h>.
12210         (memcpy): Don't use BP_SYM.
12211         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
12212         <bp-sym.h> and <bp-asm.h>.
12213         (memcpy): Don't use BP_SYM.
12214         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
12215         <bp-asm.h>.
12216         (memcpy): Don't use BP_SYM.
12217         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
12218         <bp-asm.h>.
12219         (memset): Don't use BP_SYM.
12220         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12221         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12222         (__bzero): Don't use BP_SYM.
12223         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12224         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12225         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
12226         <bp-sym.h> and <bp-asm.h>.
12227         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12228         pointers.
12229         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
12230         <bp-sym.h> and <bp-asm.h>.
12231         (memcpy): Don't use BP_SYM.
12232         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
12233         <bp-sym.h> and <bp-asm.h>.
12234         (memset): Don't use BP_SYM.
12235         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12236         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12237         (__bzero): Don't use BP_SYM.
12238         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12239         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12240         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
12241         <bp-sym.h> and <bp-asm.h>.
12242         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12243         pointers.
12244         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
12245         <bp-sym.h> and <bp-asm.h>.
12246         (memcpy): Don't use BP_SYM.
12247         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
12248         <bp-sym.h> and <bp-asm.h>.
12249         (memset): Don't use BP_SYM.
12250         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12251         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12252         (__bzero): Don't use BP_SYM.
12253         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12254         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12255         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
12256         <bp-sym.h> and <bp-asm.h>.
12257         (__memchr): Don't use BP_SYM.
12258         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
12259         <bp-sym.h> and <bp-asm.h>.
12260         (memcmp): Don't use BP_SYM.  Remove comment about bounded
12261         pointers.
12262         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
12263         <bp-sym.h> and <bp-asm.h>.
12264         (memcpy): Don't use BP_SYM.
12265         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
12266         <bp-sym.h> and <bp-asm.h>.
12267         (__mempcpy): Don't use BP_SYM.
12268         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
12269         <bp-sym.h> and <bp-asm.h>.
12270         (__memrchr): Don't use BP_SYM.
12271         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
12272         <bp-sym.h> and <bp-asm.h>.
12273         (memset): Don't use BP_SYM.
12274         (__bzero): Likewise.
12275         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
12276         <bp-sym.h> and <bp-asm.h>.
12277         (__rawmemchr): Don't use BP_SYM.
12278         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
12279         <bp-sym.h> and <bp-asm.h>.
12280         (__STRCMP): Don't use BP_SYM.
12281         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
12282         <bp-sym.h> and <bp-asm.h>.
12283         (strchr): Don't use BP_SYM.
12284         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
12285         <bp-sym.h> and <bp-asm.h>.
12286         (__strchrnul): Don't use BP_SYM.
12287         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
12288         <bp-sym.h> and <bp-asm.h>.
12289         (strlen): Don't use BP_SYM.
12290         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
12291         <bp-sym.h> and <bp-asm.h>.
12292         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12293         pointers.
12294         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
12295         <bp-sym.h> and <bp-asm.h>.
12296         (__strnlen): Don't use BP_SYM.
12297         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
12298         <bp-sym.h> and <bp-asm.h>.
12299         (__GI__setjmp): Don't use BP_SYM.
12300         (_setjmp): Likewise.
12301         (__sigsetjmp): Likewise.
12302         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
12303         (L(start_addresses)): Don't use BP_SYM.
12304         (_start): Likewise.
12305         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
12306         <bp-asm.h>.
12307         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
12308         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
12309         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12310         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12311         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
12312         <bp-asm.h>.
12313         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
12314         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
12315         about bounded pointers.
12316         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12317         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12318         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
12319         <bp-asm.h>.
12320         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12321         about bounded pointers.  Remove GKM FIXME comments.
12322         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12323         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
12324         <bp-asm.h>.
12325         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
12326         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
12327         Remove GKM FIXME comments.
12328         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12329         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12330         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
12331         <bp-asm.h>.
12332         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
12333         about bounded pointers.  Remove GKM FIXME comment.
12334         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
12335         and <bp-asm.h>.
12336         (strncmp): Don't use BP_SYM.  Remove comment about bounded
12337         pointers.
12338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
12339         <bp-sym.h> and <bp-asm.h>.
12340         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
12342         <bp-sym.h> and <bp-asm.h>.
12343         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12344         comment.
12345
12346 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12347
12348         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
12349         call free(NULL).
12350
12351 2013-03-05  David S. Miller  <davem@davemloft.net>
12352
12353         * po/es.po: Update from translation team.
12354
12355 2013-03-05  Andreas Jaeger  <aj@suse.de>
12356
12357         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
12358         <bits/mman-linux.h>.
12359         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12360         is fine.
12361         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
12362         <bits/mman-linux.h> to end of file.
12363         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12364         is fine.
12365         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
12366         <bits/mman-linux.h> to end of file.
12367         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
12368         is fine.
12369         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
12370         <bits/mman-linux.h> to end of file.
12371
12372         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
12373         (MCL_CURRENT, MCL_FUTURE): Define here.
12374
12375 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12376
12377         [BZ #15232]
12378         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
12379         attribute_hidden.
12380         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
12381
12382 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12383
12384         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
12385         fourth parameter needed for rt_sigprocmask syscall.
12386         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
12387         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
12388         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
12389         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
12390         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
12391         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
12392
12393 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
12394
12395         [BZ #13550]
12396         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
12397         comment about bounded pointers.
12398         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
12399         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
12400
12401 2013-03-04  Andreas Jaeger  <aj@suse.de>
12402
12403         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
12404         common definitions.
12405
12406         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
12407         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
12408         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
12409         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12410         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
12411         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
12412
12413 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12414
12415         [BZ #15055]
12416         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
12417         __ieee754_sqrl instead of __sqrl.
12418
12419 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
12420
12421         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
12422         * sysdeps/powerpc/fpu_control.h: ... here.
12423         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
12424         * sysdeps/powerpc/bits/fenvinline.h: ... here.
12425         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
12426         * sysdeps/powerpc/bits/mathinline.h: ... here.
12427
12428 2013-03-01  Roland McGrath  <roland@hack.frob.com>
12429
12430         * elf/dl-hwcaps.c (_dl_important_hwcaps):
12431         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
12432         to just [NEED_DL_SYSINFO_DSO].
12433         * elf/dl-support.c: Likewise.
12434         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
12435         * elf/rtld.c (dl_main): Likewise.
12436         * elf/setup-vdso.h (setup_vdso): Likewise.
12437         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
12438         * sysdeps/unix/sysv/linux/dl-sysdep.c
12439         (_dl_discover_osversion): Likewise.
12440
12441 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
12442
12443         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
12444         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12445
12446 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12447
12448         * NEWS: Mention libm performance improvements and non-x86 PI
12449         futex support.
12450
12451         * csu/libc-start.c (__pthread_initialize_minimal): Change
12452         function arguments.
12453         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
12454
12455 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
12456
12457         [BZ #13550]
12458         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
12459         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
12460         <bp-sym.h> and <bp-asm.h>.
12461         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12462         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
12463         and <bp-asm.h>.
12464         (memcpy): Don't use BP_SYM.
12465         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
12466         <bp-asm.h>.
12467         (__mpn_add_n): Don't use BP_SYM.
12468         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
12469         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
12470         and <bp-asm.h>.
12471         (__mpn_addmul_1): Don't use BP_SYM.
12472         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12473         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
12474         <bp-sym.h>.
12475         (_setjmp): Don't use BP_SYM.
12476         (__novmx_setjmp): Likewise.
12477         (__GI__setjmp): Likewise.
12478         (__vmx_setjmp): Likewise.
12479         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
12480         <bp-sym.h>.
12481         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
12482         (__bzero): Don't use BP_SYM.
12483         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
12484         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
12485         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
12486         <bp-sym.h> and <bp-asm.h>.
12487         (memcpy): Don't use BP_SYM.
12488         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
12489         <bp-sym.h> and <bp-asm.h>.
12490         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12491         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
12492         <bp-sym.h> and <bp-asm.h>.
12493         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
12494         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
12495         <bp-asm.h>.
12496         (__mpn_lshift): Don't use BP_SYM.
12497         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12498         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
12499         <bp-asm.h>.
12500         (memset): Don't use BP_SYM.
12501         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
12502         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
12503         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
12504         <bp-asm.h>.
12505         (__mpn_mul_1): Don't use BP_SYM.
12506         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12507         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
12508         <bp-sym.h> and <bp-asm.h>.
12509         (memcmp): Don't use BP_SYM.
12510         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
12511         <bp-sym.h> and <bp-asm.h>.
12512         (memcpy): Don't use BP_SYM.
12513         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
12514         <bp-sym.h> and <bp-asm.h>.
12515         (memset): Don't use BP_SYM.
12516         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
12517         <bp-sym.h> and <bp-asm.h>.
12518         (strncmp): Don't use BP_SYM.
12519         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
12520         <bp-sym.h> and <bp-asm.h>.
12521         (memcpy): Don't use BP_SYM.
12522         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
12523         <bp-sym.h> and <bp-asm.h>.
12524         (memset): Don't use BP_SYM.
12525         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
12526         <bp-sym.h> and <bp-asm.h>.
12527         (__memchr): Don't use BP_SYM.
12528         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
12529         <bp-sym.h> and <bp-asm.h>.
12530         (memcmp): Don't use BP_SYM.
12531         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
12532         <bp-sym.h> and <bp-asm.h>.
12533         (memcpy): Don't use BP_SYM.
12534         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
12535         <bp-sym.h> and <bp-asm.h>.
12536         (__mempcpy): Don't use BP_SYM.
12537         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
12538         <bp-sym.h> and <bp-asm.h>.
12539         (__memrchr): Don't use BP_SYM.
12540         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
12541         <bp-sym.h> and <bp-asm.h>.
12542         (memset): Don't use BP_SYM.
12543         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
12544         <bp-sym.h> and <bp-asm.h>.
12545         (__rawmemchr): Don't use BP_SYM.
12546         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
12547         <bp-sym.h> and <bp-asm.h>.
12548         (__STRCMP): Don't use BP_SYM.
12549         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
12550         <bp-sym.h> and <bp-asm.h>.
12551         (strchr): Don't use BP_SYM.
12552         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
12553         <bp-sym.h> and <bp-asm.h>.
12554         (__strchrnul): Don't use BP_SYM.
12555         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
12556         <bp-sym.h> and <bp-asm.h>.
12557         (strlen): Don't use BP_SYM.
12558         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
12559         <bp-sym.h> and <bp-asm.h>.
12560         (strncmp): Don't use BP_SYM.
12561         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
12562         <bp-sym.h> and <bp-asm.h>.
12563         (__strnlen): Don't use BP_SYM.
12564         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
12565         <bp-asm.h>.
12566         (__mpn_rshift): Don't use BP_SYM.
12567         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
12568         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
12569         <bp-sym.h> and <bp-asm.h>.
12570         (__sigsetjmp): Don't use BP_SYM.
12571         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
12572         (L(start_addresses)): Don't use BP_SYM.
12573         (_start): Likewise.
12574         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
12575         <bp-asm.h>.
12576         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
12577         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12578         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12579         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
12580         <bp-asm.h>.
12581         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
12582         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
12583         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
12584         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
12585         <bp-asm.h>.
12586         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12587         comments.
12588         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
12589         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
12590         <bp-asm.h>.
12591         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
12592         FIXME comments.
12593         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
12594         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
12595         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
12596         <bp-asm.h>.
12597         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
12598         comment.
12599         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
12600         and <bp-asm.h>.
12601         (strncmp): Don't use BP_SYM,
12602         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
12603         <bp-asm.h>.
12604         (__mpn_sub_n): Don't use BP_SYM.
12605         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
12606         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
12607         and <bp-asm.h>.
12608         (__mpn_submul_1): Don't use BP_SYM.
12609         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
12610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
12611         <bp-sym.h> and <bp-asm.h>.
12612         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
12613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
12614         <bp-sym.h> and <bp-asm.h>.
12615         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
12616         comment.
12617
12618 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12619
12620         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
12621         Use ZK to minimize writes to Z.
12622         (sub_magnitudes): Simplify code a bit.
12623         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
12624         Use ZK to minimize writes to Z.
12625         (sub_magnitudes): Simplify code a bit.
12626
12627 2013-02-27  Roland McGrath  <roland@hack.frob.com>
12628
12629         * csu/gmon-start.c: Add special exception to license text.
12630
12631 2013-02-27  Richard Henderson  <rth@redhat.com>
12632
12633         * scripts/config.guess: Update from config.git.
12634         * scripts/config.sub: Likewise.
12635
12636 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12637
12638         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
12639
12640         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
12641
12642         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
12643
12644         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
12645
12646         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
12647
12648 2013-02-26  Roland McGrath  <roland@hack.frob.com>
12649
12650         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
12651         [$(build-shared = yes].
12652
12653 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12654
12655         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
12656         (__mul): Reduce iterations for calculating mantissa.
12657
12658         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
12659         MPTWO.
12660         (__mpranred): Likewise.
12661
12662         [BZ #15160]
12663         * malloc/memusagestat.c (main): Draw graphs for heap and stack
12664         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
12665
12666 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12667
12668         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
12669         Define __attribute__.
12670
12671 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12672
12673         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
12674         unused.
12675         * posix/regex_internal.h (__attribute): Remove.
12676         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
12677         (re_string_context_at): Likewise.
12678         (bitset_not): Use __attribute__ and mark function as possibly
12679         unused.
12680         (bitset_merge): Likewise.
12681         (bitset_mask): Likewise.
12682         (re_string_char_size_at): Likewise.
12683         (re_string_wchar_at): Likewise.
12684         (re_string_elem_size_at): Likewise.
12685
12686 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12687
12688         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
12689         code.
12690         (cc32): Likewise.
12691
12692         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
12693         (__acr): Likewise.
12694         (__cpy): Likewise.
12695         (norm): Likewise.
12696         (denorm): Likewise.
12697         (__dbl_mp): Likewise.
12698         (add_magnitudes): Likewise.
12699         (sub_magnitudes): Likewise.
12700         (__mul): Likewise.
12701         (__inv): Likewise.
12702
12703         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
12704         style.
12705
12706         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
12707         style.
12708
12709         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
12710         code.
12711
12712         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
12713         up changes with default code.
12714         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
12715         Likewise.
12716
12717 2013-02-24  Allan McRae  <allan@archlinux.org>
12718
12719         * manual/socket.texi (The Internet Namespace): Order menu items
12720         to match that in the file.
12721
12722         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
12723         node listing of the info page menu.
12724
12725 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
12726
12727         [BZ #13550]
12728         * sysdeps/i386/bp-asm.h: Remove file.
12729         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
12730         (PARMS): Do not use macros from bp-asm.h.
12731         (S1): Likewise.
12732         (S2): Likewise.
12733         (SIZE): Likewise.
12734         (__mpn_add_n): Do not use BP_SYM
12735         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
12736         "bp-asm.h".
12737         (PARMS): Do not use macros from bp-asm.h.
12738         (S1): Likewise.
12739         (SIZE): Likewise.
12740         (__mpn_addmul_1): Do not use BP_SYM
12741         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
12742         "bp-asm.h".
12743         (PARMS): Do not use macros from bp-asm.h.
12744         (SIGMSK): Likewise.
12745         (_setjmp): Likewise.  Do not use BP_SYM.
12746         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
12747         "bp-asm.h".
12748         (PARMS): Do not use macros from bp-asm.h.
12749         (SIGMSK): Likewise.
12750         (setjmp): Likewise.  Do not use BP_SYM.
12751         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
12752         "bp-asm.h".
12753         (PARMS): Do not use macros from bp-asm.h.
12754         (__frexp): Do not use BP_SYM.
12755         (frexp): Likewise.
12756         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
12757         "bp-asm.h".
12758         (PARMS): Do not use macros from bp-asm.h.
12759         (__frexpf): Do not use BP_SYM.
12760         (frexpf): Likewise.
12761         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
12762         "bp-asm.h".
12763         (PARMS): Do not use macros from bp-asm.h.
12764         (__frexpl): Do not use BP_SYM.
12765         (frexpl): Likewise.
12766         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
12767         "bp-asm.h".
12768         (PARMS): Do not use macros from bp-asm.h.
12769         (__remquo): Do not use BP_SYM.
12770         (remquo): Likewise.
12771         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
12772         "bp-asm.h".
12773         (PARMS): Do not use macros from bp-asm.h.
12774         (__remquof): Do not use BP_SYM.
12775         (remquof): Likewise.
12776         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
12777         "bp-asm.h".
12778         (PARMS): Do not use macros from bp-asm.h.
12779         (__remquol): Do not use BP_SYM.
12780         (remquol): Likewise.
12781         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
12782         "bp-asm.h".
12783         (PARMS): Do not use macros from bp-asm.h.
12784         (DEST): Likewise.
12785         (SRC): Likewise.
12786         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
12787         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
12788         "bp-asm.h".
12789         (PARMS): Do not use macros from bp-asm.h.
12790         (strlen): Do not use BP_SYM.
12791         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
12792         "bp-asm.h".
12793         (PARMS): Do not use macros from bp-asm.h.
12794         (S1): Likewise.
12795         (S2): Likewise.
12796         (SIZE): Likewise.
12797         (__mpn_add_n): Do not use BP_SYM.
12798         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
12799         "bp-asm.h".
12800         (PARMS): Do not use macros from bp-asm.h.
12801         (S1): Likewise.
12802         (SIZE): Likewise.
12803         (__mpn_addmul_1): Do not use BP_SYM.
12804         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
12805         weak_alias.
12806         (bzero): Likewise.
12807         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
12808         "bp-asm.h".
12809         (PARMS): Do not use macros from bp-asm.h.
12810         (S): Likewise.
12811         (SIZE): Likewise.
12812         (__mpn_lshift): Do not use BP_SYM.
12813         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
12814         "bp-asm.h".
12815         (PARMS): Do not use macros from bp-asm.h.
12816         (DEST): Likewise.
12817         (SRC): Likewise.
12818         (LEN): Likewise.
12819         (memcpy): Likewise.  Do not use BP_SYM.
12820         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
12821         libc_hidden_def and weak_alias.
12822         (mempcpy): Do not use BP_SYM in weak_alias.
12823         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
12824         "bp-asm.h".
12825         (PARMS): Do not use macros from bp-asm.h.
12826         (DEST): Likewise.
12827         (LEN): Likewise.
12828         [!BZERO_P] (CHR): Likewise.
12829         (memset): Likewise.  Do not use BP_SYM.
12830         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
12831         "bp-asm.h".
12832         (PARMS): Do not use macros from bp-asm.h.
12833         (S1): Likewise.
12834         (SIZE): Likewise.
12835         (__mpn_mul_1): Do not use BP_SYM.
12836         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
12837         "bp-asm.h".
12838         (PARMS): Do not use macros from bp-asm.h.
12839         (S): Likewise.
12840         (SIZE): Likewise.
12841         (__mpn_rshift): Do not use BP_SYM.
12842         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
12843         "bp-asm.h".
12844         (PARMS): Do not use macros from bp-asm.h.
12845         (STR): Likewise.
12846         (CHR): Likewise.
12847         (strchr): Likewise.  Do not use BP_SYM.
12848         (index): Do not use BP_SYM in weak_alias.
12849         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
12850         "bp-asm.h".
12851         (PARMS): Do not use macros from bp-asm.h.
12852         (DEST): Likewise.
12853         (SRC): Likewise.
12854         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
12855         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
12856         "bp-asm.h".
12857         (PARMS): Do not use macros from bp-asm.h.
12858         (strlen): Do not use BP_SYM.
12859         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
12860         "bp-asm.h".
12861         (PARMS): Do not use macros from bp-asm.h.
12862         (S1): Likewise.
12863         (S2): Likewise.
12864         (SIZE): Likewise.
12865         (__mpn_sub_n): Do not use BP_SYM.
12866         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
12867         "bp-asm.h".
12868         (PARMS): Do not use macros from bp-asm.h.
12869         (S1): Likewise.
12870         (SIZE): Likewise.
12871         (__mpn_submul_1): Do not use BP_SYM.
12872         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
12873         "bp-asm.h".
12874         (PARMS): Do not use macros from bp-asm.h.
12875         (S1): Likewise.
12876         (S2): Likewise.
12877         (SIZE): Likewise.
12878         (__mpn_add_n): Do not use BP_SYM.
12879         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
12880         weak_alias.
12881         (bzero): Likewise.
12882         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
12883         "bp-asm.h".
12884         (PARMS): Do not use macros from bp-asm.h.
12885         (BLK2): Likewise.
12886         (LEN): Likewise.
12887         (memcmp): Do not use BP_SYM.
12888         (bcmp): Do not use BP_SYM in weak_alias.
12889         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
12890         "bp-asm.h".
12891         (PARMS): Do not use macros from bp-asm.h.
12892         (DEST): Likewise.
12893         (SRC): Likewise.
12894         (LEN): Likewise.
12895         (memcpy): Likewise.  Do not use BP_SYM.
12896         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
12897         "bp-asm.h".
12898         (PARMS): Do not use macros from bp-asm.h.
12899         (DEST): Likewise.
12900         (SRC): Likewise.
12901         (LEN): Likewise.
12902         (memmove): Likewise.  Do not use BP_SYM.
12903         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
12904         "bp-asm.h".
12905         (PARMS): Do not use macros from bp-asm.h.
12906         (DEST): Likewise.
12907         (SRC): Likewise.
12908         (LEN): Likewise.
12909         (__mempcpy): Likewise.  Do not use BP_SYM.
12910         (mempcpy): Do not use BP_SYM in weak_alias.
12911         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
12912         "bp-asm.h".
12913         (PARMS): Do not use macros from bp-asm.h.
12914         (DEST): Likewise.
12915         (LEN): Likewise.
12916         [!BZERO_P] (CHR): Likewise.
12917         (memset): Likewise.  Do not use BP_SYM.
12918         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
12919         "bp-asm.h".
12920         (PARMS): Do not use macros from bp-asm.h.
12921         (STR2): Likewise.
12922         (strcmp): Do not use BP_SYM.
12923         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
12924         "bp-asm.h".
12925         (PARMS): Do not use macros from bp-asm.h.
12926         (STR): Likewise.
12927         (DELIM): Likewise.
12928         [USE_AS_STRTOK_R] (SAVE): Likewise.
12929         (FUNCTION): Likewise.  Do not use BP_SYM.
12930         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
12931         aliases.
12932         (strtok_r): Likewise.
12933         (__GI___strtok_r): Likewise.
12934         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12935         (PARMS): Do not use macros from bp-asm.h.
12936         (S): Likewise.
12937         (SIZE): Likewise.
12938         (__mpn_lshift): Do not use BP_SYM.
12939         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12940         (PARMS): Do not use macros from bp-asm.h.
12941         (STR): Likewise.
12942         (CHR): Likewise.
12943         (__memchr): Do not use BP_SYM.
12944         (memchr): Do not use BP_SYM in weak_alias.
12945         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12946         (PARMS): Do not use macros from bp-asm.h.
12947         (BLK2): Likewise.
12948         (LEN): Likewise.
12949         (memcmp): Do not use BP_SYM.
12950         (bcmp): Do not use BP_SYM in weak_alias.
12951         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
12952         (PARMS): Do not use macros from bp-asm.h.
12953         (S1): Likewise.
12954         (SIZE): Likewise.
12955         (__mpn_mul_1): Do not use BP_SYM.
12956         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
12957         "bp-asm.h".
12958         (PARMS): Do not use macros from bp-asm.h.
12959         (STR): Likewise.
12960         (CHR): Likewise.
12961         (__rawmemchr): Do not use BP_SYM.
12962         (rawmemchr): Do not use BP_SYM in weak_alias.
12963         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
12964         (PARMS): Do not use macros from bp-asm.h.
12965         (S): Likewise.
12966         (SIZE): Likewise.
12967         (__mpn_rshift): Do not use BP_SYM.
12968         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
12969         (PARMS): Do not use macros from bp-asm.h.
12970         (SIGMSK): Likewise.
12971         (__sigsetjmp): Likewise.  Do not use BP_SYM.
12972         * sysdeps/i386/start.S: Do not include "bp-sym.h".
12973         (_start): Do not use BP_SYM.
12974         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
12975         (PARMS): Do not use macros from bp-asm.h.
12976         (DEST): Likewise.
12977         (SRC): Likewise.
12978         (__stpcpy): Likewise.  Do not use BP_SYM.
12979         (stpcpy): Do not use BP_SYM in weak_alias.
12980         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
12981         "bp-asm.h".
12982         (PARMS): Do not use macros from bp-asm.h.
12983         (DEST): Likewise.
12984         (SRC): Likewise.
12985         (LEN): Likewise.
12986         (__stpncpy): Likewise.  Do not use BP_SYM.
12987         (stpncpy): Do not use BP_SYM in weak_alias.
12988         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
12989         (PARMS): Do not use macros from bp-asm.h.
12990         (STR): Likewise.
12991         (CHR): Likewise.
12992         (strchr): Likewise.  Do not use BP_SYM.
12993         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
12994         "bp-asm.h".
12995         (PARMS): Do not use macros from bp-asm.h.
12996         (STR): Likewise.
12997         (CHR): Likewise.
12998         (__strchrnul): Likewise.  Do not use BP_SYM.
12999         (strchrnul): Do not use BP_SYM in weak_alias.
13000         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
13001         "bp-asm.h".
13002         (PARMS): Do not use macros from bp-asm.h.
13003         (STOP): Likewise.
13004         (strcspn): Do not use BP_SYM.
13005         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
13006         "bp-asm.h".
13007         (PARMS): Do not use macros from bp-asm.h.
13008         (STR): Likewise.
13009         (STOP): Likewise.
13010         (strpbrk): Likewise.  Do not use BP_SYM.
13011         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
13012         "bp-asm.h".
13013         (PARMS): Do not use macros from bp-asm.h.
13014         (STR): Likewise.
13015         (CHR): Likewise.
13016         (strrchr): Likewise.  Do not use BP_SYM.
13017         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
13018         (PARMS): Do not use macros from bp-asm.h.
13019         (SKIP): Likewise.
13020         (strspn): Do not use BP_SYM.
13021         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
13022         (PARMS): Do not use macros from bp-asm.h.
13023         (STR): Likewise.
13024         (DELIM): Likewise.
13025         (SAVE): Likewise.
13026         (FUNCTION): Likewise.  Do not use BP_SYM.
13027         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
13028         aliases.
13029         (strtok_r): Likewise.
13030         (__GI___strtok_r): Likewise.
13031         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
13032         (PARMS): Do not use macros from bp-asm.h.
13033         (S1): Likewise.
13034         (S2): Likewise.
13035         (SIZE): Likewise.
13036         (__mpn_sub_n): Do not use BP_SYM.
13037         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
13038         "bp-asm.h".
13039         (PARMS): Do not use macros from bp-asm.h.
13040         (S1): Likewise.
13041         (SIZE): Likewise.
13042         (__mpn_submul_1): Do not use BP_SYM.
13043         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
13044         <bp-sym.h>.
13045         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
13046         and <bp-asm.h>.
13047         (PARMS): Do not use macros from bp-asm.h.
13048         (FLAGS): Likewise.
13049         (PTID): Likewise.
13050         (TLS): Likewise.
13051         (CTID): Likewise.
13052         (__clone): Do not use BP_SYM.
13053         (clone): Do not use BP_SYM in weak_alias.
13054         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
13055         and <bp-asm.h>.
13056         (PARMS): Do not use macros from bp-asm.h.
13057         (LEN): Likewise.
13058         (__mmap64): Do not use BP_SYM.
13059         (mmap64): Do not use BP_SYM in weak_alias.
13060         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
13061         <bp-sym.h> and <bp-asm.h>.
13062         (PARMS): Do not use macros from bp-asm.h.
13063         (__posix_fadvise64_l64): Do not use BP_SYM.
13064         * sysdeps/unix/sysv/linux/i386/semtimedop.S
13065         (PARMS): Do not use macros from bp-asm.h.
13066         (NSOPS): Likewise.
13067         (semtimedop): Do not use BP_SYM.
13068         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
13069         and <bp-asm.h>.
13070
13071 2013-02-21  Allan McRae  <allan@archlinux.org>
13072
13073         * manual/message.texi (Charset conversion in gettext):
13074         Move @end statement to beginning of line.
13075
13076 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
13077
13078         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
13079         static.
13080         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
13081         Likewise.
13082
13083         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
13084         (denorm): Likewise.
13085         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
13086         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
13087
13088 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13089
13090         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
13091         tail-call to the resolved function if pltexit isn't needed.
13092
13093 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
13094
13095         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
13096         or Y being zero as being unlikely.
13097         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
13098         Likewise.
13099
13100 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
13101
13102         * manual/nss.texi (System Databases and Name Service Switch):
13103         Remove frobnicate @pxref.
13104
13105 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13106
13107         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13108         __attribute__ ((unused)) to __attribute__ ((__unused__)).
13109
13110 2013-02-20  Petr Machata  <pmachata@redhat.com>
13111
13112         * elf/elf.h (R_ARM_TARGET1): New macro.
13113         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
13114         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
13115         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
13116         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
13117         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
13118         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
13119         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
13120         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
13121         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
13122         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
13123         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
13124         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
13125         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
13126         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
13127         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
13128         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
13129         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
13130         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
13131         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
13132         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
13133         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
13134         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
13135         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
13136         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
13137         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
13138         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
13139         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
13140         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
13141         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
13142         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
13143         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
13144         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
13145         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
13146         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
13147         (R_ARM_THM_GOT_BREL12): Likewise.
13148         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
13149         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
13150         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
13151         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
13152         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
13153         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
13154         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
13155         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
13156         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
13157
13158 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
13159
13160         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
13161         __attribute_used__ to __attribute__ ((unused)).
13162
13163 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13164
13165         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
13166         powerpc mpa.c.
13167         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
13168         comment formatting.
13169         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
13170
13171 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
13172
13173         [BZ #13550]
13174         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
13175         Remove macro.
13176         (ENTER): Remove both macro definitions.
13177         (LEAVE): Likewise.
13178         (CHECK_BOUNDS_LOW): Likewise.
13179         (CHECK_BOUNDS_HIGH): Likewise.
13180         (CHECK_BOUNDS_BOTH): Likewise.
13181         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
13182         (RETURN_BOUNDED_POINTER): Likewise.
13183         (RETURN_NULL_BOUNDED_POINTER): Likewise.
13184         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
13185         (POP_ERRNO_LOCATION_RETURN): Likewise.
13186         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
13187         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13188         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
13189         macros.
13190         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13191         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
13192         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
13193         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
13194         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
13195         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
13196         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
13197         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
13198         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
13199         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
13200         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
13201         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
13202         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13203         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
13204         removed macros.
13205         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13206         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
13207         macros.
13208         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13209         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
13210         * sysdeps/i386/i586/memset.S (memset): Likewise.
13211         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
13212         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13213         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
13214         macros.
13215         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13216         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
13217         Change uses of L(2) to L(out).
13218         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
13219         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
13220         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
13221         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13222         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
13223         removed macros.
13224         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13225         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
13226         macros.
13227         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13228         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
13229         (RETURN): Do not use macro LEAVE.
13230         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
13231         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
13232         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
13233         * sysdeps/i386/i686/memset.S (memset): Likewise.
13234         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
13235         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
13236         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
13237         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
13238         Likewise.
13239         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13240         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
13241         L(1_2) and L(1_3) into L(1).
13242         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13243         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
13244         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13245         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
13246         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
13247         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
13248         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
13249         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13250         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
13251         macros.
13252         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
13253         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
13254         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
13255         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
13256         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
13257         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
13258         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
13259         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
13260         * sysdeps/i386/strcspn.S (strcspn): Likewise.
13261         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
13262         * sysdeps/i386/strrchr.S (strrchr): Likewise.
13263         * sysdeps/i386/strspn.S (strspn): Likewise.
13264         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
13265         conditional code.
13266         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
13267         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
13268         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
13269         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
13270         L(1_3) into L(1_1).
13271         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
13272         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
13273         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
13274         macros.
13275         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
13276
13277 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
13278
13279         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
13280         macro.
13281
13282 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13283
13284         * math/atest-exp.c (exp_mpn): Remove ROUND.
13285         * math/atest-exp2.c (exp_mpn): Likewise.
13286         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
13287
13288         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
13289         * stdlib/tst-tls-atexit-lib.c: Likewise.
13290         * stdlib/tst-tls-atexit.c: Likewise.
13291
13292 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13293
13294         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
13295         and __attribute_alloc_size__.
13296
13297 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13298
13299         * include/programs/xmalloc.h: Change __attribute_alloc_size to
13300         __attribute_alloc_size__.
13301         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
13302         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
13303
13304 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
13305
13306         * include/programs/xmalloc.h: New file.
13307         * catgets/gencat.c: Include it.
13308         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
13309         * elf/pldd.c: Likewise.
13310         * iconv/iconv_charmap.c: Likewise.
13311         * iconv/iconvconfig.c: Likewise.
13312         * iconv/strtab.c: Likewise.
13313         * locale/programs/locale.c: Likewise.
13314         * locale/programs/localedef.h: Likewise.
13315         * locale/programs/simple-hash.c: Likewise.
13316         * nscd/nscd.h: Likewise.
13317         * nss/makedb.c: Likewise.
13318         * sysdeps/generic/ldconfig.h: Likewise.
13319
13320 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13321
13322         * Versions.def: Add GLIBC_2.18.
13323         * include/link.h (struct link_map): New member l_tls_dtor_count.
13324         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
13325         (__call_tls_dtors): Likewise.
13326         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
13327         __cxa_thread_atexit_impl.
13328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13329         Likewise.
13330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13331         Likewise.
13332         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
13333         Likewise.
13334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
13335         Likewise.
13336         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
13338         Likewise.
13339         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
13340         Likewise.
13341         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13342         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13343         Likewise.
13344         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
13345         (tests): Add test case tst-tls-atexit.
13346         (modules-names): Add shared library for tst-tls-atexit.
13347         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
13348         (GLIBC_PRIVATE): Add __call_tls_dtors.
13349         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
13350         for libstdc++.
13351         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
13352         * stdlib/tst-tls-atexit.c: New test case.
13353         * stdlib/tst-tls-atexit-lib.c: New test case.
13354
13355         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
13356
13357         * elf/Versions (ld): Add _dl_find_dso_for_object.
13358         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
13359         * elf/dl-open.c (_dl_find_dso_for_object): New function.
13360         (dl_open_worker): Use _dl_find_dso_for_object.
13361         * elf/dl-sym.c (do_sym): Likewise.
13362         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
13363
13364 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13365
13366         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
13367         Syntactic changes only.
13368         (_dl_runtime_profile): Do a tail-call to the resolved function.
13369
13370 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
13371
13372         [BZ #13550]
13373         * sysdeps/x86_64/bp-asm.h: Remove file.
13374         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
13375         <bp-sym.h> and <bp-asm.h>.
13376         (__clone): Do not use BP_SYM.
13377         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
13378         <bp-sym.h> and <bp-asm.h>.
13379         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13380         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
13381         "bp-asm.h".
13382         (_setjmp): Do not use BP_SYM.
13383         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
13384         "bp-asm.h".
13385         (setjmp): Do not use BP_SYM.
13386         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
13387         libc_hidden_def.
13388         (mempcpy): Do not use BP_SYM in weak_alias.
13389         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
13390         "bp-asm.h".
13391         (strchr): Do not use BP_SYM.
13392         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
13393         "bp-asm.h".
13394         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
13395         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
13396         (_start): Do not use BP_SYM.
13397         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
13398         "bp-asm.h".
13399         (strcat): Do not use BP_SYM.
13400         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
13401         "bp-asm.h".
13402         (STRCMP): Do not use BP_SYM.
13403         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
13404         "bp-asm.h".
13405         (STRCPY): Do not use BP_SYM.
13406         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
13407         "bp-asm.h".
13408         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
13409         "bp-asm.h".
13410         (FUNCTION): Do not use BP_SYM.
13411         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
13412         weak_alias.
13413         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
13414
13415 2013-02-17  Andreas Jaeger  <aj@suse.de>
13416
13417         * time/Versions: Sort entries.
13418         * string/Versions: Likewise.
13419         * resolv/Versions: Likewise.
13420         * posix/Versions: Likewise.
13421         * iconv/Versions: Likewise.
13422         * elf/Versions: Likewise.
13423         * wcsmbs/Versions: Likewise.
13424
13425 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
13426
13427         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
13428         loop termination condition.
13429
13430         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
13431         variable to calculate EZ.
13432         (__sqr): Likewise.
13433
13434         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
13435         the lower precision input.
13436
13437 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
13438
13439         [BZ #13550]
13440         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
13441         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
13442         (run-via-rtld-prefix): Do not handle %-bp tests.
13443         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
13444         (all-object-suffixes): Remove .ob.
13445         (bppfx): Remove variable.
13446         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
13447         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
13448         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
13449         [$(build-bounded) = yes] (libtype.ob): Likewise.
13450         * Makerules (elide-routines.ob): Remove variable.
13451         (do-tests-clean): Do not handle *-bp.out.
13452         (common-mostlyclean): Do not handle *-bp and *-bp.out.
13453         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
13454         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
13455         (tests): Do not include $(tests-bp.out).
13456         (xtests): Do not include $(xtests-bp.out).
13457         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
13458         [$(build-bounded) = yes] ($(addprefix
13459         $(objpfx),$(binaries-bounded))): Remove rule.
13460         ($(objpfx)%-bp.out): Remove rule.
13461         * config.make.in (build-bounded): Remove variable.
13462         * crypt/Makefile [$(build-bounded) = yes]
13463         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
13464         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
13465         append to variable.
13466         [$(build-bounded) = yes] (install-lib): Likewise.
13467         [$(build-bounded) = yes] (generated): Likewise.
13468         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
13469         Remove rule.
13470         * intl/Makefile [$(build-bounded) = yes]
13471         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
13472         * math/Makefile [$(build-bounded) = yes]
13473         ($(tests:%=$(objpfx)%-bp): Likewise.
13474         * misc/Makefile [$(build-bounded) = yes]
13475         ($(objpfx)tst-tsearch-bp): Likewise.
13476         * nptl/Makeconfig (bounded-thread-library): Remove variable.
13477         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
13478         Remove dependency.
13479         * string/Makefile (o-objects.ob): Remove variable.
13480         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
13481         (CFLAGS-.ob): Remove variable.
13482         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
13483         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
13484         both definitions of variable.
13485         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
13486         (ASFLAGS-.ob): Remove variable.
13487
13488 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
13489
13490         [BZ #13550]
13491         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
13492         Remove __BOUNDED_POINTERS__ from condition.
13493         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
13494         * string/bits/string2.h [!__NO_STRING_INLINES &&
13495         !__BOUNDED_POINTERS__]: Likewise.
13496         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
13497         Likewise.
13498         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
13499         Remove conditional code.
13500         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
13501         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
13502         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
13503         condition.
13504
13505         [BZ #13550]
13506         * csu/libc-start.c: Do not include <bp-sym.h>.
13507         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
13508         * elf/dl-open.c: Do not include <bp-sym.h>.
13509         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
13510         * math/fegetenv.c: Do not include <bp-sym.h>.
13511         (fegetenv): Do not use BP_SYM in versioned symbols.
13512         * nptl/sysdeps/pthread/bits/libc-lockP.h
13513         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
13514         <bp-sym.h>.
13515         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13516         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
13517         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13518         (__pthread_mutex_destroy): Likewise.
13519         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13520         (__pthread_mutex_lock): Likewise.
13521         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13522         (__pthread_mutex_trylock): Likewise.
13523         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13524         (__pthread_mutex_unlock): Likewise.
13525         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13526         (__pthread_mutexattr_init): Likewise.
13527         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13528         (__pthread_mutexattr_destroy): Likewise.
13529         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13530         (__pthread_mutexattr_settype): Likewise.
13531         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13532         (__pthread_rwlock_init): Likewise.
13533         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13534         (__pthread_rwlock_destroy): Likewise.
13535         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13536         (__pthread_rwlock_rdlock): Likewise.
13537         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13538         (__pthread_rwlock_tryrdlock): Likewise.
13539         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13540         (__pthread_rwlock_wrlock): Likewise.
13541         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13542         (__pthread_rwlock_trywrlock): Likewise.
13543         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13544         (__pthread_rwlock_unlock): Likewise.
13545         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13546         (__pthread_key_create): Likewise.
13547         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13548         (__pthread_setspecific): Likewise.
13549         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13550         (__pthread_getspecific): Likewise.
13551         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
13552         Likewise.
13553         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13554         (_pthread_cleanup_push_defer): Likewise.
13555         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13556         (_pthread_cleanup_pop_restore): Likewise.
13557         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
13558         (pthread_setcancelstate): Likewise.
13559         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
13560         <bp-sym.h>.
13561         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
13562         (memchr): Do not use BP_SYM in weak_alias.
13563         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
13564         (fegetenv): Do not use BP_SYM in versioned symbols.
13565         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
13566         (fesetenv): Do not use BP_SYM in versioned symbols.
13567         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13568         (feupdateenv): Do not use BP_SYM in versioned symbols.
13569         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13570         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13571         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
13572         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
13573         (open64): Do not use BP_SYM in weak_alias.
13574         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
13575         (fegetenv): Do not use BP_SYM in versioned symbols.
13576         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
13577         (fesetenv): Do not use BP_SYM in versioned symbols.
13578         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
13579         (feupdateenv): Do not use BP_SYM in versioned symbols.
13580         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
13581         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
13582         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
13583         (feraiseexcept): Do not use BP_SYM in versioned symbols.
13584         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
13585         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
13586         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
13587         <bp-sym.h>.
13588         (__libc_start_main): Do not use BP_SYM.
13589
13590 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13591
13592         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
13593         redundant return line.
13594         (norm): Likewise.
13595         (denorm): Likewise.
13596         (dbl_mp): Likewise.
13597         (sub_magnitudes): Likewise.
13598         (__add): Likewise.
13599         (__sub): Likewise.
13600         (__mul): Likewise.
13601         (__inv): Likewise.
13602         (__dvd): Likewise.
13603         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
13604         (norm): Likewise.
13605         (denorm): Likewise.
13606         (dbl_mp): Likewise.
13607         (sub_magnitudes): Likewise.
13608         (__add): Likewise.
13609         (__sub): Likewise.
13610         (__mul): Likewise.
13611         (__inv): Likewise.
13612         (__dvd): Likewise.
13613
13614         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
13615         instead of __mul.
13616         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13617         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
13618         (cc32): Likewise.
13619
13620         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
13621         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
13622         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
13623         of __mul for squares.
13624         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
13625         function
13626         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
13627         Likewise.
13628         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
13629         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13630
13631 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
13632
13633         [BZ #13550]
13634         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
13635         code.
13636         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
13637         prototype or function definition.  Rename ubp_* variables and
13638         parameters.  Remove argv definitions conditional on
13639         [__BOUNDED_POINTERS__].
13640         * debug/backtrace.c (__backtrace): Do not use __unbounded.
13641         * elf/dl-runtime.c (_dl_fixup): Likewise.
13642         * include/set-hooks.h (RUN_HOOK): Likewise.
13643         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
13644         definition.
13645         * string/strcpy.c (strcpy): Do not use __unbounded.
13646         * sysdeps/generic/frame.h (struct layout): Likewise.
13647         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
13648         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
13649         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
13650         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
13651         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
13652         (__backtrace): Likewise.
13653         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
13654         use __ptrvalue.
13655         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
13656         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
13657         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13658         Likewise.
13659         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
13660         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
13661         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
13662         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
13663         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
13664         Do not use __unbounded.
13665         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
13666         Rename __unboundedrlimits parameter to rlimits in prototype.
13667         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
13668         Do not use __unbounded.
13669         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
13670         not use __ptrvalue.
13671         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
13672         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
13673         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
13674         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
13675         __ptrvalue or __unbounded.
13676         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
13677         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
13678         use __unbounded.
13679         (__new_msgctl): Do not use __ptrvalue.
13680         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
13681         __unbounded.
13682         (__libc_msgrcv): Do not use __ptrvalue.
13683         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
13684         startup_info): Do not use __unbounded.
13685         (__libc_start_main): Likewise.  Rename ubp_* variables and
13686         parameters.  Remove argv definitions conditional on
13687         [__BOUNDED_POINTERS__].
13688         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
13689         __ptrvalue.
13690         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
13691         use __unbounded.
13692         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
13693         or __ptrvalue.
13694         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
13695         use __unbounded.
13696         (__new_shmctl): Do not use __ptrvalue.
13697         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
13698         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
13699         Likewise.
13700         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
13701         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
13702         (__libc_sigaction): Likewise.
13703         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
13704         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
13705         Likewise.
13706         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
13707
13708 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
13709
13710         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
13711
13712         * string/mempcpy.c: Implement by calling memcpy.
13713
13714 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
13715
13716         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
13717
13718         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
13719         evaluation.
13720
13721         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
13722         values in the mantissa.
13723
13724         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
13725         minimize writes to Z.
13726         (sub_magnitudes): Simplify code a bit.
13727
13728 2013-02-12  Roland McGrath  <roland@hack.frob.com>
13729
13730         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
13731         from the message.  The linker prefixes all warnings with that already.
13732
13733 2013-02-12  Andreas Schwab  <schwab@suse.de>
13734
13735         [BZ #15078]
13736         * posix/regexec.c (extend_buffers): Add parameter min_len.
13737         (check_matching): Pass minimum needed length.
13738         (clean_state_log_if_needed): Likewise.
13739         (get_subexp): Likewise.
13740         * posix/Makefile (tests): Add bug-regex34.
13741         (bug-regex34-ENV): Define.
13742         * posix/bug-regex34.c: New file.
13743
13744         [BZ #11561]
13745         * posix/regcomp.c (parse_bracket_exp): When looking up collating
13746         elements compare against the byte sequence of it, not its name.
13747         * posix/Makefile (tests): Add bug-regex35.
13748         (bug-regex35-ENV): Define.
13749         * posix/bug-regex35.c: New file.
13750
13751 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13752
13753         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
13754         comment.
13755         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
13756         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
13757         (CHECK_EOL): Add undef.
13758
13759 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
13760
13761         * bits/stdlib-bsearch.h: New file.
13762         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
13763         * stdlib/stdlib.h: Likewise.
13764
13765 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13766
13767         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
13768         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
13769         declaration.
13770         * manual/search.texi (Array Search Function): Add missing const in
13771         lfind prototype.
13772         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
13773         declaration to use rlim_t.
13774         (Basic Scheduling Functions): Remove erroneous const from
13775         sched_getparam prototype.  Remove erroneous * from
13776         sched_get_priority_max and sched_get_priority_min prototypes.
13777         (Resource Usage): Fix summary @comment on vtimes to refer to
13778         sys/vtimes.h rather than vtimes.h.
13779         Add missing *s in vtimes prototype.
13780         (Limits on Resources): Fix ulimit prototype to return long int.
13781         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
13782         prototypes to use long int rather than double.
13783         (BSD Random): Fix initstate and setstate to use char *, not void *.
13784         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
13785         prototype to make second argument 'struct aiocb64 *const[]'.
13786         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
13787         (Status of AIO Operations): Remove erroneous const in aio_return and
13788         aio_return64 prototypes.
13789         (Synchronizing I/O): Fix sync prototype to return void.
13790         * manual/startup.texi (Suboptions): Remove an erroneous const in
13791         getsubopt prototype.
13792         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
13793         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
13794         use size_t rather than int.
13795         (Scanning All Users): Likewise for getpwent_r.
13796         (Setting Groups): Add missing const to setgroups prototype.
13797         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
13798         * manual/socket.texi (Host Names): Fix gethostbyaddr and
13799         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
13800         'const void *' rather than 'const char *'.
13801         (Host Address Functions): Likewise for inet_ntop.
13802         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
13803         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
13804         ssize_t for return value.
13805         (Sending Data): Likewise for send, sendto, sendmsg.
13806         (Socket Option Functions): Add a missing const in setsockopt prototype.
13807         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
13808         use wchar_t for the argument.
13809         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
13810         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
13811         take no arguments.
13812         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
13813         double/float/long double for second argument.
13814         Fix return types of significand, significandf, significandl.
13815         * manual/filesys.texi (Setting Permissions): Use mode_t for second
13816         argument in fchmod prototype.
13817         (File Owner): Use uid_t and gid_t in fchown prototype.
13818         (File Times): Add const to utimes, futimes, and lutimes prototypes.
13819         (Making Special Files): Use mode_t and dev_t in mknod prototype.
13820         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
13821         use 'const struct dirent **' as argument types to CMP function pointer
13822         argument.
13823         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
13824         (File Times): Fix summary magic @comment for struct utimbuf and utime
13825         to refer to utime.h, not time.h.
13826         * manual/string.texi (Argz Functions): Add missing const in
13827         argz_extract and argz_next prototypes.
13828         (Finding Tokens in a String): Likewise for basename.
13829         (String/Array Comparison): Fix typo in wcscasecmp prototype.
13830         (Copying and Concatenation): Fix typo in wmemmove prototype.
13831         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
13832         (Signal Stack): Remove erroneous const in sigstack prototype.
13833         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
13834         prototype.
13835         (Simple Calendar Time): Likewise for stime.
13836         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
13837         prototype.
13838         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
13839         say sys/sysctl.h instead.
13840         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
13841         and vsyslog prototypes.
13842
13843 2013-02-11  Tom de Vries  <tom@codesourcery.com>
13844
13845         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
13846         Remove.
13847
13848 2013-02-11  Roland McGrath  <roland@hack.frob.com>
13849
13850         * misc/sys/mman.h: Fix typo in mremap comment.
13851
13852 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13853
13854         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
13855         the '\0' terminator.
13856
13857 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13858
13859         [BZ #13550]
13860         * debug/segfault.c: Don't include <bp-checks.h>.
13861         * sysdeps/generic/bp-checks.h: Remove file.
13862         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
13863         (__GETDENTS): Don't use CHECK_N.
13864         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
13865         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
13866         (__getgroups): Don't use CHECK_N.
13867         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
13868         (setgroups): Don't use CHECK_N.
13869         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
13870         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13871         (__libc_msgrcv): Don't use CHECK_N.
13872         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
13873         (__libc_msgsnd): Don't use CHECK_N.
13874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
13875         <bp-checks.h>.
13876         (__libc_pread): Don't use CHECK_N.
13877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
13878         include <bp-checks.h>.
13879         (__libc_pread64): Don't use CHECK_N.
13880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
13881         include <bp-checks.h>.
13882         (__libc_pwrite): Don't use CHECK_N.
13883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
13884         include <bp-checks.h>.
13885         (__libc_pwrite64): Don't use CHECK_N.
13886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
13887         <bp-checks.h>.
13888         (__libc_pread): Don't use CHECK_N.
13889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
13890         include <bp-checks.h>.
13891         (__libc_pread64): Don't use CHECK_N.
13892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
13893         include <bp-checks.h>.
13894         (__libc_pwrite): Don't use CHECK_N.
13895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
13896         include <bp-checks.h>.
13897         (__libc_pwrite64): Don't use CHECK_N.
13898         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
13899         (do_pread): Don't use CHECK_N.
13900         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
13901         (do_pread64): Don't use CHECK_N.
13902         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
13903         (do_pwrite): Don't use CHECK_N.
13904         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
13905         (do_pwrite64): Don't use CHECK_N.
13906         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
13907         (__libc_readv): Don't use CHECK_N.
13908         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
13909         (semop): Don't use CHECK_N.
13910         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
13911         <bp-checks.h>.
13912         (semtimedop): Don't use CHECK_N.
13913         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
13914         (__libc_pread): Don't use CHECK_N.
13915         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
13916         <bp-checks.h>.
13917         (__libc_pread64): Don't use CHECK_N.
13918         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
13919         <bp-checks.h>.
13920         (__libc_pwrite): Don't use CHECK_N.
13921         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
13922         <bp-checks.h>.
13923         (__libc_pwrite64): Don't use CHECK_N.
13924         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
13925         <bp-checks.h>.
13926         (__libc_msgrcv): Don't use CHECK_N.
13927         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
13928         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
13929         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
13930         (__libc_writev): Don't use CHECK_N.
13931
13932 2013-02-08  Roland McGrath  <roland@hack.frob.com>
13933
13934         * string/strcpy.c: Removed unused variable.
13935
13936         * Makeconfig (+sysdep-includes): Define with := rather than =.
13937         Use an existing include/ subdir of each sysdeps dir before it.
13938
13939 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13940
13941         * nscd/connection.c (register_traced_file): Comment function.
13942         [HAVE_INOTIFY] (union __inev): Define.
13943         [HAVE_INOTIFY] (inotify_check_files): New function.
13944         [HAVE_INOTIFY] (clear_db_cache): Likewise.
13945         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
13946         clear_db_cache.
13947         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
13948
13949 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13950
13951         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
13952         loaded if not already and that a failure is permanent.
13953
13954 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
13955
13956         [BZ #15006]
13957         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
13958         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
13959
13960 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
13961
13962         [BZ #13550]
13963         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
13964         (CHECK_1_NULL_OK): Likewise.
13965         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
13966         (__fxstat): Do not use CHECK_1.
13967         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
13968         <bp-checks.h>.
13969         (___fxstat64): Do not use CHECK_1.
13970         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
13971         <bp-checks.h>.
13972         (__fxstatat): Do not use CHECK_1.
13973         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
13974         <bp-checks.h>.
13975         (__fxstatat64): Do not use CHECK_1.
13976         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
13977         <bp-checks.h>.
13978         (__fxstat): Do not use CHECK_1.
13979         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
13980         <bp-checks.h>.
13981         (__fxstatat): Do not use CHECK_1.
13982         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13983         <bp-checks.h>.
13984         (__getresgid): Do not use CHECK_1.
13985         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13986         <bp-checks.h>.
13987         (__getresuid): Do not use CHECK_1.
13988         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
13989         <bp-checks.h>.
13990         (__lxstat): Do not use CHECK_1.
13991         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13992         <bp-checks.h>.
13993         (__old_msgctl): Do not use CHECK_1.
13994         (__new_msgctl): Likewise.
13995         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
13996         <bp-checks.h>.
13997         (__new_setrlimit): Do not use CHECK_1.
13998         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13999         <bp-checks.h>.
14000         (__old_shmctl): Do not use CHECK_1.
14001         (__new_shmctl): Likewise.
14002         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
14003         <bp-checks.h>.
14004         (__xstat): Do not use CHECK_1.
14005         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
14006         (__lxstat): Do not use CHECK_1.
14007         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
14008         <bp-checks.h>.
14009         (___lxstat64): Do not use CHECK_1.
14010         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
14011         (__old_msgctl): Do not use CHECK_1.
14012         (__new_msgctl): Likewise.
14013         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
14014         <bp-checks.h>.
14015         (__gettimeofday): Do not use CHECK_1.
14016         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
14017         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
14018         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
14019         <bp-checks.h>.
14020         (__gettimeofday): Do not use CHECK_1.
14021         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
14022         (__old_shmctl): Do not use CHECK_1_NULL_OK.
14023         (__new_shmctl): Do not use CHECK_1.
14024         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
14025         <bp-checks.h>.
14026         (do_sigtimedwait): Do not use CHECK_1.
14027         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
14028         <bp-checks.h>.
14029         (do_sigwaitinfo): Do not use CHECK_1.
14030         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
14031         <bp-checks.h>.
14032         (msgctl): Do not use CHECK_1.
14033         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
14034         <bp-checks.h>.
14035         (shmctl): Do not use CHECK_1.
14036         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
14037         (ustat): Do not use CHECK_1.
14038         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
14039         <bp-checks.h>.
14040         (__fxstat): Do not use CHECK_1.
14041         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
14042         <bp-checks.h>.
14043         (__fxstatat): Do not use CHECK_1.
14044         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
14045         <bp-checks.h>.
14046         (__lxstat): Do not use CHECK_1.
14047         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
14048         <bp-checks.h>.
14049         (__xstat): Do not use CHECK_1.
14050         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
14051         (__xstat): Do not use CHECK_1.
14052         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
14053         (___xstat64): Do not use CHECK_1.
14054
14055         [BZ #13550]
14056         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
14057         definitions.
14058         (CHECK_BOUNDS_HIGH): Likewise.
14059         * string/strcpy.c: Do not include <bp-checks.h>.
14060         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
14061
14062 2013-02-07  Roland McGrath  <roland@hack.frob.com>
14063
14064         * nscd/nscd-client.h (__nscd_drop_map_ref):
14065         Add __attribute__ ((unused)).
14066         * nis/nss-nisplus.h (niserr2nss): Likewise.
14067
14068         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
14069         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
14070
14071         * csu/libc-tls.c (init_static_tls, init_slotinfo):
14072         Remove inline keyword.
14073         * include/rounding-mode.h (round_away): Likewise.
14074         * libio/wfileops.c (adjust_wide_data): Likewise.
14075         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
14076         (__m128i_strloadu_tolower): Likewise.
14077         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
14078         (__m128i_strloadu_tolower): Likewise.
14079         * time/mktime.c (ydhms_diff): Likewise.
14080         * locale/elem-hash.h (elem_hash): Likewise.
14081         * locale/setlocale.c (setdata): Likewise.
14082         * posix/regex_internal.h (re_string_char_size_at): Likewise.
14083         (re_string_wchar_at): Likewise.
14084         (bitset_not, bitset_merge, bitset_mask): Likewise.
14085         [!(__GNUC__ > 3)] (inline): Remove macro.
14086         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
14087         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
14088         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
14089         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
14090         * string/memcmp.c (memcmp_bytes): Likewise.
14091         * locale/programs/locarchive.c (compute_hashval): Likewise.
14092         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
14093         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
14094         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
14095         * nss/getent.c (print_rpc, print_protocols): Likewise.
14096         (print_passwd, print_group, print_aliases): Likewise.
14097         * nis/nss-nisplus.h (niserr2nss): Likewise.
14098         * nscd/connections.c (restart_p): Likewise.
14099         Change return type to bool.
14100
14101 2013-02-05  Roland McGrath  <roland@hack.frob.com>
14102
14103         * Makeconfig (all-Depend-files): Add existing
14104         $(sorted-subdirs:=/Depend) files.
14105         (all-subdirs): Remove nss.
14106         * sysdeps/unix/inet/Subdirs: Add it here instead.
14107         * hesiod/Depend: New file.
14108
14109         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
14110         instead of calling alloca.
14111
14112         * io/lseek.c (__lseek): Rename to __libc_lseek.
14113         Define __lseek as an alias.
14114
14115         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
14116
14117 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
14118
14119         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
14120         else clause and remove check for non-standard endianness.
14121
14122 2013-02-04  David S. Miller  <davem@davemloft.net>
14123
14124         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14125
14126 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
14127
14128         [BZ #13550]
14129         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
14130         (__ubp_memchr): Remove prototype.
14131         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
14132         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14133         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
14134         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
14135         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
14136         Remove alias.
14137         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
14138         (__ubp_memchr): Likewise.
14139         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
14140         (__ubp_memchr): Likewise.
14141         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
14142         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
14143         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
14144         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
14145         CHECK_STRING.
14146         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
14147         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
14148         (__getcwd): Do not use CHECK_STRING.
14149         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
14150         <bp-checks.h>.
14151         (__real_chown): Do not use CHECK_STRING.
14152         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
14153         <bp-checks.h>.
14154         (fchownat): Do not use CHECK_STRING.
14155         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
14156         CHECK_STRING.
14157         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
14158         <bp-checks.h>.
14159         (__lchown): Do not use CHECK_STRING.
14160         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14161         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14162         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
14163         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
14164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
14165         include <bp-checks.h>.
14166         (truncate64): Do not use CHECK_STRING.
14167         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14168         <bp-checks.h>.
14169         (__real_chown): Do not use CHECK_STRING.
14170         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14171         <bp-checks.h>.
14172         (__lchown): Do not use CHECK_STRING.
14173         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14174         <bp-checks.h>.
14175         (__chown): Do not use CHECK_STRING.
14176         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
14177         <bp-checks.h>.
14178         (truncate64): Do not use CHECK_STRING.
14179         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
14180         Likewise.
14181         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
14182         (__xmknod): Do not use CHECK_STRING.
14183         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
14184         <bp-checks.h>.
14185         (__xmknodat): Do not use CHECK_STRING.
14186         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
14187         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
14188
14189 2013-02-04  Andreas Schwab  <schwab@suse.de>
14190
14191         [BZ #14142]
14192         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
14193         * include/netdb.h: Likewise for h_errno.
14194         * elf/tst-stackguard1.c: Include <tls.h>.
14195
14196 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
14197
14198         * elf/link.h (struct link_map): Extend the l_addr comment.
14199         * include/link.h (struct link_map): Likewise.
14200
14201 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
14202
14203         [BZ #13550]
14204         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
14205         (BOUNDED_1): Remove macro.
14206         * debug/backtrace.c: Don't include <bp-checks.h>.
14207         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
14208         (__backtrace): Likewise.
14209         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
14210         <bp-checks.h>.
14211         (__backtrace): Don't use BOUNDED_1.
14212         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
14213         <bp-checks.h>.
14214         (__backtrace): Don't use BOUNDED_1.
14215         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
14216         (__backtrace): Don't use BOUNDED_1.
14217         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
14218         (shmat): Don't use BOUNDED_N.
14219
14220 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
14221
14222         [BZ #13550]
14223         * sysdeps/generic/bp-start.h: Remove file.
14224         * csu/libc-start.c: Don't include <bp-start.h>.
14225         (LIBC_START_MAIN): Set up __environ directly instead of using
14226         INIT_ARGV_and_ENVIRON.
14227         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
14228         <bp-start.h>.
14229
14230         [BZ #13550]
14231         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
14232         definitions.
14233         (CHECK_FCNTL): Likewise.
14234         (CHECK_N_PAGES): Likewise.
14235
14236         [BZ #13550]
14237         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
14238         definitions.
14239         (CHECK_SIGSET_NULL_OK): Likewise.
14240         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
14241         <bp-checks.h>.
14242         (sigpending): Don't use CHECK_SIGSET.
14243         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
14244         <bp-checks.h>.
14245         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14246         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
14247         <bp-checks.h>.
14248         (do_sigsuspend): Don't use CHECK_SIGSET.
14249         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
14250         use CHECK_SIGSET.
14251         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
14252         (do_sigwait): Don't use CHECK_SIGSET.
14253         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
14254         use CHECK_SIGSET.
14255         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
14256         include <bp-checks.h>.
14257         (sigpending): Don't use CHECK_SIGSET.
14258         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
14259         include <bp-checks.h>.
14260         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14261         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
14262         <bp-checks.h>.
14263         (sigpending): Don't use CHECK_SIGSET.
14264         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
14265         <bp-checks.h>.
14266         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
14267
14268         [BZ #13550]
14269         * sysdeps/generic/bp-semctl.h: Remove file.
14270         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
14271         <bp-checks.h> and <bp-semctl.h>.
14272         (__old_semctl): Don't use CHECK_SEMCTL.
14273         (__new_semctl): Likewise.
14274         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
14275         and <bp-semctl.h>.
14276         (__old_semctl): Don't use CHECK_SEMCTL.
14277         (__new_semctl): Likewise.
14278         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
14279         <bp-checks.h> and <bp-semctl.h>.
14280         (__old_semctl): Don't use CHECK_SEMCTL.
14281         (__new_semctl): Likewise.
14282         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
14283         <bp-checks.h> and <bp-semctl.h>.
14284         (semctl): Don't use CHECK_SEMCTL.
14285
14286         [BZ #13550]
14287         * Makerules (elide-bp-thunks): Remove variable.
14288         (elide-routines.oS): Don't use $(elide-bp-thunks).
14289         (elide-routines.os): Likewise.
14290         (elide-routines.o): Likewise.
14291         (elide-routines.op): Likewise.
14292         (elide-routines.og): Likewise.
14293         (objects): Don't use $(bp-thunks).
14294         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
14295         include.
14296         (common-generated): Do not add s-proto-bp.d.
14297         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
14298         (int): Likewise.
14299         (typ): Likewise.
14300         Do not generate makefile rules for bounded-pointer thunks.
14301         * sysdeps/generic/bp-thunks.h: Remove file.
14302         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
14303         * sysdeps/unix/s-proto-bp.S: Likewise.
14304
14305         [BZ #15062]
14306         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
14307         parts of result separately when argument is not close to line from
14308         -i to i and one part of argument is small.
14309         * math/k_casinhf.c (__kernel_casinhf): Likewise.
14310         * math/k_casinhl.c (__kernel_casinhl): Likewise.
14311         * math/libm-test.inc (cacos_test): Add more tests.
14312         (casin_test): Likewise.
14313         (casinh_test): Likewise.
14314         * sysdeps/i386/fpu/libm-test-ulps: Update.
14315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14316
14317 2013-01-31  David S. Miller  <davem@davemloft.net>
14318
14319         * po/de.po: Update from translation team.
14320
14321 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
14322
14323         * time/tzfile.c: Include stdint.h for SIZE_MAX.
14324
14325 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
14326
14327         * configure.in (_AC_PROG_CC_C89): New definition.
14328         * configure: Regenerate.
14329
14330         * configure.in (AC_PROG_CPP): New definition.
14331         * configure: Regenerate.
14332
14333 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14334
14335         * debug/tst-backtrace.h: New file.
14336         * debug/tst-backtrace2.c: Include tst-backtrace.h.
14337         (ret): Remove variable.
14338         (x): Likewise.
14339         (FAIL): Remove macro.
14340         (NO_INLINE): Likewise.
14341         (fn1): Use match function instead of strstr.
14342         * debug/tst-backtrace3.c: Include tst-backtrace.h.
14343         (ret): Remove variable.
14344         (x): Likewise.
14345         (FAIL): Remove macro.
14346         (NO_INLINE): Likewise.
14347         (fn): Use match function instead of strstr.
14348         * debug/tst-backtrace4.c: Include tst-backtrace.h.
14349         (ret): Remove variable.
14350         (x): Likewise.
14351         (FAIL): Remove macro.
14352         (NO_INLINE): Likewise.
14353         (handle_signal): Use match function instead of strstr.
14354         * debug/tst-backtrace5.c: Include tst-backtrace.h.
14355         (ret): Remove variable.
14356         (x): Likewise.
14357         (FAIL): Remove macro.
14358         (NO_INLINE): Likewise.
14359         (handle_signal): Use match function instead of strstr.
14360
14361 2013-01-23  Roland McGrath  <roland@hack.frob.com>
14362
14363         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
14364
14365 2013-01-23  David S. Miller  <davem@davemloft.net>
14366
14367         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
14368         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
14369         argument of CAS if possible.
14370         * sysdeps/sparc/sparc64/bits/atomic.h
14371         (__arch_compare_and_exchange_val_32_acq): Likewise.
14372         (__arch_compare_and_exchange_val_64_acq): Likewise.
14373
14374 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
14375
14376         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
14377         * sysdeps/posix/ulimit.c: ... this.
14378         Include <limits.h>.
14379         * sysdeps/unix/bsd/ulimit.c: Remove file.
14380
14381 2013-01-23  Adam Conrad  <adconrad@0c3.net>
14382
14383         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
14384         (LDFLAGS-tst-array5): Likewise.
14385
14386 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
14387
14388         [BZ #15036]
14389         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
14390         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
14391         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
14392         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
14393
14394 2013-01-21  David S. Miller  <davem@davemloft.net>
14395
14396         * sysdeps/sparc/backtrace.c: New file.
14397         * sysdeps/sparc/sparc32/backtrace.h: New file.
14398         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
14399         * sysdeps/sparc/sparc64/backtrace.h: New file.
14400         * sysdeps/sparc/sparc64/backtrace.c: Delete.
14401         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
14402         -funwind-tables.
14403
14404 2013-01-21  Andreas Schwab  <schwab@suse.de>
14405
14406         [BZ #15020]
14407         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
14408         closed its stdout.
14409
14410 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
14411
14412         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
14413         "mpa2.h".
14414         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14415
14416 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
14417             Mark Mitchell  <mark@codesourcery.com>
14418             Tom de Vries  <tom@codesourcery.com>
14419             Paul Pluzhnikov  <ppluzhnikov@google.com>
14420
14421         * debug/tst-backtrace2.c: New file.
14422         * debug/tst-backtrace3.c: Likewise.
14423         * debug/tst-backtrace4.c: Likewise.
14424         * debug/tst-backtrace5.c: Likewise.
14425         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
14426         (CFLAGS-tst-backtrace3.c): Likewise.
14427         (CFLAGS-tst-backtrace4.c): Likewise.
14428         (CFLAGS-tst-backtrace5.c): Likewise.
14429         (LDFLAGS-tst-backtrace2): Likewise.
14430         (LDFLAGS-tst-backtrace3): Likewise.
14431         (LDFLAGS-tst-backtrace4): Likewise.
14432         (LDFLAGS-tst-backtrace5): Likewise.
14433         (tests): Add new tests tst-backtrace2, tst-backtrace3,
14434         tst-backtrace4 and tst-backtrace5.
14435
14436 2013-01-18  Anton Blanchard  <anton@samba.org>
14437             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14438
14439         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
14440         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
14441         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
14442         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
14443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14444         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
14445         "+r" and remove output regs list as redundant.  Add explicit inline
14446         asm to specify register of return val to work around compiler codegen
14447         bug.  Remove (int) cast on return value.  Add return type parameter to
14448         use in macro so that this macro does not truncate return value for
14449         64-bit values.
14450         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
14451         pass to INTERNAL_VSYSCALL_NCS.
14452         (INLINE_VSYSCALL): Add 'long int' as return type to
14453         INTERNAL_VSYSCALL_NCS macro invocation.
14454         (INTERNAL_VSYSCALL): Add 'long int' as return type to
14455         INTERNAL_VSYSCALL_NCS macro invocation.
14456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14457
14458 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14459
14460         [BZ #14496]
14461         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
14462         Fix application of SIMD FP exception mask.
14463
14464         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
14465         mp_no from a power of two.
14466         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
14467         __mpexp_twomm1.  Use __pow_mp.
14468
14469         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
14470         multiplication.
14471
14472 2013-01-17  David S. Miller  <davem@davemloft.net>
14473
14474         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14475
14476 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14477
14478         [BZ #15023]
14479         * include/complex.h: Condition contents on [!_COMPLEX_H].
14480         (__kernel_casinhf): New prototype.
14481         (__kernel_casinh): Likewise.
14482         (__kernel_casinhl): Likewise.
14483         * math/Makefile (libm_calls): Add k_casinh.
14484         * math/k_casinh.c: New file.
14485         * math/k_casinhf.c: Likewise.
14486         * math/k_casinhl.c: Likewise.
14487         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
14488         finite nonzero arguments.
14489         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
14490         finite nonzero arguments.
14491         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
14492         finite nonzero arguments.
14493         * math/s_casinh.c: Do not include <float.h>.
14494         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
14495         * math/s_casinhf.c: Do not include <float.h>.
14496         (__casinhf): Move code for finite nonzero arguments to
14497         k_casinhf.c.
14498         * math/s_casinhl.c: Do not include <float.h>.
14499         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
14500         redefine.
14501         (__casinhl): Move code for finite nonzero arguments to
14502         k_casinhl.c.
14503         * math/libm-test.inc (cacos_test): Add more tests.
14504         * sysdeps/i386/fpu/libm-test-ulps: Update.
14505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14506
14507 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
14508
14509         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
14510         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
14511         [!HAVE_MREMAP]: Remove [defined linux] case.
14512         * malloc/arena.c: Do not include <malloc-sysdep.h>.
14513
14514 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
14515
14516         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
14517
14518 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14519
14520         * elf/elf.h (R_386_SIZE32): New relocation.
14521         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
14522         R_386_SIZE32.
14523         (elf_machine_rela): Likewise.
14524         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14525         R_X86_64_SIZE64 and R_X86_64_SIZE32.
14526
14527 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
14528
14529         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
14530         (FP_FAST_FMA): Do not define.
14531         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
14532         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
14533         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
14534         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
14535         !_SOFT_FLOAT]: Likewise.
14536         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
14537         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
14538         value.
14539         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
14540         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
14541         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
14542         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
14543         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
14544         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
14545         file.
14546
14547 2013-01-16  Andreas Schwab  <schwab@suse.de>
14548
14549         [BZ #14327]
14550         * include/stdlib.h (__mktemp): Add declaration.
14551         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
14552         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
14553
14554 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14555
14556         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
14557         definitions.
14558         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14559         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
14560         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
14561         definitions here.
14562         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
14563         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
14564         definitions.
14565         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
14566         and ONE.
14567         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
14568         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
14569         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
14570         definitions.
14571         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
14572         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
14573         definitions.
14574         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14575
14576         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
14577
14578 2013-01-15  David S. Miller  <davem@davemloft.net>
14579
14580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14581         trunc{,f} to libm-sysdep_routes.
14582         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
14584         file.
14585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
14586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
14587         file.
14588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
14589         file.
14590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
14591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
14592         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
14593         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
14594         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
14595         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
14596         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
14597         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
14598
14599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14600         nearbyint{,f} to libm-sysdep_routes.
14601         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
14603         New file.
14604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
14605         file.
14606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
14607         New file.
14608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
14609         file.
14610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
14611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
14612         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
14613         file.
14614         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
14615         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
14616         file.
14617         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
14618         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
14619         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
14620
14621         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
14622         libc_feholdexcept and libc_fesetenv.
14623
14624 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
14625
14626         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
14627
14628 2013-01-14  David S. Miller  <davem@davemloft.net>
14629
14630         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
14631         (SPARC_ASM_VIS2_IFUNC): Likewise.
14632         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
14633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
14634         use of 'siam' instruction.
14635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
14636         Likewise.
14637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
14638         Likewise.
14639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
14640         Likewise.
14641         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
14642         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
14643         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
14644         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
14645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
14646         file.
14647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
14648         file.
14649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
14650         file.
14651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
14652         file.
14653         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
14654         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
14655         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
14656         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
14657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
14658         new VIS2 routines.
14659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
14660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
14662         Likewise.
14663         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
14664         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
14665         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
14666         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
14667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
14668         routines to libm-sysdep_routines.
14669         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
14670
14671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
14672         fdim/fdimf to libm-sysdep_routines.
14673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
14674         file.
14675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
14676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
14677         file.
14678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
14679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
14680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
14681         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
14682         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
14683         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
14684         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
14685
14686 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14687
14688         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
14689         to optimize copies.
14690
14691         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
14692         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14693         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14694
14695         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
14696         local variable MPTWO.
14697         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
14698         Likewise.
14699
14700 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14701
14702         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
14703         GLOB_NOESCAPE.
14704
14705 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14706
14707         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
14708
14709 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
14710
14711         * manual/pattern.texi (glob_t): Document gl_flags.
14712         (glob64_t): Likewise.
14713
14714 2013-01-11  David S. Miller  <davem@davemloft.net>
14715
14716         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
14717         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
14718         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
14719         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
14720         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
14721         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
14722         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
14723         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
14724         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
14725         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
14726         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
14727         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
14728         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
14729
14730         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14731         sparc V9 rather than using V8 code.
14732         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14733         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14734
14735         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
14736         Move to...
14737         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
14738         Here.
14739
14740 2013-01-11  Roland McGrath  <roland@hack.frob.com>
14741
14742         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
14743         not in the main loop.
14744         * configure: Regenerated.
14745
14746 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
14747
14748         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
14749         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
14750         to just #else.
14751         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
14752         [!__GLIBC_HAVE_LONG_LONG] case.
14753         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
14754         condition to just #else.
14755         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
14756         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
14757         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
14758         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
14759         unconditional.
14760         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
14761         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14762         #elif condition to just #else.
14763         * sysdeps/unix/sysv/linux/sys/sysmacros.h
14764         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
14765         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
14766         #elif condition to just #else.
14767
14768 2013-01-11  Steve Ellcey  <sellcey@mips.com>
14769
14770         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
14771         (EF_MIPS_ARCH_64): Fix value.
14772         (EF_MIPS_ARCH_32R2): New.
14773         (EF_MIPS_ARCH_64R2): New.
14774
14775 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14776
14777         * Makeconfig (+link-pie-before-libc): New.
14778         (+link-pie-after-libc): Likewise.
14779         (+link-pie-tests): Likewise.
14780         (+link-pie): Rewritten.
14781         (link-before-libc): Remove $(config-LDFLAGS).
14782         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
14783         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
14784         (config-LDFLAGS): Renamed to ...
14785         (rtld-LDFLAGS): This.
14786         (rtld-tests-LDFLAGS): New macro.
14787         (link-libc-rpath-link): Likewise.
14788         (link-libc-tests-rpath-link): Likewise.
14789         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
14790         (link-libc): Prepand $(link-libc-rpath-link).
14791         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
14792         (test-program-prefix): New macro.
14793         (test-via-rtld-prefix): Likewise.
14794         (test-program-cmd): Likewise.
14795         (host-test-program-cmd): Likewise.
14796         * Makefile ($(common-objpfx)testrun.sh): Replace
14797         $(run-program-prefix) with $(test-program-prefix).
14798         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
14799         $(rtld-LDFLAGS).
14800         ($(common-objpfx)shlib.lds): Likewise.
14801         (build-module-helper): Likewise.
14802         ($(common-objpfx)format.lds): Likewise.
14803         * Rules (binaries-pie-tests): New.
14804         (binaries-pie-notests): Likewise.
14805         (binaries-pie): Rewritten.
14806         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
14807         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
14808         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
14809         (make-test-out): Replace $(host-built-program-cmd) with
14810         $(host-test-program-cmd).
14811         * config.make.in (build-hardcoded-path-in-tests): New variable.
14812         * configure.in (--enable-hardcoded-path-in-tests): New configure
14813         option.
14814         (hardcoded_path_in_tests): New AC_SUBST.
14815         * configure: Regenerated.
14816         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
14817         $(built-program-cmd) with $(test-program-cmd).
14818         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
14819         (test_program_cmd): This.
14820         * elf/Makefile ($(objpfx)order.out): Run test with
14821         $(test-program-prefix).
14822         ($(objpfx)order2.out): Likewise.
14823         ($(objpfx)tst-initorder.out): Likewise.
14824         ($(objpfx)tst-initorder2.out): Likewise.
14825         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
14826         $(test-program-cmd).
14827         ($(objpfx)tst-array1-static.out): Likewise.
14828         ($(objpfx)tst-array2.out): Likewise.
14829         ($(objpfx)tst-array3.out): Likewise.
14830         ($(objpfx)tst-array4.out): Likewise.
14831         ($(objpfx)tst-array5.out): Likewise.
14832         ($(objpfx)tst-array5-static.out): Likewise.
14833         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
14834         $(test-program-cmd).
14835         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
14836         $(run-program-prefix) with $(test-program-prefix).
14837         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
14838         (test_program_prefix): This.
14839         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
14840         $(run-program-prefix) with $(test-program-prefix).
14841         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
14842         (test_program_prefix): This.
14843         * iconvdata/tst-tables.sh: Likewise.
14844         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
14845         $(run-program-prefix) with $(test-program-prefix).
14846         ($(objpfx)tst-translit.out): Likewise.
14847         ($(objpfx)tst-gettext2.out): Likewise.
14848         ($(objpfx)tst-gettext4.out): Likewise.
14849         ($(objpfx)tst-gettext6.out): Likewise.
14850         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
14851         (test_program_prefix): This.
14852         * intl/tst-gettext2.sh: Likewise.
14853         * intl/tst-gettext4.sh  Likewise.
14854         * intl/tst-gettext6.sh: Likewise.
14855         * intl/tst-translit.sh: Likewise.
14856         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
14857         with $(test-program-cmd).
14858         * libio/Makefile ($(objpfx)test-freopen.out): Replace
14859         $(run-program-prefix) with $(test-program-prefix).
14860         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
14861         (test_program_prefix): This.
14862         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
14863         $(run-program-prefix) with $(test-program-prefix).
14864         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
14865         (test_program_prefix): This.
14866         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
14867         * posix/Makefile ($(objpfx)globtest.out): Replace
14868         $(run-via-rtld-prefix) and $(test-wrapper) with
14869         $(test-program-prefix) and $(test-via-rtld-prefix).
14870         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
14871         $(test-program-prefix).
14872         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
14873         $(host-test-program-cmd).
14874         (tst-spawn-ARGS): Likewise.
14875         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
14876         $(test-program-prefix).
14877         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
14878         (test_via_rtld_prefix): This.
14879         (test_wrapper): Renamed to ...
14880         (test_program_prefix): This.
14881         (run_program_prefix): Replaced by test_program_prefix.
14882         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
14883         (test_program_prefix): This.
14884         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
14885         with $(host-test-program-cmd).
14886         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
14887         $(run-program-prefix) with $(test-program-prefix).
14888         ($(objpfx)tst-printf.out): Likewise.
14889         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
14890         $(test-program-cmd).
14891         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
14892         (test_program_prefix): This.
14893         * stdio-common/tst-unbputc.sh: Likewise.
14894         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
14895         $(run-program-prefix) with $(test-program-prefix).
14896         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
14897         (test_program_prefix): This.
14898         * string/Makefile ($(objpfx)tst-svc.out):  Replace
14899         $(built-program-cmd) with $(test-program-cmd).
14900
14901 2013-01-11  Andreas Jaeger  <aj@suse.de>
14902
14903         [BZ #15003]
14904         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
14905         value. Sync with Linux 3.7.
14906
14907 2013-01-10  David S. Miller  <davem@davemloft.net>
14908
14909         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
14910         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14911         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14912
14913 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14914
14915         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
14916         never set.
14917         * configure: Regenerated.
14918
14919 2013-01-10  David S. Miller  <davem@davemloft.net>
14920
14921         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
14922         sparc V9 rather than using V8 code.
14923         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
14924         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
14925
14926 2013-01-10  Roland McGrath  <roland@hack.frob.com>
14927
14928         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
14929         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
14930         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
14931         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
14932         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
14933         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
14934         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
14935         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
14936         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
14937         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
14938         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
14939         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
14940         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
14941         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
14942         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
14943         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
14944         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
14945         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
14946         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
14947         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
14948         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
14949         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
14950         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
14951         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
14952         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
14953         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
14954         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
14955
14956 2013-01-10  David S. Miller  <davem@davemloft.net>
14957
14958         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14959
14960 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14961
14962         * posix/Makefile (tests-static): New variable.
14963         (tests): Add $(tests-static).
14964         (tst-exec-static-ARGS): New variable.
14965         (tst-spawn-static-ARGS): Likewise.
14966         * posix/tst-exec-static.c: New file.
14967         * posix/tst-spawn-static.c: Likewise.
14968         * posix/tst-exec.c: Support run directly.
14969         * posix/tst-spawn.c: Likewise.
14970
14971 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
14972
14973         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
14974         long.
14975         * math/bits/mathcalls.h (llrint): Likewise.
14976         (llround): Likewise.
14977         * stdlib/stdlib.h (struct drand48_data): Likewise.
14978         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
14979         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
14980         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
14981         Likewise.
14982         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
14983         Likewise.
14984         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
14985         (elf_greg_t): Likewise.
14986         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
14987         (__jmp_buf): Likewise.
14988         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
14989         definitions.
14990         (llrint): Likewise, for all definitions.
14991         (llrintl): Likewise.
14992
14993         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
14994         Remove [__GNUC__] condition.
14995         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
14996         condition to just [__USE_ISOC99].
14997         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
14998
14999 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15000
15001         [BZ #14200]
15002         * sysdeps/unix/sysv/linux/x86/bits/environments.h
15003         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
15004         defined.
15005         (_POSIX_V6_ILP32_OFF32): Likewise.
15006         (_XBS5_ILP32_OFF32): Likewise.
15007         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
15008         (__ILP32_OFFBIG_LDFLAGS): Likewise.
15009
15010 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15011
15012         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
15013
15014         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
15015         doubles __mpexp_twomm1.  Adjust usage.
15016         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
15017         Remove.
15018
15019 2013-01-10  Andreas Schwab  <schwab@suse.de>
15020
15021         [BZ #14964]
15022         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
15023         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
15024
15025 2013-01-09  David S. Miller  <davem@davemloft.net>
15026
15027         [BZ #15003]
15028         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
15029         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
15030         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
15031         TCP_FASTOPEN): Define.
15032         (tcp_repair_opt): New structure.
15033         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
15034         enum values.
15035         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
15036         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
15037         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
15038         (tcp_cookie_transactions): New structure.
15039
15040 2013-01-09  Anton Blanchard  <anton@samba.org>
15041
15042         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
15043         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
15044         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
15045         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
15046
15047 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
15048
15049         * include/features.h (__USE_ANSI): Remove.
15050
15051 2013-01-09  Roland McGrath  <roland@hack.frob.com>
15052
15053         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
15054
15055         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
15056
15057 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
15058
15059         * sysdeps/s390/fpu/libm-test-ulps: Update.
15060
15061         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15062
15063         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
15064         (__acr): Likewise.
15065         (__cpy): Likewise.
15066         (norm): Likewise.
15067         (denorm): Likewise.
15068         (__mp_dbl): Likewise.
15069         (__dbl_mp): Likewise.
15070         (add_magnitudes): Likewise.
15071         (sub_magnitudes): Likewise.
15072         (__add): Likewise.
15073         (__sub): Likewise.
15074         (__mul): Likewise.
15075         (__inv): Likewise.
15076         (__dvd): Likewise.
15077         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
15078         (__acr): Likewise.
15079         (__cpy): Likewise.
15080         (norm): Likewise.
15081         (denorm): Likewise.
15082         (__mp_dbl): Likewise.
15083         (__dbl_mp): Likewise.
15084         (add_magnitudes): Likewise.
15085         (sub_magnitudes): Likewise.
15086         (__add): Likewise.
15087         (__sub): Likewise.
15088         (__mul): Likewise.
15089         (__inv): Likewise.
15090         (__dvd): Likewise.
15091         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
15092         (__acr): Likewise.
15093         (__cpy): Likewise.
15094         (norm): Likewise.
15095         (denorm): Likewise.
15096         (__mp_dbl): Likewise.
15097         (__dbl_mp): Likewise.
15098         (add_magnitudes): Likewise.
15099         (sub_magnitudes): Likewise.
15100         (__add): Likewise.
15101         (__sub): Likewise.
15102         (__mul): Likewise.
15103         (__inv): Likewise.
15104         (__dvd): Likewise.
15105
15106 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
15107
15108         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
15109         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
15110         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
15111         2 && __USE_EXTERN_INLINES]: Likewise.
15112
15113 2013-01-08  Andreas Jaeger  <aj@suse.de>
15114
15115         [BZ# 14985]
15116         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
15117         Remove.
15118         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15119         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
15120
15121 2013-01-07  Anton Blanchard  <anton@samba.org>
15122
15123         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
15124         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
15125         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
15126         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
15127         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15128         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15129         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
15130         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15131         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15132         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15133         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15134         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15135         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
15136         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15137         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
15138         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15139         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15140         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15141         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
15142         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15143         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
15144         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
15145         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
15146         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
15147         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
15148         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15149         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15150         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
15151         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
15152         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
15153         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
15154         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15155         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15156         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
15157         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
15158         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
15159         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15160         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15161         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
15162         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
15163         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
15164         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15165         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
15166
15167 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
15168
15169         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
15170         (__MALLOC_PMT): Likewise.
15171         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
15172         [__GNUC__], only on [_LIBC].
15173         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15174         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
15175         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
15176         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
15177         forward declaration.
15178         (realloc_hook_ini): Likewise.
15179         (memalign_hook_ini): Likewise.
15180         (__libc_memalign): Do not use __MALLOC_PMT in variable
15181         declaration.
15182         (__libc_valloc): Likewise.
15183         (__libc_pvalloc): Likewise.
15184         (__libc_calloc): Likewise.
15185         (__posix_memalign): Likewise.
15186
15187         [BZ #14996]
15188         * math/s_casinh.c: Include <float.h>.
15189         (__casinh): Do not do computation with squaring and square root
15190         for large arguments.
15191         * math/s_casinhf.c: Include <float.h>.
15192         (__casinhf): Do not do computation with squaring and square root
15193         for large arguments.
15194         * math/s_casinhl.c: Include <float.h>.
15195         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
15196         (__casinhl): Do not do computation with squaring and square root
15197         for large arguments.
15198         * math/libm-test.inc (casin_test): Add more tests.
15199         (casinh_test): Likewise.
15200         * sysdeps/i386/fpu/libm-test-ulps: Update.
15201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15202
15203 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15204
15205         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
15206         (__x86_64_raw_data_cache_size): Likewise.
15207         (__x86_64_data_cache_size_half): Likewise.
15208         (__x86_64_raw_data_cache_size_half): Likewise.
15209         (__x86_64_shared_cache_size): Likewise.
15210         (__x86_64_raw_shared_cache_size): Likewise.
15211         (__x86_64_shared_cache_size_half): Likewise.
15212         (__x86_64_raw_shared_cache_size_half): Likewise.
15213         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
15214         to ...
15215         (__x86_data_cache_size): This.
15216         (__x86_64_raw_data_cache_size): Renamed to ...
15217         (__x86_raw_data_cache_size): This.
15218         (__x86_64_data_cache_size_half): Renamed to ...
15219         (__x86_data_cache_size_half): This.
15220         (__x86_64_raw_data_cache_size_half): Renamed to ...
15221         (__x86_raw_data_cache_size_half): This.
15222         (__x86_64_shared_cache_size): Renamed to ...
15223         (__x86_shared_cache_size): This.
15224         (__x86_64_raw_shared_cache_size): Renamed to ...
15225         (__x86_raw_shared_cache_size): This.
15226         (__x86_64_shared_cache_size_half): Renamed to ...
15227         (__x86_shared_cache_size_half): This.
15228         (__x86_64_raw_shared_cache_size_half): Renamed to ...
15229         (__x86_raw_shared_cache_size_half): This.
15230         * sysdeps/x86_64/memcpy.S: Updated.
15231         * sysdeps/x86_64/memset.S: Likewise.
15232         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
15233         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
15234         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15235
15236 2013-01-04  David S. Miller  <davem@davemloft.net>
15237
15238         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15239
15240 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
15241
15242         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
15243         1 to avoid redefinition warning.
15244         (__USE_GNU): Don't define.
15245         (init_signaling_nan): Protoize.
15246
15247         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15248
15249 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15250
15251         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
15252         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
15253         (__cpymn): Likewise.
15254         (norm): Remove commented code.
15255         (denorm): Likewise.
15256         (__mp_dbl): Likewise.
15257         (__inv): Likewise.
15258         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
15259         (__cpymn): Likewise.
15260         (norm): Remove commented code.
15261         (denorm): Likewise.
15262         (__mp_dbl): Likewise.
15263         (__inv): Likewise.
15264
15265         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
15266         mp_no value for 1.0 and 2.0.
15267         (norm): Use RADIXI instead of radixi.d.
15268         (denorm): Likewise.
15269         (__mul): Use 0.0 instead of zero.d.
15270         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
15271         mp_no value for 1.0 and 2.0.
15272         (norm): Use RADIXI instead of radixi.d.
15273         (denorm): Likewise.
15274         (__mul): Use 0.0 instead of zero.d.
15275
15276 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
15277
15278         [BZ #14994]
15279         * math/s_casinh.c (__casinh): Reduce finite argument to first
15280         quadrant then set signs of results at the end.
15281         * math/s_casinhf.c (__casinhf): Likewise.
15282         * math/s_casinhl.c (__casinhl): Likewise.
15283         * math/libm-test.inc (casin_test): Add more tests.
15284         (casinh_test): Likewise.
15285         * sysdeps/i386/fpu/libm-test-ulps: Update.
15286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15287
15288 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15289
15290         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
15291
15292         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
15293
15294         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
15295         declarations.
15296         (denorm): Likewise.
15297         (__mp_dbl): Likewise.
15298         (__inv): Likewise.
15299
15300         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
15301         and adjust the header comment.
15302
15303         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
15304         variable name from declaration.
15305
15306 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15307
15308         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15309         Initialize COMMON_CPUID_INDEX_7 element.
15310         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
15311         (CPUID_RTM): Likewise.
15312         (HAS_RTM): Likewise.
15313         (COMMON_CPUID_INDEX_7): New enum.
15314
15315 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
15316
15317         [BZ #14981]
15318         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
15319         size is zero, record memory as freed.
15320
15321 2013-01-03  Andreas Jaeger  <aj@suse.de>
15322
15323         * po/ia.po: Add new Interlingua translation.
15324
15325 2012-01-03  Allan McRae  <allan@archlinux.org>
15326
15327         * locale/programs/localedef.c: Fix description of '--posix' flag.
15328
15329 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
15330
15331         * NEWS: Update dates in second copyright notice.
15332         * README: Update copyright dates in example.
15333         * manual/libc.texinfo: Update copyright dates.
15334         * scripts/test-installation.pl: Update copyright date in --version
15335         output.
15336
15337         * hurd/ctty-input.c: Fix copyright notice formatting.
15338         * hurd/ctty-output.c: Likewise.
15339         * hurd/dtable.c: Likewise.
15340         * hurd/hurd-raise.c: Likewise.
15341         * hurd/hurdprio.c: Likewise.
15342         * hurd/msgportdemux.c: Likewise.
15343         * misc/sys/file.h: Likewise.
15344         * misc/sys/ioctl.h: Likewise.
15345         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
15346         * sysdeps/mach/hurd/chdir.c: Likewise.
15347         * sysdeps/mach/hurd/fchdir.c: Likewise.
15348         * sysdeps/mach/hurd/rename.c: Likewise.
15349         * sysdeps/mach/hurd/rmdir.c: Likewise.
15350         * sysdeps/mach/hurd/seekdir.c: Likewise.
15351         * sysdeps/mach/hurd/setsid.c: Likewise.
15352         * sysdeps/posix/wait3.c: Likewise.
15353
15354         * All files with FSF copyright notices: Update copyright dates
15355         using scripts/update-copyrights.
15356         * intl/plural.c: Regenerated.
15357         * locale/programs/charmap-kw.h: Likewise.
15358         * locale/programs/locfile-kw.h: Likewise.
15359
15360 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
15361
15362         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
15363         four values.
15364
15365         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
15366         calculation loop and add branch prediction.
15367
15368         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
15369         check access beyond bounds of m1np.
15370
15371         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15372         MPTWO.
15373         (__inv): Remove local variable MPTWO to use the global
15374         constant.
15375         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
15376         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15377         variable MPTWO.
15378         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
15379         MP3HALFS static const.
15380
15381 2013-01-01  David S. Miller  <davem@davemloft.net>
15382
15383         * po/ca.po: Update from translation team.
15384
15385 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
15386
15387         * scripts/update-copyrights: New file.
15388         * Makeconfig: Reformat copyright notice.
15389         * ctype/ctype.h: Likewise.
15390         * debug/swprintf_chk.c: Likewise.
15391         * elf/dl-cache.c: Likewise.
15392         * elf/dl-debug.c: Likewise.
15393         * elf/dl-object.c: Likewise.
15394         * grp/initgroups.c: Likewise.
15395         * hurd/Makefile: Likewise.
15396         * hurd/hurd/signal.h: Likewise.
15397         * hurd/hurdfault.c: Likewise.
15398         * hurd/hurdioctl.c: Likewise.
15399         * hurd/hurdlookup.c: Likewise.
15400         * hurd/intr-msg.c: Likewise.
15401         * iconv/gconv_open.c: Likewise.
15402         * libio/swprintf.c: Likewise.
15403         * locale/lc-ctype.c: Likewise.
15404         * locale/nl_langinfo.c: Likewise.
15405         * mach/Machrules: Likewise.
15406         * mach/Makefile: Likewise.
15407         * malloc/obstack.h: Likewise.
15408         * manual/Makefile: Likewise.
15409         * manual/tsort.awk: Likewise.
15410         * misc/bits/stab.def: Likewise.
15411         * nis/nis_print_group_entry.c: Likewise.
15412         * nis/nis_table.c: Likewise.
15413         * nis/nss_compat/compat-pwd.c: Likewise.
15414         * nis/nss_compat/compat-spwd.c: Likewise.
15415         * po/Makefile: Likewise.
15416         * posix/fnmatch.c: Likewise.
15417         * posix/regex.h: Likewise.
15418         * resolv/Makefile: Likewise.
15419         * resolv/nss_dns/dns-network.c: Likewise.
15420         * resolv/res_hconf.c: Likewise.
15421         * scripts/gen-sorted.awk: Likewise.
15422         * soft-fp/soft-fp.h: Likewise.
15423         * stdio-common/printf.h: Likewise.
15424         * stdlib/monetary.h: Likewise.
15425         * stdlib/random.c: Likewise.
15426         * stdlib/random_r.c: Likewise.
15427         * sysdeps/generic/Makefile: Likewise.
15428         * sysdeps/gnu/Makefile: Likewise.
15429         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15430         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15431         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15432         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15433         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15434         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15435         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15436         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15437         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15438         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15439         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15440         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15441         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15442         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15443         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15444         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15445         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15446         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15447         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15448         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15449         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15450         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15451         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15452         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15453         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
15454         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15455         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15456         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
15457         * sysdeps/mach/hurd/errnos.awk: Likewise.
15458         * sysdeps/mach/hurd/fork.c: Likewise.
15459         * sysdeps/mach/hurd/getcwd.c: Likewise.
15460         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
15461         * sysdeps/mach/hurd/mmap.c: Likewise.
15462         * sysdeps/mach/hurd/utimes.c: Likewise.
15463         * sysdeps/mach/hurd/xmknod.c: Likewise.
15464         * sysdeps/posix/profil.c: Likewise.
15465         * sysdeps/posix/readdir_r.c: Likewise.
15466         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15467         * sysdeps/powerpc/bits/setjmp.h: Likewise.
15468         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
15469         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
15470         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
15471         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
15472         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
15473         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15474         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
15475         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
15476         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
15477         * sysdeps/pthread/lio_listio.c: Likewise.
15478         * sysdeps/sparc/dl-procinfo.h: Likewise.
15479         * sysdeps/unix/i386/sysdep.S: Likewise.
15480         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
15481         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
15482         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
15483         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
15484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15485         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
15486         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
15487         * sysdeps/unix/sysv/linux/speed.c: Likewise.
15488         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
15489         * sysdeps/wordsize-32/divdi3.c: Likewise.
15490         * time/sys/time.h: Likewise.
15491         * wcsmbs/Makefile: Likewise.
15492
15493 2013-01-01  David S. Miller  <davem@davemloft.net>
15494
15495         * po/fr.po: Update from translation team.
15496
15497         * catgets/gencat.c: Update copyright year.
15498         * csu/version.c: Likewise.
15499         * debug/catchsegv.sh: Likewise.
15500         * debug/pcprofiledump.c: Likewise.
15501         * debug/xtrace.sh: Likewise.
15502         * elf/ldconfig.c: Likewise.
15503         * elf/ldd.bash.in: Likewise.
15504         * elf/pldd.c: Likewise.
15505         * elf/sotruss.ksh: Likewise.
15506         * elf/sprof.c: Likewise.
15507         * iconv/iconv_prog.c: Likewise.
15508         * iconv/iconvconfig.c: Likewise.
15509         * locale/programs/locale.c: Likewise.
15510         * locale/programs/localedef.c: Likewise.
15511         * login/programs/pt_chown.c: Likewise.
15512         * malloc/memusage.sh: Likewise.
15513         * malloc/memusagestat.c: Likewise.
15514         * malloc/mtrace.pl: Likewise.
15515         * nscd/nscd.c: Likewise.
15516         * nss/getent.c: Likewise.
15517         * nss/makedb.c: Likewise.
15518         * posix/getconf.c: Likewise.
15519
15520 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15521
15522         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
15523         numbers.
15524
15525 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
15526
15527         * math/bits/mathcalls.h (modf): Use __nonnull.
15528
15529 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15530
15531         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
15532         (split): Use macro CN instead of the bare value.
15533         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
15534         could be used.
15535         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
15536         instead of the bare value.
15537         (power1): Likewise.
15538
15539 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15540
15541         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
15542         __ATAN_TWOM.
15543         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15544
15545         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
15546         their values.
15547         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
15548         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
15549         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
15550         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
15551
15552 2012-12-28  Andreas Jaeger  <aj@suse.de>
15553
15554         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
15555         values are from Linux 3.7.
15556
15557         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
15558         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
15559
15560 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15561
15562         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
15563         TRUE case.
15564
15565         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
15566         (norm): Likewise.
15567         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
15568         variables with preprocessor constants.
15569         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15570         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15571         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15572
15573 2012-12-27  Bruno Haible  <bruno@clisp.org>
15574
15575         [BZ #14317]
15576         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
15577         only if needed.
15578
15579 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15580
15581         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
15582         and use variable directly.
15583         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
15584
15585         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
15586         MPONE.
15587         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
15588         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
15589         variable MPONE.
15590         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
15591         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
15592         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
15593         include directive.  Remove local variable MPONE.
15594         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
15595         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
15596         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15597
15598 2012-12-25  David S. Miller  <davem@davemloft.net>
15599
15600         * version.h (RELEASE): Set to "development".
15601         (VERSION): Set to "2.17.90".
15602         * NEWS: Add 2.18 section.
15603
15604 2012-12-21  David S. Miller  <davem@davemloft.net>
15605
15606         * po/hr.po: Update from translation team.
15607
15608 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15609
15610         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
15611
15612 2012-12-19  Steve Ellcey  <sellcey@mips.com>
15613
15614         * NEWS:  Mention new memcpy for MIPS.
15615
15616 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15617
15618         * manual/contrib.texi (Contributors): Spelling correction.
15619
15620 2012-12-15  David S. Miller  <davem@davemloft.net>
15621
15622         * po/ru.po: Update from translation team.
15623
15624 2012-12-13  David S. Miller  <davem@davemloft.net>
15625
15626         * NEWS: Mention IFUNC testsuite enhancements.
15627
15628         * po/pl.po: Update from translation team.
15629         * po/bg.po: Likewise.
15630
15631         * manual/contrib.texi (Contributors): Update entries for Hongjiu
15632         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
15633
15634 2012-12-11  David S. Miller  <davem@davemloft.net>
15635
15636         * po/sv.po: Update from translation team.
15637
15638         * po/vi.po: Update from translation team.
15639
15640         * po/cs.po: Update from translation team.
15641
15642         * po/de.po: Update from translation team.
15643         * po/eo.po: Likewise.
15644         * po/nl.po: Likewise.
15645
15646 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15647
15648         [BZ #14246]
15649         * manual/argp.texi (Argp Helper Functions): Move node to follow
15650         Argp Parsing State.
15651
15652         [BZ #14872]
15653         * manual/conf.texi (Limits on File System Capacity): Mention if
15654         terminating null is included in the max size.
15655
15656 2012-12-10  Andreas Jaeger  <aj@suse.de>
15657
15658         * po/cs.po: Update from translation team.
15659
15660 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
15661
15662         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
15663         void pointer and cast to uintptr_t.
15664         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
15665         path.
15666         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15667         * sysdeps/s390/s390-64/memset.S: Likewise.
15668
15669 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
15670
15671         [BZ #14833]
15672         * menual/message.texi (Message Translation): Fix typos.
15673         (Helper programs for gettext): Likewise.
15674
15675 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
15676
15677         [BZ #14898]
15678         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
15679         Change to -1.
15680
15681 2012-12-07  David S. Miller  <davem@davemloft.net>
15682
15683         * po/libc.pot: Update.
15684
15685 2012-12-07  Richard Henderson  <rth@redhat.com>
15686
15687         [BZ #10114]
15688         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
15689         normal/normal case to before the switch.
15690         (_FP_DIV): Likewise.
15691
15692 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
15693             Mike Frysinger  <vapier@gentoo.org>
15694
15695         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
15696         check for __NR_fadvise64_64.
15697
15698 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
15699
15700         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
15701         0, not just to plain "0" as a statement.
15702         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
15703         with cw.
15704
15705 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
15706
15707         * NEWS: Use sourceware.org in Bugzilla URL.
15708
15709 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15710
15711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
15712         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15713
15714         * stdio-common/tst-put-error.c (do_test): Add newline to the
15715         padded test to ensure flush.
15716
15717 2012-12-05  Jeff Law  <law@redhat.com>
15718
15719         * sunrpc/etc.rpc (fedfs_admin): Add entry.
15720
15721 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
15722
15723         * README: Don't refer to ports add-on as distributed separately.
15724         Mention AArch64 in list of systems supported in the ports add-on.
15725
15726         * LICENSES: Add more non-FSF copyright and license notices.
15727
15728         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
15729         ((unused)).
15730
15731         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
15732
15733         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
15734         10000 as width of padded output.
15735
15736 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15737
15738         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
15739
15740         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
15741         variable LX with __attribute__ ((unused)).
15742         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15743         Likewise.
15744         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15745         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15746         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
15747         with __attribute__ ((unused)).
15748
15749 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
15750
15751         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
15752
15753 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
15754
15755         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
15756         (CFLAGS-nldbl-acos.c): New variable.
15757         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
15758         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
15759         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
15760         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
15761         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
15762         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
15763         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
15764         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
15765         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
15766         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
15767         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
15768         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
15769         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
15770         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
15771         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
15772         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
15773         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
15774         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
15775         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
15776         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
15777         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
15778         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
15779         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
15780         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
15781         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
15782         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
15783         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
15784         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
15785         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
15786         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
15787         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
15788         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
15789         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
15790         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
15791         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
15792         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
15793         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
15794         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
15795         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
15796         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
15797         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
15798         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
15799         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
15800         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
15801         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
15802         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
15803         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
15804         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
15805         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
15806         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
15807         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
15808         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
15809         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
15810         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
15811         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
15812         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
15813         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
15814         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
15815         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
15816         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
15817         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
15818         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
15819         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
15820         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
15821         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
15822         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
15823         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
15824         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
15825         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
15826         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
15827         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
15828         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
15829         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
15830         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
15831         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
15832         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
15833         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
15834         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
15835         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
15836         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
15837         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
15838         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
15839         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
15840         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
15841         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
15842         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
15843         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
15844         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
15845         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
15846         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
15847         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
15848         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
15849         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
15850         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
15851         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
15852         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
15853         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
15854
15855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
15856         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
15857
15858         [BZ #14914]
15859         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
15860         whole low double instead of just low 47 bits when splitting values
15861         into two parts.
15862
15863 2012-12-03  Allan McRae  <allan@archlinux.org>
15864
15865         * manual/stdio.texi (Predefined Printf Handlers): Remove
15866         @hsep and @vsep usage.
15867
15868 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
15869
15870         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
15871         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
15872
15873 2012-12-03  Jeff Law  <law@redhat.com>
15874
15875         * time/sys/time.h (settimeofday): Do not mark TV argument
15876         as __nonnull.
15877
15878 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
15879
15880         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
15881         when currently writing and seek to current position when not.
15882         * libio/Makefile (tests): Remove bug-fclose1.
15883         * libio/bug-fclose1.c: Delete.
15884
15885 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
15886
15887         * manual/arith.texi (feenableexcept): Fix typo.
15888         (fedisableexcept): Likewise.
15889
15890 2012-11-30  Roland McGrath  <roland@hack.frob.com>
15891
15892         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
15893         second, differently-typed declaration, rather than a cast.
15894
15895 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15896
15897         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
15898         * include/rpc/svc.h: ... here.
15899
15900 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
15901
15902         [BZ #13013]
15903         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
15904         depending n and resplen2 to catch cases where answer
15905         equals answerp2.
15906
15907 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
15908
15909         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
15910         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
15911
15912 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
15913
15914         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
15915
15916 2012-11-29  Roland McGrath  <roland@hack.frob.com>
15917
15918         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
15919
15920 2012-11-28  Jeff Law  <law@redhat.com>
15921
15922         [BZ #13761]
15923         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
15924         dataset_temporary.  Track alloca usage into alloca_used.
15925         If dataset is large allocate and release it via malloc/free.
15926
15927 2012-06-04  Florian Weimer  <fweimer@redhat.com>
15928
15929         [BZ #14197]
15930         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
15931
15932 2012-11-28  David S. Miller  <davem@davemloft.net>
15933
15934         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15935
15936 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15937
15938         [BZ #14803]
15939         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
15940         of pi/2 rounded to nearest to 64 bits.
15941         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
15942         nearest to 64 bits.
15943         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
15944         bits.
15945
15946 2012-11-28  Jeff Law <law@redhat.com>
15947             Martin Osvald <mosvald@redhat.com>
15948
15949         [BZ #14889]
15950         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
15951         * sunrpc/svc.c: Include time.h.
15952         (__svc_accept_failed): New function.
15953         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
15954         any reason other than EINTR, call __svc_accept_failed.
15955         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
15956         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
15957
15958 2012-11-28  Andreas Schwab  <schwab@suse.de>
15959
15960         * scripts/abilist.awk: Also handle indirect functions in .opd
15961         section.
15962
15963 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
15964
15965         [BZ #13881]
15966         * sysdeps/x86/fpu/powl_helper.c: New file.
15967         * sysdeps/x86/fpu/Makefile: Likewise.
15968         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
15969         (p3): New object.
15970         (__ieee754_powl): Use __powl_helper for finite arguments except
15971         integer exponents below 8.
15972         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
15973         (p3): New object.
15974         (__ieee754_powl): Use __powl_helper for finite arguments except
15975         integer exponents below 8.
15976         * math/libm-test.inc (pow_test): Add more tests and enable some
15977         previously disabled tests.
15978         * sysdeps/i386/fpu/libm-test-ulps: Update.
15979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15980
15981 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15982             Carlos O'Donell  <carlos_odonell@mentor.com>
15983
15984         * nss/makedb.c (is_prime): Assert that input is odd and greater
15985         than 4.  Note that fact in a comment too.
15986         (next_prime): Add 4 to input.
15987
15988 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15989
15990         [BZ #11741]
15991         * libio/Makefile (tests): Add test case tst-fwrite-error.
15992         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
15993         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
15994         * libio/tst-fwrite-error.c: New test case.
15995
15996 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
15997
15998         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
15999         before casting to void *.
16000         * include/libc-internal.h (__pointer_type): New macro.
16001         (__integer_if_pointer_type_sub): Likewise.
16002         (__integer_if_pointer_type): Likewise.
16003         (cast_to_integer): Likewise.
16004         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
16005         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
16006         before casting to atomic64_t.
16007         (atomic_exchange_acq): Likewise.
16008         (__arch_exchange_and_add_body): Likewise.
16009         (__arch_add_body): Likewise.
16010         (atomic_add_negative): Likewise.
16011         (atomic_add_zero): Likewise.
16012
16013 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
16014
16015         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
16016         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
16017         (add_fdes): Likewise.
16018         (linear_search_fdes): Likewise.
16019         (binary_search_unencoded_fdes): Likewise.
16020
16021 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
16022
16023         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
16024
16025 2012-11-24  Adam Conrad  <adconrad@0c3.net>
16026
16027         * configure.in: Autodetect C++ header directories.
16028         * configure: Regenerated.
16029
16030 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
16031
16032         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
16033
16034 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
16035
16036         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16037
16038 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
16039
16040         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
16041         LDBL_MANT_DIG == 106]: Disable some tests.
16042         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
16043         Likewise.
16044         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
16045         Likewise.
16046
16047         [BZ #14871]
16048         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
16049         input for small inputs.  Return +/- pi/2 for large inputs.
16050         * math/libm-test.inc (atan_test): Add more tests.
16051
16052         * sysdeps/generic/unwind-dw2-fde-glibc.c
16053         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
16054         __attribute__ ((unused)).
16055
16056         [BZ #14645]
16057         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
16058         x * y if x and y are nonzero and z is zero.
16059
16060         [BZ #14811]
16061         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
16062         nonzero exponents with absolute value below 0x1p-117 to +/-
16063         0x1p-117.
16064
16065         [BZ #14869]
16066         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
16067         up arguments below 2**-450, not just those below 2**-500.
16068         * math/libm-test.inc (hypot_test): Add another test.
16069
16070         [BZ #14868]
16071         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
16072         Return a+b for ratio over 2**120, not 2**60.
16073         * math/libm-test.inc (hypot_test): Add another test.
16074
16075         * math/libm-test.inc (clog_test): Use
16076         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
16077         (clog10_test): Likewise.
16078
16079         [BZ #6778]
16080         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
16081
16082 2012-11-22  Andreas Schwab  <schwab@suse.de>
16083
16084         * sysdeps/i386/fpu/libm-test-ulps: Update.
16085
16086 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
16087
16088         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
16089         printf output with newline.
16090
16091 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16092
16093         [BZ #14865]
16094         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
16095         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
16096         -z nodlopen, -z initfirst and -z execstack support.
16097         * configure: Regenerated.
16098
16099         * elf/elf.h (DF_1_NODIRECT): New macro.
16100         (DF_1_IGNMULDEF): Likewise.
16101         (DF_1_NOKSYMS): Likewise.
16102         (DF_1_NOHDR): Likewise.
16103         (DF_1_EDITED): Likewise.
16104         (DF_1_NORELOC): Likewise.
16105         (DF_1_SYMINTPOSE): Likewise.
16106         (DF_1_GLOBAUDIT): Likewise.
16107         (DF_1_SINGLETON): Likewise.
16108         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
16109         DT_1_SUPPORTED_MASK bits.
16110         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
16111
16112 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
16113
16114         * sysdeps/unix/make-syscalls.sh: Document prefixes.
16115
16116 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
16117
16118         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
16119         macro.
16120
16121         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
16122         (sendmmsg): Move declarations...
16123         * socket/sys/socket.h: ... here.
16124         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
16125         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
16126         include it from...
16127         * socket/recvmmsg.c: ... this new file.
16128         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
16129         (sendmmsg): Rename to __sendmmsg, create weak alias and make
16130         definition of __sendmmsg hidden.
16131         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16132         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
16133         Move ENOSYS stub into and include it from...
16134         * socket/sendmmsg.c: ... this new file.
16135         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
16136         (sysdep_routines): Move recvmmsg and sendmmsg...
16137         * socket/Makefile (routines): ... here.
16138         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
16139         (GLIBC_PRIVATE): Add __sendmmsg.
16140         * include/sys/socket.h (__sendmmsg): Add declarations.
16141         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
16142         sendmmsg.
16143
16144 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
16145
16146         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
16147         variable I1 with __attribute__ ((unused)).
16148         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
16149
16150 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16151
16152         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
16153         DUMMY variables with __attribute__ ((unused)).
16154
16155         * bits/byteswap.h: Include <bits/types.h>.
16156         (__bswap_64): Use __uint64_t instead of unsigned long long int.
16157
16158 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16159
16160         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
16161         string_t.  Do not manually set errno.
16162         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
16163         length with __strnlen.  Make sure to both set errno and return it on
16164         failure.
16165
16166 2012-11-19  David S. Miller  <davem@davemloft.net>
16167
16168         With help from Joseph Myers.
16169         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
16170         very large arguments properly.
16171         * math/libm-test.inc (atan_test): New tests.
16172         (atan2_test): New tests.
16173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16174         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16175
16176 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
16177
16178         [BZ #14856]
16179         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
16180         Define to 3.
16181
16182         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
16183         [POSIX] (EADDRNOTAVAIL): Likewise.
16184         [POSIX] (EAFNOSUPPORT): Likewise.
16185         [POSIX] (EALREADY): Likewise.
16186         [POSIX] (ECONNABORTED): Likewise.
16187         [POSIX] (ECONNREFUSED): Likewise.
16188         [POSIX] (ECONNRESET): Likewise.
16189         [POSIX] (EDESTADDRREQ): Likewise.
16190         [POSIX] (EDQUOT): Likewise.
16191         [POSIX] (EHOSTUNREACH): Likewise.
16192         [POSIX] (EIDRM): Likewise.
16193         [POSIX] (EISCONN): Likewise.
16194         [POSIX] (ELOOP): Likewise.
16195         [POSIX] (EMULTIHOP): Likewise.
16196         [POSIX] (ENETDOWN): Likewise.
16197         [POSIX] (ENETUNREACH): Likewise.
16198         [POSIX] (ENOBUFS): Likewise.
16199         [POSIX] (ENODATA): Likewise.
16200         [POSIX] (ENOLINK): Likewise.
16201         [POSIX] (ENOMSG): Likewise.
16202         [POSIX] (ENOPROTOOPT): Likewise.
16203         [POSIX] (ENOSR): Likewise.
16204         [POSIX] (ENOSTR): Likewise.
16205         [POSIX] (ENOTCONN): Likewise.
16206         [POSIX] (ENOTSOCK): Likewise.
16207         [POSIX] (EOPNOTSUPP): Likewise.
16208         [POSIX] (EOVERFLOW): Likewise.
16209         [POSIX] (EPROTO): Likewise.
16210         [POSIX] (EPROTONOSUPPORT): Likewise.
16211         [POSIX] (EPROTOTYPE): Likewise.
16212         [POSIX] (ESTALE): Likewise.
16213         [POSIX] (ETIME): Likewise.
16214         [POSIX] (ETXTBSY): Likewise.
16215         [POSIX] (EWOULDBLOCK): Likewise.
16216         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
16217         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
16218         [POSIX] (SEEK_CUR): Likewise.
16219         [POSIX] (SEEK_END): Likewise.
16220         [POSIX || UNIX98] (mode_t): Do not require.
16221         [POSIX] (off_t): Likewise.
16222         [POSIX] (pid_t): Likewise.
16223         [POSIX] (sys/stat.h): Do not allow header.
16224         [POSIX] (unistd.h): Likewise.
16225         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
16226         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
16227         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
16228         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
16229         require.
16230         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
16231         sigevent): Specify elements.
16232         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
16233         entry.
16234         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
16235         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
16236
16237         * conform/data/cpio.h-data [POSIX]: Disable whole file.
16238         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
16239         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
16240         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
16241         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
16242         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
16243         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
16244         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
16245         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
16246         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
16247         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
16248         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
16249         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
16250         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
16251         Likewise.
16252         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
16253         Likewise.
16254         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
16255         Likewise.
16256         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
16257         Likewise.
16258         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
16259         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
16260         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
16261         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
16262         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
16263         Specify lower bound on value.
16264         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
16265         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
16266         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
16267         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
16268         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
16269         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
16270         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
16271         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
16272         value.
16273         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
16274         as optional.
16275         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
16276         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
16277         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
16278         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
16279         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
16280         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
16281         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
16282         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
16283         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
16284         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
16285         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
16286         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
16287         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
16288         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
16289         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
16290         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
16291         entry.
16292         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
16293         optional.
16294         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
16295         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
16296         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
16297         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
16298         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
16299         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
16300         Likewise.
16301         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
16302         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
16303         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
16304         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
16305         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
16306         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
16307         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
16308         as optional.
16309         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
16310         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
16311         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
16312         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
16313         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
16314         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
16315         specify as optional.
16316         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
16317         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
16318         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
16319         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
16320         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
16321         [XPG3] (NL_LANGMAX): Likewise.
16322         [POSIX || XPG3] (NL_MSGMAX): Likewise.
16323         [POSIX || XPG3] (NL_NMAX): Likewise.
16324         [POSIX || XPG3] (NL_SETMAX): Likewise.
16325         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
16326         [XPG3] (NZERO): Likewise.
16327         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
16328         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
16329         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
16330         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
16331         (REG_ERANGE): Expect.
16332         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
16333         optional-constant.
16334         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
16335         Use (void) in prototype.
16336         [POSIX] (*_t): Allow.
16337         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
16338         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
16339         (WRDE_BADVAL): Expect.
16340
16341         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
16342         expect.
16343         [XPG3 || XPG4] (O_RSYNC): Likewise.
16344         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
16345         Likewise.
16346         [XPG3 || XPG4] (pthread_sigmask): Likewise.
16347         [XPG3 || XPG4] (sigqueue): Likewise.
16348         [XPG3 || XPG4] (sigtimedwait): Likewise.
16349         [XPG3 || XPG4] (sigwaitinfo): Likewise.
16350         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
16351         [XPG3 || XPG4] (vsnprintf): Likewise.
16352         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
16353         Likewise.
16354         [XPG3 || XPG4] (blksize_t): Likewise.
16355         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
16356         Likewise.
16357         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
16358         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
16359         [XPG3 || XPG4] (struct itimerspec): Likewise.
16360         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
16361         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
16362         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
16363         [XPG3 || XPG4] (clockid_t): Likewise.
16364         [XPG3 || XPG4] (timer_t): Likewise.
16365         [XPG3 || XPG4] (clock_getres): Likewise.
16366         [XPG3 || XPG4] (clock_gettime): Likewise.
16367         [XPG3 || XPG4] (clock_settime): Likewise.
16368         [XPG3 || XPG4] (nanosleep): Likewise.
16369         [XPG3 || XPG4] (timer_create): Likewise.
16370         [XPG3 || XPG4] (timer_delete): Likewise.
16371         [XPG3 || XPG4] (timer_gettime): Likewise.
16372         [XPG3 || XPG4] (timer_getoverrun): Likewise.
16373         [XPG3 || XPG4] (timer_settime): Likewise.
16374         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
16375         [XPG3 || XPG4] (getlogin_r): Likewise.
16376         [XPG3 || XPG4] (pread): Likewise.
16377         [XPG3 || XPG4] (pthread_atfork): Likewise.
16378         [XPG3 || XPG4] (pwrite): Likewise.
16379
16380         [BZ #14835]
16381         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
16382         <bits/siginfo.h>.
16383
16384 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
16385
16386         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
16387         finalizing MALLSTREAM.
16388
16389         * sysdeps/mach/hurd/syncfs.c: New file.
16390
16391 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
16392
16393         [BZ #14719]
16394         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
16395         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
16396         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
16397         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
16398         (_nss_dns_gethostbyname4_r): Likewise.
16399         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
16400         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
16401
16402 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
16403
16404         [BZ #13763]
16405         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
16406
16407 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
16408
16409         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
16410         * elf/cache.c (print_entry): Print ",AArch64" for
16411         FLAG_AARCH64_LIB64
16412
16413         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
16414         * elf/cache.c (print_entry): Print ",hard-float" for
16415         FLAG_ARM_LIBHF.
16416
16417 2012-11-18  David S. Miller  <davem@davemloft.net>
16418
16419         With help from Joseph Myers.
16420         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
16421         cutoff to 2**-13.
16422         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
16423         cutoff to 2**-25.
16424         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
16425         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
16426         small.
16427         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
16428         * math/libm-test.inc (y0_test): New tests.
16429         (y1_test): New tests.
16430         * sysdeps/i386/fpu/libm-test-ulps: Update.
16431         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16433
16434 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
16435
16436         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
16437         64-bit targets.
16438         * configure: Regenerated.
16439
16440 2012-11-17  David S. Miller  <davem@davemloft.net>
16441
16442         [BZ #14811]
16443         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
16444         nonzero exponents with absolute value below 0x1p-128 to +/-
16445         0x1p-128.
16446
16447 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
16448
16449         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
16450
16451         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
16452
16453         * posix/getconf-speclist.c: New file.
16454         * posix/posix-envs.def: Likewise.
16455         * posix/confstr.c (START_ENV_GROUP): New macro.
16456         (END_ENV_GROUP): Likewise.
16457         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16458         (KNOWN_PRESENT_ENV_STRING): Likewise.
16459         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16460         (UNKNOWN_ENVIRONMENT): Likewise.
16461         (confstr): Include posix-envs.def instead of handling
16462         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
16463         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
16464         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
16465         (END_ENV_GROUP): Likewise.
16466         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
16467         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
16468         (UNKNOWN_ENVIRONMENT): Likewise.
16469         (__sysconf): Include posix-envs.def instead of handling associated
16470         cases directly here.
16471         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
16472         preprocessing getconf-speclist.c rather than running getconf or
16473         generating empty file.
16474
16475 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
16476
16477         * scripts/check-local-headers.sh: Ignore 'mach' headers.
16478
16479 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
16480
16481         [BZ #14672]
16482         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
16483
16484 2012-11-16  David S. Miller  <davem@davemloft.net>
16485
16486         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
16487         smaller than LDBL_EPSILON/2.0L, just return xm1.
16488
16489 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
16490
16491         * elf/tst-array1.c (init): Set constructor priority to 1000.
16492         (fini): Set destructor priority to 1000.
16493         * elf/tst-array2dep.c: Likewise.
16494
16495 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16496
16497         [BZ #11741]
16498         * libio/fileops.c (_IO_new_file_write): Correctly return error.
16499         (_IO_new_file_xsputn): Also return EOF if none of the input
16500         data was written when overflow failed.
16501         * libio/iopadn.c (_IO_padn): Likewise.
16502         * libio/iowpadn.c (_IO_wpadn): Likewise.
16503         * stdio-common/tst-put-error.c: Add copyright notice.
16504         (do_test): Add case for printing padded string.
16505         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
16506         _IO_padn returned error.
16507         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
16508         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
16509         return EOF.
16510
16511 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16512
16513         * libio/libioP.h: Add comment note that the references to C++
16514         bits are now obsolete.
16515
16516 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16517
16518         * math/libm-test.inc (check_complex): Use asprintf.
16519
16520 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
16521
16522         * debug/pcprofiledump.c (print_version): Update copyright year.
16523         * malloc/memusagestat.c (print_version): Likewise.
16524
16525 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
16526
16527         [BZ #14831]
16528         * elf/Makefile (tests): Add tst-audit8.
16529         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
16530         ($(objpfx)tst-audit8.out): New target.
16531         (tst-audit8-ENV): New variable.
16532         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
16533         audit if l_reloc_result is NULL.
16534         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
16535         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
16536         * elf/tst-audit8.c: New file.
16537
16538 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16539
16540         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
16541         * misc/Makefile (CFLAGS-select.c): Define.
16542         * posix/Makefile (CFLAGS-pause.c): Define.
16543
16544 2012-11-13  David S. Miller  <davem@davemloft.net>
16545
16546         * crypt/Makefile: Move test targets after toplevel Rules
16547         inclusion.  Grab any necessary sysdep routines when linking.
16548         * crypt/md5.c (md5_process_block): Remove define, we will always
16549         name it __md5_process_block.
16550         (md5_finish_ctx): Update md5_process_block call.
16551         (md5_stream): Likewise.
16552         (md5_process_bytes): Likewise.
16553         (md5_process_block): Rename to __md5_process_block and move to ...
16554         * crypt/md5-block.c: ... here.
16555         * crypt/sha256.c (sha256_process_block): Move to ...
16556         * crypt/sha256-block.c: ... here.
16557         * crypt/sha512.c (sha512_process_block): Move to ...
16558         * crypt/sha512-block.c: ... here.
16559         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
16560         path.
16561         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
16562         * sysdeps/sparc/sparc64/multiarch/Makefile
16563         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
16564         crypt subdir.
16565         (localedef-aux): Add md5 crypto assembler when in locale subdir.
16566         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
16567         multiarch changes.
16568         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
16569         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
16570         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
16571         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
16572         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
16573         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
16574         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
16575         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
16576         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
16577         file.
16578         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
16579         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
16580         file.
16581         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
16582
16583 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
16584
16585         * timezone/tzselect.ksh: Update from tzcode git revision
16586         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
16587         * timezone/zdump.c: Likewise.
16588         * timezone/zic.c: Likewise.
16589         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
16590         in TZVERSION setting, not $(PKGVERSION).
16591         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
16592         REPORT_BUGS_TO settings.
16593
16594         [BZ #14838]
16595         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
16596         macro.
16597
16598 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16599
16600         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
16601         detection to immediately after _FP_ROUND().
16602         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
16603         bits are 0.
16604
16605 2012-11-11  David S. Miller  <davem@davemloft.net>
16606
16607         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
16608         inttypes.h
16609         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
16610         __close rather than their public counterparts.
16611
16612 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
16613
16614         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
16615         file.
16616         [UNIX98] (sem_timedwait): Do not expect.
16617         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
16618         [XPG4 || UNIX98] (sockatmark): Do not expect.
16619         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
16620         (clock_getcpuclockid): Do not expect.
16621         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
16622         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
16623         Do not expect.
16624         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
16625         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
16626         [UNIX98] (vwscanf): Likewise.
16627         [UNIX98] (vswscanf): Likewise.
16628
16629 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
16630
16631         * timezone/version.h: Remove file.
16632         * timezone/README: Do not refer to version.h.
16633         * timezone/Makefile ($(objpfx)zic.o): New dependency on
16634         $(objpfx)version.h.
16635         ($(objpfx)zdump.o): Likewise.
16636         ($(objpfx)version.h): New target.
16637
16638         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
16639         2012i.
16640         * timezone/README: Don't mention modification to tzselect.ksh.
16641         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
16642         work on unmodified tzselect.ksh.  Substitute version numbers in
16643         tzselect.ksh.
16644
16645         * Makefile (format-me): Remove.
16646         (INSTALL): Adjust indentation.  Use commands directly instead of
16647         using $(format-me).
16648
16649         * aclocal.m4 (ACX_PKGVERSION): New macro.
16650         (ACX_BUGURL): Likewise.
16651         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
16652         (PKGVERSION): New AC_DEFINE_UNQUOTED.
16653         (REPORT_BUGS_TO): Likewise.
16654         * configure: Regenerated.
16655         * config.h.in (PKGVERSION): New macro.
16656         (REPORT_BUGS_TO): Likewise.
16657         * config.make.in (PKGVERSION): New variable.
16658         (PKGVERSION_TEXI): Likewise.
16659         (REPORT_BUGS_TO): Likewise.
16660         (REPORT_BUGS_TEXI): Likewise.
16661         * Makefile (format-me): Use -I$(common-objpfx)manual.
16662         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
16663         ($(common-objpfx)manual/%): New target.
16664         (manual/%): Remove target.
16665         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
16666         (print_version): Use PKGVERSION.
16667         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
16668         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
16669         and REPORT_BUGS_TO.
16670         ($(objpfx)xtrace): Likewise.
16671         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
16672         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
16673         (print_version): Use PKGVERSION.
16674         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
16675         (do_version): Use PKGVERSION.
16676         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
16677         REPORT_BUGS_TO.
16678         (common-ldd-rewrite): Likewise.
16679         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
16680         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
16681         (print_version): Use PKGVERSION.
16682         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
16683         * elf/pldd.c (argp_program_bug_address): Remove variable.
16684         (more_help): New function.
16685         (argp): Use more_help.
16686         (print_version): Use PKGVERSION.
16687         * elf/sln.c (main): Use PKGVERSION.
16688         (usage): Use REPORT_BUGS_TO.
16689         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
16690         (top level): Use PKGVERSION.
16691         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
16692         (print_version): Use PKGVERSION.
16693         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
16694         (print_version): Use PKGVERSION.
16695         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
16696         (print_version): Use PKGVERSION.
16697         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
16698         (print_version): Use PKGVERSION.
16699         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
16700         (print_version): Use PKGVERSION.
16701         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
16702         (print_version): Use PKGVERSION.
16703         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
16704         and BUGURL.
16705         ($(objpfx)memusage): Likewise.
16706         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
16707         (do_version): Use PKGVERSION.
16708         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
16709         (print_version): Use PKGVERSION.
16710         * malloc/mtrace.pl ($PACKAGE): Remove variable.
16711         ($PKGVERSION): New variable.
16712         ($REPORT_BUGS_TO): Likewise.
16713         (usage): Use $REPORT_BUGS_TO.
16714         (top level): Use $PKGVERSION.
16715         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
16716         ($(objpfx)pkgvers.texi): New rule.
16717         ($(objpfx)stamp-pkgvers): Likewise.
16718         * manual/install.texi: Include pkgvers.texi.
16719         (--with-pkgversion): Document new configure option.
16720         (--with-bugurl): Likewise.
16721         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
16722         than necessarily for this particular distribution.  Use
16723         REPORT_BUGS_TO for where to report bugs.
16724         * INSTALL: Regenerated.
16725         * manual/libc.texinfo: Include pkgvers.texi.
16726         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
16727         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
16728         (print_version): Use PKGVERSION.
16729         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
16730         (print_version): Use PKGVERSION.
16731         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
16732         (print_version): Use PKGVERSION.
16733         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
16734         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
16735         macro.
16736         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
16737         (print_version): Use PKGVERSION.
16738         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
16739         (print_version): Use PKGVERSION.
16740         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
16741         and PKGVERSION.
16742
16743         * timezone/checktab.awk: Update from tzcode 2012i.
16744         * timezone/ialloc.c: Likewise.
16745         * timezone/private.h: Likewise.
16746         * timezone/scheck.c: Likewise.
16747         * timezone/tzfile.h: Likewise.
16748         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
16749         (TZVERSION): Hardcode tzcode version number.
16750         * timezone/zdump.c: Update from tzcode 2012i.
16751         * timezone/zic.c: Likewise.
16752         * timezone/version.h: New file.
16753         * timezone/README: Describe version.h.  Update upstream location.
16754
16755         [BZ #14824]
16756         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
16757         (mktemp): Enable declaration.
16758         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
16759         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
16760         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
16761         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
16762         Likewise.
16763         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
16764         Likewise.
16765         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
16766         Likewise.
16767         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
16768         Likewise.
16769         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
16770         Likewise.
16771         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
16772         Likewise.
16773
16774         [BZ #14821]
16775         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
16776         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
16777         for copies of such integer values.
16778         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16779         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16780
16781 2012-11-09  Andreas Jaeger  <aj@suse.de>
16782
16783         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
16784         definitions and declarations that are provided by
16785         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
16786
16787 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16788
16789         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
16790         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
16791         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
16792         definition.
16793
16794 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16795
16796         * elf/elf.h: Update comment before AArch64 relocations.
16797
16798 2012-11-07  David S. Miller  <davem@davemloft.net>
16799
16800         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
16801         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16802         (__start_context): Declare.
16803         (__makecontext_ret): Delete.
16804         (__makecontext): Hook up __start_context instead of
16805         __makecontext_ret.
16806         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
16807         (sysdep_routines): Add __start_context when in stdlib.
16808
16809 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16810
16811         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
16812         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
16813         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
16814         hardcoded "nm".
16815         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
16816         (READELF): New variable.  Use it instead of hardcoded "readelf".
16817
16818 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
16819
16820         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
16821         * sysdeps/x86/Makefile: Here.
16822         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
16823         * sysdeps/x86/tst-xmmymm.sh: This.
16824
16825 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
16826
16827         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
16828         expectations.
16829         [UNIX98] (pthread_barrier_t): Do not expect.
16830         [UNIX98] (pthread_barrierattr_t): Likewise.
16831         [UNIX98] (pthread_spinlock_t): Likewise.
16832         [UNIX98] (pthread_barrier_destroy): Likewise.
16833         [UNIX98] (pthread_barrier_init): Likewise.
16834         [UNIX98] (pthread_barrier_wait): Likewise.
16835         [UNIX98] (pthread_barrierattr_destroy): Likewise.
16836         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
16837         [UNIX98] (pthread_barrierattr_init): Likewise.
16838         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
16839         [UNIX98] (pthread_getcpuclockid): Likewise.
16840         [UNIX98] (pthread_mutex_timedlock): Likewise.
16841         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
16842         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
16843         [UNIX98] (pthread_sigmask): Likewise.
16844         [UNIX98] (pthread_spin_destroy): Likewise.
16845         [UNIX98] (pthread_spin_init): Likewise.
16846         [UNIX98] (pthread_spin_lock): Likewise.
16847         [UNIX98] (pthread_spin_trylock): Likewise.
16848         [UNIX98] (pthread_spin_unlock): Likewise.
16849         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
16850         Do not expect.
16851         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
16852         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
16853         [XPG3 || XPG4] (pthread_cond_t): Likewise.
16854         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
16855         [XPG3 || XPG4] (pthread_key_t): Likewise.
16856         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
16857         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
16858         [XPG3 || XPG4] (pthread_once_t): Likewise.
16859         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
16860         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
16861         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
16862         [XPG3 || XPG4] (pthread_t): Likewise.
16863
16864         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
16865         not expect.
16866         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
16867
16868         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
16869         Change function return type to int.
16870
16871         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
16872         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
16873         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
16874         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
16875         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
16876         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
16877         [!POSIX] (posix_madvise): Likewise.
16878         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
16879         && !UNIX98].
16880         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
16881         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
16882         (mode_t): Likewise.
16883         (posix_mem_offset): Likewise.
16884         (posix_typed_mem_get_info): Likewise.
16885         (posix_typed_mem_open): Likewise.
16886
16887         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
16888         Change condition to [XOPEN2K8].
16889
16890         * conform/conformtest.pl: Preprocess allow-header data with -x c
16891         instead of from stdin.
16892         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
16893         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
16894         [C99-based standards] (cerfc): Likewise.
16895         [C99-based standards] (cexp2): Likewise.
16896         [C99-based standards] (cexpm1): Likewise.
16897         [C99-based standards] (clog10): Likewise.
16898         [C99-based standards] (clog1p): Likewise.
16899         [C99-based standards] (clog2): Likewise.
16900         [C99-based standards] (clgamma): Likewise.
16901         [C99-based standards] (ctgamma): Likewise.
16902         [C99-based standards] (cerff): Likewise.
16903         [C99-based standards] (cerfcf): Likewise.
16904         [C99-based standards] (cexp2f): Likewise.
16905         [C99-based standards] (cexpm1f): Likewise.
16906         [C99-based standards] (clog10f): Likewise.
16907         [C99-based standards] (clog1pf): Likewise.
16908         [C99-based standards] (clog2f): Likewise.
16909         [C99-based standards] (clgammaf): Likewise.
16910         [C99-based standards] (ctgammaf): Likewise.
16911         [C99-based standards] (cerfl): Likewise.
16912         [C99-based standards] (cerfcl): Likewise.
16913         [C99-based standards] (cexp2l): Likewise.
16914         [C99-based standards] (cexpm1l): Likewise.
16915         [C99-based standards] (clog10l): Likewise.
16916         [C99-based standards] (clog1pl): Likewise.
16917         [C99-based standards] (clog2l): Likewise.
16918         [C99-based standards] (clgammal): Likewise.
16919         [C99-based standards] (ctgammal): Likewise.
16920         * conform/data/inttypes.h-data [C99-based standards]: Include
16921         stdint.h-data.  Remove all expectations for stdint.h contents.
16922         [C99-based standards] (PRI*): Do not allow.
16923         [C99-based standards] (SCN*): Likewise.
16924         [C99-based standards] (*_t): Likewise.
16925         [C99-based-standards] (PRId8): Expect macro.
16926         [C99-based-standards] (PRIi8): Likewise.
16927         [C99-based-standards] (PRIo8): Likewise.
16928         [C99-based-standards] (PRIu8): Likewise.
16929         [C99-based-standards] (PRIx8): Likewise.
16930         [C99-based-standards] (PRIX8): Likewise.
16931         [C99-based-standards] (SCNd8): Likewise.
16932         [C99-based-standards] (SCNi8): Likewise.
16933         [C99-based-standards] (SCNo8): Likewise.
16934         [C99-based-standards] (SCNu8): Likewise.
16935         [C99-based-standards] (SCNx8): Likewise.
16936         [C99-based-standards] (PRIdLEAST8): Likewise.
16937         [C99-based-standards] (PRIiLEAST8): Likewise.
16938         [C99-based-standards] (PRIoLEAST8): Likewise.
16939         [C99-based-standards] (PRIuLEAST8): Likewise.
16940         [C99-based-standards] (PRIxLEAST8): Likewise.
16941         [C99-based-standards] (PRIXLEAST8): Likewise.
16942         [C99-based-standards] (SCNdLEAST8): Likewise.
16943         [C99-based-standards] (SCNiLEAST8): Likewise.
16944         [C99-based-standards] (SCNoLEAST8): Likewise.
16945         [C99-based-standards] (SCNuLEAST8): Likewise.
16946         [C99-based-standards] (SCNxLEAST8): Likewise.
16947         [C99-based-standards] (PRIdFAST8): Likewise.
16948         [C99-based-standards] (PRIiFAST8): Likewise.
16949         [C99-based-standards] (PRIoFAST8): Likewise.
16950         [C99-based-standards] (PRIuFAST8): Likewise.
16951         [C99-based-standards] (PRIxFAST8): Likewise.
16952         [C99-based-standards] (PRIXFAST8): Likewise.
16953         [C99-based-standards] (SCNdFAST8): Likewise.
16954         [C99-based-standards] (SCNiFAST8): Likewise.
16955         [C99-based-standards] (SCNoFAST8): Likewise.
16956         [C99-based-standards] (SCNuFAST8): Likewise.
16957         [C99-based-standards] (SCNxFAST8): Likewise.
16958         [C99-based-standards] (PRId16): Likewise.
16959         [C99-based-standards] (PRIi16): Likewise.
16960         [C99-based-standards] (PRIo16): Likewise.
16961         [C99-based-standards] (PRIu16): Likewise.
16962         [C99-based-standards] (PRIx16): Likewise.
16963         [C99-based-standards] (PRIX16): Likewise.
16964         [C99-based-standards] (SCNd16): Likewise.
16965         [C99-based-standards] (SCNi16): Likewise.
16966         [C99-based-standards] (SCNo16): Likewise.
16967         [C99-based-standards] (SCNu16): Likewise.
16968         [C99-based-standards] (SCNx16): Likewise.
16969         [C99-based-standards] (PRIdLEAST16): Likewise.
16970         [C99-based-standards] (PRIiLEAST16): Likewise.
16971         [C99-based-standards] (PRIoLEAST16): Likewise.
16972         [C99-based-standards] (PRIuLEAST16): Likewise.
16973         [C99-based-standards] (PRIxLEAST16): Likewise.
16974         [C99-based-standards] (PRIXLEAST16): Likewise.
16975         [C99-based-standards] (SCNdLEAST16): Likewise.
16976         [C99-based-standards] (SCNiLEAST16): Likewise.
16977         [C99-based-standards] (SCNoLEAST16): Likewise.
16978         [C99-based-standards] (SCNuLEAST16): Likewise.
16979         [C99-based-standards] (SCNxLEAST16): Likewise.
16980         [C99-based-standards] (PRIdFAST16): Likewise.
16981         [C99-based-standards] (PRIiFAST16): Likewise.
16982         [C99-based-standards] (PRIoFAST16): Likewise.
16983         [C99-based-standards] (PRIuFAST16): Likewise.
16984         [C99-based-standards] (PRIxFAST16): Likewise.
16985         [C99-based-standards] (PRIXFAST16): Likewise.
16986         [C99-based-standards] (SCNdFAST16): Likewise.
16987         [C99-based-standards] (SCNiFAST16): Likewise.
16988         [C99-based-standards] (SCNoFAST16): Likewise.
16989         [C99-based-standards] (SCNuFAST16): Likewise.
16990         [C99-based-standards] (SCNxFAST16): Likewise.
16991         [C99-based-standards] (PRId32): Likewise.
16992         [C99-based-standards] (PRIi32): Likewise.
16993         [C99-based-standards] (PRIo32): Likewise.
16994         [C99-based-standards] (PRIu32): Likewise.
16995         [C99-based-standards] (PRIx32): Likewise.
16996         [C99-based-standards] (PRIX32): Likewise.
16997         [C99-based-standards] (SCNd32): Likewise.
16998         [C99-based-standards] (SCNi32): Likewise.
16999         [C99-based-standards] (SCNo32): Likewise.
17000         [C99-based-standards] (SCNu32): Likewise.
17001         [C99-based-standards] (SCNx32): Likewise.
17002         [C99-based-standards] (PRIdLEAST32): Likewise.
17003         [C99-based-standards] (PRIiLEAST32): Likewise.
17004         [C99-based-standards] (PRIoLEAST32): Likewise.
17005         [C99-based-standards] (PRIuLEAST32): Likewise.
17006         [C99-based-standards] (PRIxLEAST32): Likewise.
17007         [C99-based-standards] (PRIXLEAST32): Likewise.
17008         [C99-based-standards] (SCNdLEAST32): Likewise.
17009         [C99-based-standards] (SCNiLEAST32): Likewise.
17010         [C99-based-standards] (SCNoLEAST32): Likewise.
17011         [C99-based-standards] (SCNuLEAST32): Likewise.
17012         [C99-based-standards] (SCNxLEAST32): Likewise.
17013         [C99-based-standards] (PRIdFAST32): Likewise.
17014         [C99-based-standards] (PRIiFAST32): Likewise.
17015         [C99-based-standards] (PRIoFAST32): Likewise.
17016         [C99-based-standards] (PRIuFAST32): Likewise.
17017         [C99-based-standards] (PRIxFAST32): Likewise.
17018         [C99-based-standards] (PRIXFAST32): Likewise.
17019         [C99-based-standards] (SCNdFAST32): Likewise.
17020         [C99-based-standards] (SCNiFAST32): Likewise.
17021         [C99-based-standards] (SCNoFAST32): Likewise.
17022         [C99-based-standards] (SCNuFAST32): Likewise.
17023         [C99-based-standards] (SCNxFAST32): Likewise.
17024         [C99-based-standards] (PRId64): Likewise.
17025         [C99-based-standards] (PRIi64): Likewise.
17026         [C99-based-standards] (PRIo64): Likewise.
17027         [C99-based-standards] (PRIu64): Likewise.
17028         [C99-based-standards] (PRIx64): Likewise.
17029         [C99-based-standards] (PRIX64): Likewise.
17030         [C99-based-standards] (SCNd64): Likewise.
17031         [C99-based-standards] (SCNi64): Likewise.
17032         [C99-based-standards] (SCNo64): Likewise.
17033         [C99-based-standards] (SCNu64): Likewise.
17034         [C99-based-standards] (SCNx64): Likewise.
17035         [C99-based-standards] (PRIdLEAST64): Likewise.
17036         [C99-based-standards] (PRIiLEAST64): Likewise.
17037         [C99-based-standards] (PRIoLEAST64): Likewise.
17038         [C99-based-standards] (PRIuLEAST64): Likewise.
17039         [C99-based-standards] (PRIxLEAST64): Likewise.
17040         [C99-based-standards] (PRIXLEAST64): Likewise.
17041         [C99-based-standards] (SCNdLEAST64): Likewise.
17042         [C99-based-standards] (SCNiLEAST64): Likewise.
17043         [C99-based-standards] (SCNoLEAST64): Likewise.
17044         [C99-based-standards] (SCNuLEAST64): Likewise.
17045         [C99-based-standards] (SCNxLEAST64): Likewise.
17046         [C99-based-standards] (PRIdFAST64): Likewise.
17047         [C99-based-standards] (PRIiFAST64): Likewise.
17048         [C99-based-standards] (PRIoFAST64): Likewise.
17049         [C99-based-standards] (PRIuFAST64): Likewise.
17050         [C99-based-standards] (PRIxFAST64): Likewise.
17051         [C99-based-standards] (PRIXFAST64): Likewise.
17052         [C99-based-standards] (SCNdFAST64): Likewise.
17053         [C99-based-standards] (SCNiFAST64): Likewise.
17054         [C99-based-standards] (SCNoFAST64): Likewise.
17055         [C99-based-standards] (SCNuFAST64): Likewise.
17056         [C99-based-standards] (SCNxFAST64): Likewise.
17057         [C99-based-standards] (PRIdMAX): Likewise.
17058         [C99-based-standards] (PRIiMAX): Likewise.
17059         [C99-based-standards] (PRIoMAX): Likewise.
17060         [C99-based-standards] (PRIuMAX): Likewise.
17061         [C99-based-standards] (PRIxMAX): Likewise.
17062         [C99-based-standards] (PRIXMAX): Likewise.
17063         [C99-based-standards] (SCNdMAX): Likewise.
17064         [C99-based-standards] (SCNiMAX): Likewise.
17065         [C99-based-standards] (SCNoMAX): Likewise.
17066         [C99-based-standards] (SCNuMAX): Likewise.
17067         [C99-based-standards] (SCNxMAX): Likewise.
17068         [C99-based-standards] (PRIdPTR): Likewise.
17069         [C99-based-standards] (PRIiPTR): Likewise.
17070         [C99-based-standards] (PRIoPTR): Likewise.
17071         [C99-based-standards] (PRIuPTR): Likewise.
17072         [C99-based-standards] (PRIxPTR): Likewise.
17073         [C99-based-standards] (PRIXPTR): Likewise.
17074         [C99-based-standards] (SCNdPTR): Likewise.
17075         [C99-based-standards] (SCNiPTR): Likewise.
17076         [C99-based-standards] (SCNoPTR): Likewise.
17077         [C99-based-standards] (SCNuPTR): Likewise.
17078         [C99-based-standards] (SCNxPTR): Likewise.
17079         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
17080         allow.
17081         * conform/data/stdint.h-data: Update comments to clarify
17082         requirements.
17083         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
17084         type.
17085         [C99-based standards] (INT8_MAX): Likewise.
17086         [C99-based standards] (INT16_MIN): Likewise.
17087         [C99-based standards] (INT16_MAX): Likewise.
17088         [C99-based standards] (INT32_MIN): Likewise.
17089         [C99-based standards] (INT32_MAX): Likewise.
17090         [C99-based standards] (INT64_MIN): Likewise.
17091         [C99-based standards] (INT64_MAX): Likewise.
17092         [C99-based standards] (UINT8_MAX): Likewise.
17093         [C99-based standards] (UINT16_MAX): Likewise.
17094         [C99-based standards] (UINT32_MAX): Likewise.
17095         [C99-based standards] (UINT64_MAX): Likewise.
17096         [C99-based standards] (INT_LEAST8_MIN): Likewise.
17097         [C99-based standards] (INT_LEAST8_MAX): Likewise.
17098         [C99-based standards] (INT_LEAST16_MIN): Likewise.
17099         [C99-based standards] (INT_LEAST16_MAX): Likewise.
17100         [C99-based standards] (INT_LEAST32_MIN): Likewise.
17101         [C99-based standards] (INT_LEAST32_MAX): Likewise.
17102         [C99-based standards] (INT_LEAST64_MIN): Likewise.
17103         [C99-based standards] (INT_LEAST64_MAX): Likewise.
17104         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
17105         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
17106         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
17107         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
17108         [C99-based standards] (INT_FAST8_MIN): Likewise.
17109         [C99-based standards] (INT_FAST8_MAX): Likewise.
17110         [C99-based standards] (INT_FAST16_MIN): Likewise.
17111         [C99-based standards] (INT_FAST16_MAX): Likewise.
17112         [C99-based standards] (INT_FAST32_MIN): Likewise.
17113         [C99-based standards] (INT_FAST32_MAX): Likewise.
17114         [C99-based standards] (INT_FAST64_MIN): Likewise.
17115         [C99-based standards] (INT_FAST64_MAX): Likewise.
17116         [C99-based standards] (UINT_FAST8_MAX): Likewise.
17117         [C99-based standards] (UINT_FAST16_MAX): Likewise.
17118         [C99-based standards] (UINT_FAST32_MAX): Likewise.
17119         [C99-based standards] (UINT_FAST64_MAX): Likewise.
17120         [C99-based standards] (INTPTR_MIN): Likewise.
17121         [C99-based standards] (INTPTR_MAX): Likewise.
17122         [C99-based standards] (UINTPTR_MAX): Likewise.
17123         [C99-based standards] (INTMAX_MIN): Likewise.
17124         [C99-based standards] (INTMAX_MAX): Likewise.
17125         [C99-based standards] (UINTMAX_MAX): Likewise.
17126         [C99-based standards] (PTRDIFF_MIN): Likewise.
17127         [C99-based standards] (PTRDIFF_MAX): Likewise.
17128         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
17129         [C99-based standards] (SIZE_MAX): Likewise.
17130         [C99-based standards] (WCHAR_MAX): Likewise.
17131         [C99-based standards] (WINT_MAX): Likewise.
17132         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
17133         constraint on value.
17134         [C99-based standards] (WCHAR_MIN): Likewise.
17135         [C99-based standards] (WINT_MIN): Likewise.
17136         [C99-based standards] (*_t): Allow.
17137         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
17138         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
17139         Include math.h-data and complex.h-data.  Remove all expectations
17140         of math.h and complex.h contents.
17141         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
17142         at end of line.
17143         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
17144         (struct tm): Expect tag.
17145         [C99-based-standards] (wcstof): Expect function.
17146         [C99-based-standards] (wcstold): Likewise.
17147         [C99-based-standards] (wcstoll): Likewise.
17148         [C99-based-standards] (wcstoull): Likewise.
17149         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
17150         macro-int-constant.  Specify type.
17151         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
17152         constraint on value.
17153         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17154         Specify type.
17155         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
17156         Specify value.
17157         [ISO C standards]: Do not allow headers.
17158         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
17159         wcs[abcdefghijklmnopqrstuvwxyz]*.
17160         [ISO C standards] (*_t): Do not allow.
17161         * conform/data/wctype.h-data [C99-based standards] (iswblank):
17162         Expect function.
17163         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
17164         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
17165         Specify type.
17166         [ISO C standards]: Do not allow headers.
17167         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
17168         is[abcdefghijklmnopqrstuvwxyz]*.
17169         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
17170         to[abcdefghijklmnopqrstuvwxyz]*.
17171         [ISO C standards] (*_t): Do not allow.
17172         * conform/data/stdalign.h-data: New file.
17173         * conform/data/stdbool.h-data: Likewise.
17174         * conform/data/stdnoreturn.h-data: Likewise.
17175
17176 2012-11-07  Roland McGrath  <roland@hack.frob.com>
17177
17178         [BZ #14815]
17179         * manual/filesys.texi (Directory Entries): Typo fix.
17180         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
17181
17182 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
17183
17184         * elf/elf.h (EM_AARCH64): New macro.
17185         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
17186         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
17187         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
17188         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
17189         (R_AARCH64_TLSDESC): Likewise.
17190         (NT_ARM_TLS): Likewise.
17191         (NT_ARM_HW_BREAK): Likewise.
17192         (NT_ARM_HW_WATCH): Likewise.
17193
17194 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17195
17196         [BZ #14811]
17197         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
17198         (__ieee754_powl): Saturate nonzero exponents with absolute value
17199         below 0x1p-79 to +/- 0x1p-79.
17200         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
17201         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
17202         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
17203         nonzero exponents with absolute value below 0x1p-32 to +/-
17204         0x1p-32.
17205         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
17206         (__ieee754_powl): Saturate nonzero exponents with absolute value
17207         below 0x1p-79 to +/- 0x1p-79.
17208         * math/libm-test.inc (pow_test): Add more tests.
17209
17210 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17211
17212         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
17213         _dl_s390_cap_flags with kernel. Increase string length.
17214         (_dl_s390_platforms): Add z196 and zEC12.
17215
17216 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
17217
17218         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
17219         Change XOPEN21K to XOPEN2K.
17220
17221 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17222
17223         * string/memmove.c: Use memcpy when possible.
17224
17225 2012-11-06  Andreas Jaeger  <aj@suse.de>
17226
17227         * po/eo.po: Update from translation team.
17228
17229 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
17230
17231         [BZ #14793]
17232         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
17233         exponent and small x and y exponents, scale x or y up.  Increase
17234         by 2 the exponent used in scaling up.
17235         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17236         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17237         * math/libm-test.inc (fma_test): Add more tests.
17238         (fma_test_towardzero): Likewise.
17239         (fma_test_downward): Likewise.
17240         (fma_test_upward): Likewise.
17241
17242 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
17243
17244         [BZ #14805]
17245         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
17246         fenv_t *.
17247
17248         [BZ #14801]
17249         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
17250         namespace for names of struct fields.
17251         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
17252         fenv_t fields.
17253         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
17254         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
17255
17256 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17257
17258         [BZ #3665]
17259         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
17260
17261 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17262
17263         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
17264         PTR_DEMANGLE.
17265
17266         [BZ #5246]
17267         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
17268         PTR_DEMANGLE.
17269
17270 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
17271
17272         [BZ #14797]
17273         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
17274         definitely overflow as x * y not x * y + z.
17275         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17276         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17277         * math/libm-test.inc (fma_test): Add more tests.
17278         (fma_test_towardzero): Likewise.
17279         (fma_test_downward): Likewise.
17280         (fma_test_upward): Likewise.
17281
17282 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
17283
17284         [BZ #157]
17285
17286         * include/stub-tag.h: Remove file.
17287         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
17288         '#include' of it.
17289         * manual/maint.texi (Porting): Don't reference it.
17290         * Makerules ($(objpfx)stubs): Likewise.
17291         * dirent/closedir.c: Don't include <stub-tag.h>.
17292         * dirent/dirfd.c: Likewise.
17293         * dirent/fdopendir.c: Likewise.
17294         * dirent/getdents.c: Likewise.
17295         * dirent/getdents64.c: Likewise.
17296         * dirent/opendir.c: Likewise.
17297         * dirent/readdir.c: Likewise.
17298         * dirent/readdir64.c: Likewise.
17299         * dirent/readdir64_r.c: Likewise.
17300         * dirent/readdir_r.c: Likewise.
17301         * dirent/rewinddir.c: Likewise.
17302         * dirent/seekdir.c: Likewise.
17303         * dirent/telldir.c: Likewise.
17304         * gmon/profil.c: Likewise.
17305         * grp/setgroups.c: Likewise.
17306         * inet/if_index.c: Likewise.
17307         * io/access.c: Likewise.
17308         * io/chdir.c: Likewise.
17309         * io/chmod.c: Likewise.
17310         * io/chown.c: Likewise.
17311         * io/close.c: Likewise.
17312         * io/dup.c: Likewise.
17313         * io/dup2.c: Likewise.
17314         * io/dup3.c: Likewise.
17315         * io/euidaccess.c: Likewise.
17316         * io/faccessat.c: Likewise.
17317         * io/fchdir.c: Likewise.
17318         * io/fchmod.c: Likewise.
17319         * io/fchmodat.c: Likewise.
17320         * io/fchown.c: Likewise.
17321         * io/fchownat.c: Likewise.
17322         * io/fcntl.c: Likewise.
17323         * io/flock.c: Likewise.
17324         * io/fstatfs.c: Likewise.
17325         * io/fstatfs64.c: Likewise.
17326         * io/fstatvfs.c: Likewise.
17327         * io/fstatvfs64.c: Likewise.
17328         * io/futimens.c: Likewise.
17329         * io/fxstat.c: Likewise.
17330         * io/fxstat64.c: Likewise.
17331         * io/fxstatat.c: Likewise.
17332         * io/fxstatat64.c: Likewise.
17333         * io/getcwd.c: Likewise.
17334         * io/isatty.c: Likewise.
17335         * io/lchmod.c: Likewise.
17336         * io/lchown.c: Likewise.
17337         * io/link.c: Likewise.
17338         * io/linkat.c: Likewise.
17339         * io/lseek.c: Likewise.
17340         * io/lseek64.c: Likewise.
17341         * io/lxstat64.c: Likewise.
17342         * io/mkdir.c: Likewise.
17343         * io/mkdirat.c: Likewise.
17344         * io/mkfifo.c: Likewise.
17345         * io/mkfifoat.c: Likewise.
17346         * io/open.c: Likewise.
17347         * io/open64.c: Likewise.
17348         * io/openat.c: Likewise.
17349         * io/openat64.c: Likewise.
17350         * io/pipe.c: Likewise.
17351         * io/pipe2.c: Likewise.
17352         * io/poll.c: Likewise.
17353         * io/posix_fadvise.c: Likewise.
17354         * io/posix_fadvise64.c: Likewise.
17355         * io/posix_fallocate.c: Likewise.
17356         * io/posix_fallocate64.c: Likewise.
17357         * io/read.c: Likewise.
17358         * io/readlink.c: Likewise.
17359         * io/readlinkat.c: Likewise.
17360         * io/rmdir.c: Likewise.
17361         * io/sendfile.c: Likewise.
17362         * io/sendfile64.c: Likewise.
17363         * io/statfs.c: Likewise.
17364         * io/statfs64.c: Likewise.
17365         * io/statvfs.c: Likewise.
17366         * io/statvfs64.c: Likewise.
17367         * io/symlink.c: Likewise.
17368         * io/symlinkat.c: Likewise.
17369         * io/ttyname.c: Likewise.
17370         * io/ttyname_r.c: Likewise.
17371         * io/umask.c: Likewise.
17372         * io/unlink.c: Likewise.
17373         * io/unlinkat.c: Likewise.
17374         * io/utime.c: Likewise.
17375         * io/utimensat.c: Likewise.
17376         * io/write.c: Likewise.
17377         * io/xmknod.c: Likewise.
17378         * io/xmknodat.c: Likewise.
17379         * io/xstat.c: Likewise.
17380         * io/xstat64.c: Likewise.
17381         * login/getpt.c: Likewise.
17382         * login/grantpt.c: Likewise.
17383         * login/unlockpt.c: Likewise.
17384         * math/e_acoshl.c: Likewise.
17385         * math/e_acosl.c: Likewise.
17386         * math/e_asinl.c: Likewise.
17387         * math/e_atan2l.c: Likewise.
17388         * math/e_atanhl.c: Likewise.
17389         * math/e_coshl.c: Likewise.
17390         * math/e_expl.c: Likewise.
17391         * math/e_fmodl.c: Likewise.
17392         * math/e_gammal_r.c: Likewise.
17393         * math/e_hypotl.c: Likewise.
17394         * math/e_j0l.c: Likewise.
17395         * math/e_j1l.c: Likewise.
17396         * math/e_jnl.c: Likewise.
17397         * math/e_lgammal_r.c: Likewise.
17398         * math/e_log10l.c: Likewise.
17399         * math/e_log2l.c: Likewise.
17400         * math/e_logl.c: Likewise.
17401         * math/e_powl.c: Likewise.
17402         * math/e_rem_pio2l.c: Likewise.
17403         * math/e_sinhl.c: Likewise.
17404         * math/e_sqrtl.c: Likewise.
17405         * math/fclrexcpt.c: Likewise.
17406         * math/fedisblxcpt.c: Likewise.
17407         * math/feenablxcpt.c: Likewise.
17408         * math/fegetenv.c: Likewise.
17409         * math/fegetexcept.c: Likewise.
17410         * math/fegetround.c: Likewise.
17411         * math/feholdexcpt.c: Likewise.
17412         * math/fesetenv.c: Likewise.
17413         * math/fesetround.c: Likewise.
17414         * math/feupdateenv.c: Likewise.
17415         * math/fgetexcptflg.c: Likewise.
17416         * math/fraiseexcpt.c: Likewise.
17417         * math/fsetexcptflg.c: Likewise.
17418         * math/ftestexcept.c: Likewise.
17419         * math/k_cosl.c: Likewise.
17420         * math/k_rem_pio2l.c: Likewise.
17421         * math/k_sinl.c: Likewise.
17422         * math/k_tanl.c: Likewise.
17423         * math/s_asinhl.c: Likewise.
17424         * math/s_atanl.c: Likewise.
17425         * math/s_cbrtl.c: Likewise.
17426         * math/s_erfl.c: Likewise.
17427         * math/s_expm1l.c: Likewise.
17428         * math/s_log1pl.c: Likewise.
17429         * math/s_tanhl.c: Likewise.
17430         * misc/acct.c: Likewise.
17431         * misc/brk.c: Likewise.
17432         * misc/chflags.c: Likewise.
17433         * misc/chroot.c: Likewise.
17434         * misc/fchflags.c: Likewise.
17435         * misc/fgetxattr.c: Likewise.
17436         * misc/flistxattr.c: Likewise.
17437         * misc/fremovexattr.c: Likewise.
17438         * misc/fsetxattr.c: Likewise.
17439         * misc/fsync.c: Likewise.
17440         * misc/ftruncate.c: Likewise.
17441         * misc/futimes.c: Likewise.
17442         * misc/futimesat.c: Likewise.
17443         * misc/getdomain.c: Likewise.
17444         * misc/getdtsz.c: Likewise.
17445         * misc/gethostid.c: Likewise.
17446         * misc/gethostname.c: Likewise.
17447         * misc/getloadavg.c: Likewise.
17448         * misc/getpagesize.c: Likewise.
17449         * misc/getsysstats.c: Likewise.
17450         * misc/getxattr.c: Likewise.
17451         * misc/gtty.c: Likewise.
17452         * misc/ioctl.c: Likewise.
17453         * misc/lgetxattr.c: Likewise.
17454         * misc/listxattr.c: Likewise.
17455         * misc/llistxattr.c: Likewise.
17456         * misc/lremovexattr.c: Likewise.
17457         * misc/lsetxattr.c: Likewise.
17458         * misc/lutimes.c: Likewise.
17459         * misc/madvise.c: Likewise.
17460         * misc/mincore.c: Likewise.
17461         * misc/mlock.c: Likewise.
17462         * misc/mlockall.c: Likewise.
17463         * misc/mmap.c: Likewise.
17464         * misc/mprotect.c: Likewise.
17465         * misc/msync.c: Likewise.
17466         * misc/munlock.c: Likewise.
17467         * misc/munlockall.c: Likewise.
17468         * misc/munmap.c: Likewise.
17469         * misc/preadv.c: Likewise.
17470         * misc/preadv64.c: Likewise.
17471         * misc/ptrace.c: Likewise.
17472         * misc/pwritev.c: Likewise.
17473         * misc/pwritev64.c: Likewise.
17474         * misc/readv.c: Likewise.
17475         * misc/reboot.c: Likewise.
17476         * misc/remap_file_pages.c: Likewise.
17477         * misc/removexattr.c: Likewise.
17478         * misc/revoke.c: Likewise.
17479         * misc/select.c: Likewise.
17480         * misc/setdomain.c: Likewise.
17481         * misc/setegid.c: Likewise.
17482         * misc/seteuid.c: Likewise.
17483         * misc/sethostid.c: Likewise.
17484         * misc/sethostname.c: Likewise.
17485         * misc/setregid.c: Likewise.
17486         * misc/setreuid.c: Likewise.
17487         * misc/setxattr.c: Likewise.
17488         * misc/sstk.c: Likewise.
17489         * misc/stty.c: Likewise.
17490         * misc/swapoff.c: Likewise.
17491         * misc/swapon.c: Likewise.
17492         * misc/sync.c: Likewise.
17493         * misc/syncfs.c: Likewise.
17494         * misc/syscall.c: Likewise.
17495         * misc/truncate.c: Likewise.
17496         * misc/ualarm.c: Likewise.
17497         * misc/usleep.c: Likewise.
17498         * misc/ustat.c: Likewise.
17499         * misc/utimes.c: Likewise.
17500         * misc/vhangup.c: Likewise.
17501         * misc/writev.c: Likewise.
17502         * posix/_exit.c: Likewise.
17503         * posix/alarm.c: Likewise.
17504         * posix/execve.c: Likewise.
17505         * posix/fexecve.c: Likewise.
17506         * posix/fork.c: Likewise.
17507         * posix/fpathconf.c: Likewise.
17508         * posix/getaddrinfo.c: Likewise.
17509         * posix/getegid.c: Likewise.
17510         * posix/geteuid.c: Likewise.
17511         * posix/getgid.c: Likewise.
17512         * posix/getgroups.c: Likewise.
17513         * posix/getlogin.c: Likewise.
17514         * posix/getlogin_r.c: Likewise.
17515         * posix/getpgid.c: Likewise.
17516         * posix/getpid.c: Likewise.
17517         * posix/getppid.c: Likewise.
17518         * posix/getresgid.c: Likewise.
17519         * posix/getresuid.c: Likewise.
17520         * posix/getsid.c: Likewise.
17521         * posix/getuid.c: Likewise.
17522         * posix/glob64.c: Likewise.
17523         * posix/nanosleep.c: Likewise.
17524         * posix/pathconf.c: Likewise.
17525         * posix/pause.c: Likewise.
17526         * posix/posix_madvise.c: Likewise.
17527         * posix/pread.c: Likewise.
17528         * posix/pread64.c: Likewise.
17529         * posix/pwrite.c: Likewise.
17530         * posix/pwrite64.c: Likewise.
17531         * posix/sched_getaffinity.c: Likewise.
17532         * posix/sched_getp.c: Likewise.
17533         * posix/sched_gets.c: Likewise.
17534         * posix/sched_primax.c: Likewise.
17535         * posix/sched_primin.c: Likewise.
17536         * posix/sched_rr_gi.c: Likewise.
17537         * posix/sched_setaffinity.c: Likewise.
17538         * posix/sched_setp.c: Likewise.
17539         * posix/sched_sets.c: Likewise.
17540         * posix/sched_yield.c: Likewise.
17541         * posix/setgid.c: Likewise.
17542         * posix/setlogin.c: Likewise.
17543         * posix/setpgid.c: Likewise.
17544         * posix/setresgid.c: Likewise.
17545         * posix/setresuid.c: Likewise.
17546         * posix/setsid.c: Likewise.
17547         * posix/setuid.c: Likewise.
17548         * posix/sleep.c: Likewise.
17549         * posix/spawni.c: Likewise.
17550         * posix/sysconf.c: Likewise.
17551         * posix/times.c: Likewise.
17552         * posix/wait.c: Likewise.
17553         * posix/wait3.c: Likewise.
17554         * posix/wait4.c: Likewise.
17555         * posix/waitpid.c: Likewise.
17556         * resolv/gai_sigqueue.c: Likewise.
17557         * resource/getpriority.c: Likewise.
17558         * resource/getrlimit.c: Likewise.
17559         * resource/getrusage.c: Likewise.
17560         * resource/nice.c: Likewise.
17561         * resource/setpriority.c: Likewise.
17562         * resource/setrlimit.c: Likewise.
17563         * resource/ulimit.c: Likewise.
17564         * rt/aio_cancel.c: Likewise.
17565         * rt/aio_fsync.c: Likewise.
17566         * rt/aio_read.c: Likewise.
17567         * rt/aio_sigqueue.c: Likewise.
17568         * rt/aio_suspend.c: Likewise.
17569         * rt/aio_write.c: Likewise.
17570         * rt/clock_getres.c: Likewise.
17571         * rt/clock_gettime.c: Likewise.
17572         * rt/clock_nanosleep.c: Likewise.
17573         * rt/clock_settime.c: Likewise.
17574         * rt/lio_listio.c: Likewise.
17575         * rt/mq_close.c: Likewise.
17576         * rt/mq_getattr.c: Likewise.
17577         * rt/mq_notify.c: Likewise.
17578         * rt/mq_open.c: Likewise.
17579         * rt/mq_receive.c: Likewise.
17580         * rt/mq_send.c: Likewise.
17581         * rt/mq_setattr.c: Likewise.
17582         * rt/mq_timedreceive.c: Likewise.
17583         * rt/mq_timedsend.c: Likewise.
17584         * rt/mq_unlink.c: Likewise.
17585         * rt/shm_open.c: Likewise.
17586         * rt/shm_unlink.c: Likewise.
17587         * rt/timer_create.c: Likewise.
17588         * rt/timer_delete.c: Likewise.
17589         * rt/timer_getoverr.c: Likewise.
17590         * rt/timer_gettime.c: Likewise.
17591         * rt/timer_settime.c: Likewise.
17592         * setjmp/__longjmp.c: Likewise.
17593         * setjmp/setjmp.c: Likewise.
17594         * signal/kill.c: Likewise.
17595         * signal/killpg.c: Likewise.
17596         * signal/raise.c: Likewise.
17597         * signal/sigaction.c: Likewise.
17598         * signal/sigaltstack.c: Likewise.
17599         * signal/sigblock.c: Likewise.
17600         * signal/sigignore.c: Likewise.
17601         * signal/sigintr.c: Likewise.
17602         * signal/signal.c: Likewise.
17603         * signal/sigpause.c: Likewise.
17604         * signal/sigpending.c: Likewise.
17605         * signal/sigqueue.c: Likewise.
17606         * signal/sigreturn.c: Likewise.
17607         * signal/sigset.c: Likewise.
17608         * signal/sigsetmask.c: Likewise.
17609         * signal/sigstack.c: Likewise.
17610         * signal/sigsuspend.c: Likewise.
17611         * signal/sigtimedwait.c: Likewise.
17612         * signal/sigvec.c: Likewise.
17613         * signal/sigwait.c: Likewise.
17614         * signal/sigwaitinfo.c: Likewise.
17615         * signal/sysv_signal.c: Likewise.
17616         * socket/accept.c: Likewise.
17617         * socket/accept4.c: Likewise.
17618         * socket/bind.c: Likewise.
17619         * socket/connect.c: Likewise.
17620         * socket/getpeername.c: Likewise.
17621         * socket/getsockname.c: Likewise.
17622         * socket/getsockopt.c: Likewise.
17623         * socket/isfdtype.c: Likewise.
17624         * socket/listen.c: Likewise.
17625         * socket/recv.c: Likewise.
17626         * socket/recvfrom.c: Likewise.
17627         * socket/recvmsg.c: Likewise.
17628         * socket/send.c: Likewise.
17629         * socket/sendmsg.c: Likewise.
17630         * socket/sendto.c: Likewise.
17631         * socket/setsockopt.c: Likewise.
17632         * socket/shutdown.c: Likewise.
17633         * socket/sockatmark.c: Likewise.
17634         * socket/socket.c: Likewise.
17635         * socket/socketpair.c: Likewise.
17636         * stdio-common/ctermid.c: Likewise.
17637         * stdio-common/cuserid.c: Likewise.
17638         * stdio-common/remove.c: Likewise.
17639         * stdio-common/rename.c: Likewise.
17640         * stdio-common/renameat.c: Likewise.
17641         * stdio-common/tempname.c: Likewise.
17642         * stdlib/getcontext.c: Likewise.
17643         * stdlib/makecontext.c: Likewise.
17644         * stdlib/setcontext.c: Likewise.
17645         * stdlib/swapcontext.c: Likewise.
17646         * stdlib/system.c: Likewise.
17647         * streams/fattach.c: Likewise.
17648         * streams/fdetach.c: Likewise.
17649         * streams/getmsg.c: Likewise.
17650         * streams/getpmsg.c: Likewise.
17651         * streams/putmsg.c: Likewise.
17652         * streams/putpmsg.c: Likewise.
17653         * sysdeps/unix/bsd/getpt.c: Likewise.
17654         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
17655         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
17656         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17658         Likewise.
17659         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
17660         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17661         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
17662         * sysvipc/msgctl.c: Likewise.
17663         * sysvipc/msgget.c: Likewise.
17664         * sysvipc/msgrcv.c: Likewise.
17665         * sysvipc/msgsnd.c: Likewise.
17666         * sysvipc/semctl.c: Likewise.
17667         * sysvipc/semget.c: Likewise.
17668         * sysvipc/semop.c: Likewise.
17669         * sysvipc/semtimedop.c: Likewise.
17670         * sysvipc/shmat.c: Likewise.
17671         * sysvipc/shmctl.c: Likewise.
17672         * sysvipc/shmdt.c: Likewise.
17673         * sysvipc/shmget.c: Likewise.
17674         * termios/tcdrain.c: Likewise.
17675         * termios/tcflow.c: Likewise.
17676         * termios/tcflush.c: Likewise.
17677         * termios/tcgetattr.c: Likewise.
17678         * termios/tcgetpgrp.c: Likewise.
17679         * termios/tcsendbrk.c: Likewise.
17680         * termios/tcsetattr.c: Likewise.
17681         * termios/tcsetpgrp.c: Likewise.
17682         * time/adjtime.c: Likewise.
17683         * time/clock.c: Likewise.
17684         * time/getitimer.c: Likewise.
17685         * time/gettimeofday.c: Likewise.
17686         * time/setitimer.c: Likewise.
17687         * time/settimeofday.c: Likewise.
17688         * time/stime.c: Likewise.
17689         * time/time.c: Likewise.
17690
17691 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
17692
17693         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
17694         /usr/old/bin.
17695
17696         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
17697         instead of spaces.
17698         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
17699
17700 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
17701
17702         [BZ #14796]
17703         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
17704         FE_TONEAREST before applying Dekker multiplication and Knuth
17705         addition.  Clear inexact exceptions and check for exact zero
17706         results afterwards.
17707         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17708         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17709         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17710         * math/libm-test.inc (fma_test): Add more tests.
17711         (fma_test_towardzero): Likewise.
17712         (fma_test_downward): Likewise.
17713         (fma_test_upward): Likewise.
17714         * sysdeps/generic/math_private.h (default_libc_fesetround): New
17715         function.
17716         (libc_fesetround): New macro.
17717         (libc_fesetroundf): Likewise.
17718         (libc_fesetroundl): Likewise.
17719         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
17720         function.
17721         (libc_fesetround_387): Likewise.
17722         (libc_fesetroundf): New macro.
17723         (libc_fesetround): Likewise.
17724         (libc_fesetroundl): Likewise.
17725         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
17726         function.
17727         (libc_fesetroundf): New macro.
17728         (libc_fesetround): Likewise.
17729         (libc_fesetroundl): Likewise.
17730         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
17731         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
17732         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
17733         libm_hidden_ver.
17734         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
17735         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
17736         libm_hidden_def.
17737         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
17738         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
17739         libm_hidden_ver.
17740         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
17741         libm_hidden_def.
17742
17743         [BZ #3439]
17744         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
17745         integer constant usable in #if and use that to give value to enum
17746         constant.
17747         (FE_DIVBYZERO): Likewise.
17748         (FE_UNDERFLOW): Likewise.
17749         (FE_OVERFLOW): Likewise.
17750         (FE_INVALID): Likewise.
17751         (FE_INVALID_SNAN): Likewise.
17752         (FE_INVALID_ISI): Likewise.
17753         (FE_INVALID_IDI): Likewise.
17754         (FE_INVALID_ZDZ): Likewise.
17755         (FE_INVALID_IMZ): Likewise.
17756         (FE_INVALID_COMPARE): Likewise.
17757         (FE_INVALID_SOFTWARE): Likewise.
17758         (FE_INVALID_SQRT): Likewise.
17759         (FE_INVALID_INTEGER_CONVERSION): Likewise.
17760         (FE_TONEAREST): Likewise.
17761         (FE_TOWARDZERO): Likewise.
17762         (FE_UPWARD): Likewise.
17763         (FE_DOWNWARD): Likewise.
17764         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
17765         (FE_DIVBYZERO): Likewise.
17766         (FE_OVERFLOW): Likewise.
17767         (FE_UNDERFLOW): Likewise.
17768         (FE_INEXACT): Likewise.
17769         (FE_TONEAREST): Likewise.
17770         (FE_DOWNWARD): Likewise.
17771         (FE_UPWARD): Likewise.
17772         (FE_TOWARDZERO): Likewise.
17773         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
17774         (FE_UNDERFLOW): Likewise.
17775         (FE_OVERFLOW): Likewise.
17776         (FE_DIVBYZERO): Likewise.
17777         (FE_INVALID): Likewise.
17778         (FE_TONEAREST): Likewise.
17779         (FE_TOWARDZERO): Likewise.
17780         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
17781         (FE_OVERFLOW): Likewise.
17782         (FE_UNDERFLOW): Likewise.
17783         (FE_DIVBYZERO): Likewise.
17784         (FE_INEXACT): Likewise.
17785         (FE_TONEAREST): Likewise.
17786         (FE_TOWARDZERO): Likewise.
17787         (FE_UPWARD): Likewise.
17788         (FE_DOWNWARD): Likewise.
17789         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
17790         (FE_DIVBYZERO): Likewise.
17791         (FE_OVERFLOW): Likewise.
17792         (FE_UNDERFLOW): Likewise.
17793         (FE_INEXACT): Likewise.
17794         (FE_TONEAREST): Likewise.
17795         (FE_DOWNWARD): Likewise.
17796         (FE_UPWARD): Likewise.
17797         (FE_TOWARDZERO): Likewise.
17798
17799 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
17800
17801         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
17802
17803 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
17804
17805         * scripts/cross-test-ssh.sh (command): Use newlines to separate
17806         commands.  Quote $PWD.
17807         (blacklist_exports): Don't use remove_newlines.  Replace "declare
17808         -x" by "export".
17809         (remove_newlines): Remove.
17810
17811 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
17812
17813         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
17814         * stdlib/stdlib.h (atof): Moved to ...
17815         * include/bits/stdlib-float.h: Here.  New file.
17816         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
17817         * stdlib/bits/stdlib-float.h: New file.
17818         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
17819         -mno-sse -mno-mmx.
17820         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
17821         <xmmintrin.h>.
17822
17823 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17824
17825         * conform/conformtest.pl (@headers): Add fenv.h.
17826         * conform/data/fenv.h-data: New file.
17827         * include/fenv.h [_ISOMAC]: Disable all contents of file except
17828         include of <math/fenv.h>.
17829
17830         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
17831         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
17832         && !UNIX98].  Enables tests for XOPEN2K8.
17833         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
17834         POSIX2008]: Likewise.
17835
17836         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
17837         (struct rusage): Do not expect type or its members.
17838
17839         [BZ #3439]
17840         * math/math.h (FP_NAN): Define macro to integer constant usable in
17841         #if and use that to give value to enum constant.
17842         (FP_INFINITE): Likewise.
17843         (FP_ZERO): Likewise.
17844         (FP_SUBNORMAL): Likewise.
17845         (FP_NORMAL): Likewise.
17846
17847 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
17848
17849         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17850         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
17851         arguments.
17852
17853 2012-11-02  Roland McGrath  <roland@hack.frob.com>
17854
17855         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
17856         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
17857         autoconf-time if not.
17858         * configure.in: Remove AC_PREREQ.
17859
17860 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17861
17862         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
17863         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
17864         of the internal implementation.
17865
17866 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
17867
17868         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
17869         except include of <misc/sys/syslog.h>.
17870
17871 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17872
17873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
17874         function returns with a NULL context exit with zero.
17875
17876 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17877
17878         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
17879
17880 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
17881
17882         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
17883         (run_program_cmd): This.
17884         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
17885         (tst_langinfo): New variable.  Use it.
17886
17887 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
17888
17889         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
17890         floating point opcodes.
17891
17892 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17893
17894         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
17895         variable.
17896
17897         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
17898
17899         * sysdeps/mach/hurd/powerpc: Remove directory.
17900         * sysdeps/mach/powerpc: Likewise.
17901
17902 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
17903
17904         * scripts/check-local-headers.sh: Ignore c++ headers.
17905
17906 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17907
17908         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
17909         __libc_cleanup_region_start argument.
17910
17911 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
17912
17913         [BZ #14784]
17914         [BZ #14785]
17915         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
17916         x * y using scaling, not as x * y + z.
17917         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17918         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17919         * math/libm-test.inc (fma_test): Add more tests.
17920         (fma_test_towardzero): Likewise.
17921         (fma_test_downward): Likewise.
17922         (fma_test_upward): Likewise.
17923
17924 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
17925
17926         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
17927
17928 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17929
17930         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
17931         New variable.
17932
17933 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
17934
17935         * rt/tst-shm.c (worker): Correct checking for mmap failure.
17936
17937 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17938
17939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17940         Fix sort order.
17941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17942         Likewise.
17943
17944 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17945
17946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17947         Fix the order of the list for glibc 2.17.
17948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17949         Likewise.
17950
17951 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
17952
17953         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17954
17955 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
17956
17957         [BZ #14610]
17958         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
17959         for low part of x being zero before using __atanl (y).
17960         * math/libm-test.inc (atan2_test): Add another test.
17961
17962         * manual/install.texi (Configuring and compiling): Document
17963         general use of test-wrapper and test-wrapper-env.
17964         * INSTALL: Regenerated.
17965
17966         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17967         (__fma): Do not extract and scale down low bits on after-rounding
17968         systems when result rounded to normal precision would have normal
17969         exponent.
17970         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17971         (__fmal): Do not extract and scale down low bits on after-rounding
17972         systems when result rounded to normal precision would have normal
17973         exponent.
17974         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
17975         (__fmal): Do not extract and scale down low bits on after-rounding
17976         systems when result rounded to normal precision would have normal
17977         exponent.
17978         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
17979         macro.
17980         (fma_test): Add more tests.
17981         (fma_test_towardzero): Likewise.
17982         (fma_test_downward): Likewise.
17983         (fma_test_upward): Likewise.
17984
17985 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
17986
17987         * sysdeps/i386/tininess.h: Renamed to ...
17988         * sysdeps/x86/tininess.h: This.
17989         * sysdeps/x86_64/tininess.h: Removed.
17990
17991 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
17992
17993         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
17994         input.  Use $(build-program-cmd).
17995         ($(objpfx)tst-array1-static.out): Likewise.
17996         ($(objpfx)tst-array2.out): Likewise.
17997         ($(objpfx)tst-array3.out): Likewise.
17998         ($(objpfx)tst-array4.out): Likewise.
17999         ($(objpfx)tst-array5.out): Likewise.
18000         ($(objpfx)tst-array5-static.out): Likewise.
18001
18002 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
18003
18004         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
18005         if defined.
18006
18007         * nss/nsswitch.h (nss_interface_function): Provide new
18008         macro for use with NSS functions.
18009         * grp/initgroups.c: Use new macro.
18010         * nss/getXXbyYY.c: Likewise.
18011         * nss/getXXbyYY_r.c: Likewise.
18012         * nss/getXXent.c: Likewise.
18013         * nss/getXXent_r.c: Likewise.
18014         * sysdeps/posix/getaddrinfo.c: Likewise.
18015
18016 2012-10-30  Andreas Jaeger  <aj@suse.de>
18017
18018         * po/ru.po: Update Russion translation from translation project.
18019
18020 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
18021
18022         [BZ #14152]
18023         [BZ #14783]
18024         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
18025         result and shift together with sticky bit instead of replicating
18026         round-to-nearest rounding.
18027         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18028         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18029         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
18030         missing underflow exceptions.
18031         (fma_test_towardzero): Add more tests.
18032         (fma_test_downward): Likewise.
18033         (fma_test_upward): Likewise.
18034
18035         [BZ #14047]
18036         * sysdeps/generic/tininess.h: New file.
18037         * sysdeps/i386/tininess.h: Likewise.
18038         * sysdeps/sh/tininess.h: Likewise.
18039         * sysdeps/x86_64/tininess.h: Likewise.
18040         * stdlib/tst-strtod-underflow.c: Likewise.
18041         * stdlib/tst-tininess.c: Likewise.
18042         * stdlib/strtod_l.c: Include <tininess.h>.
18043         (round_and_return): Do not set errno for exact underflow cases.
18044         Force an underflow exception when setting errno for underflow.
18045         Determine underflow based on rounding to normal precision if
18046         TININESS_AFTER_ROUNDING.
18047         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
18048         ERANGE for exact underflow cases.
18049         * stdlib/Makefile (tests): Add tst-tininess and
18050         tst-strtod-underflow.
18051         ($(objpfx)tst-tininess): Use $(link-libm).
18052         ($(objpfx)tst-strtod-underflow): Likewise.
18053
18054 2012-10-30  Andreas Jaeger  <aj@suse.de>
18055
18056         [BZ#14767]
18057         * elf/Makefile (tests): Remove conditional for have-initfini-array
18058         since this is now always required and the variable does not exist
18059         anymore.
18060         (tests-static): Likewise.
18061         (modules-names): Likewise.
18062
18063         * po/eo.po: Add Esperanto translation from translation project.
18064
18065         * elf/tst-array1.c (fini_array): Make writeable so that it can be
18066         merged with constructor/destructor.
18067         (init_array): Likewise.
18068         * elf/tst-array2dep.c (fini_array): Likewise.
18069         (init_array): Likewise.
18070
18071 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
18072
18073         * manual/message.texi: Delete @cartouche tags.
18074
18075 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
18076
18077         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
18078         EOPNOTSUPP.
18079         * sysdeps/mach/hurd/fsync.c: Likewise.
18080
18081         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
18082         [_POSIX_REALTIME_SIGNALS]: Change condition to
18083         [_POSIX_REALTIME_SIGNALS > 0].
18084
18085 2012-10-27  Andreas Jaeger  <aj@suse.de>
18086
18087         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
18088         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
18089         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
18090         [__WORDSIZE != 64]: Likewise.
18091
18092 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
18093
18094         *  iconvdata/tst-table.sh: Remove ${SHELL}.
18095         *  iconvdata/tst-tables.sh: Likewise.
18096
18097 2012-10-25  David S. Miller  <davem@davemloft.net>
18098
18099         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18100         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
18101         of strtoull.
18102
18103         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
18104         ifunc-impl-list.c
18105         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18106         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
18107         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
18108         file.
18109
18110 2012-10-25  Roland McGrath  <roland@hack.frob.com>
18111
18112         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18113         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
18114         __getdirentries.
18115
18116 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18117             Jim Blandy  <jimb@codesourcery.com>
18118
18119         * scripts/cross-test-ssh.sh: New file.
18120         * manual/install.texi (Configuring and compiling): Document use of
18121         cross-test-ssh.sh.
18122         * INSTALL: Regenerated.
18123
18124 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
18125
18126         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
18127         EOPNOTSUPP.
18128
18129 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
18130
18131         * Makeconfig (run-program-prefix): Fix comment.
18132
18133 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18134             Jim Blandy  <jimb@codesourcery.com>
18135
18136         * Makeconfig (test-wrapper): New variable,
18137         (test-wrapper-env): Likewise.
18138         [$(cross-compiling) = yes && $(test-wrapper) != ""]
18139         (run-built-tests): Define to yes.
18140         (run-program-prefix): Use $(test-wrapper).
18141         (built-program-cmd): Likewise.
18142         * Rules (make-test-out): Use $(test-wrapper-env) and
18143         $(host-built-program-cmd).
18144         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
18145         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
18146         tst-pathopt.sh.
18147         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
18148         $(test-wrapper-env) to tst-rtld-load-self.sh.
18149         ($(objpfx)order2.out): Use $(test-wrapper).
18150         ($(objpfx)tst-initorder.out): Likewise.
18151         ($(objpfx)tst-initorder2.out): Likewise.
18152         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
18153         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
18154         (test_wrapper_env): New variable.  Use it to run ld.so.
18155         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
18156         Use it to run ld.so.
18157         (test_wrapper_env): Likewise.
18158         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
18159         $(test-wrapper) to run-iconv-test.sh.
18160         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
18161         (ICONV): Use $test_wrapper.
18162         * posix/Makefile ($(objpfx)globtest.out): Pass
18163         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
18164         globtest.sh, not $(run-program-prefix).
18165         * posix/globtest.sh (run_via_rtld_prefix): New variable.
18166         (test_wrapper): Likewise.
18167         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
18168         set together with run_via_rtld_prefix.
18169         (run_program_prefix): Define in terms of test_wrapper and
18170         run_via_rtld_prefix.
18171
18172 2012-10-24  Roland McGrath  <roland@hack.frob.com>
18173
18174         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
18175         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
18176         Targets removed.
18177
18178         [BZ #14743]
18179         * include/time.h: Remove librt_hidden_proto (clock_gettime).
18180         Declare __clock_getres, __clock_gettime, __clock_settime,
18181         __clock_nanosleep, and __clock_getcpuclockid.
18182         * rt/clock_gettime.c: Define __clock_gettime as an alias.
18183         Remove librt_hidden_def (clock_gettime).
18184         * sysdeps/unix/clock_gettime.c: Likewise.
18185         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
18186         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
18187         * rt/clock_getres.c: Define __clock_getres as an alias.
18188         * sysdeps/posix/clock_getres.c: Likewise.
18189         * rt/clock_settime.c: Define __clock_settime as an alias.
18190         * sysdeps/unix/clock_settime.c: Likewise.
18191         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
18192         * sysdeps/unix/clock_nanosleep.c: Likewise.
18193         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
18194         * rt/clock-compat.c: New file.
18195         * rt/Makefile (librt-routines): Add clock-compat and move
18196         $(clock-routines) to ...
18197         (routines): ... here, new variable.
18198         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
18199         Don't add get_clockfreq here.
18200         * rt/Versions (libc: GLIBC_2.17): New version set.
18201         Add clock_* symbols here.
18202         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
18203         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
18204         (GLIBC_2.17): Add clock_* symbols.
18205         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
18206         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
18207         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
18208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
18209         Likewise.
18210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18211         Likewise.
18212         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
18213         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
18214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
18215         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
18216         * NEWS: Mention the move.
18217
18218         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
18219         Use __open, __read, __close rather than their public counterparts.
18220         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18221         (__get_clockfreq_via_cpuinfo): Likewise.
18222         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
18223         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
18224
18225         * config.h.in (HAVE_IFUNC): New #undef.
18226         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
18227         was successful.
18228         * configure: Regenerated.
18229
18230 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18231
18232         * configure.in: Move READELF check to start of file.
18233         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
18234         libc_cv_asm_gnu_indirect_function in the process.
18235         * configure: Regenerated.
18236
18237 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
18238
18239         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
18240         send the output to /dev/null.
18241         (libc_cv_cc_with_libunwind): Likewise.
18242         (libc_cv_as_noexecstack): Likewise.
18243         * configure: Regenerate.
18244
18245 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
18246
18247         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
18248
18249         * posix/globtest.sh (TMPDIR): Do not set.
18250         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
18251         (testout): Likewise.
18252
18253 2012-10-24  Andreas Jaeger  <aj@suse.de>
18254
18255         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
18256         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
18257         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
18258         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
18259         posix_fadvise64, posix_fallocate64.
18260
18261         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
18262         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
18263         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
18264         Likewise.
18265         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
18266         Likewise.
18267         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
18268
18269         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
18270         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
18271         <bits/fcntl-linux.h>.
18272         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
18273
18274         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
18275         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
18276         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
18277         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
18278         [__WORDSIZE != 64]: Likewise.
18279
18280 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18281
18282         * Makeconfig (run-built-tests): New variable.
18283         * Rules [$(cross-compiling) = yes]: Change condition to
18284         [$(run-built-tests) = no].
18285         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
18286         to [$(run-built-tests) = yes].
18287         * elf/Makefile [$(cross-compiling) = no]: Likewise
18288         * grp/Makefile [$(cross-compiling) = no]: Likewise.
18289         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
18290         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
18291         * intl/Makefile [$(cross-compiling) = no]: Likewise.
18292         * io/Makefile [$(cross-compiling) = no]: Likewise.
18293         * libio/Makefile [$(cross-compiling) = no]: Likewise.
18294         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
18295         * misc/Makefile [$(cross-compiling) = no]: Likewise.
18296         * posix/Makefile [$(cross-compiling) = no]: Likewise.
18297         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
18298         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
18299         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
18300         * string/Makefile [$(cross-compiling) = no]: Likewise.
18301
18302         * posix/Makefile ($(objpfx)globtest.out): Pass
18303         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
18304         $(rtld-installed-name).
18305         * posix/globtest.sh (elf_objpfx): Remove variable.
18306         (rtld_installed_name): Likewise.
18307         (library_path): Likewise.
18308         (run_program_prefix): New variable.  Use for running globtest
18309         binary.
18310
18311 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
18312             Joseph Myers  <joseph@codesourcery.com>
18313
18314         * Makeconfig (host-built-program-cmd): New variable.
18315         * elf/Makefile (tst-stackguard1-ARGS): Use
18316         $(host-built-program-cmd).
18317         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
18318         (tst-spawn-ARGS): Likewise.
18319         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
18320
18321 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
18322             Jim Blandy  <jimb@codesourcery.com>
18323
18324         * Makeconfig (run-via-rtld-prefix): New variable.
18325         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
18326         (built-program-cmd): Likewise.
18327
18328 2012-10-22  Andreas Jaeger  <aj@suse.de>
18329
18330         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
18331         __O_RSYNC if it exists, otherwise to O_SYNC.
18332
18333 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
18334             Joseph Myers  <joseph@codesourcery.com>
18335
18336         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
18337         /dev/null.
18338         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
18339         from /dev/null
18340         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
18341         /dev/null.
18342
18343 2012-10-22  Andreas Jaeger  <aj@suse.de>
18344
18345         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
18346         Define always.
18347         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
18348
18349         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18350         bits/fcntl-linux.h.
18351
18352         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
18353         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
18354
18355         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
18356         to __O_LARGEFILE.
18357         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
18358         to __O_LARGEFILE.
18359
18360 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
18361             Joseph Myers  <joseph@codesourcery.com>
18362
18363         * config.make.in (NM): New variable.
18364
18365 2012-10-21  Andreas Jaeger  <aj@suse.de>
18366
18367         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
18368         definitions and declarations that are provided by
18369         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
18370
18371 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18372
18373         [BZ #14683]
18374         * elf/Makefile (tests-static): Add tst-leaks1-static.
18375         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
18376         ($(objpfx)tst-leaks1-static): New rule.
18377         ($(objpfx)tst-leaks1-static-mem): Likewise.
18378         (tst-leaks1-static-ENV): New macro.
18379         * elf/dl-open.c (dl_open_worker): Check the main application
18380         only if SHARED is defined.
18381         * elf/tst-leaks1-static.c: New file.
18382
18383 2012-10-20  Andreas Jaeger  <aj@suse.de>
18384
18385         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
18386         generic values for Linux.
18387         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
18388         and declarations that are provided by <bits/fcntl-linux.h> and
18389         include <bits/fcntl-linux.h>.
18390         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18391         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18392
18393 2012-10-20  Roland McGrath  <roland@hack.frob.com>
18394
18395         * io/fcntl.h: Move include of <bits/types.h> to the top and
18396         include it unconditionally.
18397
18398 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
18399
18400         * wcsmbs/Makefile (tests-ifunc): New variable.
18401         (tests): Add $(tests-ifunc).
18402         * wcsmbs/test-wcschr-ifunc.c: New file.
18403         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
18404         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
18405         * wcsmbs/test-wcslen-ifunc.c: Likewise.
18406         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
18407         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
18408
18409         * string/Makefile (tests-ifunc): New variable.
18410         (tests): Add $(tests-ifunc).
18411         * string/test-memccpy.c (TEST_NAME): New macro.
18412         * string/test-memchr.c (TEST_NAME): Likewise.
18413         * string/test-memcmp.c (TEST_NAME): Likewise.
18414         * string/test-memcpy.c (TEST_NAME): Likewise.
18415         * string/test-memmem.c (TEST_NAME): Likewise.
18416         * string/test-memmove.c (TEST_NAME): Likewise.
18417         * string/test-memset.c (TEST_NAME): Likewise.
18418         * string/test-rawmemchr.c (TEST_NAME): Likewise.
18419         * string/test-stpcpy.c (TEST_NAME): Likewise.
18420         * string/test-stpncpy.c (TEST_NAME): Likewise.
18421         * string/test-strcasecmp.c (TEST_NAME): Likewise.
18422         * string/test-strcasestr.c (TEST_NAME): Likewise.
18423         * string/test-strcat.c (TEST_NAME): Likewise.
18424         * string/test-strchr.c (TEST_NAME): Likewise.
18425         * string/test-strcmp.c(TEST_NAME): Likewise.
18426         * string/test-strcpy.c (TEST_NAME): Likewise.
18427         * string/test-strcspn.c (TEST_NAME): Likewise.
18428         * string/test-strlen.c (TEST_NAME): Likewise.
18429         * string/test-strncasecmp.c (TEST_NAME): Likewise.
18430         * string/test-strncmp.c (TEST_NAME): Likewise.
18431         * string/test-strncpy.c (TEST_NAME): Likewise.
18432         * string/test-strnlen.c (TEST_NAME): Likewise.
18433         * string/test-strpbrk.c (TEST_NAME): Likewise.
18434         * string/test-strrchr.c (TEST_NAME): Likewise.
18435         * string/test-strspn.c (TEST_NAME): Likewise.
18436         * string/test-strstr.c (TEST_NAME): Likewise.
18437         * string/test-bcopy-ifunc.c: New file.
18438         * string/test-bzero-ifunc.c: Likewise.
18439         * string/test-memccpy-ifunc.c: Likewise.
18440         * string/test-memchr-ifunc.c: Likewise.
18441         * string/test-memcmp-ifunc.c: Likewise.
18442         * string/test-memcpy-ifunc.c: Likewise.
18443         * string/test-memmem-ifunc.c: Likewise.
18444         * string/test-memmove-ifunc.c: Likewise.
18445         * string/test-mempcpy-ifunc.c: Likewise.
18446         * string/test-memset-ifunc.c: Likewise.
18447         * string/test-rawmemchr-ifunc.c: Likewise.
18448         * string/test-stpcpy-ifunc.c: Likewise.
18449         * string/test-stpncpy-ifunc.c: Likewise.
18450         * string/test-strcasecmp-ifunc.c: Likewise.
18451         * string/test-strcasestr-ifunc.c: Likewise.
18452         * string/test-strcat-ifunc.c: Likewise.
18453         * string/test-strchr-ifunc.c: Likewise.
18454         * string/test-strchrnul-ifunc.c: Likewise.
18455         * string/test-strcmp-ifunc.c: Likewise.
18456         * string/test-strcpy-ifunc.c: Likewise.
18457         * string/test-strcspn-ifunc.c: Likewise.
18458         * string/test-strlen-ifunc.c: Likewise.
18459         * string/test-strncasecmp-ifunc.c: Likewise.
18460         * string/test-strncat-ifunc.c: Likewise.
18461         * string/test-strncmp-ifunc.c: Likewise.
18462         * string/test-strncpy-ifunc.c: Likewise.
18463         * string/test-strnlen-ifunc.c: Likewise.
18464         * string/test-strpbrk-ifunc.c: Likewise.
18465         * string/test-strrchr-ifunc.c: Likewise.
18466         * string/test-strspn-ifunc.c: Likewise.
18467         * string/test-strstr-ifunc.c: Likewise.
18468
18469         * debug/Makefile (tests-ifunc): New variable.
18470         (tests): Add $(tests-ifunc).
18471         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
18472         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
18473         * debug/test-stpcpy_chk-ifunc.c: New file.
18474         * debug/test-strcpy_chk-ifunc.c: Likewise.
18475
18476 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18477
18478         [BZ #13601]
18479         * elf/dl-load.c (open_verify): Retry read if the entire ELF
18480         header is not read in.
18481
18482 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
18483
18484         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
18485         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
18486         directly.  Pass built executable to script as
18487         $(built-program-cmd).
18488         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
18489         $testprogram without using LD_LIBRARY_PATH and $ldso.
18490
18491         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
18492         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
18493         $(rtld-installed-name).
18494         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
18495         (rtld_installed_name): Likewise.
18496         (library_path): Likewise.
18497         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
18498         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
18499         $(run-program-prefix) to tst-tables.sh.
18500         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
18501         it to run tst-table-from and tst-table-to.
18502         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
18503         Pass it to tst-table.sh.
18504         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
18505         $(run-program-prefix) to tst-gettext.sh.
18506         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
18507         tst-translit.sh.
18508         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
18509         tst-gettext2.sh.
18510         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
18511         to run tst-gettext.
18512         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
18513         to run tst-gettext2.
18514         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
18515         to run tst-translit.
18516         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
18517         $(run-program-prefix) to tst-mtrace.sh.
18518         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
18519         to run tst-mtrace.
18520         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
18521         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
18522         $(rtld-installed-name).
18523         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
18524         (rtld_installed_name): Likewise.
18525         (run_program_prefix): New variable.  Use it to run wordexp-test.
18526
18527         * Makeconfig (ARCH): Remove all definitions.
18528         (machine): Likewise.
18529         [ARCH]: Remove conditional code.
18530         [!objdir]: Give error.
18531         [!objdir] (objpfx): Remove.
18532         [!objdir] (common-objpfx): Likewise.
18533         [!objdir] (common-objdir): Likewise.
18534         * configure.in (config_makefile): Remove.  Hardcode Makefile in
18535         AC_CONFIG_FILES call.
18536         * configure: Regenerated.
18537
18538         [BZ #13888]
18539         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
18540         or TMPDIR.
18541         (testout): Likewise.
18542
18543         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
18544         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
18545         $(rtld-installed-name).
18546         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
18547         (rtld_installed_name): Likwise.
18548         (runit): Remove function.
18549         (run_getconf): New variable,  Use it for running getconf binary.
18550
18551 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
18552
18553         [BZ #14716]
18554         * string/test-memmem.c (check_result): New function.
18555         (do_one_test): Use it.
18556         (check1): New function.
18557         (test_main): Use it.
18558
18559 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
18560
18561         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
18562
18563 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
18564
18565         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
18566         (_G_LSEEK64): Likewise.
18567         (_G_MMAP64): Likewise.
18568         (_G_FSTAT64): Likewise.
18569         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
18570         (_G_LSEEK64): Likewise.
18571         (_G_MMAP64): Likewise.
18572         (_G_FSTAT64): Likewise.
18573         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
18574         unconditional.  Call __mmap64 directly.
18575         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18576         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
18577         __lseek64 directly.
18578         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
18579         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
18580         __mmap64 directly.
18581         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
18582         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18583         __lseek64 directly.
18584         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
18585         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
18586         __lseek64 directly.
18587         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
18588         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
18589         __lseek64 directly.
18590         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
18591         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
18592         __fxstat64 directly.
18593         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
18594         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
18595         unconditional.
18596         (freopen64) [!_G_OPEN64]: Remove conditional code.
18597         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
18598         unconditional.
18599         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
18600         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
18601         unconditional.
18602         (ftello64) [!_G_LSEEK64]: Remove conditional code.
18603         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
18604         unconditional.
18605         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18606         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
18607         unconditional.
18608         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
18609         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
18610         unconditional.
18611         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18612         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
18613         unconditional.
18614         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
18615         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
18616         unconditional.
18617         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
18618
18619 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18620
18621         [BZ #12140]
18622         * manual/memory.texi (Malloc Tunable Parameters): Add note
18623         about free list pointers overwriting some perturb bytes.
18624         Wording suggested by Roland McGrath.
18625
18626 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
18627
18628         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
18629         (lgamma_test): Likewise.
18630         (tgamma_test): Likewise.
18631
18632 2012-10-16  Florian Weimer  <fweimer@redhat.com>
18633
18634         [BZ #14700]
18635         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
18636         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
18637
18638 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
18639
18640         * NEWS: Mention BZ #14716.
18641         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
18642         when removing AVAILABLE1_USES_J macro.
18643
18644 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
18645
18646         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
18647         (__bswap_64): __uint64_t for unsigned 64-bit int.
18648
18649 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
18650
18651         * include/string.h (memmem): Declare libc hidden alias.
18652         * string/memmem.c (memmem): Define libc hidden alias.
18653         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
18654         __read, __close instead of open, read, close.
18655
18656 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
18657
18658         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
18659         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
18660         global and hidden.
18661         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
18662         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
18663         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
18664         Likewise.
18665         (__rawmemchr_sse2): Likewise.
18666         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
18667         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
18668         (__strchr_sse2): Likewise.
18669         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
18670         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
18671         (__strcasecmp_sse2): Likewise.
18672         (__strncasecmp_sse2): Likewise.
18673         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
18674         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
18675         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
18676         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
18677         (__strrchr_sse2): Likewise.
18678         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
18679         ifunc-impl-list.c.
18680         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
18681         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18682         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18683         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18684         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18685         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18686         * sysdeps/x86_64/multiarch/memset.S: Likewise.
18687         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
18688         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
18689         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
18690         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
18691         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
18692         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
18693         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
18694         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
18695         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
18696         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
18697         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
18698         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
18699         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
18700         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
18701         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
18702         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
18703         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
18704         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
18705         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18706         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18707         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
18708         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
18709         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
18710
18711         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
18712         global and hidden.
18713         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
18714         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
18715         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
18716         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
18717         Likewise.
18718         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
18719         Likewise.
18720         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
18721         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
18722         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
18723         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
18724         ifunc-impl-list.c.
18725         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18726         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18727         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18728         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18729         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18730         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18731         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18732         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18733         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18734         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18735         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18736         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18737         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18738         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18739         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18740         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18741         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18742         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
18743         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18744         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
18745         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18746         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18747         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18748         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18749         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18750         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18751         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18752         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18753         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18754         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18755         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18756         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18757         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18758         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
18759         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18760         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18761         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18762         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18763         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18764         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18765         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
18766
18767         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
18768         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
18769         * include/ifunc-impl-list.h: New file.
18770         * misc/ifunc-impl-list.c: Likewise.
18771         * misc/Makefile (routines): Add ifunc-impl-list.
18772         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
18773         * string/test-string.h: Include <ifunc-impl-list.h>.
18774         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
18775         impl_array): New variables.
18776         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
18777         are defined.
18778         (test_init): Call __libc_ifunc_impl_list to initialize
18779         func_list if TEST_IFUNC and TEST_NAME are defined.
18780
18781         * string/Makefile (strop-tests): Add bcopy and bzero.
18782         * string/test-bcopy.c: New file.
18783         * string/test-bzero.c: Likewise.
18784         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
18785         defined.
18786         * string/test-memset.c: Support bzero test if TEST_BZERO is
18787         defined.
18788         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
18789         __libc_memmove.
18790         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
18791         __libc_memset.
18792         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
18793         of memset.
18794
18795 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
18796
18797         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
18798         * configure: Regenerated.
18799
18800         * Makeconfig (+link-static-before-libc): Don't include
18801         $(link-static-libc).
18802
18803         * libio/libio.h (_IO_pos_t): Remove.
18804
18805 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18806
18807         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
18808         McGrath.
18809
18810 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18811
18812         * crypt/crypt-entry.c: Include fips-private.h.
18813         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
18814         * crypt/md5c-test.c (main): Tolerate disabled MD5.
18815         * sysdeps/unix/sysv/linux/fips-private.h: New file.
18816         * sysdeps/generic/fips-private.h: New file, dummy fallback.
18817
18818 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
18819
18820         * crypt/crypt-private.h: Include stdbool.h.
18821         (_ufc_setup_salt_r): Return bool.
18822         * crypt/crypt-entry.c: Include errno.h.
18823         (__crypt_r): Return NULL with EINVAL for bad salt.
18824         * crypt/crypt_util.c (bad_for_salt): New.
18825         (_ufc_setup_salt_r): Check that salt is long enough and within
18826         the specified alphabet.
18827         * crypt/badsalttest.c: New file.
18828         * crypt/Makefile (tests): Add it.
18829         ($(objpfx)badsalttest): New.
18830
18831 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
18832
18833         * NEWS: Add entry for BZ #14602.
18834
18835 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18836
18837         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
18838         type-generic.
18839         * math/libm-test.inc: Update comment listing what functions and
18840         macros are tested.
18841         (isgreater_test): New function.
18842         (isgreaterequal_test): Likewise.
18843         (isless_test): Likewise.
18844         (islessequal_test): Likewise.
18845         (islessgreater_test): Likewise.
18846         (isunordered_test): Likewise.
18847         (main): Call the new functions.
18848
18849 2012-10-09  Roland McGrath  <roland@hack.frob.com>
18850
18851         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
18852         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
18853         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
18854         * sysdeps/i386/configure: Regenerated.
18855         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
18856         * sysdeps/mach/configure: Regenerated.
18857         * sysdeps/mach/hurd/configure: Regenerated.
18858         * sysdeps/powerpc/configure: Regenerated.
18859         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18860         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18861         * sysdeps/s390/s390-32/configure: Regenerated.
18862         * sysdeps/s390/s390-64/configure: Regenerated.
18863         * sysdeps/sh/configure: Regenerated.
18864         * sysdeps/sparc/configure: Regenerated.
18865         * sysdeps/unix/sysv/linux/configure: Regenerated.
18866         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
18867         * sysdeps/x86_64/configure: Regenerated.
18868
18869         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
18870         defined.  Don't check if MAP is NULL.
18871
18872 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
18873
18874         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
18875         (_G_stat64): Likewise.
18876         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
18877         (_G_stat64): Likewise.
18878         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
18879         instead of struct _G_stat64.
18880         * libio/fileops.c (mmap_remap_check): Likewise.
18881         (decide_maybe_mmap): Likewise.
18882         (_IO_new_file_seekoff): Likewise.
18883         (_IO_file_stat): Likewise.
18884         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
18885         _G_off64_t.
18886         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
18887         instead of struct _G_stat64.
18888         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18889
18890 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18891
18892         [BZ #14602]
18893         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18894         Replace with ...
18895         (CHECK_EOL): New macro.
18896         (two_way_short_needle): Check beginning of haystack for EOL.  Use
18897         CHECK_EOL.
18898         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18899         Replace with CHECK_EOL.
18900         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
18901         Replace with CHECK_EOL.
18902
18903 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
18904
18905         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
18906         type-generic.
18907         * math/libm-test.inc: Update comment listing what functions and
18908         macros are tested.
18909         (finite_test): New function.
18910         (isinf_test): Likewise.
18911         (isnan_test): Likewise.
18912         (fpclassify_test): Test subnormal input.
18913         (isfinite_test): Likewise.
18914         (isnormal_test): Likewise.
18915         (main): Call the new functions.
18916
18917 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
18918
18919         [BZ #14660]
18920         * Makerules (%.dynsym): Force C locale when running
18921         $(OBJDUMP) --dynamic-syms.
18922
18923 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
18924
18925         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
18926         <stdint.h>.
18927
18928 2012-10-06  David S. Miller  <davem@davemloft.net>
18929
18930         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
18931         upper 32-bits of the length value in %o2 since we use branch-on-register
18932         tests which consider the entire 64-bit register.
18933
18934 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
18935
18936         * string/test-strstr.c (check2): Add a test for page boundary.
18937
18938 2012-10-05  David S. Miller  <davem@davemloft.net>
18939
18940         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
18941         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
18942         file.
18943         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
18944         sysdep_routines.
18945         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
18946         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
18947         and bzero when HWCAP_SPARC_CRYPTO is present.
18948
18949 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
18950
18951         [BZ #14602]
18952         * string/test-strstr.c (check2): New function.
18953         (test_main): Call check2.
18954
18955         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
18956         and bug-strchr1.
18957         * string/bug-strcasestr1.c (do_test): Moved to ...
18958         * string/test-strcasestr.c (check1): Here.  New function.
18959         (do_one_test): Break out result checking code into ...
18960         (check_result): This.  New function.
18961         (do_one_test): Call check_result.
18962         (test_main): Call check1.
18963         * string/bug-strchr1.c (do_test): Moved to ...
18964         * string/test-strchr.c (check1): Here.  New function.
18965         (do_one_test): Break out result checking code into ...
18966         (check_result): This.  New function.
18967         (do_one_test): Call check_result.
18968         (test_main): Call check1.
18969         * string/bug-strstr1.c (main): Moved to ...
18970         * string/test-strstr.c (check1): Here.  New function.
18971         (do_one_test): Break out result checking code into ...
18972         (check_result): This.  New function.
18973         (do_one_test): Call check_result.
18974         (test_main): Call check1.
18975         * string/bug-strcasestr1.c: Removed.
18976         * string/bug-strchr1.c: Likewise.
18977         * string/bug-strstr1.c: Likewise.
18978
18979         * elf/Makefile (dl-routines): Add hwcaps.
18980         * elf/dl-support.c (_dl_important_hwcaps): Removed.
18981         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
18982         (_dl_important_hwcaps): Moved to ...
18983         * elf/dl-hwcaps.c: Here.  New file.
18984         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
18985
18986         [BZ #14557]
18987         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
18988         if IS_IN_rtld isn't defined.
18989
18990         * elf/dl-support.c (_dl_sysinfo_map): New.
18991         Include "get-dynamic-info.h" and "setup-vdso.h".
18992         (_dl_non_dynamic_init): Call setup_vdso.
18993         * elf/dynamic-link.h: Don't include <assert.h>.
18994         (elf_get_dynamic_info): Moved to ...
18995         * elf/get-dynamic-info.h: Here.  New file.
18996         * elf/dynamic-link.h: Include "get-dynamic-info.h".
18997         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
18998         * elf/setup-vdso.h: Here.  New file.
18999         * elf/rtld.c: Include "setup-vdso.h".
19000         (dl_main): Call setup_vdso.
19001
19002 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
19003
19004         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
19005         creal in comment listing functions tested.  List finite, isinf,
19006         isnan, isless, islessequal, isgreater, isgreaterequal,
19007         islessgreater, isunordered, lgamma_r and pow10 as functions and
19008         macros not tested.  Mention which functions not tested are aliases
19009         for other functions.  Fix typo.  Note that signs of NaNs are not
19010         tested.
19011
19012         * scripts/config.guess: Update from config.git.
19013         * scripts/config.sub: Likewise.
19014
19015 2012-10-04  Roland McGrath  <roland@hack.frob.com>
19016
19017         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
19018         * misc/madvise.c (madvise): Renamed to __madvise.
19019         Make madvise a weak alias.
19020         * include/sys/mman.h: Declare __madvise.
19021         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
19022         * sysdeps/unix/syscalls.list
19023         (madvise): Make __madvise the strong name, and madvise a weak alias.
19024         * sysdeps/unix/sysv/linux/syscalls.list
19025         (madvise, mmap): Remove redundant entries.
19026         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
19027         * malloc/malloc.c (mtrim): Likewise.
19028         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
19029
19030 2012-10-03  Roland McGrath  <roland@hack.frob.com>
19031
19032         * sysdeps/mach/hurd/dl-cache.c: File removed.
19033         * config.h.in (USE_LDCONFIG): New #undef.
19034         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
19035         * configure: Regenerated.
19036         * elf/Makefile (dl-routines): Add dl-cache only under
19037         [$(use-ldconfig) = yes].
19038         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
19039         cache on [USE_LDCONFIG].
19040         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
19041         [USE_LDCONFIG].
19042         * elf/rtld.c (dl_main): Likewise.
19043
19044 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
19045
19046         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
19047         _SC_LEVEL4_CACHE_LINESIZE.
19048
19049 2012-10-03  Roland McGrath  <roland@hack.frob.com>
19050
19051         * sysdeps/unix/bsd/confstr.h: File removed.
19052
19053 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
19054
19055         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
19056         sys/sdt-config.h.
19057
19058 2012-10-02  Roland McGrath  <roland@hack.frob.com>
19059
19060         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
19061         Make 'mapoff' field ElfW(Off) rather than off_t.
19062
19063 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
19064
19065         * nscd/Makefile: Remove nscd-cflags and all its users.
19066         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
19067         (CFLAGS-nonlib): Add compiler flags for nscd modules.
19068
19069         [BZ #10631]
19070         * malloc.c (malloc_printerr): Clarify error message.
19071
19072 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
19073
19074         [BZ #14648]
19075         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19076         Set bit_FMA_Usable if FMA is supported.
19077         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
19078         macro.
19079         (bit_FMA4_Usable): Updated.
19080         (index_FMA_Usable): New macro.
19081         (CPUID_FMA): Likewise
19082         (HAS_FMA): Defined with bit_FMA_Usable.
19083
19084 2012-10-01  Roland McGrath  <roland@hack.frob.com>
19085
19086         * bits/types.h (__swblk_t): Type removed.
19087         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
19088         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
19089         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19090         (__SWBLK_T_TYPE): Likewise.
19091         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19092         (__SWBLK_T_TYPE): Likewise.
19093         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19094         (__SWBLK_T_TYPE): Likewise.
19095         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19096         (__SWBLK_T_TYPE): Likewise.
19097
19098 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
19099             Honza Horak <hhorak@redhat.com>
19100
19101         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
19102         (xdr_mapname): Use YPMAXMAP as maxsize.
19103         (xdr_peername): Use YPMAXPEER as maxsize.
19104         (xdr_keydat): Use YPAXRECORD as maxsize.
19105         (xdr_valdat): Use YPMAXRECORD as maxsize.
19106
19107 2012-10-01  Roland McGrath  <roland@hack.frob.com>
19108
19109         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
19110
19111         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
19112         * csu/init-first.c: ... here.
19113         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
19114         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19115         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
19116         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
19117         * sysdeps/i386/init-first.c: File removed.
19118         * sysdeps/sh/init-first.c: File removed.
19119
19120 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
19121
19122         [BZ #14645]
19123         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
19124         if x * y might underflow to zero and z is zero.
19125         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19126         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19127         * math/libm-test.inc (min_subnorm_value): New variable.
19128         (fma_test): Add more tests.
19129         (fma_test_towardzero): Likewise.
19130         (fma_test_downward): Likewise
19131         (fma_test_upward): Likewise.
19132         (initialize): Set min_subnorm_value.
19133
19134 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
19135
19136         [BZ #14638]
19137         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
19138         0 + 0.
19139         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
19140         mode for addition resulting in exact zero.
19141         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
19142         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
19143         exact 0 + 0.
19144         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19145         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19146         * math/libm-test.inc (fma_test): Add more tests.
19147         (fma_test_towardzero): New function.
19148         (fma_test_downward): Likewise.
19149         (fma_test_upward): Likewise.
19150         (main): Call the new functions.
19151
19152 2012-09-28  David S. Miller  <davem@davemloft.net>
19153
19154         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
19155
19156 2012-09-28  Roland McGrath  <roland@hack.frob.com>
19157
19158         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
19159         instead of SIGALRM.
19160
19161         * sysdeps/gnu/_G_config.h: Moved to ...
19162         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
19163         * sysdeps/mach/hurd/_G_config.h: Moved to ...
19164         * sysdeps/generic/_G_config.h: ... here.
19165
19166         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
19167
19168         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
19169
19170         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
19171         Conditionalize target on [libnss_test1.so-version].
19172
19173         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
19174
19175         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
19176         (elfobjdir): Move out of conditionals.
19177
19178         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
19179         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
19180         (__nss_lookup_function): Conditionalize label remove_from_tree on
19181         [!DO_STATIC_NSS || SHARED], matching its only use.
19182
19183 2012-09-28  David S. Miller  <davem@davemloft.net>
19184
19185         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
19186         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
19187         file.
19188         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
19189         sysdep_routines.
19190         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
19191         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
19192         when HWCAP_SPARC_CRYPTO is present.
19193
19194 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19195
19196         * io/tst-mknodat.c: Create a FIFO instead of a socket.
19197
19198 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
19199
19200         [BZ #6530]
19201         * stdio-common/vfprintf.c (process_string_arg): Revert
19202         2000-07-22 change.
19203
19204 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
19205
19206         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
19207         for testcase.
19208         * stdio-common/tst-sprintf.c: Include <locale.h>
19209         (main): Test sprintf's handling of incomplete multibyte
19210         characters.
19211
19212 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
19213
19214         * elf/dl-runtime.c (VERSYMIDX): Removed.
19215         * elf/dl-version.c (VERSYMIDX): Likewise.
19216         * elf/do-rel.h (VERSYMIDX): Likewise.
19217         (VALIDX): Likewise.
19218         * elf/dynamic-link.h (VERSYMIDX): Likewise.
19219         * elf/rtld.c (VALIDX): Likewise.
19220         (ADDRIDX): Likewise.
19221         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
19222         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
19223         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
19224         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
19225         (VALIDX): Likewise.
19226         (ADDRIDX): Likewise.
19227
19228 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19229
19230         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
19231
19232 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
19233
19234         [BZ #11438]
19235         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
19236         to global scope.
19237         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
19238         addresses are in the same scope as 192.0.2/24.
19239         * posix/gai.conf: Document new scope table defaults.
19240
19241 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19242
19243         [BZ #5298]
19244         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
19245         for ftell.  Compute offsets from write pointers instead.
19246         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19247
19248 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19249
19250         [BZ #14543]
19251         * libio/Makefile (tests): New test case tst-fseek.
19252         * libio/tst-fseek.c: New test case to verify that fseek/ftell
19253         combination works in wide mode.
19254         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
19255         state when the external buffer state changes.
19256
19257 2012-09-27  David S. Miller  <davem@davemloft.net>
19258
19259         [BZ #14376]
19260         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
19261         pass reloc->r_addend in as the 'high' argument to
19262         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
19263
19264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19265
19266 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
19267
19268         * rt/tst-aio2.c: Include <pthread.h>.
19269         * rt/tst-aio3.c: Likewise.
19270
19271 2012-09-27  Steve Ellcey  <sellcey@mips.com>
19272
19273         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
19274
19275 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
19276
19277         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
19278         contents on [SHARED].
19279
19280 2012-09-26  Marek Polacek  <polacek@redhat.com>
19281
19282         [BZ #14530]
19283         [BZ #13741]
19284         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
19285         for C++ and GCC <4.3 as well as for non GCC compilers.
19286
19287 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19288
19289         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19290
19291 2012-09-25  Roland McGrath  <roland@hack.frob.com>
19292
19293         * Makefile.in (all, install): Declare with .PHONY.
19294         Reported by Michael Hope <michael.hope@linaro.org>.
19295
19296 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19297
19298         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
19299         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
19300         system header.
19301         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
19302         Likewise.
19303         (sydep_routines): Add the new and the internal functions.
19304         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
19305         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
19306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
19307         (GLIBC_2.17): Add the new function.
19308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19309         (GLIBC_2.17): Likewise.
19310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
19311         (GLIBC_2.17): Likewise.
19312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
19313         (GLIBC_2.17): Likewise.
19314         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
19315
19316 2012-09-25  Alan Modra  <amodra@gmail.com>
19317
19318         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
19319         Add release barrier before setting once_control to say
19320         initialisation is done.  Add hints on lwarx.  Use macro in
19321         place of isync.
19322         (clear_once_control): Add release barrier.
19323
19324 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19325
19326         [BZ #13629]
19327         * math/s_clog.c (__clog): Handle more values close to |z| = 1
19328         specially.
19329         * math/s_clog10.c (__clog10): Likewise.
19330         * math/s_clog10f.c (__clog10f): Likewise.
19331         * math/s_clog10l.c (__clog10l): Likewise.
19332         * math/s_clogf.c (__clogf): Likewise.
19333         * math/s_clogl.c (__clogl): Likewise.
19334         * math/Makefile (libm-calls): Add x2y2m1.
19335         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
19336         (__x2y2m1): Likewise.
19337         (__x2y2m1l): Likewise.
19338         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
19339         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
19340         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
19341         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
19342         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
19343         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
19344         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
19345         * sysdeps/i386/fpu/libm-test-ulps: Update.
19346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19347
19348         [BZ #14621]
19349         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
19350         int as type of variable DEPTH.
19351         (glob): Use size_t instead of int as type of variables NEWCOUNT
19352         and OLD_PATHC.
19353
19354 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19355
19356         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19357         Add s_sincosf-sse2.
19358         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
19359         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
19360         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
19361         macros for using routine as __sincosf_ia32.
19362         Use macro for function declaration and weak_alias.
19363         * sysdeps/i386/fpu/libm-test-ulps: Update.
19364
19365         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
19366         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19367
19368         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
19369         subnormal argument.
19370         * math/s_cexpf.c (__cexpf): Likewise.
19371         * math/s_csinf.c (__csinf): Likewise.
19372         * math/s_csinhf.c (__csinhf): Likewise.
19373         * math/s_ctanf.c (__ctanf): Likewise.
19374         * math/s_ctanhf.c (__ctanhf): Likewise.
19375         * math/s_ccosh.c (__ccoshf): Likewise.
19376         * math/s_cexp.c (__cexpl): Likewise.
19377         * math/s_csin.c (__csin): Likewise.
19378         * math/s_csinh.c (__csinh): Likewise.
19379         * math/s_ctan.c (__ctan): Likewise.
19380         * math/s_ctanh.c (ctanh): Likewise.
19381         * math/s_ccoshl.c (__ccoshl): Likewise.
19382         * math/s_cexpl.c (__cexpl): Likewise.
19383         * math/s_csinl.c (__csinl): Likewise.
19384         * math/s_csinhl.c (__csinhl): Likewise.
19385         * math/s_ctanl.c (__ctanl): Likewise.
19386         * math/s_ctanhl.c (__ctanhl): Likewise.
19387
19388 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
19389
19390         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
19391         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
19392         (_IO_off_t): Define to __off_t, not _G_off_t.
19393         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
19394         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
19395         (_IO_wint_t): Define to wint_t, not _G_wint_t.
19396         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
19397         type of __dummy and __dummy2 fields.
19398         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
19399         (_G_ssize_t): Likewise.
19400         (_G_off_t): Likewise.
19401         (_G_pid_t): Likewise.
19402         (_G_uid_t): Likewise.
19403         (_G_wchar_t): Likewise.
19404         (_G_wint_t): Likewise.
19405         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
19406         (_G_ssize_t): Likewise.
19407         (_G_off_t): Likewise.
19408         (_G_pid_t): Likewise.
19409         (_G_uid_t): Likewise.
19410         (_G_wchar_t): Likewise.
19411         (_G_wint_t): Likewise.
19412         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
19413         (_G_ssize_t): Likewise.
19414         (_G_off_t): Likewise.
19415         (_G_pid_t): Likewise.
19416         (_G_uid_t): Likewise.
19417         (_G_wchar_t): Likewise.
19418         (_G_wint_t): Likewise.
19419
19420 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19421
19422         * malloc/arena.c: Include malloc-sysdep.h.
19423         (shrink_heap): Use check_may_shrink_heap to decide if madvise
19424         is sufficient to shrink the heap or an unmap is needed.
19425         * sysdeps/generic/malloc-sysdep.h: New file.  Define
19426         new function check_may_shrink_heap.
19427         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
19428         new function check_may_shrink_heap.
19429
19430 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19431
19432         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
19433         comments.
19434
19435 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
19436
19437         * catgets/test-gencat.sh: Add "set -e".
19438         * elf/tst-pathopt.sh: Likewise.
19439         * grp/tst_fgetgrent.sh: Likewise.
19440         * iconvdata/run-iconv-test.sh: Likewise.
19441         * intl/tst-gettext.sh: Likewise.
19442         * intl/tst-gettext2.sh: Likewise.
19443         * intl/tst-gettext4.sh: Likewise.
19444         * intl/tst-gettext6.sh: Likewise.
19445         * intl/tst-translit.sh: Likewise.
19446         * io/ftwtest-sh: Likewise.
19447         * libio/test-freopen.sh: Likewise.
19448         * malloc/tst-mtrace.sh: Likewise.
19449         * posix/globtest.sh: Likewise.
19450         * posix/tst-getconf.sh: Likewise.
19451         * posix/wordexp-tst.sh: Likewise.
19452         * stdio-common/tst-printf.sh: Likewise.
19453         * stdio-common/tst-unbputc.sh: Likewise.
19454         * stdlib/tst-fmtmsg.sh: Likewise.
19455         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19456         * catgets/Makefile: Do not specify -e option when running
19457         testsuite shell scripts.
19458         * elf/Makefile: Likewise.
19459         * grp/Makefile: Likewise.
19460         * iconvdata/Makefile: Likewise.
19461         * intl/Makefile: Likewise.
19462         * io/Makefile: Likewise.
19463         * libio/Makefile: Likewise.
19464         * malloc/Makefile: Likewise.
19465         * posix/Makefile: Likewise.
19466         * stdio-common/Makefile: Likewise.
19467         * stdlib/Makefile: Likewise.
19468         * sysdeps/x86_64/Makefile: Likewise.
19469
19470         * io/ftwtest-sh: Add copyright header.
19471         * posix/globtest.sh: Likewise.
19472         * posix/tst-getconf.sh: Likewise.
19473         * posix/wordexp-tst.sh: Likewise.
19474         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
19475
19476 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
19477
19478         [BZ #13679]
19479         * Makeconfig (+link): Defined as $(+link-static) if
19480         $(build-shared) isn't yes.
19481         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
19482         isn't yes.
19483         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
19484
19485         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
19486
19487         [BZ #14562]
19488         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
19489         new chunk size with MALLOC_ALIGN_MASK.
19490
19491 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
19492
19493         [BZ #5044]
19494         * stdio-common/printf_fphex.c: Include <stdbool.h> and
19495         <rounding-mode.h>.
19496         (__printf_fphex): Determine rounding using get_rounding_mode and
19497         round_away.
19498         * stdio-common/tst-printf-round.c (struct hex_test): New
19499         structure.
19500         (hex_tests): New variable.
19501         (test_hex_in_one_mode): New function.
19502         (do_test): Also run tests for hex float output.
19503
19504 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
19505
19506         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19507         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19508         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
19509         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
19510         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
19511         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
19512         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19513         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
19514
19515 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
19516
19517         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
19518         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
19519         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
19520         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
19521
19522 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
19523
19524         [BZ #14579]
19525         * elf/rtld.c (dl_main): Limit the check for self loading to normal
19526         mode only.
19527         * elf/tst-rtld-load-self.sh: New test.
19528         * elf/Makefile: Run it.
19529
19530 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
19531
19532         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
19533         (tst-writev-ENV): Remove.
19534         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
19535
19536 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
19537
19538         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
19539
19540 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
19541
19542         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
19543         unconditional.
19544         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
19545         Likewise.
19546         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
19547         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
19548         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
19549         Likewise.
19550
19551 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
19552
19553         [BZ #14587]
19554         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
19555         * config.make.in (have-cpp-asm-debuginfo): Removed.
19556         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
19557         * configure: Regenerated.
19558
19559 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
19560
19561         [BZ #5044]
19562         * stdio-common/printf_fp.c: Include <stdbool.h> and
19563         <rounding-mode.h>.
19564         (___printf_fp): Determine rounding using get_rounding_mode and
19565         round_away.
19566         * stdio-common/tst-printf-round.c: New file.
19567         * stdio-common/Makefile (tests): Add tst-printf-round.
19568         (link-libm): New variable.
19569         ($(objpfx)tst-printf-round): Depend in $(link-libm).
19570
19571 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
19572
19573         [BZ #14576]
19574         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
19575         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
19576         Likewise.
19577         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
19578         Likewise.
19579
19580 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
19581
19582         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
19583         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19584         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19585         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
19586
19587 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
19588
19589         [BZ #14518]
19590         * include/rounding-mode.h: New file.
19591         * sysdeps/generic/get-rounding-mode.h: Likewise.
19592         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
19593         * stdlib/strtod_l.c: Include <rounding-mode.h>.
19594         (MAX_VALUE): New macro.
19595         (MIN_VALUE): Likewise.
19596         (overflow_value): New function.
19597         (underflow_value): Likewise.
19598         (round_and_return): Use overflow_value and underflow_value to
19599         determine return values in overflow and underflow cases.  Use
19600         round_away to determine rounding depending on rounding mode.
19601         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
19602         determine return values in overflow and underflow cases.
19603         * stdlib/tst-strtod-round.c: Include <fenv.h>.
19604         (struct test_results): New structure.
19605         (struct test): Use struct test_results to store expected results
19606         for all rounding modes.
19607         (TEST): Include expected results for all rounding modes.
19608         (test_in_one_mode): New function.
19609         (do_test): Use test_in_one_mode to compute and check results.
19610         Check results for all rounding modes.
19611         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
19612         $(link-libm).
19613
19614 2012-12-09  Allan McRae  <allan@archlinux.org>
19615
19616         * sysdeps/i386/fpu/libm-test-ulps: Update
19617
19618 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
19619
19620         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
19621         (_G_int32_t): Likewise.
19622         (_G_uint16_t): Likewise.
19623         (_G_uint32_t): Likewise.
19624         (_G_HAVE_BOOL): Likewise.
19625         (_G_HAVE_ATEXIT): Likewise.
19626         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19627         (_G_HAVE_IO_FILE_OPEN): Likewise.
19628         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
19629         (_G_int32_t): Likewise.
19630         (_G_uint16_t): Likewise.
19631         (_G_uint32_t): Likewise.
19632         (_G_HAVE_BOOL): Likewise.
19633         (_G_HAVE_ATEXIT): Likewise.
19634         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19635         (_G_HAVE_IO_FILE_OPEN): Likewise.
19636         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
19637         (_G_int32_t): Likewise.
19638         (_G_uint16_t): Likewise.
19639         (_G_uint32_t): Likewise.
19640         (_G_HAVE_BOOL): Likewise.
19641         (_G_HAVE_ATEXIT): Likewise.
19642         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
19643         (_G_HAVE_IO_FILE_OPEN): Likewise.
19644
19645 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
19646
19647         * csu/libc-tls.c: Update copyright years.
19648
19649 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
19650
19651         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
19652         [!_G_USING_THUNKS]: Remove conditional code.
19653         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
19654         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
19655
19656         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
19657         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
19658         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19659         (_G_VTABLE_LABEL_PREFIX): Likewise.
19660         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19661         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19662         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19663         (_G_VTABLE_LABEL_PREFIX): Likewise.
19664         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19665         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
19666         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
19667         (_G_VTABLE_LABEL_PREFIX): Likewise.
19668         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
19669
19670 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
19671
19672         * libio/Makefile: Include ../Makeconfig before tests.
19673         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
19674         only if $(build-shared) is yes.
19675
19676         * iconv/gconv_db.c: Update copyright years.
19677
19678 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19679
19680         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
19681         unwind info if defined PIC. Fix special cases description.
19682         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
19683
19684         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
19685         DP_HI_MASK entry.
19686         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
19687
19688 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
19689
19690         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
19691
19692         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
19693         is NULL.
19694
19695         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19696         (LDLIBS-tst-chk4): This.
19697         (LDFLAGS-tst-chk5): Renamed to ...
19698         (LDLIBS-tst-chk5): This.
19699         (LDFLAGS-tst-chk6): Renamed to ...
19700         (LDLIBS-tst-chk6): This.
19701         (LDFLAGS-tst-lfschk4): Renamed to ...
19702         (LDLIBS-tst-lfschk4): This.
19703         (LDFLAGS-tst-lfschk5): Renamed to ...
19704         (LDLIBS-tst-lfschk5): This.
19705         (LDFLAGS-tst-lfschk6): Renamed to ...
19706         (LDLIBS-tst-lfschk6): This.
19707
19708         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
19709         on $(common-objpfx)soversions.mk.
19710
19711 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
19712
19713         [BZ #10014]
19714         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
19715         example host name.
19716
19717 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19718
19719         * malloc/arena.c (arena_get_retry): New function that gets
19720         another arena for the caller to try its request on.
19721         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
19722         current arena cannot fulfill the request.
19723         (__libc_memalign): Likewise.
19724         (__libc_memalign): Likewise.
19725         (__libc_pvalloc): Likewise.
19726         (__libc_calloc): Likewise.
19727
19728 2012-09-05  John Tobey  <john.tobey@gmail.com>
19729
19730         [BZ #13542]
19731         * manual/arith.texi (Operations on Complex): Fix description
19732         of carg branch cut.
19733
19734 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19735
19736         [BZ #10014]
19737         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
19738         host name.
19739
19740         [BZ #10038]
19741         * manual/memory.texi (Memory): Make order of menu items match
19742         order of sections.
19743
19744 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19745
19746         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
19747         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
19748         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
19749
19750 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19751
19752         * csu/libc-tls.c (static_dtv): Renamed to ...
19753         (_dl_static_dtv): This.  Make it global.
19754         (_dl_initial_dtv): Removed.
19755         (__libc_setup_tls): Updated.
19756         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
19757         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
19758         DL_INITIAL_DTV.
19759
19760 2012-09-06  Petr Machata  <pmachata@redhat.com>
19761
19762         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
19763         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
19764         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
19765         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
19766
19767 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19768
19769         [BZ #14545]
19770         * csu/libc-tls.c (_dl_initial_dtv): New variable.
19771         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
19772         freeing dtv[-1].
19773
19774 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19775
19776         [BZ #14544]
19777         * Makeconfig (link-static-before-libc): Replace $(+prector)
19778         with $(+prectorT).
19779         (link-static-after-libc): Replace $(+postctor) with
19780         $(+postctorT).
19781         (link-bounded): Replace $(+prector)/$(+postctor) with
19782         $(+prectorT)/$(+postctorT).
19783         (+prectorT): New macro.
19784         (+postctorT): Likewise.
19785
19786 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
19787
19788         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
19789         (round_str): Handle values above the maximum for IBM long double
19790         as inexact.
19791         * stdlib/tst-strtod-round.c (tests): Regenerated.
19792
19793 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19794
19795         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
19796         assembler flag.
19797         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
19798         zarch_nohighgprs around the zarch optimized routines.
19799         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
19800         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
19801         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
19802         for zarch.
19803
19804 2012-09-05  David S. Miller  <davem@davemloft.net>
19805
19806         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19807
19808         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
19809         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
19810         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19811         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
19812         entries.
19813
19814 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19815
19816         * malloc/arena.c: Fold copyright years.
19817         * malloc/mcheck.c, malloc/memusage.c: Likewise.
19818
19819 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19820
19821         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
19822
19823 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19824
19825         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
19826
19827 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19828
19829         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
19830         change internal state upon failure.
19831
19832 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
19833
19834         * malloc/mcheck.c (mcheck_check_all): Fix typo.
19835         * malloc/memusage.c (mmap): Likewise.
19836         (mmap64, mremap): Likewise.  Adjust name in comment.
19837
19838 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19839
19840         * libio/fileops.c: Fix typos in comments.
19841         * libio/oldfileops.c: Likewise.
19842         * libio/wfileops.c: Likewise.
19843
19844 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
19845
19846         [BZ #1349]
19847         * malloc/Makefile (tests): Add tst-malloc-usable test case.
19848         (tst-malloc-usable-ENV): Set environment for test case.
19849         * malloc/hooks.c (malloc_check_get_size): New function to get
19850         requested size.
19851         * malloc/malloc.c (musable): Use malloc_check_get_size.
19852         * malloc/tst-malloc-usable.c: New test case.
19853
19854 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19855
19856         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
19857
19858 2012-09-05  Allan McRae  <allan@archlinux.org>
19859
19860         [BZ #13966]
19861         * configure.in (CXX_SYSINCLUDES): Use compiler output to
19862         determine header location.
19863         * configure: Regenerated.
19864
19865 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19866
19867         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
19868         float format.
19869         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
19870         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
19871         format.
19872         (test): Regenerate.
19873
19874 2012-09-04  David S. Miller  <davem@davemloft.net>
19875
19876         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
19877         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
19878         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
19879
19880 2012-09-04  Florian Weimer  <fweimer@redhat.com>
19881
19882         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
19883         failures.
19884
19885         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
19886
19887 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
19888
19889         [BZ #9914]
19890         * libio/iogetdelim.c: Include <limits.h>.
19891         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
19892         + len + 1 would overflow.
19893
19894 2012-09-03  Andreas Jaeger  <aj@suse.de>
19895
19896         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19897         * sysdeps/i386/fpu/libm-test-ulps: Update.
19898
19899 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19900
19901         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
19902         Add s_sinf-sse2, s_conf-sse2.
19903
19904         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
19905         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
19906         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
19907         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
19908
19909         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
19910         for using routine as __sinf_ia32.
19911         Use macro for function declaration and weak_alias.
19912         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
19913         for using routine as __cosf_ia32.
19914         Use macro for function declaration and weak_alias.
19915
19916         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
19917         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
19918
19919         * sysdeps/x86_64/fpu/s_sinf.S: New file.
19920         * sysdeps/x86_64/fpu/s_cosf.S: New file.
19921         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19922
19923         * math/libm-test.inc (cos_test): Add more test cases.
19924         (sin_test): Likewise.
19925         (sincos_test): Likewise.
19926
19927 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19928
19929         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
19930         (IFUNC_RESOLVE): Make pointers to the specialized implementations
19931         hidden.
19932         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19933
19934 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
19935
19936         [BZ #14538]
19937         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
19938         first element of the GOT.
19939         (elf_machine_load_address): Return the difference between
19940         the runtime address of _DYNAMIC and elf_machine_dynamic ().
19941
19942 2012-09-01  Allan McRae  <allan@archlinux.org>
19943
19944         [BZ #13412]
19945         * configure.in (AWK): Require gawk version 3.0 or later.
19946         * configure: Regenerated.
19947
19948 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
19949
19950         * sysdeps/unix/sysv/linux/kernel-features.h
19951         (__ASSUME_POSIX_CPU_TIMERS): Remove.
19952         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19953         [__NR_clock_getres]: Make code unconditional.
19954         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
19955         (clock_getcpuclockid): Remove code left unreachable by removal of
19956         conditionals.
19957         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
19958         code unconditional.
19959         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19960         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19961         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
19962         Make code unconditional.
19963         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
19964         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19965         * sysdeps/unix/sysv/linux/clock_settime.c
19966         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
19967         conditional code.
19968         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
19969         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
19970
19971 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
19972
19973         [BZ #14476]
19974         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
19975         scripts/test-installation.pl.
19976
19977         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
19978         and $ld_so_version if it is set.
19979
19980 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19981
19982         [BZ #14516]
19983         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
19984         failure if reading from procfs failed.
19985         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
19986
19987 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
19988
19989         * sysdeps/unix/sysv/linux/kernel-features.h
19990         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
19991         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
19992         Remove conditional code.
19993         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19994         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
19995         Remove conditional code.
19996         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
19997         * sysdeps/unix/sysv/linux/i386/fxstat.c
19998         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
19999         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20000         * sysdeps/unix/sysv/linux/i386/fxstatat.c
20001         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
20002         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20003         * sysdeps/unix/sysv/linux/i386/lxstat.c
20004         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
20005         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20006         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
20007         Remove conditional code.
20008         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20009         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
20010         Remove conditional code.
20011         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20012         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
20013         <kernel-features.h>.
20014         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
20015         Remove.
20016         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
20017         Remove conditional code.
20018         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
20019         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
20020         Remove conditional.
20021
20022 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
20023
20024         [BZ #5400]
20025         * NEWS: Add fixed bug number.
20026
20027 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
20028
20029         [BZ #14519]
20030         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
20031         underflowing exponent in case of negative sign.
20032         * stdlib/tst-strtod-round-data: Add more tests.
20033         * stdlib/tst-strtod-round.c (tests): Regenerated.
20034
20035         [BZ #3479]
20036         * stdlib/strtod_l.c (NDIG): Remove.
20037         (HEXNDIG): Likewise.
20038         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
20039         smallest representable value.
20040         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
20041         lie within an exact representation of 1/2 ulp of the result.
20042         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
20043         unconditionally.
20044         (TENS_P9_IDX): Define unconditionally.
20045         (TENS_P9_SIZE): Likewise.
20046         (TENS_P10_IDX): Likewise.
20047         (TENS_P10_SIZE): Likewise.
20048         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
20049         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
20050         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
20051         entries for 10^2^13 and 10^2^14.
20052         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
20053         (TENS_P13_IDX): Define.
20054         (TENS_P13_SIZE): Likewise.
20055         (TENS_P14_IDX): Likewise.
20056         (TENS_P14_SIZE): Likewise.
20057         (_fpioconst_pow10): Change array size to
20058         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
20059         unconditional.
20060         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
20061         1024]: Add entries for 10^2^13 and 10^2^14.
20062         [LAST_POW10 > _LAST_POW10]: Remove #error.
20063         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
20064         (_fpioconst_pow10): Change array size to
20065         FPIOCONST_POW10_ARRAY_SIZE.
20066         * stdlib/gen-fpioconst.c: New file.
20067         * stdlib/gen-tst-strtod-round.c: Likewise.
20068         * stdlib/tst-strtod-round-data: Likewise.
20069         * stdlib/tst-strtod-round.c: Likewise.
20070         * stdlib/Makefile (tests): Add tst-strtod-round.
20071
20072         [BZ #14459]
20073         * stdlib/strtod_l.c: Include <stdint.h>.
20074         (NDEBUG): Do not define.
20075         (round_and_return): Change EXPONENT parameter to type intmax_t.
20076         Rearrange calculations to avoid internal overflow possibilities.
20077         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
20078         Rearrange calculations to avoid internal overflow possibilities.
20079         Assert that number fits inside MPNSIZE limbs.
20080         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
20081         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
20082         calculations and add assertions to avoid internal overflow
20083         possibilities.  Add casts to avoid signed/unsigned operations.
20084         * stdlib/tst-strtod-overflow.c: New file.
20085         * stdlib/Makefile (tests): Add tst-strtod-overflow.
20086
20087 2012-08-25  Marek Polacek  <polacek@redhat.com>
20088
20089         * time/time.h: Fix some typos in comments.
20090
20091 2012-08-23  Roland McGrath  <roland@hack.frob.com>
20092
20093         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
20094         * posix/tst-rfc3484-2.c: Likewise.
20095         * posix/tst-rfc3484-3.c: Likewise.
20096
20097 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
20098
20099         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
20100         (EF_ARM_ABI_FLOAT_HARD): Likewise.
20101
20102 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
20103
20104         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
20105         #include of fxstatat64.c.
20106
20107 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20108
20109         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
20110         * shadow/getspent_r.c: Likewise.
20111         * shadow/getspnam.c: Likewise.
20112         * shadow/getspnam_r.c: Likewise.
20113         * gshadow/getsgent.c: Likewise.
20114         * gshadow/getsgent_r.c: Likewise.
20115         * gshadow/getsgnam.c: Likewise.
20116         * gshadow/getsgnam_r.c: Likewise.
20117         * inet/getnetbyad.c: Likewise.
20118         * inet/getnetbyad_r.c: Likewise.
20119         * inet/getnetbynm.c: Likewise.
20120         * inet/getnetbynm_r.c: Likewise.
20121         * inet/getnetent.c: Likewise.
20122         * inet/getnetent_r.c: Likewise.
20123         * inet/getproto.c: Likewise.
20124         * inet/getproto_r.c: Likewise.
20125         * inet/getprtent.c: Likewise.
20126         * inet/getprtent_r.c: Likewise.
20127         * inet/getprtname.c: Likewise.
20128         * inet/getprtname_r.c: Likewise.
20129         * inet/getrpcbyname.c: Likewise.
20130         * inet/getrpcbyname_r.c: Likewise.
20131         * inet/getrpcbynumber.c: Likewise.
20132         * inet/getrpcbynumber_r.c: Likewise.
20133         * inet/getrpcent.c: Likewise.
20134         * inet/getrpcent_r.c: Likewise.
20135         * inet/getaliasent.c: Likewise.
20136         * inet/getaliasent_r.c: Likewise.
20137         * inet/getaliasname.c: Likewise.
20138         * inet/getaliasname_r.c: Likewise.
20139         * nscd/getgrgid_r.c: Likewise.
20140         * nscd/getgrnam_r.c: Likewise.
20141         * nscd/gethstbyad_r.c: Likewise.
20142         * nscd/gethstbynm3_r.c: Likewise.
20143         * nscd/getpwnam_r.c: Likewise.
20144         * nscd/getpwuid_r.c: Likewise.
20145         * nscd/getsrvbynm_r.c: Likewise.
20146         * nscd/getsrvbypt_r.c: Likewise.
20147         * nscd/gai.c: Likewise.
20148
20149         * configure.in (build_nscd): New substituted variable, set
20150         by --disable-build-nscd and defaults to $use_nscd.
20151         * configure: Regenerated.
20152         * config.make.in (build-nscd): New substituted variable.
20153         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
20154         Change conditional to require [$(build-nscd) = yes] as well.
20155         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
20156
20157         [BZ# 13696]
20158         * configure.in (use_nscd): New substituted variable, set by
20159         --disable-nscd.  If enabled, define USE_NSCD.
20160         * configure: Regenerated.
20161         * config.h.in: Add USE_NSCD.
20162         * config.make.in (use-nscd): New substituted variable.
20163         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20164         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
20165         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
20166         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
20167         (CFLAGS-getgrnam_r.c): Likewise.
20168         (CFLAGS-initgroups.c): Likewise.
20169         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
20170         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
20171         Variables removed.
20172         * inet/getnetgrent_r.c
20173         (nscd_setnetgrent): New function, broken out of ...
20174         (setnetgrent): ... here.  Call it.
20175         (innetgr): Conditionalize nscd bits on [USE_NSCD].
20176         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
20177         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
20178         * nscd/Makefile (routines, aux): Move definitions after include of
20179         Makeconfig.  Conditionalize on [$(use-nscd) != no].
20180         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
20181         Conditionalize on [USE_NSCD].
20182         (is_nscd, nscd_init_cb): Likewise.
20183         (nss_load_library): Conditionalize init callback on [USE_NSCD].
20184         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
20185         * nss/nss_db/db-init.c: Likewise.
20186         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
20187         [USE_NSCD].
20188         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
20189         (make_request): Use it.
20190         (cache_valid_p): New function.
20191         (__check_pf): Use it.
20192         * NEWS: Add item for --disable-nscd.
20193
20194 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
20195
20196         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
20197         to support sed >= 4.2.1-20-ga9bf076.
20198         * configure: Regenerated.
20199
20200 2012-08-22  Roland McGrath  <roland@hack.frob.com>
20201
20202         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
20203         Conditionalize whole body on [IREL].
20204
20205 2012-08-22  Jeff Law <law@redhat.com>
20206
20207         [BZ #14505]
20208         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
20209         if the family is PF_UNSPEC.
20210
20211 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
20212
20213         * Makerules (lib-version): Rename from V.
20214         (install-lib-nosubdir): Change V to lib-version.
20215
20216 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
20217
20218         [BZ #14252]
20219         * powerpc32/power6/wcschr.c: New file.
20220         * powerpc32/power6/wcscpy.c: New file.
20221         * powerpc32/power6/wcsrchr.c: New file.
20222         * powerpc64/power6/wcschr.c: New file.
20223         * powerpc64/power6/wcscpy.c: New file.
20224         * powerpc64/power6/wcsrchr.c: New file.
20225
20226 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20227
20228         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
20229         (two_way_short_needle): Use it.
20230         * string/strstr.c (AVAILABLE1_USES_J): Define.
20231         * string/strcasestr.c: Likewise.
20232
20233         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
20234         array references.
20235         * string/strcasestr.c (TOLOWER): Make side-effect safe.
20236
20237         [BZ #11607]
20238         * NEWS: Add an entry.
20239         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
20240         define their defaults.
20241         (two_way_short_needle): Detect end-of-string on-the-fly.
20242         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
20243         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
20244         * string/bug-strcasestr1.c: New test.
20245         * string/Makefile: Run it.
20246
20247 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
20248
20249         [BZ #11607]
20250         * string/str-two-way.h (two_way_short_needle): Optimize matching of
20251         the first character.
20252
20253 2012-08-21  Roland McGrath  <roland@hack.frob.com>
20254
20255         * csu/elf-init.c (__libc_csu_irel): Function removed.
20256         * csu/libc-start.c (apply_irel): New function.
20257         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
20258
20259 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
20260
20261         * sysdeps/unix/sysv/linux/kernel-features.h
20262         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
20263         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20264         <kernel-features.h>.
20265         [__NR_fadvise64_64]: Make code unconditional.
20266         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
20267         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20268         !__NR_fadvise64_64)]: Likewise.
20269         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
20270         !__NR_fadvise64_64))]: Likewise.
20271         [__NR_fadvise64]: Make code unconditional.
20272         [!__NR_fadvise64]: Remove conditional code.
20273         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
20274         <kernel-features.h>.
20275         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20276         unconditional.
20277         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20278         conditional code.
20279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
20280         not include <kernel-features.h>.
20281         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20282         unconditional.
20283         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20284         conditional code.
20285         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
20286         include <kernel-features.h>.
20287         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
20288         unconditional.
20289         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
20290         conditional code.
20291
20292 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20293
20294         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
20295         slight instruction rearrangements per scrollpipe analysis.
20296         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
20297
20298 2012-08-20  Roland McGrath  <roland@hack.frob.com>
20299
20300         * manual/syslog.texi (syslog; vsyslog, closelog):
20301         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
20302         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
20303
20304         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
20305         DSOCAPS to match condition on defining it.
20306
20307 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
20308
20309         * sysdeps/unix/sysv/linux/kernel-features.h
20310         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
20311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
20312         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20313         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
20315         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20316         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
20318         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
20319         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
20320
20321         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
20322         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
20323
20324         * sysdeps/unix/sysv/linux/kernel-features.h
20325         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
20326         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
20327         unconditional.
20328         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20329         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
20330         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20331         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20332         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
20333         Make code unconditional.
20334         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20335         (__mmap64) [!__NR_mmap2]: Likewise.
20336         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
20337         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
20338         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20339         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
20340         [__NR_mmap2]: Make code unconditional.
20341         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
20342         (__mmap64) [!__NR_mmap2]: Likewise.
20343
20344 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20345
20346         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
20347
20348 2012-08-18  Andreas Jaeger  <aj@suse.de>
20349
20350         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
20351
20352 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20353
20354         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
20355         * include/unistd.h (__have_sock_cloexec): Likewise.
20356         (__have_pipe2): Likewise.
20357         (__have_dup3): Likewise.
20358
20359 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
20360
20361         [BZ #9685]
20362         * include/unistd.h (__have_pipe2): Change define into an extern int.
20363         (__have_dup3): Likewise.
20364         * socket/have_sock_cloexec.c: Include fcntl.h.
20365         (__have_pipe2): New variable.
20366         (__have_dup3): Likewise.
20367
20368 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
20369
20370         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
20371
20372 2012-08-17  Marek Polacek  <polacek@redhat.com>
20373
20374         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
20375         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
20376
20377 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20378
20379         * configure.in: Add AC_SUBST for sysheaders.
20380         * configure: Regenerated.
20381         * config.make.in (sysheaders): New substituted variable.
20382
20383         * sysdeps/unix/mkfifo.c: Moved ...
20384         * sysdeps/posix/mkfifo.c: ... here.
20385         * sysdeps/unix/mkfifoat.c: Moved ...
20386         * sysdeps/posix/mkfifoat.c: ... here.
20387
20388         * sysdeps/unix/utime.c: Moved ...
20389         * sysdeps/posix/utime.c: ... here.
20390
20391         * sysdeps/unix/time.c: Moved ...
20392         * sysdeps/posix/time.c: ... here.
20393         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
20394         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
20395
20396         * sysdeps/unix/nice.c: Moved ...
20397         * sysdeps/posix/nice.c: ... here.
20398
20399         * sysdeps/unix/alarm.c: Moved ...
20400         * sysdeps/posix/alarm.c: ... here.
20401
20402         * intl/Makefile ($(codeset_mo)): Depend on the input file.
20403
20404 2012-08-17  Jeff Law <law@redhat.com>
20405
20406         * intl/Makefile (codeset_mo): New variable.
20407         ($(codeset_mo)): New target.
20408         (tst-codeset.out): Depend on that.  Remove explicit rule.
20409         (tst-gettext3.out, tst-gettext5.out): Likewise.
20410         (LOCPATH-ENV, tst-codeset-ENV): New variables.
20411         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
20412         * intl/tst-codeset.sh: Remove.
20413         * intl/tst-gettext3.sh: Likewise.
20414         * intl/tst-gettext5.sh: Likewise.
20415
20416 2012-08-17  Roland McGrath  <roland@hack.frob.com>
20417
20418         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
20419         * sysdeps/unix/syscalls.list: ... here.
20420
20421         * sysdeps/posix/getaddrinfo.c
20422         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
20423         (gaiconf_init, gaiconf_reload): Use them.
20424         [!_STATBUF_ST_NSEC]
20425         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
20426         Define using time_t rather than struct timespec.
20427
20428         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
20429         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
20430         Macros removed.
20431         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
20432         [!NO_THREADS].
20433         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
20434         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
20435         Likewise.
20436
20437         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
20438         __libc_cleanup_push argument.
20439
20440         * bits/param.h: New file.
20441         * misc/sys/param.h: New file.
20442         * include/sys/param.h: New file.
20443         * misc/Makefile (headers): Add bits/param.h.
20444         * sysdeps/generic/sys/param.h: File removed.
20445         * sysdeps/unix/sysv/linux/bits/param.h: New file.
20446         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
20447         * sysdeps/mach/hurd/bits/param.h: New file.
20448         * sysdeps/mach/hurd/sys/param.h: File removed.
20449
20450         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
20451         last change.
20452
20453         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
20454         [_IO_MTSAFE_IO].
20455         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
20456         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
20457         New macros.
20458
20459         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
20460         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
20461         rather than -D_IO_MTSAFE_IO conditionally.
20462         * stdio-common/Makefile (CPPFLAGS): Likewise.
20463         * wcsmbs/Makefile (CPPFLAGS): Likewise.
20464         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
20465         Use $(libio-mtsafe).
20466         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
20467         of -D_IO_MTSAFE_IO.
20468         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
20469         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
20470         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
20471         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
20472         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
20473         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
20474         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
20475         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
20476         (CFLAGS-fread_u_chk.c): Likewise.
20477         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
20478         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
20479         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
20480         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
20481         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
20482         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
20483         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
20484         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
20485         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
20486
20487         * libio/Makefile: Test [$(libc-reentrant) = yes]
20488         instead of [$(filter %REENTRANT, $(defines)) nonempty].
20489
20490         * Makeconfig
20491         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
20492         * sysdeps/pthread/configure: File removed.
20493         * sysdeps/pthread/Makeconfig: New file.
20494         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
20495         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
20496
20497 2012-08-16  Gary Benson  <gbenson@redhat.com>
20498
20499         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
20500         unmapping the first object in a namespace.
20501
20502 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20503
20504         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
20505         (__internal_setnetgrent): ... this.  Add internal_function to
20506         definition.  Add libc_hidden_def.
20507         (setnetgrent): Update caller.
20508         (internal_endnetgrent): Renamed to ...
20509         (__internal_endnetgrent): ... this.  Add internal_function to
20510         definition.  Add libc_hidden_def.
20511         (endnetgrent): Update caller.
20512         (internal_getnetgrent_r): Renamed to ...
20513         (__internal_getnetgrent_r): ... this.  Add internal_function to
20514         definition.  Add libc_hidden_def.
20515         (__getnetgrent_r): Update caller.
20516         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
20517
20518 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20519
20520         * stdlib/longlong.h: Update from GCC.
20521
20522 2012-08-16  Roland McGrath  <roland@hack.frob.com>
20523
20524         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
20525         on _QL, which is set by umul_ppmm but never used.
20526         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
20527         variables, which are set by GMP macros but never used.
20528         * stdio-common/_itowa.c (_itowa): Likewise.
20529         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
20530         * stdlib/mod_1.c (mpn_mod_1): Likewise.
20531
20532 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
20533
20534         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
20535         struct La_sh_regs is not constant.
20536         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
20537         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
20538         and struct La_sparc64_regs are not constant.
20539
20540 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
20541
20542         * sysdeps/unix/sysv/linux/kernel-features.h
20543         (__ASSUME_POSIX_TIMERS): Remove.
20544         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
20545         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20546         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
20547         Make code unconditional.
20548         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20549         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
20550         Make code unconditional.
20551         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20552         * sysdeps/unix/sysv/linux/clock_nanosleep.c
20553         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
20554         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20555         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
20556         Make code unconditional.
20557         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
20558         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
20559         (__libc_missing_posix_timers): Remove.
20560
20561 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20562
20563         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
20564         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
20565
20566         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
20567
20568         * elf/dl-sym.c: Include <stdlib.h>.
20569
20570         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
20571         constants, which avoids warnings in 32-bit builds.
20572
20573         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
20574         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
20575
20576         * misc/lseek.c: File moved to ...
20577         * io/lseek.c: ... here.
20578
20579         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
20580
20581         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
20582         shifting LEN more than 31 bits at once.
20583
20584 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20585
20586         [BZ #14195]
20587         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
20588         segmentation fault for a case of two empty input strings.
20589         * string/test-strncasecmp.c (check1): Renamed to...
20590         (bz12205): ...this.
20591         (bz14195): Add new testcase for two empty input strings and N > 0.
20592         (test_main): Call new testcase, adapt for renamed function.
20593
20594 2012-08-15  Andreas Jaeger  <aj@suse.de>
20595
20596         [BZ #14090]
20597         * crypt/md5test2.c: New test, based on test supplied by Serge
20598         Belyshev <belyshev@depni.sinp.msu.ru>.
20599         * crypt/Makefile (xtests): Add md5test-giant..
20600         * crypt/Makefile ($(objpfx)md5test-giant): Add.
20601
20602 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20603
20604         [BZ #14090]
20605         * crypt/md5.c (md5_process_block): Don't assume the buffer
20606         length is less than 2**32.
20607         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
20608         length is less than 2**64.
20609
20610 2012-08-15  Roland McGrath  <roland@hack.frob.com>
20611
20612         * string/str-two-way.h: Include <sys/param.h>.
20613         (MAX): Macro removed.
20614
20615         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
20616         Move #define and #undef of memmove to just before and after
20617         including <string.h>.
20618
20619         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
20620         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
20621         and after including <string.h>.  Move declarations of
20622         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
20623         to before #include "string/memmove.c".
20624
20625         * include/dirent.h: Declare __getdirentries.
20626
20627         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
20628         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
20629
20630 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
20631
20632         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
20633         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
20634         * sysdeps/i386/configure: Regenerated.
20635         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
20636         STABS_CURRENT_FILE, and STABS_FUN.
20637         (END): Remove call to STABS_FUN_END.
20638         (STABS_CURRENT_FILE1): Delete.
20639         (STABS_CURRENT_FILE): Likewise.
20640         (STABS_FUN): Likewise.
20641         (STABS_FUN_END): Likewise.
20642         (STABS_FUN2): Likewise.
20643         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
20644         * sysdeps/x86_64/configure: Regenerated.
20645
20646 2012-08-14  Roland McGrath  <roland@hack.frob.com>
20647
20648         * elf/dl-open.c: Include <atomic.h>.
20649         * elf/dl-lookup.c: Likewise.
20650
20651 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
20652
20653         * sysdeps/unix/sysv/linux/kernel-features.h
20654         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
20655         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
20656         unconditionally.
20657         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
20658         unconditionally.
20659         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
20660         condition on __ASSUME_CLONE_THREAD_FLAGS.
20661
20662 2012-08-14  Andreas Jaeger  <aj@suse.de>
20663
20664         * sysdeps/i386/fpu/libm-test-ulps: Update.
20665
20666 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
20667
20668         * include/atomic.h (atomic_exchange_and_add): Split into ...
20669         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
20670         New atomic macros.
20671
20672 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
20673
20674         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20675
20676 2012-08-13  Jeff Law <law@redhat.com>
20677
20678         * manual/stdio.texi (snprintf): Clarify handling of the trailing
20679         null byte in the output string.
20680
20681 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
20682
20683         * sysdeps/unix/sysv/linux/kernel-features.h
20684         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
20685         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
20686         (__ASSUME_ARG_MAX_STACK_BASED): Define.
20687         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
20688         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
20689         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
20690         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
20691
20692 2012-08-09  Jeff Law <law@redhat.com>
20693
20694         [BZ #13939]
20695         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
20696         When avoid_arena is set, don't retry in the that arena.  Pick the
20697         next one, whatever it might be.
20698         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
20699         (arena_lock): Pass in new parameter to arena_get2.
20700         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
20701         arena_get2.
20702         (__libc_malloc): Unify retrying after main arena failure with
20703         __libc_memalign version.
20704         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
20705
20706 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20707
20708         [BZ #14166]
20709         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
20710         to __redirect_strstr.
20711         (__strstr_sse42): Use typeof __redirect_strstr.
20712         (__strstr_ia32): Likewise.
20713         (__libc_strstr): New prototype.
20714         (strstr): Renamed to ...
20715         (__libc_strstr): This.
20716         (strstr): New strong alias of __libc_strstr.
20717         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
20718         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
20719         __redirect_time.
20720         Include <time.h>.
20721         (__libc_time): New prototype.
20722         (time_ifunc): Replace time with __libc_time.
20723         (time): New strong alias and hidden definition of __libc_time.
20724         (__GI_time): Remove strong alias.
20725         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
20726         Include <stddef.h>.
20727         (memmove): Redefined to __redirect_memmove.
20728         (__memmove_sse2): Use typeof __redirect_memmove.
20729         (__memmove_ssse3): Likewise.
20730         (__memmove_ssse3_back): Likewise.
20731         (__libc_memmove): New prototype.
20732         (memmove): Renamed to ...
20733         (__libc_memmove): This.
20734         (memmove): New strong alias of __libc_memmove.
20735
20736 2012-08-08  Mark Salter  <msalter@redhat.com>
20737
20738         * elf/elf.h
20739         (R_MN10300_TLS_GD): Define.
20740         (R_MN10300_TLS_LD): Likewise.
20741         (R_MN10300_TLS_LDO): Likewise.
20742         (R_MN10300_TLS_GOTIE): Likewise.
20743         (R_MN10300_TLS_IE): Likewise.
20744         (R_MN10300_TLS_LE): Likewise.
20745         (R_MN10300_TLS_DTPMOD): Likewise.
20746         (R_MN10300_TLS_DTPOFF): Likewise.
20747         (R_MN10300_TLS_TPOFF): Likewise.
20748         (R_MN10300_SYM_DIFF): Likewise.
20749         (R_MN10300_ALIGN): Likewise.
20750         (R_MN10300_NUM): Update.
20751
20752 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
20753
20754         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
20755         Remove.
20756
20757 2012-08-08  Roland McGrath  <roland@hack.frob.com>
20758
20759         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
20760
20761         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
20762         sysdeps/unix -> sysdeps/posix move.
20763         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
20764
20765 2012-08-07      Allan McRae     <allan@archlinux.org>
20766
20767         [BZ #14303]
20768         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
20769         (SUNOS_CPP): Likewise.
20770         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
20771         not found.
20772         (open_input): Call CPP using execvp.
20773
20774 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20775
20776         * sysdeps/unix/sysv/linux/kernel-features.h
20777         (__ASSUME_PROT_GROWSUPDOWN): Remove.
20778         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20779         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20780         (__ASSUME_WAITID_SYSCALL): Likewise.
20781         * sysdeps/unix/sysv/linux/dl-execstack.c
20782         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
20783         code unconditional.
20784         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
20785         conditional code.
20786         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
20787         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
20788         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
20789         code.
20790         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
20791         unconditional.
20792         [__ASSUME_WAITID_SYSCALL]: Likewise.
20793         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
20794
20795 2012-08-07  Roland McGrath  <roland@hack.frob.com>
20796
20797         * sysdeps/unix/closedir.c: Renamed to ...
20798         * sysdeps/posix/closedir.c: ... here.
20799         * sysdeps/unix/dirfd.c: Renamed to ...
20800         * sysdeps/posix/dirfd.c: ... here.
20801         * sysdeps/unix/dirstream.h: Renamed to ...
20802         * sysdeps/posix/dirstream.h: ... here.
20803         * sysdeps/unix/fdopendir.c: Renamed to ...
20804         * sysdeps/posix/fdopendir.c: ... here.
20805         * sysdeps/unix/opendir.c: Renamed to ...
20806         * sysdeps/posix/opendir.c: ... here.
20807         * sysdeps/unix/readdir.c: Renamed to ...
20808         * sysdeps/posix/readdir.c: ... here.
20809         * sysdeps/unix/readdir_r.c: Renamed to ...
20810         * sysdeps/posix/readdir_r.c: ... here.
20811         * sysdeps/unix/rewinddir.c: Renamed to ...
20812         * sysdeps/posix/rewinddir.c: ... here.
20813         * sysdeps/unix/seekdir.c: Renamed to ...
20814         * sysdeps/posix/seekdir.c: ... here.
20815         * sysdeps/unix/telldir.c: Renamed to ...
20816         * sysdeps/posix/telldir.c: ... here.
20817         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
20818         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
20819         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
20820         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
20821
20822         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
20823         * bits/fcntl.h: ... here.
20824
20825         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
20826         not 0.
20827         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
20828         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
20829         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
20830         (struct flock): Move l_start, l_len to the beginning.
20831         Use __pid_t for l_pid.
20832         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
20833         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
20834         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
20835         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
20836         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
20837         [__USE_LARGEFILE64] (struct flock64): New type.
20838         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
20839
20840         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
20841         * bits/dirent.h: ... here.
20842
20843         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
20844         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
20845
20846 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
20847
20848         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20849         Change from 2.6.0 to 2.6.16.
20850         * sysdeps/unix/sysv/linux/configure: Regenerated.
20851         * sysdeps/unix/sysv/linux/kernel-features.h
20852         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
20853         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
20854         version.
20855         (__ASSUME_UTIMES): Likewise.
20856         (__ASSUME_CLONE_STOPPED): Remove.
20857         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
20858         architectures, not kernel version.
20859         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
20860         (__ASSUME_NO_CLONE_DETACHED): Likewise.
20861         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
20862         (__ASSUME_WAITID_SYSCALL): Likewise.
20863         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
20864         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
20865         * README: State 2.6.16 as minimum Linux kernel version.  Do not
20866         refer to older versions.
20867
20868 2012-08-06  Roland McGrath  <roland@hack.frob.com>
20869
20870         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
20871         Define alphasort64 as an alias.
20872         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
20873         Define versionsort64 as an alias.
20874         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
20875         Define scandir64 as an alias.
20876         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
20877         Define scandirat64 as an alias.
20878         * dirent/alphasort64.c (alphasort64):
20879         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
20880         * dirent/versionsort64.c: Likewise.
20881         * dirent/scandir64.c: Likewise.
20882         * dirent/scandirat64.c: Likewise.
20883         * sysdeps/wordsize-64/alphasort.c: File removed.
20884         * sysdeps/wordsize-64/alphasort64.c: File removed.
20885         * sysdeps/wordsize-64/scandir.c: File removed.
20886         * sysdeps/wordsize-64/scandir64.c: File removed.
20887         * sysdeps/wordsize-64/scandirat.c: File removed.
20888         * sysdeps/wordsize-64/scandirat64.c: File removed.
20889         * sysdeps/wordsize-64/versionsort.c: File removed.
20890         * sysdeps/wordsize-64/versionsort64.c: File removed.
20891         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
20892         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
20893         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
20894         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
20895         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
20896         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
20897         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
20898         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
20899
20900         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
20901         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20902         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
20903         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20904         [defined __arch64__ || defined __sparcv9]
20905         (__INO_T_MATCHES_INO64_T): New macro.
20906         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20907         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
20908         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
20909         * sysdeps/unix/sysv/linux/bits/dirent.h
20910         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
20911         (_DIRENT_MATCHES_DIRENT64): New macro.
20912
20913         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
20914         Define lockf64 as an alias.
20915         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
20916         Define fseeko64 as an alias.
20917         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
20918         Define ftello64 as an alias.
20919         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
20920         Define _IO_fgetpos64 and fgetpos64 as aliases.
20921         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
20922         Define _IO_fsetpos64 and fsetpos64 as aliases.
20923         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
20924         Conditionalize body on this.
20925         * libio/fseeko64.c: Likewise.
20926         * libio/ftello64.c: Likewise.
20927         * libio/iofgetpos64.c: Likewise.
20928         * libio/iofsetpos64.c: Likewise.
20929         * sysdeps/wordsize-64/lockf.c: File removed.
20930         * sysdeps/wordsize-64/lockf64.c: File removed.
20931         * sysdeps/wordsize-64/fseeko.c: File removed.
20932         * sysdeps/wordsize-64/fseeko64.c: File removed.
20933         * sysdeps/wordsize-64/ftello.c: File removed.
20934         * sysdeps/wordsize-64/ftello64.c: File removed.
20935         * sysdeps/wordsize-64/iofgetpos.c: File removed.
20936         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
20937         * sysdeps/wordsize-64/iofsetpos.c: File removed.
20938         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
20939         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
20940         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
20941         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
20942         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
20943         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
20944         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
20945         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
20946         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
20947         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
20948         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
20949
20950         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20951         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
20952         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
20953         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20954         [defined __arch64__ || defined __sparcv9]
20955         (__OFF_T_MATCHES_OFF64_T): New macro.
20956         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
20957         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
20958         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20959         (__OFF_T_MATCHES_OFF64_T): New macro.
20960
20961 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20962
20963         * stdlib/secure-getenv.c (__secure_getenv): Replace
20964         GLIBC_2_16 with GLIBC_2_17.
20965
20966 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
20967
20968         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
20969         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20970
20971 2012-08-03  David S. Miller  <davem@davemloft.net>
20972
20973         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20974
20975 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
20976
20977         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
20978         Remove.
20979         (__ASSUME_CORRECT_SI_PID): Likewise.
20980         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
20981         (__ASSUME_TMPFS_NAME): Likewise.
20982         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
20983         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
20984         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
20985         (HAVE_AUX_SECURE): Make definition unconditional.
20986         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
20987         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
20988
20989 2012-08-03  Roland McGrath  <roland@hack.frob.com>
20990
20991         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
20992         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
20993         * sysdeps/mach/hurd/eloop-threshold.h: New file.
20994         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20995         __eloop_threshold instead of SYMLOOP_MAX.
20996
20997         * sysdeps/generic/eloop-threshold.h: New file.
20998         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
20999         of MAXSYMLINKS.
21000         * elf/chroot_canon.c (chroot_canon): Likewise.
21001
21002 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
21003
21004         [BZ #13717]
21005         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21006         Change to 2.6.0 everywhere.
21007         * sysdeps/unix/sysv/linux/configure: Regenerated.
21008         * sysdeps/unix/sysv/linux/kernel-features.h
21009         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
21010         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
21011         kernel versions.
21012         (__ASSUME_POSIX_TIMERS): Define unconditionally.
21013         (__ASSUME_FUTEX_REQUEUE): Remove.
21014         (__ASSUME_STATFS64): Define unconditionally.
21015         (__ASSUME_AT_SECURE): Likewise.
21016         (__ASSUME_CORRECT_SI_PID): Likewise.
21017         (__ASSUME_TGKILL): Define without depending on kernel version for
21018         i386.
21019         (__ASSUME_UTIMES): Likewise.
21020         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
21021         kernel version.
21022         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
21023         (__ASSUME_TMPFS_NAME): Likewise.
21024         * README: Update reference to Linux kernel versions.
21025
21026 2012-08-02  Marek Polacek  <polacek@redhat.com>
21027
21028         [BZ# 14150]
21029         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
21030         libc_cv_asm_type_prefix with %.
21031         * configure: Regenerated.
21032         * include/libc-symbols.h: Remove comment about
21033         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
21034         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
21035         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
21036         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
21037         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
21038         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
21039         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
21040         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
21041         * elf/tst-unique2mod1.c: Likewise.
21042         * elf/tst-unique1mod2.c: Likewise.
21043         * elf/tst-unique1mod1.c: Likewise.
21044         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
21045         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
21046         Replace ASM_TYPE_DIRECTIVE with .type.
21047         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21048         * sysdeps/i386/sysdep.h: Likewise.
21049         * sysdeps/x86_64/sysdep.h: Likewise.
21050         * sysdeps/sh/sysdep.h: Likewise.
21051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
21052         Do not define ASM_TYPE_DIRECTIVE.
21053         * sysdeps/powerpc/sysdep.h: Likewise.
21054         * sysdeps/powerpc/powerpc32/sysdep.h:
21055         Replace ASM_TYPE_DIRECTIVE with .type.
21056         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21057         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21058         * sysdeps/i386/fpu/e_powf.S: Likewise.
21059         * sysdeps/i386/fpu/e_expl.S: Likewise.
21060         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21061         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21062         * sysdeps/i386/fpu/e_pow.S: Likewise.
21063         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21064         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21065         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21066         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21067         * sysdeps/i386/fpu/e_log2.S: Likewise.
21068         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21069         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21070         * sysdeps/i386/fpu/e_powl.S: Likewise.
21071         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21072         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21073         * sysdeps/i386/fpu/e_logl.S: Likewise.
21074         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21075         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21076         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21077         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21078         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21079         * sysdeps/i386/fpu/e_log.S: Likewise.
21080         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21081         * sysdeps/i386/fpu/e_logf.S: Likewise.
21082         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21083         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21084         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21085         * sysdeps/i386/fpu/e_log10.S: Likewise.
21086         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21087         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21088         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21089         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21090         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21091         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
21092         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21093         * sysdeps/i386/i686/strtok.S: Likewise.
21094         * sysdeps/i386/i386-mcount.S: Likewise.
21095         * sysdeps/i386/strtok.S: Likewise.
21096         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
21097         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21098         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21099         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21100         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
21101         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21102         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21103         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21104         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21105         * sysdeps/x86_64/_mcount.S: Likewise.
21106         * sysdeps/x86_64/strtok.S: Likewise.
21107         * sysdeps/sh/_mcount.S: Likewise.
21108
21109 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21110
21111         * libio/iofopen.c: Include <fcntl.h>.
21112         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
21113         (_IO_fopen64, fopen64): Define as aliases.
21114         * libio/iofopen64.c: Include <fcntl.h>.
21115         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
21116         Conditionalize body on this.
21117         * sysdeps/wordsize-64/iofopen.c: File removed.
21118         * sysdeps/wordsize-64/iofopen64.c: File removed.
21119
21120 2012-08-01  Marek Polacek  <polacek@redhat.com>
21121
21122         * libc/Makeconfig: Use elf in place of binfmt-subdir.
21123         Use dlfcn directly instead of a variable.
21124         (binfmt-subdir): Do not define.
21125         (dlfcn): Likewise.
21126
21127 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
21128
21129         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
21130         Remove all definitions.
21131         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
21132         <kernel-features.h>.
21133         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21134         (miss_F_GETOWN_EX): Remove all definitions.
21135         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
21136         macro definition.
21137         [!__ASSUME_FCNTL64]: Remove conditional code.
21138         [__ASSUME_FCNTL64]: Make code unconditional.
21139         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
21140         <kernel-features.h>.
21141         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
21142         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
21143         (lockf64) [__NR_fcntl64]: Make code unconditional.
21144         (lockf64) [__ASSUME_FCNTL64]: Likewise.
21145
21146         * sysdeps/unix/sysv/linux/kernel-features.h
21147         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
21148         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
21149         Make code unconditional.
21150         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21151         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
21153         [__NR_vfork]: Make code unconditional.
21154         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21155         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
21157         [__NR_vfork]: Make code unconditional.
21158         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
21159         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
21160
21161 2012-08-01  Roland McGrath  <roland@hack.frob.com>
21162
21163         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
21164         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
21165
21166         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21167         Define mkstemp64 as an alias.
21168         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21169         Define mkstemps64 as an alias.
21170         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21171         Define mkostemp64 as an alias.
21172         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
21173         Define mkostemps64 as an alias.
21174         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
21175         Conditionalize body on this.
21176         * misc/mkostemp64.c: Likewise.
21177         * misc/mkostemps64.c: Likewise.
21178         * misc/mkstemps64.c: Likewise.
21179         * sysdeps/wordsize-64/mkstemp64.c: File removed.
21180         * sysdeps/wordsize-64/mkostemp64.c: File removed.
21181         * sysdeps/wordsize-64/mkostemp.c: File removed.
21182         * sysdeps/wordsize-64/mkstemp.c: File removed.
21183         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
21184         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
21185         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
21186         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
21187
21188         [BZ #14138]
21189         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
21190         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
21191         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
21192         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
21193
21194         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
21195         compat_symbol macros from <shlib-compat.h> rather than the underlying
21196         default_symbol_version and symbol_version macros, so that DEFAULT
21197         lines in shlib-versions are respected.
21198         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
21199
21200 2012-08-01  Florian Weimer  <fweimer@redhat.com>
21201
21202         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
21203         Declare with warn_unused_result.
21204         (setgid, setregid, setegid, setresgid): Likewise.
21205         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
21206         Likewise.
21207         * WUR-REPORT: Remove set*id functions.
21208
21209 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
21210
21211         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
21212
21213 2012-07-31  Roland McGrath  <roland@hack.frob.com>
21214
21215         [BZ #10191]
21216         * include/sys/socket.h (__libc_accept, __libc_accept4):
21217         Add attribute_hidden.
21218         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
21219
21220         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
21221         use of PTR_MANGLE.
21222         * inet/getnetgrent_r.c (setup): Likewise.
21223
21224         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
21225
21226 2012-07-31  David S. Miller  <davem@davemloft.net>
21227
21228         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21229
21230 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
21231
21232         [BZ #13629]
21233         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
21234         value between 1.0 and 2.0 and smaller part has absolute value less
21235         than 1.0.
21236         * math/s_clog10.c (__clog10): Likewise.
21237         * math/s_clog10f.c (__clog10f): Likewise.
21238         * math/s_clog10l.c (__clog10l): Likewise.
21239         * math/s_clogf.c (__clogf): Likewise.
21240         * math/s_clogl.c (__clogl): Likewise.
21241         * math/libm-test.inc (clog_test): Add more tests.
21242         (clog10_test): Likewise.
21243         * sysdeps/i386/fpu/libm-test-ulps: Update.
21244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21245
21246 2012-07-31  Florian Weimer  <fweimer@redhat.com>
21247
21248         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
21249         Exit with zero in case no suitable GID is found, and write a
21250         message to standard error.
21251
21252 2012-07-30  Roland McGrath  <roland@hack.frob.com>
21253
21254         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
21255         rather than to 1.
21256         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
21257         (MAXPATHLEN): Removed.
21258         (NOGROUP, NODEV): New macros.
21259         (setbit, clrbit, isset, isclr): New macros.
21260         (howmany, roundup, powerof2): New macros.
21261         (DEV_BSIZE): New macro.
21262
21263         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
21264         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
21265
21266         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
21267         definition on [!__NO_LONG_DOUBLE_MATH].
21268
21269         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
21270         PTR_MANGLE and PTR_DEMANGLE.
21271
21272         * socket/accept4.c (accept4): Rename to __libc_accept4.
21273         Define accept4 as a weak alias.
21274
21275         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
21276         on [_DIRENT_HAVE_D_TYPE].
21277         * io/ftw.c (ftw_dir): Likewise.
21278
21279         * io/xmknod.c (__xmknod): Don't check PATH for being null.
21280
21281         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
21282
21283         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
21284         Use the BSD numbers rather than the arbitrary ones we had.
21285         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
21286         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
21287         (SIGXCPU, SIGXFSZ): New macros.
21288         (_NSIG): Now 32.
21289
21290         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
21291         initializer on [_LIBC_REENTRANT].
21292
21293         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
21294         definitions inside [_POSIX_MAPPED_FILES].
21295
21296         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
21297
21298         * dirent/opendir.c: Include <fcntl.h>.
21299
21300         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
21301         (__libc_getspecific): Likewise.
21302         (__libc_key_create): Likewise.
21303
21304         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
21305         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
21306         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
21307         (tmpfile64): Define as alias.
21308         * sysdeps/wordsize-64/tmpfile.c: File removed.
21309         * sysdeps/wordsize-64/tmpfile64.c: File removed.
21310         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
21311         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
21312
21313         * stdio-common/vfscanf.c: Include <stdbool.h>.
21314         * nss/makedb.c: Likewise.
21315         * stdio-common/_i18n_number.h: Likewise.
21316         * argp/argp-help.c: Likewise.
21317         * posix/wordexp.c: Likewise.
21318         * sysdeps/posix/spawni.c: Likewise.
21319         * nss/nss_files/files-initgroups.c: Likewise.
21320         * stdio-common/reg-modifier.c: Include <stdlib.h>.
21321         * nss/nss_files/files-initgroups.c: Likewise.
21322         * nss/nss_db/db-netgrp.c: Likewise.
21323         * nss/nss_db/db-initgroups.c: Likewise.
21324         * io/fchmodat.c: Include <sys/stat.h>.
21325
21326         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
21327         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
21328
21329         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
21330         [HAVE_MMAP].
21331
21332         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
21333         Add multiple inclusion protection.
21334
21335 2012-07-27  David S. Miller  <davem@davemloft.net>
21336
21337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21338
21339 2012-07-27  Gary Benson  <gbenson@redhat.com>
21340
21341         [BZ #14298]
21342         * elf/rtld.c: Include <stap-probe.h>.
21343         (dl_main): Added static probes "init_start" and "init_complete".
21344         * elf/dl-load.c: Include <stap-probe.h>.
21345         (lose): Take new parameter "nsid".
21346         Added static probe "map_failed".
21347         (_dl_map_object_from_fd): Pass namespace id to lose.
21348         Added static probe "map_start".
21349         (open_verify): Pass namespace id to lose.
21350         * elf/dl-open.c: Include <stap-probe.h>.
21351         (dl_open_worker) Added static probes "map_complete", "reloc_start"
21352         and "reloc_complete".
21353         * elf/dl-close.c: Include <stap-probe.h>.
21354         (_dl_close_worker): Added static probes "unmap_start" and
21355         "unmap_complete".
21356         * elf/rtld-debugger-interface.txt: New file documenting the above.
21357
21358 2012-07-26  Roland McGrath  <roland@hack.frob.com>
21359
21360         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
21361         rather than a string variable.
21362         * sunrpc/rpc_main.c (h_output): Likewise.
21363         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
21364
21365 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
21366
21367         * inet/check_native.c: New file.
21368
21369 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
21370
21371         [BZ #13629]
21372         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
21373         if larger part has absolute value 1.0.
21374         * math/s_clog10.c (__clog10): Likewise.
21375         * math/s_clog10f.c (__clog10f): Likewise.
21376         * math/s_clog10l.c (__clog10l): Likewise.
21377         * math/s_clogf.c (__clogf): Likewise.
21378         * math/s_clogl.c (__clogl): Likewise.
21379         * math/libm-test.inc (clog_test): Add more tests.
21380         (clog10_test): Likewise.
21381         * sysdeps/i386/fpu/libm-test-ulps: Update.
21382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21383
21384         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
21385         (pltexit): Likewise.
21386         (La_regs): Likewise.
21387         (La_retval): Likewise.
21388         (int_retval): Likewise.
21389         Update #error for removed macros to refer only to definitions in
21390         tst-audit.h.
21391         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
21392         macro.
21393         (pltexit): Likewise.
21394         (La_regs): Likewise.
21395         (La_retval): Likewise.
21396         (int_retval): Likewise.
21397         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
21398         macro.
21399         (pltexit): Likewise.
21400         (La_regs): Likewise.
21401         (La_retval): Likewise.
21402         (int_retval): Likewise.
21403         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
21404         macro.
21405         (pltexit): Likewise.
21406         (La_regs): Likewise.
21407         (La_retval): Likewise.
21408         (int_retval): Likewise.
21409         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
21410         macro.
21411         (pltexit): Likewise.
21412         (La_regs): Likewise.
21413         (La_retval): Likewise.
21414         (int_retval): Likewise.
21415         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
21416         macro.
21417         (pltexit): Likewise.
21418         (La_regs): Likewise.
21419         (La_retval): Likewise.
21420         (int_retval): Likewise.
21421         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
21422         macro.
21423         (pltexit): Likewise.
21424         (La_regs): Likewise.
21425         (La_retval): Likewise.
21426         (int_retval): Likewise.
21427         * sysdeps/generic/tst-audit.h: Update comment to refer only to
21428         macro definitions in tst-audit.h.
21429         * sysdeps/i386/tst-audit.h: New file.
21430         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
21431         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
21432         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
21433         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
21434         * sysdeps/sh/tst-audit.h: Likewise.
21435         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
21436         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
21437         * sysdeps/x86_64/tst-audit.h: Likewise.
21438
21439 2012-07-26  Andreas Jaeger  <aj@suse.de>
21440
21441         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
21442         ptrace.
21443
21444         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
21445         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
21446         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
21447         PTRACE_O_MASK.
21448         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
21449         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
21450         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
21451
21452         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
21453         value.
21454
21455         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
21456         _sigsys.
21457         (si_call_addr, si_syscall, si_arch): Define new macro.
21458         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
21459         _sigsys.
21460         (si_call_addr, si_syscall, si_arch): Define new marcro.
21461         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
21462         _sigsys.
21463         (si_call_addr, si_syscall, si_arch): Define new macro.
21464         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
21465         _sigsys.
21466         (si_call_addr, si_syscall, si_arch): Define new macro.
21467
21468 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21469
21470         [BZ #13717]
21471         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21472         Change to 2.4.21 where previously 2.4.1.
21473         * sysdeps/unix/sysv/linux/configure: Regenerated.
21474         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
21475         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
21476         Linux kernel version.
21477         (__ASSUME_STD_AUXV): Remove.
21478         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
21479         kernel version.
21480         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
21481         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
21482         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
21483         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
21484         (__ASSUME_NETLINK_SUPPORT): Likewise.
21485         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
21486         (__no_netlink_support): Remove conditional definition.
21487         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
21488         Remove.
21489         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21490         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
21491         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
21492         (if_nameindex_ioctl): Remove.
21493         (if_nameindex_netlink): Do not handle __no_netlink_support.
21494         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21495         code.
21496         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
21497         Remove conditional code.
21498         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
21499         code.
21500         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
21501         unconditional.
21502         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
21503         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
21504         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
21505         Remove.
21506         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
21507         [!__ASSUME_STD_AUXV]: Remove conditional code.
21508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
21509         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
21510         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
21511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
21512         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
21513         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21514         code.
21515         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
21517         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
21518         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21519         conditional code.
21520         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
21521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
21522         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
21523         code.
21524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
21525         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
21526         conditional code.
21527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
21528         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21529         code unconditional.
21530         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21531         conditional code.
21532         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21533         unconditional.
21534         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21535         conditional code.
21536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21537         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21538         unconditional.
21539         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21540         conditional code.
21541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
21542         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21543         code unconditional.
21544         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21545         conditional code.
21546         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21547         unconditional.
21548         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21549         conditional code.
21550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
21551         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
21552         code unconditional.
21553         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21554         conditional code.
21555         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
21556         unconditional.
21557         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
21558         conditional code.
21559
21560 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
21561
21562         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
21563         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
21564         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
21565         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
21566         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
21567         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
21568         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
21569         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
21570         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
21571         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
21572         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
21573         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
21574         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
21575         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
21576         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
21577         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
21578         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
21579         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
21580         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
21581         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
21582         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
21583         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
21584         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21585
21586 2012-07-25  Florian Weimer  <fweimer@redhat.com>
21587
21588         * Versions.def: Add GLIBC_2.17.
21589         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
21590         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
21591         Introduce __libc_secure_getenv.
21592         * stdlib/Versions (2.17): Add secure_getenv
21593         (GLIBC_PRIVATE): Add __libc_secure_getenv.
21594         * stdlib/secure-getenv.c: Rename __secure_getenv to
21595         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
21596         symbol __secure_getenv for GLIBC_2.0.
21597         * stdlib/tst-secure-getenv.c: New.
21598         * stdlib/Makefile (tests): Add testcase.
21599         * manual/startup.texi (Environment Access): Document
21600         secure_getenv.
21601         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
21602         __libc_secure_getenv.
21603         * inet/ruserpass.c (ruserpass): Likewise.
21604         * malloc/mtrace.c (mtrace): Likewise.
21605         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
21606         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
21607         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
21608         * sysdeps/posix/tempname.c: Likewise.  Evaluate
21609         HAVE_SECURE_GETENV.
21610         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
21611         __secure_getenv to __libc_secure_getenv.
21612         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
21613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21614         Likewise.
21615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21616         Likewise.
21617         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
21618         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
21619         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21620         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
21621         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
21622         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21623         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
21624
21625 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
21626
21627         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
21628         (struct La_i86_retval): Likewise.
21629         (struct La_x86_64_regs): Likewise.
21630         (struct La_x86_64_retval): Likewise.
21631         (struct La_x32_regs): Likewise.
21632         (struct La_x32_retval): Likewise.
21633         (struct La_ppc32_regs): Likewise.
21634         (struct La_ppc32_retval): Likewise.
21635         (struct La_ppc64_regs): Likewise.
21636         (struct La_ppc64_retval): Likewise.
21637         (struct La_sh_regs): Likewise.
21638         (struct La_sh_retval): Likewise.
21639         (struct La_s390_32_regs): Likewise.
21640         (struct La_s390_32_retval): Likewise.
21641         (struct La_s390_64_regs): Likewise.
21642         (struct La_s390_64_retval): Likewise.
21643         (struct La_sparc32_regs): Likewise.
21644         (struct La_sparc32_retval): Likewise.
21645         (struct La_sparc64_regs): Likewise.
21646         (struct La_sparc64_retval): Likewise.
21647         (struct audit_ifaces): Remove architecture-specific pltenter and
21648         pltexit members.
21649         * sysdeps/i386/ldsodefs.h: New file.
21650         * sysdeps/powerpc/ldsodefs.h: Likewise.
21651         * sysdeps/s390/ldsodefs.h: Likewise.
21652         * sysdeps/sh/ldsodefs.h: Likewise.
21653         * sysdeps/sparc/ldsodefs.h: Likewise.
21654         * sysdeps/x86_64/ldsodefs.h: Likewise.
21655
21656 2012-07-25  Marek Polacek  <polacek@redhat.com>
21657
21658         [BZ #6808]
21659         * math/libm-test.inc (yn_test): Add another test.
21660         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
21661         to ERANGE when the result is +-Inf.
21662         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
21663         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21664         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
21665         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
21666
21667 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
21668
21669         * conform/data/time.h-data (NULL): Use macro-constant.  Require
21670         equal to 0.
21671         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
21672         clock_t.
21673         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
21674
21675 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
21676
21677         * configure.in <sysdeps resolving>: Correct printing
21678         Implies_before.
21679         * configure: Regenerate.
21680
21681 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
21682
21683         * math/w_ilogb.c: Include <limits.h>.
21684         * math/w_ilogbl.c: Likewise.
21685
21686 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21687
21688         * manual/lang.texi (__va_copy): Document primarily as ISO C99
21689         va_copy.  Document allowing for unavailable va_copy only as
21690         pre-C99 compatibility.
21691         * manual/string.texi (Copying and Concatenation): Use va_copy
21692         instead of __va_copy in concat example.
21693
21694 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
21695
21696         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
21697         (__sendto): Use create_address_port.  Initialize APORT and deallocate
21698         it if not null.
21699
21700         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
21701         with O_NOLINK passed to __file_name_lookup.
21702
21703         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
21704         with O_NOLINK passed to __file_name_lookup.
21705
21706         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
21707         negative N or less than NGIDS.
21708
21709         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
21710         type to string_t.  Set ERANGE as errno and return it if NAME is not big
21711         enough.  Use memcpy instead of strncpy.
21712
21713 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
21714
21715         * elf/Makefile (check-data): Remove.
21716         (localplt.data): New vpath directive.
21717         ($(objpfx)check-localplt.out): Use localplt.data from vpath
21718         instead of $(check-data).
21719         * scripts/data/localplt-generic.data: Move to ...
21720         * sysdeps/generic/localplt.data: ... here.
21721         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
21722         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
21723         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
21724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
21725         ... here.
21726         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
21727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
21728         ... here.
21729         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
21730         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
21731         ... here.
21732         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
21733         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
21734         ... here.
21735         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
21736         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
21737         ... here.
21738         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
21739         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
21740         ... here.
21741
21742 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21743
21744         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
21745         PPC32 and PPC64 files.
21746         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
21747         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
21748
21749 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21750
21751         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
21752         __makecontext_ret to ...
21753         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21754         ... here and call exit if uc_link is NULL.  New file.
21755         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
21756         __makecontext_ret.S.
21757         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
21758         __makecontext_ret to ...
21759         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21760         ... here and call exit if uc_link is NULL.  New file.
21761         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
21762         __makecontext_ret.S.
21763
21764 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21765
21766         * elf/elf.h (R_390_IRELATIVE): New definition.
21767         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
21768         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
21769         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
21770         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
21771         (elf_machine_lazy_rel): Likewise.
21772         * sysdeps/s390/dl-irel.h: New file.
21773         * sysdeps/s390/s390-64/memcpy.S: New asm code.
21774         * sysdeps/s390/s390-64/memset.S: New asm code.
21775         * sysdeps/s390/s390-64/memcmp.S: New asm code.
21776         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
21777         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
21778         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
21779         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
21780         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
21781         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
21782         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
21783         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
21784         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
21785         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
21786         * sysdeps/s390/s390-32/memcpy.S: New asm code.
21787         * sysdeps/s390/s390-32/memset.S: New asm code.
21788         * sysdeps/s390/s390-32/memcmp.S: New asm code.
21789
21790 2012-07-17  Marek Polacek  <polacek@redhat.com>
21791
21792         [BZ #14349]
21793         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
21794         * sysdeps/s390/s390-64/configure.in: Likewise.
21795         * sysdeps/sparc/configure.in: Likewise.
21796         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
21797         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
21798         * sysdeps/i386/configure.in: Likewise.
21799         * sysdeps/x86_64/configure.in: Likewise.
21800         * sysdeps/sh/configure.in: Likewise.
21801         * sysdeps/s390/s390-32/configure: Regenerated.
21802         * sysdeps/s390/s390-64/configure: Likewise.
21803         * sysdeps/x86_64/configure: Likewise.
21804         * sysdeps/sh/configure: Likewise.
21805         * sysdeps/powerpc/powerpc64/configure: Likewise.
21806         * sysdeps/powerpc/powerpc32/configure: Likewise.
21807         * sysdeps/sparc/configure: Likwise.
21808         * sysdeps/i386/configure: Likewise.
21809
21810         * elf/dl-open.c: Comment fixes.
21811
21812 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
21813
21814         * Makefile [CXX] (check-data): Remove.
21815         [CXX] (c++-types.data): New vpath directive.
21816         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
21817         vpath.  Do not allow for C++ type data being missing.
21818         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
21819         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
21820         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
21821         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
21822         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
21823         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
21824         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
21825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
21826         ... here.
21827         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
21828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
21829         ... here.
21830         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
21831         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
21832         ... here.
21833         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
21834         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
21835         ... here.
21836         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
21837         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
21838         ... here.
21839         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
21840         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
21841         ... here.
21842         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
21843         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
21844         ... here.
21845         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
21846         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
21847
21848         * elf/tls-macros.h (TLS_LE): Move architecture-specific
21849         definitions to architecture-specific files.
21850         (TLS_IE): Likewise.
21851         (TLS_LD): Likewise.
21852         (TLS_GD): Likewise.
21853         * sysdeps/i386/tls-macros.h: New file.
21854         * sysdeps/powerpc/tls-macros.h: Likewise.
21855         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
21856         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
21857         * sysdeps/sh/tls-macros.h: Likewise.
21858         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
21859         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
21860         * sysdeps/x86_64/tls-macros.h: Likewise.
21861
21862 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21863
21864         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
21865         zero value for regular exit case.
21866
21867         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
21868         (__start_context): Preserve zero value for regular exit case.
21869
21870 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
21871             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21872
21873         * manual/setjmp.texi (setcontext): Clarify normal process
21874         termination when uc_link is the null pointer.
21875         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
21876         exit call.
21877
21878 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
21879
21880         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
21881         preprocessor.  Test for each exception mask separately.
21882
21883 2012-07-16  Andreas Jaeger  <aj@suse.de>
21884
21885         * po/ru.po: Update from translation team.
21886
21887 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
21888
21889         * conform/data/string.h-data (NULL): Use macro-constant.  Require
21890         equal to 0.
21891         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
21892         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
21893         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
21894         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
21895         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21896
21897 2012-07-13  Andreas Jaeger  <aj@suse.de>
21898
21899         * po/fr.po: Update from translation team.
21900
21901 2012-07-12  Marek Polacek  <polacek@redhat.com>
21902
21903         [BZ #14173]
21904         * math/libm-test.inc (yn_test): Add test for BZ #14173.
21905         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
21906         loop condition.
21907
21908 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
21909
21910         [BZ #13717]
21911         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
21912         Change to 2.4.1 where previously 2.4.0.
21913         * sysdeps/unix/sysv/linux/configure: Regenerated.
21914         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
21915         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
21916         version.
21917         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
21918         (__ASSUME_AT_CLKTCK): Remove.
21919         (__ASSUME_AT_PAGESIZE): Likewise.
21920         (__ASSUME_AT_XID): Likewise.
21921         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
21922         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
21923         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
21924         unconditionally.
21925         (HAVE_AUX_PAGESIZE): Likewise.
21926         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
21927         [__ASSUME_AT_CLKTCK]: Make code unconditional.
21928         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
21929
21930 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
21931
21932         [BZ #14307]
21933         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
21934         the temporary buffer used to invoke __gethostbyname2_r,
21935         __gethostbyaddr_r and gethostbyname4_r to make room for struct
21936         host_data / struct gaih_addrtuple.
21937         * resolv/nss_dns/dns-host.c (global scope): Move definition of
21938         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
21939         header file nss/nsswitch.h.
21940         * nss/nsswitch.h (global scope): Add definition of implementation
21941         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
21942         resolv/nss_dns/dns-host.c).
21943
21944 2012-07-11  Andreas Jaeger  <aj@suse.de>
21945
21946         * po/fr.po: Update from translation team.
21947
21948         * po/sv.po: Update from translation team
21949         * po/fr.po: Another update from translation team.
21950
21951 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21952
21953         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
21954         for subnormals or multiply small sinh result by itself.
21955         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
21956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21957
21958 2012-07-11  David S. Miller  <davem@davemloft.net>
21959
21960         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21961
21962 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
21963
21964         [BZ #14347]
21965         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
21966         (INTERNAL_MARK): Shift it here.
21967
21968 2012-07-10  Marek Polacek  <polacek@redhat.com>
21969
21970         [BZ #14151]
21971         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
21972         libc_cv_asm_global_directive with .globl.
21973         * configure: Regenerated.
21974         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
21975         with .globl.
21976         * sysdeps/i386/configure: Regenerated.
21977         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
21978         with .globl.
21979         * sysdeps/x86_64/configure: Regenerated.
21980         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
21981         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
21982         * elf/tst-unique2mod2.c: Likewise.
21983         * elf/tst-unique2mod1.c: Likewise.
21984         * elf/tst-unique1mod2.c: Likewise.
21985         * elf/tst-unique1mod1.c: Likewise.
21986         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21987         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
21988         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21989         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
21990         * sysdeps/mach/sysdep.h: Likewise.
21991         * sysdeps/i386/sysdep.h: Likewise.
21992         * sysdeps/i386/i386-mcount.S: Likewise.
21993         * sysdeps/x86_64/_mcount.S: Likewise.
21994         * sysdeps/x86_64/sysdep.h: Likewise.
21995         * sysdeps/sh/_mcount.S: Likewise.
21996         * sysdeps/sh/sysdep.h: Likewise.
21997         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
21998         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
21999         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
22000         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
22001         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
22002         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
22003         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
22004         * locale/localeinfo.h: Likewise.
22005         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
22006         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
22007
22008 2012-07-09  Roland McGrath  <roland@hack.frob.com>
22009
22010         [BZ #14336]
22011         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
22012         system".
22013         * manual/message.texi (The Uniforum approach): Likewise.
22014         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
22015         (glibc iconv Implementation): Likewise.
22016
22017 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
22018
22019         [BZ #14337]
22020         * math/s_clog.c (__clog): Avoid scaling a value down where that
22021         could result in underflow.
22022         * math/s_clog10.c (__clog10): Likewise.
22023         * math/s_clog10f.c (__clog10f): Likewise.
22024         * math/s_clog10l.c (__clog10l): Likewise.
22025         * math/s_clogf.c (__clogf): Likewise.
22026         * math/s_clogl.c (__clogl): Likewise.
22027         * math/libm-test.inc (clog_test): Add more tests.
22028         (clog10_test): Likewise.
22029         * sysdeps/i386/fpu/libm-test-ulps: Update.
22030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22031
22032 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
22033
22034         [BZ #14283]
22035         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
22036         by 7 not 8 to examine high bit of fractional part.
22037
22038         [BZ #14042]
22039         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
22040         for call to __mcount_internal.
22041         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
22042         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
22043         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
22044
22045 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
22046
22047         [BZ #14154]
22048         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
22049         approximation for values within 0x1p-13f of an odd multiple of
22050         pi/4.
22051         * math/libm-test.inc (tan_test): Do not allow spurious underflow
22052         exception.  Add more tests.
22053         * sysdeps/i386/fpu/libm-test-ulps: Update.
22054
22055         [BZ #6778]
22056         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
22057         inputs and return -1 for them.  Do not check for +Inf in case not
22058         reachable for +Inf.
22059         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
22060         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
22061         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
22062         and return -1 for them.  Do not check for +Inf in case not
22063         reachable for +Inf.
22064         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
22065         define.
22066         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
22067         and return -1 for them.  Do not check for +Inf in case not
22068         reachable for +Inf.
22069         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
22070         spurious underflow.
22071         * sysdeps/i386/fpu/libm-test-ulps: Update.
22072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22073
22074 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
22075
22076         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
22077
22078 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
22079
22080         [BZ #14157]
22081         [BZ #14331]
22082         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
22083         could result in spurious underflow.  Scale down values above
22084         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
22085         * math/s_csqrtf.c (__csqrtf): Likewise.
22086         * math/s_csqrtl.c (__csqrtl): Likewise.
22087         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
22088         spurious underflow.
22089         * sysdeps/i386/fpu/libm-test-ulps: Update.
22090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22091
22092 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
22093
22094         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
22095         xopen-msg.sed.
22096         * catgets/xopen-msg.awk: New file.
22097         * catgets/xopen-msg.sed: Removed.
22098
22099         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
22100         po2text.sed.
22101         * intl/po2test.awk: New file.
22102         * intl/po2test.sed: Removed.
22103
22104 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
22105
22106         [BZ #14328]
22107         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
22108         or multiply small sinh result by itself.
22109         * math/s_ctanf.c (__ctanf): Likewise.
22110         * math/s_ctanh.c (__ctanh): Likewise.
22111         * math/s_ctanhf.c (__ctanhf): Likewise.
22112         * math/s_ctanhl.c (__ctanhl): Likewise.
22113         * math/s_ctanl.c (__ctanl): Likewise.
22114         * math/libm-test.inc (ctan_test_tonearest): New function.
22115         (ctan_test_towardzero): Likewise.
22116         (ctan_test_downward): Likewise.
22117         (ctan_test_upward): Likewise.
22118         (ctanh_test_tonearest): Likewise.
22119         (ctanh_test_towardzero): Likewise.
22120         (ctanh_test_downward): Likewise.
22121         (ctanh_test_upward): Likewise.
22122         (main): Call these new functions.
22123         * sysdeps/i386/fpu/libm-test-ulps: Update.
22124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22125
22126 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
22127
22128         * .gitignore: Delete /ports entry.
22129
22130 2012-07-03  Andreas Jaeger  <aj@suse.de>
22131
22132         * po/bg.po: Update from translation team.
22133         * po/cs.po: Likewise.
22134         * po/de.po: Likewise.
22135         * po/hr.po: Likewise.
22136         * po/nl.pl: Likewise.
22137         * po/pl.po: Likewise.
22138         * po/vi.po: Likewise.
22139
22140 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
22141
22142         * Makeconfig [!+link] (+link-before-libc): New variable.
22143         [!+link] (+link-after-libc): Likewise.
22144         [!+link] (+link-tests): Likewise.
22145         [!+link] (+link): Define in terms of $(+link-before-libc) and
22146         $(+link-after-libc).
22147         [!+link-static] (+link-static-before-libc): New variable.
22148         [!+link-static] (+link-static-after-libc): Likewise.
22149         [!+link-static] (+link-static-tests): Likewise.
22150         [!+link-static] (+link-static): Define in terms of
22151         $(+link-static-before-libc) and $(+link-static-after-libc).
22152         [build-shared] (link-libc-before-gnulib): New variable.
22153         [build-shared] (link-libc-tests): Likewise.
22154         [build-shared] (link-libc): Define in terms of
22155         $(link-libc-before-gnulib).
22156         [!build-shared] (link-libc-tests): New variable.
22157         (link-libc-static-tests): New variable.
22158         [!gnulib] (gnulib-arch): New variable.
22159         [!gnulib] (gnulib-tests): Likewise.
22160         [!gnulib] (static-gnulib-arch): Likewise.
22161         [!gnulib] (static-gnulib-tests): Likewise.
22162         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
22163         Define with "=" instead of ":=".
22164         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
22165         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
22166         * Rules (binaries-all-notests): New variable.
22167         (binaries-all-tests): Likewise.
22168         (binaries-static-notests): Likewise.
22169         (binaries-static-tests): Likewise.
22170         (binaries-all): Define using $(binaries-all-notests) and
22171         $(binaries-all-tests).
22172         (binaries-static): Define using $(binaries-static-notests) and
22173         $(binaries-static-tests).
22174         (binaries-shared-tests): New variable.
22175         (binaries-shared-notests): Likewise.
22176         (binaries-shared): Remove variable.
22177         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
22178         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
22179         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
22180         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
22181         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
22182         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
22183         * elf/Makefile (sln-modules): New variable.
22184         (extra-objs): Add $(sln-modules:=.o).
22185         (ldconfig-modules): Add static-stubs.
22186         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
22187         * elf/static-stubs.c: New file.
22188
22189         [BZ #14283]
22190         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
22191         by 7 not 8 to examine high bit of fractional part.  Use volatile
22192         variables when splitting into final array of floats if
22193         __FLT_EVAL_METHOD__ != 0.
22194         * math/libm-test.inc (cos_test): Add another test.
22195         (sin_test): Likewise.
22196         * sysdeps/i386/fpu/libm-test-ulps: Update.
22197
22198         [BZ #14273]
22199         * math/libm-test.inc (cosh_test): Add more tests.
22200
22201         * version.h (RELEASE): Set to "development".
22202         (VERSION): Set to "2.16.90".
22203
22204 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
22205
22206         * NEWS: Update copyright. Remove last-updated date.
22207         Mention math library bug fixes and timezone data changes.
22208         * README: Mention GNU/Hurd, x32, and HPPA support status.
22209
22210 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
22211
22212         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
22213
22214 2012-06-27  Andreas Jaeger  <aj@suse.de>
22215
22216         * manual/contrib.texi (Contributors): Add Samuel Thibault.
22217
22218 2012-06-25  Andreas Jaeger  <aj@suse.de>
22219
22220         * sysdeps/s390/fpu/libm-test-ulps: Update.
22221
22222 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
22223             Thomas Schwinge  <thomas@codesourcery.com>
22224
22225         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
22226         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
22227         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
22228         fanotify_mark.
22229
22230 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
22231
22232         * sysdeps/mach/start.c: Remove file.
22233         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
22234         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
22235         * sysdeps/sh/init-first.c: Likewise.
22236
22237         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
22238         registers for frame unwinding purposes, add CFI directives.
22239         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22240         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
22241         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
22242         Likewise.
22243
22244         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
22245         __fortify_fail returning.
22246         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
22247
22248         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
22249         sysdeps/sh/____longjmp_chk.S.
22250         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
22251         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
22252         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
22253         (gen-as-const-headers): Append sigaltstack-offsets.sym.
22254
22255         * sysdeps/sh/abort-instr.h: New file.
22256         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
22257         process in case exit returns.
22258
22259         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
22260         initialize the GOT register before use.
22261
22262         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
22263         calculation of ARGC > 4.
22264
22265         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
22266         meaningful names to some local labels.
22267
22268 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22269             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22270
22271         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
22272         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
22273         (__arch_compare_and_exchange_val_16_acq): Likewise.
22274         (__arch_compare_and_exchange_val_32_acq): Likewise.
22275         (atomic_exchange_and_add): Fix gUSA sequence.
22276         (atomic_add): Likewise.
22277         (atomic_add_negative): Likewise.
22278         (atomic_add_zero): Likewise.
22279         (atomic_bit_test_set): Likewise.
22280
22281 2012-06-22  Andreas Schwab  <schwab@redhat.com>
22282
22283         [BZ #13579]
22284         * include/link.h (struct link_map): Add l_free_initfini.
22285         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
22286         l_initfini.
22287         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
22288         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
22289         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
22290         set.
22291
22292 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
22293
22294         * configure.in: Use AC_LANG_SOURCE.
22295         * configure: Regenerate.
22296
22297 2012-06-22  Roland McGrath  <roland@hack.frob.com>
22298
22299         * configure.in (libc_cv_localstatedir): New substituted variable.
22300         * configure: Regenerated.
22301         * config.make.in (localstatedir): New variable, substituted from
22302         libc_cv_localstatedir.
22303         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
22304         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
22305         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
22306         * sysdeps/gnu/configure: Regenerated.
22307
22308 2012-06-21  Jeff Law  <law@redhat.com>
22309
22310         [BZ #14277]
22311         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
22312         free.  Simplify list management for _LIBC case.
22313
22314 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
22315
22316         [BZ #14273]
22317         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22318         Clear sign bit of 64-bit integer value before comparing against
22319         overflow value.
22320
22321         * sysdeps/mach/configure: Regenerated.
22322
22323 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22324
22325         [BZ #14278]
22326         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
22327
22328 2012-06-21  Jeff Law  <law@redhat.com>
22329
22330         [BZ #13882]
22331         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
22332         uint16_t for elements in the "seen" array to avoid char overflows.
22333         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22334         * elf/dl-open.c (dl_open_worker): Likewise.
22335
22336 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
22337
22338         * scripts/list-sources.sh: Scan PORTS for translations.
22339         * po/libc.pot: Regenerated.
22340
22341 2012-06-21  Andreas Jaeger  <aj@suse.de>
22342
22343         [BZ #12194]
22344         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
22345         warning.
22346         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
22347         * bits/byteswap-16.h (__bswap_16): Likewise.
22348         * bits/byteswap.h (__bswap_constant_16): Likewise.
22349
22350 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22351
22352         [BZ #14117]
22353         * sysdeps/i386/fpu_control.h: Removed.
22354         * sysdeps/x86_64/fpu_control.h: Moved to ...
22355         * sysdeps/x86/fpu_control.h: Here.
22356
22357         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
22358         (_FPU_SETCW): Likewise.
22359
22360 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
22361
22362         [BZ #14117]
22363         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
22364         * sysdeps/x86/fpu/bits/mathinline.h: This.
22365         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
22366
22367         [BZ #14050]
22368         [BZ #14117]
22369         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
22370         functions if __x86_64__ is defined.
22371
22372 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
22373
22374         * string/endian.h: Add !__ASSEMBLER__ condition for including
22375         conversion interfaces.
22376
22377 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
22378
22379         [BZ #14241]
22380         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
22381         of ABS(x) in calculating zero to negative powers other than odd
22382         integers.
22383         * math/libm-test.inc (pow_test): Add more tests.
22384
22385 2012-06-15  Andreas Jaeger  <aj@suse.de>
22386
22387         * manual/contrib.texi (Contributors): Update entry of Liubov
22388         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
22389         Machado Filho.
22390
22391 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
22392
22393         * string/string.h: Add __wur to GNU version of strerror_r.
22394
22395 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
22396
22397         [BZ #14229]
22398         * string/Makefile (tests): Add tst-strtok_r.
22399         * string/tst-strtok_r.c: New file.
22400         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
22401         RAX_LP/RDX_LP on SAVE_PTR.
22402
22403 2012-06-14  Roland McGrath  <roland@hack.frob.com>
22404
22405         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
22406
22407 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
22408
22409         * libm_test.inc (csqrt_test): Allow more spurious underflow
22410         exceptions.
22411         (j0_test): Likewise.
22412         (j1_test): Likewise.
22413         (y0_test): Likewise.
22414         (y1_test): Likewise.
22415
22416 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
22417
22418         * po/Makefile (libc.pot): Use UTF-8 charset.
22419
22420 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
22421
22422         [BZ #14210]
22423         Suppress sign-conversion warning from FD_SET.
22424         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
22425         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
22426         not unsigned long int.
22427         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
22428
22429 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
22430
22431         [BZ #14050]
22432         [BZ #14117]
22433         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
22434         __extern_always_inline instead of __extern_inline.
22435         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
22436         (__signbit): Likewise.
22437         (__signbitl): Support C++ namespace.
22438         (lrintf): New inline function.
22439         (lrint): Likewise.
22440         (llrintf): Likewise.
22441         (llrint): Likewise.
22442         (fmaxf): Likewise.
22443         (fmax): Likewise.
22444         (fminf): Likewise.
22445         (fmin): Likewise.
22446         (rint): Likewise.
22447         (rintf): Likewise.
22448         (ceil): Likewise.
22449         (ceilf): Likewise.
22450         (floor): Likewise.
22451         (floorf): Likewise.
22452         (nearbyint): Likewise.
22453         (nearbyintf): Likewise.
22454
22455 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
22456
22457         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
22458         non-default versions.
22459
22460 2012-06-11  Roland McGrath  <roland@hack.frob.com>
22461
22462         [BZ #14218]
22463         * manual/argp.texi (Argp): Reword argp_parse description slightly.
22464
22465 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
22466
22467         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
22468         (FE_UPWARD, FE_DOWNWARD): Don't define.
22469         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
22470         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22471
22472         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
22473         reading it.
22474         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
22475         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
22476
22477 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22478
22479         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22480         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22481         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
22482         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
22483
22484 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
22485
22486         [BZ #14117]
22487         * sysdeps/i386/fpu/bits/fenv.h: Removed.
22488         * sysdeps/i386/fpu/Implies: New file.
22489         * sysdeps/x86_64/fpu/Implies: Likewise.
22490         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
22491         * sysdeps/x86/fpu/bits/fenv.h: This.
22492
22493         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
22494         __SSE_MATH__.
22495
22496 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
22497
22498         [BZ #14134]
22499         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
22500         character 0xffff that matches the last element of the
22501         conversion table.
22502
22503 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22504
22505         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
22506         fmodl commit.
22507
22508 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22509
22510         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
22511         values higher than 25.6283.
22512
22513 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22514
22515         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
22516         subnormal exponent extraction and add some __builtin_expect.
22517         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
22518         Fix for subnormal mantissa calculation.
22519
22520 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
22521
22522         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
22523         cpu2 is -1 and errno is not ENOSYS.
22524
22525 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22526
22527         [BZ #14117]
22528         * sysdeps/i386/i486/bits/string.h: Renamed to ...
22529         * sysdeps/x86/bits/string.h: This.
22530         * sysdeps/x86_64/bits/string.h: Removed.
22531
22532         * sysdeps/i386/i486/bits/string.h: Define inline functions only
22533         if not compiling for x86-64, but compiling for >= i486.
22534
22535         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
22536         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
22537
22538         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
22539         New macro from Linux kernel 3.4.0.
22540         (FP_XSTATE_MAGIC2): Likewise.
22541         (FP_XSTATE_MAGIC2_SIZE): Likewise.
22542         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
22543         (struct _fpx_sw_bytes): New struct.
22544         (struct _xsave_hdr): Likewise.
22545         (struct _ymmh_state): Likewise.
22546         (struct _xstate): Likewise.
22547
22548         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
22549         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
22550         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
22551         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
22552         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
22553         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
22554
22555         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
22556         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
22557         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
22558         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
22559         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
22560         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
22561
22562 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22563
22564         [BZ #13743]
22565         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
22566         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
22567         (sysdep_headers): Include sys/platform/ppc.h.
22568         * sysdeps/powerpc/test-gettimebase.c: Test for
22569         __ppc_get_timebase() to catch future ISA opcode/insn changes.
22570         * manual/Makefile (appendices): Include platform.texi.
22571         * manual/contrib.texi (Contributors): Update @node pointers.
22572         * manual/maint.texi (Maintenance): Likewise.
22573         (Platform): New node.
22574         * manual/platform.texi: New file.  Document the new features.
22575
22576 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22577             Jakub Jelinek  <jakub@redhat.com>
22578
22579         [BZ #14188]
22580         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
22581         where __builtin_expect is unavailable.
22582
22583 2012-06-03  David S. Miller  <davem@davemloft.net>
22584
22585         * stdlib/longlong.h: Updated from GCC.
22586
22587 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
22588
22589         [BZ #14042]
22590         * sysdeps/powerpc/powerpc32/mcount.c: New file.
22591         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
22592         __mcount_internal.
22593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
22594         (GLIBC_2.16): Likewise.
22595
22596 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22597
22598         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
22599
22600 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22601
22602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
22603         (default-abi): New variable.
22604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
22605         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
22606         variable.
22607         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
22608         Likewise.
22609         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
22610         Likewise.
22611         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
22612         Likewise.
22613
22614         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
22615         definition.  Document in comment.
22616
22617 2012-06-01  David S. Miller  <davem@davemloft.net>
22618
22619         * stdlib/longlong.h: Updated from GCC.
22620
22621 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22622
22623         [BZ #14117]
22624         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
22625         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
22626         sys/debugreg.h sys/io.h here.
22627         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
22628         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
22629         sys/io.h.
22630         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
22631         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
22632         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
22633         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
22634         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
22635         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
22636
22637         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
22638         Define only if __x86_64__ is defined.
22639
22640 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
22641
22642         [BZ #14048]
22643         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
22644         Use int64_t for variable i.
22645         * math/libm-test.inc (fmod_test): Add more tests.
22646
22647         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
22648         z computation is not scheduled after fetestexcept.
22649         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
22650         Use math_force_eval instead of asm to ensure calculation scheduled
22651         before exception test.
22652         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
22653         Ensure a1 + u.d computation is not scheduled after fetestexcept.
22654
22655 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
22656
22657         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
22658         computation is not scheduled after fetestexcept.
22659
22660 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
22661
22662         [BZ #14117]
22663         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
22664         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
22665
22666 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22667
22668         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
22669         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22670
22671 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22672
22673         [BZ #14117]
22674         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
22675         <bits/wordsize.h>.
22676         (__WCHAR_MIN): Support __WORDSIZE == 64.
22677         (__WCHAR_MAX): Likewise.
22678
22679         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
22680         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
22681
22682         [BZ #14183]
22683         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
22684         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
22685
22686         [BZ #14117]
22687         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
22688         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
22689
22690         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
22691         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
22692
22693         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
22694         Defined to 1 if __x86_64__ isn't defined.
22695         (_STAT_VER_LINUX_OLD): New.
22696         (st_atime): Remove duplicate.
22697         (st_mtime): Likewise.
22698         (st_ctime): Likewise.
22699
22700 2012-05-31  David S. Miller  <davem@davemloft.net>
22701
22702         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
22703         entries.
22704
22705 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
22706
22707         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
22708         gen-libm-test.pl.
22709
22710         [BZ #14132]
22711         * elf/dl-reloc.c: Include <_itoa.h>.
22712         (_dl_reloc_bad_type): Remove use of INTUSE.
22713         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
22714         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
22715         * stdio-common/psiginfo.c (psiginfo): Likewise.
22716         * stdio-common/psignal.c (psignal): Likewise.
22717         * string/strsignal.c (strsignal): Likewise.
22718         * include/signal.h (_sys_siglist): Declare hidden proto.
22719         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
22720         INTVARDEF with libc_hidden_data_def.
22721         * stdio-common/itoa-udigits.c: Likewise.
22722         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
22723         (_itoa_lower_digits_internal): Remove declaration.
22724         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
22725         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
22726         (_sys_sigabbrev_internal): Remove aliases.
22727         (_sys_siglist): Define hidden alias.
22728
22729 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
22730
22731         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22732         bits/sysctl.h.
22733
22734 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
22735
22736         [BZ #14117]
22737         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
22738         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
22739
22740         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
22741         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
22742         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
22743         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
22744         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
22745         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
22746
22747         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
22748         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
22749         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
22750
22751         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
22752         with __addr.
22753         (insw): Likewise.
22754         (insl): Likewise.
22755         (outsb): Likewise.
22756         (outsw): Likewise.
22757         (outsl): Likewise.
22758
22759         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
22760         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
22761         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
22762
22763         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
22764         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
22765         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
22766         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
22767         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
22768         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
22769
22770         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
22771         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
22772
22773         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
22774         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
22775
22776         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
22777         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
22778         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
22779
22780         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
22781         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
22782         to ...
22783         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
22784
22785         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
22786         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
22787         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
22788
22789         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
22790         for x86-64.
22791         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
22792
22793 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
22794
22795         * math/math.h (M_El): Use two more decimal places.
22796         (M_LOG2El): Likewise.
22797         (M_LOG10El): Likewise.
22798         (M_LN2l): Likewise.
22799         (M_LN10l): Likewise.
22800         (M_PIl): Likewise.
22801         (M_PI_2l): Likewise.
22802         (M_PI_4l): Likewise.
22803         (M_1_PIl): Likewise.
22804         (M_2_PIl): Likewise.
22805         (M_2_SQRTPIl): Likewise.
22806         (M_SQRT2l): Likewise.
22807         (M_SQRT1_2l): Likewise.
22808
22809 2012-05-31  David S. Miller  <davem@davemloft.net>
22810
22811         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
22812         values between float registers.
22813         * sysdeps/sparc/sparc64/memset.S: Likewise.
22814         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22815
22816 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
22817
22818         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
22819         -D_FORTIFY_SOURCE=1.
22820         (CPPFLAGS-tst-longjmp_chk.c): Define.
22821         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
22822         (CPPFLAGS-tst-longjmp_chk2.c): Define.
22823         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
22824         CFLAGS-tst-wchar-h.c.
22825
22826 2012-05-31  Marek Polacek  <polacek@redhat.com>
22827
22828         [BZ #14132]
22829         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
22830         __endmntent_internal): Remove declaration.
22831         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
22832         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
22833         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
22834
22835 2012-05-30  David S. Miller  <davem@davemloft.net>
22836
22837         * sysdeps/sparc/sparc32/soft-fp/q_util.c
22838         (___Q_simulate_exceptions): Use real FP ops rather than writing
22839         into the %fsr.
22840         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
22841         Likewise.
22842
22843 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22844
22845         [BZ #14117]
22846         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
22847         * sysdeps/x86/bits/xtitypes.h: This.
22848
22849         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
22850         * sysdeps/x86/bits/wordsize.h: This.
22851
22852         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
22853         * sysdeps/x86/bits/huge_vall.h: This.
22854
22855         * sysdeps/i386/bits/select.h: Removed.
22856         * sysdeps/x86_64/bits/select.h: Renamed to ...
22857         * sysdeps/x86/bits/select.h: This.
22858
22859         * sysdeps/i386/bits/setjmp.h: Removed.
22860         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
22861         * sysdeps/x86/bits/setjmp.h: This.
22862
22863         * sysdeps/i386/bits/mathdef.h: Removed.
22864         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
22865         * sysdeps/x86/bits/mathdef.h: This.
22866
22867 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
22868
22869         [BZ #14132]
22870         * include/sys/socket.h (__connect_internal)
22871         (__libc_sa_len_internal): Remove declaration.
22872         (__connect, __libc_sa_len): Declare hidden_proto.
22873         (SA_LEN): Remove use of INTUSE.
22874         * socket/connect.c: Add libc_hidden_def.
22875         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
22876         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
22877         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
22878         alias.
22879         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
22880         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
22881         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
22882         of adding _internal alias.
22883
22884 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22885
22886         [BZ #14117]
22887         * sysdeps/i386/bits/link.h: Removed.
22888         * sysdeps/i386/bits/linkmap.h: Likewise.
22889         * sysdeps/x86_64/bits/link.h: Renamed to ...
22890         * sysdeps/x86/bits/link.h: This.
22891         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
22892         * sysdeps/x86/bits/linkmap.h: This.
22893
22894         * sysdeps/i386/bits/endian.h: Removed.
22895         * sysdeps/x86_64/bits/endian.h: Renamed to ...
22896         * sysdeps/x86/bits/endian.h: This.
22897
22898         * sysdeps/i386/bits/byteswap.h: Removed.
22899         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22900         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
22901         * sysdeps/x86/bits/byteswap.h: This.
22902         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
22903         * sysdeps/x86/bits/byteswap-16.h: This.
22904         * sysdeps/i386/Implies: Add x86.
22905         * sysdeps/x86_64/Implies: Likewise.
22906
22907 2012-05-30  David S. Miller  <davem@davemloft.net>
22908
22909         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
22910         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
22911         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
22912         (FP_TRAPPING_EXCEPTIONS): Define.
22913         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
22914         (FP_TRAPPING_EXCEPTIONS): Define.
22915         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
22916         subnormals only when inexact has been signalled or underflow
22917         exceptions are enabled.
22918         (_FP_PACK_CANONICAL): Likewise.
22919
22920 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22921
22922         [BZ #14183]
22923         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
22924         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
22925
22926 2012-05-30  Richard Henderson  <rth@twiddle.net>
22927
22928         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
22929         with #ifndef NOT_IN_libc.
22930
22931         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
22932         marked to avoid plt entry.
22933
22934 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
22935
22936         [BZ #14112]
22937         * Makeconfig (default-abi): New macro.
22938         (abi-includes): Likewise.
22939         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
22940         $(abi-$(default-abi)-lib-soname) for soname if defined.
22941         ($(common-objpfx)gnu/lib-names.stmp): Generate from
22942         abi-variants.
22943         * Makefile (installed-stubs): Likewise.
22944         * include/stubs-biarch.h: Removed.
22945         * scripts/lib-names.awk: Only handle one library at a time.
22946         * scripts/soversions.awk: Remove WORDSIZE support.
22947         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
22948         entries.
22949         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
22950         Removed.
22951         (syscall-list-default-condition): Likewise.
22952         (syscall-list-default-condition): Likewise.
22953         (syscall-list-includes): Likewise.
22954         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
22955         syscall-list-* with abi-*.  Handle undefined abi-variants.
22956         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
22957         * sysdeps/unix/sysv/linux/i386/Implies: New file.
22958         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
22959         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
22960         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
22961         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
22962         Removed.
22963         (syscall-list-32-options): Likewise.
22964         (syscall-list-32-condition): Likewise.
22965         (syscall-list-64-options): Likewise.
22966         (syscall-list-64-condition): Likewise.
22967         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
22968         macro.
22969         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
22970         Renamed to ...
22971         (abi-*): This.
22972         (abi-64-ld-soname): New macro.
22973         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
22974         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
22975         Renamed to ...
22976         (abi-*): This.
22977         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
22978         * sysdeps/x86_64/x32/shlib-versions: Likewise.
22979
22980 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
22981
22982         * sysdeps/unix/sysv/linux/kernel-features.h
22983         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
22984         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
22985         include <kernel-features.h>.
22986         [!__NR_ftruncate64]: Remove conditional code.
22987         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22988         [__NR_ftruncate64]: Make code unconditional.
22989         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22990         * sysdeps/unix/sysv/linux/truncate64.c: Do not
22991         include <kernel-features.h>.
22992         [!__NR_ftruncate64]: Remove conditional code.
22993         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22994         [__NR_ftruncate64]: Make code unconditional.
22995         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
22996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
22997         include <kernel-features.h>.
22998         [!__NR_ftruncate64]: Remove conditional code.
22999         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
23000         [__NR_ftruncate64]: Make code unconditional.
23001         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
23002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
23003         include <kernel-features.h>.
23004         [!__NR_ftruncate64]: Remove conditional code.
23005         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
23006         [__NR_ftruncate64]: Make code unconditional.
23007         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
23008
23009         * configure.in (libc_cv_fpie): Weaken to a compile test using
23010         LIBC_TRY_CC_OPTION.
23011         * configure: Regenerated.
23012
23013 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23014
23015         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
23016         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
23017         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
23018         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
23019         Refreshed.
23020         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
23021         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
23022         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
23023         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
23024         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
23025         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
23026         Refreshed.
23027
23028 2012-05-27  David S. Miller  <davem@davemloft.net>
23029
23030         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
23031         (___Q_zero): New.
23032         (__Q_simulate_exceptions): Return void.  Change to simulate
23033         exceptions by writing into the %fsr.
23034         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
23035         (__Qp_handle_exceptions): Likewise.
23036         (numbers): Delete.
23037         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
23038         __Qp_handle_exceptions.
23039         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
23040         __Qp_handle_exceptions.
23041         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
23042         as unused and give dummy FP_RND_NEAREST initializer.
23043         (FP_INHIBIT_RESULTS): Define.
23044         (___Q_simulate_exceptions): Update declaration.
23045         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
23046         formatting.
23047         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
23048         as unused and give dummy FP_RND_NEAREST initializer.
23049         (__Qp_handle_exceptions): Update declaration.
23050         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
23051         formatting.
23052
23053 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
23054
23055         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
23056         the temporary FPU control word.
23057         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
23058         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
23059         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
23060         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
23061         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
23062         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
23063         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
23064         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
23065         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
23066         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
23067         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
23068
23069 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23070
23071         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
23072         fields.
23073
23074 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
23075
23076         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
23077         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
23078         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
23079         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
23080         Likewise.
23081         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
23082         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
23083         Likewise.
23084
23085 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
23086
23087         * po/h.po: Update from translation team.
23088
23089 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
23090
23091         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
23092
23093         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
23094         handling of denormals.
23095         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
23096         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
23097         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
23098         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
23099         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23100         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
23101         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
23102         Likewise.
23103
23104 2012-05-26  Marek Polacek  <polacek@redhat.com>
23105
23106         [BZ #14152]
23107         * math/libm-test.inc (fma_test): Don't always expect underflow
23108         exception.
23109
23110 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
23111
23112         [BZ #12416]
23113         * elf/tst-execstack.c: Include stackinfo.h.
23114         (do_test): Adjust test case to ensure that pthread_getattr_np
23115         behaviour remains the same after marking stack executable.
23116
23117 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23118
23119         * sysdeps/unix/sysv/linux/kernel-features.h
23120         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
23121         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
23122         kernel-features.h.
23123         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23124         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23125         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
23126         kernel-features.h.
23127         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
23128         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
23129
23130 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
23131
23132         * configure.in: Define the default includes to being none.
23133         * configure: Regenerated.
23134
23135 2012-05-25  Roland McGrath  <roland@hack.frob.com>
23136
23137         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
23138         * sysdeps/x86_64/setjmp.S: Likewise.
23139         * sysdeps/i386/bsd-setjmp.S: Likewise.
23140         * sysdeps/i386/bsd-_setjmp.S: Likewise.
23141         * sysdeps/i386/setjmp.S: Likewise.
23142         * sysdeps/i386/__longjmp.S: Likewise.
23143         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23144         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
23145
23146         * include/stap-probe.h: New file.
23147         * configure.in: Handle --enable-systemtap.
23148         * configure: Regenerated.
23149         * config.h.in (USE_STAP_PROBE): New #undef.
23150         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
23151         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
23152         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23153
23154 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
23155
23156         [BZ #13717]
23157         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
23158         to 2.4.0 where earlier.
23159         * sysdeps/unix/sysv/linux/configure: Regenerated.
23160         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
23161         <kernel-features.h>.
23162         [__ASSUME_32BITUIDS]: Make code unconditional.
23163         [!__ASSUME_32BITUIDS]: Remove conditional code.
23164         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
23165         <kernel-features.h>.
23166         [__ASSUME_32BITUIDS]: Make code unconditional.
23167         [!__ASSUME_32BITUIDS]: Remove conditional code.
23168         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
23169         [__ASSUME_32BITUIDS]: Make code unconditional.
23170         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
23171         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
23172         <kernel-features.h>.
23173         [__ASSUME_32BITUIDS]: Make code unconditional.
23174         [!__ASSUME_32BITUIDS]: Remove conditional code.
23175         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
23176         <kernel-features.h>.
23177         [__ASSUME_32BITUIDS]: Make code unconditional.
23178         [!__ASSUME_32BITUIDS]: Remove conditional code.
23179         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
23180         <kernel-features.h>.
23181         [__ASSUME_32BITUIDS]: Make code unconditional.
23182         [!__ASSUME_32BITUIDS]: Remove conditional code.
23183         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
23184         <kernel-features.h>.
23185         [__ASSUME_32BITUIDS]: Make code unconditional.
23186         [!__ASSUME_32BITUIDS]: Remove conditional code.
23187         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
23188         <kernel-features.h>.
23189         [__ASSUME_32BITUIDS]: Make code unconditional.
23190         [!__ASSUME_32BITUIDS]: Remove conditional code.
23191         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
23192         <kernel-features.h>.
23193         [__ASSUME_32BITUIDS]: Make code unconditional.
23194         [!__ASSUME_32BITUIDS]: Remove conditional code.
23195         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
23196         <kernel-features.h>.
23197         [__ASSUME_32BITUIDS]: Make code unconditional.
23198         [!__ASSUME_32BITUIDS]: Remove conditional code.
23199         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23200         <kernel-features.h>.
23201         [__ASSUME_32BITUIDS]: Make code unconditional.
23202         [!__ASSUME_32BITUIDS]: Remove conditional code.
23203         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
23204         <kernel-features.h>.
23205         [__ASSUME_32BITUIDS]: Make code unconditional.
23206         [!__ASSUME_32BITUIDS]: Remove conditional code.
23207         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
23208         <kernel-features.h>.
23209         [__ASSUME_32BITUIDS]: Make code unconditional.
23210         [!__ASSUME_32BITUIDS]: Remove conditional code.
23211         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
23212         <kernel-features.h>.
23213         [__NR_setresgid] (__setresgid): Do not declare.
23214         [__ASSUME_32BITUIDS]: Make code unconditional.
23215         [!__ASSUME_32BITUIDS]: Remove conditional code.
23216         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
23217         <kernel-features.h>.
23218         [__NR_setresuid] (__setresuid): Do not declare.
23219         [__ASSUME_32BITUIDS]: Make code unconditional.
23220         [!__ASSUME_32BITUIDS]: Remove conditional code.
23221         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
23222         <kernel-features.h>.
23223         [__ASSUME_32BITUIDS]: Make code unconditional.
23224         [!__ASSUME_32BITUIDS]: Remove conditional code.
23225         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
23226         <kernel-features.h>.
23227         [__ASSUME_32BITUIDS]: Make code unconditional.
23228         [!__ASSUME_32BITUIDS]: Remove conditional code.
23229         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
23230         <kernel-features.h>.
23231         [__ASSUME_32BITUIDS]: Make code unconditional.
23232         [!__ASSUME_32BITUIDS]: Remove conditional code.
23233         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
23234         <kernel-features.h>.
23235         [__ASSUME_32BITUIDS]: Make code unconditional.
23236         [!__ASSUME_32BITUIDS]: Remove conditional code.
23237         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
23238         <kernel-features.h>.
23239         [__ASSUME_32BITUIDS]: Make code unconditional.
23240         [!__ASSUME_32BITUIDS]: Remove conditional code.
23241         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
23242         <kernel-features.h>.
23243         [__ASSUME_32BITUIDS]: Make code unconditional.
23244         [!__ASSUME_32BITUIDS]: Remove conditional code.
23245         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
23246         <kernel-features.h>.
23247         [__ASSUME_32BITUIDS]: Make code unconditional.
23248         [!__ASSUME_32BITUIDS]: Remove conditional code.
23249         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
23250         <kernel-features.h>.
23251         [__ASSUME_32BITUIDS]: Make code unconditional.
23252         [!__ASSUME_32BITUIDS]: Remove conditional code.
23253         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
23254         <kernel-features.h>.
23255         [__ASSUME_32BITUIDS]: Make code unconditional.
23256         [!__ASSUME_32BITUIDS]: Remove conditional code.
23257         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23258         <kernel-features.h>.
23259         [__ASSUME_32BITUIDS]: Make code unconditional.
23260         [!__ASSUME_32BITUIDS]: Remove conditional code.
23261         * sysdeps/unix/sysv/linux/kernel-features.h
23262         (__ASSUME_SETRESUID_SYSCALL): Remove.
23263         (__ASSUME_SETRESGID_SYSCALL): Likewise.
23264         (__ASSUME_32BITUIDS): Likewise.
23265         (__ASSUME_LDT_WORKS): Likewise.
23266         (__ASSUME_O_DIRECTORY): Likewise.
23267         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
23268         architecture but not kernel version.
23269         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
23270         (__ASSUME_MMAP2_SYSCALL): Likewise.
23271         (__ASSUME_STAT64_SYSCALL): Likewise.
23272         (__ASSUME_IPC64): Likewise.
23273         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
23274         <kernel-features.h>.
23275         [__ASSUME_32BITUIDS]: Make code unconditional.
23276         [!__ASSUME_32BITUIDS]: Remove conditional code.
23277         * sysdeps/unix/sysv/linux/opendir.c: Do not include
23278         <kernel-features.h>.
23279         [__ASSUME_O_DIRECTORY]: Make code unconditional.
23280         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
23281         132096]: Remove conditional code.
23282         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
23283         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23284         <kernel-features.h>.
23285         [__ASSUME_32BITUIDS]: Make code unconditional.
23286         [!__ASSUME_32BITUIDS]: Remove conditional code.
23287         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23288         <kernel-features.h>.
23289         [__ASSUME_32BITUIDS]: Make code unconditional.
23290         [!__ASSUME_32BITUIDS]: Remove conditional code.
23291         * sysdeps/unix/sysv/linux/setegid.c: Do not include
23292         <kernel-features.h>.
23293         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
23294         unconditional.
23295         (__setresgid): Do not declare.
23296         [__ASSUME_32BITUIDS]: Make code unconditional.
23297         [!__ASSUME_32BITUIDS]: Remove conditional code.
23298         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
23299         <kernel-features.h>.
23300         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
23301         unconditional.
23302         (__setresuid): Do not declare.
23303         [__ASSUME_32BITUIDS]: Make code unconditional.
23304         [!__ASSUME_32BITUIDS]: Remove conditional code.
23305         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23306         <kernel-features.h>.
23307         [__ASSUME_32BITUIDS]: Make code unconditional.
23308         [!__ASSUME_32BITUIDS]: Remove conditional code.
23309         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
23310         <kernel-features.h>.
23311         [__ASSUME_32BITUIDS]: Make code unconditional.
23312         [!__ASSUME_32BITUIDS]: Remove conditional code.
23313
23314 2012-05-25  Richard Henderson  <rth@twiddle.net>
23315
23316         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
23317         dl_hwcap to ifunc resolver.
23318         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
23319         elf_ifunc_invoke.
23320         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
23321         dl_hwcap to ifunc resolver.
23322         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
23323
23324 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23325
23326         [BZ #14153]
23327         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
23328         for |x| <= 2**-26, not 2**-57.
23329         * math/libm-test.inc (acos_test): Do not allow spurious underflow
23330         exception.
23331
23332 2012-05-24  Jeff Law  <law@redhat.com>
23333
23334         * stdio-common/Makefile (tests): Add bug25.
23335         * stdio-common/bug25.c: New test.
23336
23337 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23338
23339         [BZ #13576]
23340         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
23341         multiple of MALLOC_ALIGNMENT in size.
23342         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
23343
23344 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23345
23346         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
23347         Require >= 256.
23348         (FILENAME_MAX): Use macro-int-constant.
23349         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
23350         (_IOFBF): Use macro-int-constant.
23351         (_IOLBF): Likewise.
23352         (_IONBF): Likewise.
23353         (SEEK_CUR): Likewise.
23354         (SEEK_END): Likewise.
23355         (SEEK_SET): Likewise.
23356         (TMP_MAX): Likewise.
23357         (EOF): Use macro-int-constant.  Require < 0.
23358         (NULL): Use macro-constant.  Require == 0.
23359         (stdin): Require type to be FILE *.
23360         (stdout): Likewise.
23361         (stderr): Likewise.
23362         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
23363         macro-int-constant.
23364         (EXIT_SUCCESS): Likewise.
23365         (NULL): Use macro-constant.  Require == 0.
23366         (RAND_MAX): Use macro-int-constant.
23367         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
23368         [C99-based standards] (strtof): Require function.
23369         [C99-based standards] (strtold): Likewise.
23370         [C99-based standards] (strtoll): Likewise.
23371         [C99-based standards] (strtoull): Likewise.
23372         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
23373         [ISO || ISO99 || ISO11] (limits.h): Likewise.
23374         [ISO || ISO99 || ISO11] (math.h): Likewise.
23375         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
23376         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
23377         [ISO || ISO99 || ISO11] (*_t): Do not allow.
23378
23379 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
23380
23381         [BZ #14132]
23382         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
23383         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
23384         * intl/dgettext.c (DCGETTEXT): Likewise.
23385         * intl/gettext.c (DCGETTEXT): Likewise.
23386         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
23387         * posix/regex_internal.h (gettext): Likewise.
23388         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
23389         Remove declaration.
23390         * include/argz.h (__argz_count_internal)
23391         (__argz_stringify_internal): Remove declaration.
23392         (__argz_count, __argz_stringify): Declare hidden proto.
23393         * intl/dcgettext.c: Remove use of INTDEF.
23394         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
23395         * string/argz-stringify.c: Likewise.
23396         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23397         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23398         Declare hidden proto.
23399         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
23400         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
23401         Declare hidden proto.
23402         * include/stdio.h (__asprintf_internal): Don't declare.
23403         (__asprintf): Don't define as macro.  Declare hidden proto.
23404         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
23405         (__fsetlocking): Declare hidden proto.
23406         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
23407         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
23408         hidden proto.
23409         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
23410         (_IO_setlinebuf): Remove use of INTUSE.
23411         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
23412         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
23413         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
23414         Remove declaration.
23415         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
23416         (_IO_do_flush): Remove use of INTUSE.
23417         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
23418         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
23419         (_IO_adjust_column, _IO_least_wmarker)
23420         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
23421         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
23422         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
23423         (_IO_default_doallocate, _IO_wdefault_doallocate)
23424         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
23425         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
23426         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
23427         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
23428         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
23429         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
23430         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
23431         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
23432         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
23433         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
23434         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
23435         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
23436         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
23437         proto.
23438         (_IO_flush_all_internal, _IO_adjust_column_internal)
23439         (_IO_default_uflow_internal, _IO_default_finish_internal)
23440         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
23441         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
23442         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
23443         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
23444         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
23445         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
23446         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
23447         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
23448         (_IO_file_close_internal, _IO_file_close_it_internal)
23449         (_IO_file_underflow_internal, _IO_file_overflow_internal)
23450         (_IO_file_init_internal, _IO_file_attach_internal)
23451         (_IO_file_fopen_internal, _IO_file_read_internal)
23452         (_IO_file_sync_internal, _IO_file_seek_internal)
23453         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
23454         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
23455         (_IO_str_underflow_internal, _IO_str_overflow_internal)
23456         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
23457         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
23458         (_IO_list_all_internal, _IO_link_in_internal)
23459         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
23460         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
23461         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
23462         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
23463         (_IO_do_write_internal, _IO_padn_internal)
23464         (_IO_getline_info_internal, _IO_getline_internal)
23465         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
23466         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
23467         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
23468         (_IO_vfscanf_internal, _IO_vfprintf_internal)
23469         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
23470         (_IO_init_internal, _IO_un_link_internal): Don't declare.
23471         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
23472         with libc_hidden_ver, remove use of INTUSE.
23473         * libio/genops.c: Likewise.
23474         * libio/freopen.c: Likewise.
23475         * libio/freopen64.c: Likewise.
23476         * libio/iofclose.c: Likewise.
23477         * libio/iofdopen.c: Likewise.
23478         * libio/iofflush.c: Likewise.
23479         * libio/iofflush_u.c: Likewise.
23480         * libio/iofgets.c: Likewise.
23481         * libio/iofgets_u.c: Likewise.
23482         * libio/iofopen.c: Likewise.
23483         * libio/iofopncook.c: Likewise.
23484         * libio/iofread.c: Likewise.
23485         * libio/iofread_u.c: Likewise.
23486         * libio/ioftell.c: Likewise.
23487         * libio/iofwrite.c: Likewise.
23488         * libio/iogetline.c: Likewise.
23489         * libio/iogets.c: Likewise.
23490         * libio/iogetwline.c: Likewise.
23491         * libio/iopadn.c: Likewise.
23492         * libio/iopopen.c: Likewise.
23493         * libio/ioseekoff.c: Likewise.
23494         * libio/ioseekpos.c: Likewise.
23495         * libio/iosetbuffer.c: Likewise.
23496         * libio/iosetvbuf.c: Likewise.
23497         * libio/ioungetc.c: Likewise.
23498         * libio/ioungetwc.c: Likewise.
23499         * libio/iovdprintf.c: Likewise.
23500         * libio/iovsprintf.c: Likewise.
23501         * libio/iovsscanf.c: Likewise.
23502         * libio/memstream.c: Likewise.
23503         * libio/obprintf.c: Likewise.
23504         * libio/oldfileops.c: Likewise.
23505         * libio/oldiofclose.c: Likewise.
23506         * libio/oldiofdopen.c: Likewise.
23507         * libio/oldiofopen.c: Likewise.
23508         * libio/oldiopopen.c: Likewise.
23509         * libio/oldstdfiles.c: Likewise.
23510         * libio/putc.c: Likewise.
23511         * libio/setbuf.c: Likewise.
23512         * libio/setlinebuf.c: Likewise.
23513         * libio/stdfiles.c: Likewise.
23514         * libio/strops.c: Likewise.
23515         * libio/vasprintf.c: Likewise.
23516         * libio/vscanf.c: Likewise.
23517         * libio/vsnprintf.c: Likewise.
23518         * libio/vswprintf.c: Likewise.
23519         * libio/wfiledoalloc.c: Likewise.
23520         * libio/wfileops.c: Likewise.
23521         * libio/wgenops.c: Likewise.
23522         * libio/wmemstream.c: Likewise.
23523         * libio/wstrops.c: Likewise.
23524         * libio/__fpurge.c: Likewise.
23525         * libio/__fsetlocking.c: Likewise.
23526         * assert/assert.c: Likewise.
23527         * debug/fgets_chk.c: Likewise.
23528         * debug/fgets_u_chk.c: Likewise.
23529         * debug/fread_chk.c: Likewise.
23530         * debug/fread_u_chk.c: Likewise.
23531         * debug/gets_chk.c: Likewise.
23532         * debug/obprintf_chk.c: Likewise.
23533         * debug/vasprintf_chk.c: Likewise.
23534         * debug/vdprintf_chk.c: Likewise.
23535         * debug/vsnprintf_chk.c: Likewise.
23536         * debug/vsprintf_chk.c: Likewise.
23537         * malloc/mtrace.c: Likewise.
23538         * misc/error.c: Likewise.
23539         * misc/syslog.c: Likewise.
23540         * stdio-common/asprintf.c: Likewise.
23541         * stdio-common/fxprintf.c: Likewise.
23542         * stdio-common/getw.c: Likewise.
23543         * stdio-common/isoc99_fscanf.c: Likewise.
23544         * stdio-common/isoc99_scanf.c: Likewise.
23545         * stdio-common/isoc99_vfscanf.c: Likewise.
23546         * stdio-common/isoc99_vscanf.c: Likewise.
23547         * stdio-common/isoc99_vsscanf.c: Likewise.
23548         * stdio-common/printf-prs.c: Likewise.
23549         * stdio-common/printf_fp.c: Likewise.
23550         * stdio-common/printf_fphex.c: Likewise.
23551         * stdio-common/printf_size.c: Likewise.
23552         * stdio-common/putw.c: Likewise.
23553         * stdio-common/scanf.c: Likewise.
23554         * stdio-common/sprintf.c: Likewise.
23555         * stdio-common/tmpfile.c: Likewise.
23556         * stdio-common/vfprintf.c: Likewise.
23557         * stdio-common/vfscanf.c: Likewise.
23558         * stdlib/strfmon_l.c: Likewise.
23559         * sunrpc/openchild.c: Likewise.
23560         * sunrpc/xdr_stdio.c: Likewise.
23561         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
23562         * sysdeps/mach/hurd/tmpfile.c: Likewise.
23563
23564 2012-05-24  Roland McGrath  <roland@hack.frob.com>
23565
23566         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
23567
23568         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
23569         in the third column, to generate for the shared library an IFUNC
23570         that uses _dl_vdso_vsym.
23571         * Makerules (COMPILE.c, compile-stdin.c): New variables.
23572         * Makeconfig (object-suffixes-noshared): New variable.
23573
23574         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
23575         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
23576         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
23577         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
23578
23579         [BZ #14132]
23580         * include/sys/time.h (__gettimeofday): Remove macro.
23581         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
23582         * time/gettimeofday.c (__gettimeofday): Remove #undef.
23583         Remove INTDEF.
23584         (__gettimeofday): Add libc_hidden_def.
23585         (gettimeofday): Add libc_hidden_weak.
23586         * sysdeps/mach/gettimeofday.c: Likewise.
23587         * sysdeps/posix/gettimeofday.c: Likewise.
23588         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
23589         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23590         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
23591         (__gettimeofday_internal): Remove strong_alias.
23592         (__gettimeofday): Add libc_hidden_def.
23593         (gettimeofday): Add libc_hidden_weak.
23594         * sysdeps/unix/syscalls.list (gettimeofday):
23595         Remove __gettimeofday_internal alias.
23596
23597 2012-05-24  Daniel Jacobowitz  <drow@false.org>
23598             H.J. Lu  <hongjiu.lu@intel.com>
23599
23600         [BZ #12495]
23601         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
23602         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
23603         (largebin_index_32_big): New.
23604         (largebin_index): Use it for 16-byte alignment.
23605         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
23606         correction with front_misalign.
23607
23608 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23609
23610         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
23611         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
23612         Likewise.
23613         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
23614         Likewise.
23615         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23616         Likewise.
23617         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
23618         Likewise.
23619         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
23620         Likewise.
23621         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
23622         Likewise.
23623         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
23624         Likewise.
23625         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
23626         Likewise.
23627         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
23628         Likewise.
23629         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
23630         Likewise.
23631         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
23632         Likewise.
23633         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
23634         Likewise.
23635
23636         * scripts/data/c++-types-x32-linux-gnu.data: New file.
23637         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
23638
23639 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
23640
23641         [BZ #10846]
23642         [BZ #14036]
23643         * math/libm-test.inc (exp_test): Add test from bug 14036.
23644         (pow_test): Add test from bug 10846.
23645
23646         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
23647         and other flags.
23648         (special_function): Do not include flags in test name.
23649         (parse_args): Likewise.
23650         * sysdeps/i386/fpu/libm-test-ulps: Update.
23651         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23652         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23653         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23655
23656         * math/gen-libm-test.pl (%beautify): Add entries for underflow
23657         exceptions.
23658         * math/libm-test.inc ("Philosophy"): Update comment about
23659         exception testing.
23660         (UNDERFLOW_EXCEPTION): New macro.
23661         (UNDERFLOW_EXCEPTION_OK): Likewise.
23662         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
23663         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
23664         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
23665         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
23666         (INVALID_EXCEPTION_OK): Update value.
23667         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23668         (OVERFLOW_EXCEPTION_OK): Likewise.
23669         (IGNORE_ZERO_INF_SIGN): Likewise.
23670         (test_exceptions): Handle underflow exceptions.
23671         (acos_test): Update for underflow exception expectations.
23672         (cexp_test): Likewise.
23673         (clog_test): Likewise.
23674         (clog10_test): Likewise.
23675         (csqrt_test): Likewise.
23676         (ctan_test): Likewise.
23677         (ctanh_test): Likewise.
23678         (exp_test): Likewise.
23679         (exp10_test): Likewise.
23680         (exp2_test): Likewise.
23681         (expm1_test): Likewise.
23682         (fma_test): Likewise.
23683         (j0_test): Likewise.
23684         (jn_test): Likewise.
23685         (nexttoward_test): Likewise.
23686         (pow_test): Likewise.
23687         (scalbn_test): Likewise.
23688         (scalbln_test): Likewise.
23689         (tan_test): Likewise.
23690         (y1_test): Likewise.
23691         * sysdeps/i386/fpu/libm-test-ulps: Update.
23692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23693
23694 2012-05-23  David S. Miller  <davem@davemloft.net>
23695
23696         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23697         (__libc_sigaction): Remove unused local variables.
23698
23699 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23700
23701         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
23702
23703 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23704
23705         mktime: avoid signed integer overflow
23706         * time/mktime.c (__mktime_internal): Do not mishandle the case
23707         where diff == INT_MIN.
23708
23709         mktime: simplify computation of average
23710         * time/mktime.c (ranged_convert): Use new time_t_avg function
23711         instead of rolling our own (probably-slower) code.
23712
23713         mktime: do not assume signed right shift propagates sign bit
23714         * time/mktime.c (isdst_differ): New static function.
23715         (__mktime_internal): No need to normalize tm_isdst now.
23716         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
23717         tm_isdst values.
23718
23719         mktime: merge another wrapv change from gnulib
23720         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
23721         from some compilers.
23722
23723         mktime: remove incorrect attempt at unusual arithmetics
23724         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
23725         The code didn't really work on such machines anyway.
23726         (TYPE_MINIMUM): Assume two's complement.
23727         (twos_complement_arithmetic): Verify that long_int and time_t
23728         are two's complement (or unsigned, in the latter case).
23729
23730         mktime: check signed shifts on long_int and time_t, too
23731         * time/mktime.c (SHR): Check that shifts work as desired
23732         on the types long_int and time_t too, as SHR is used on
23733         such types.
23734
23735         mktime: do not assume 'long' is wide enough
23736         * time/mktime.c (verify): Move decl up.
23737         (long_int): New type.
23738         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
23739         to remove assumption in the code that 'long' is wide enough to
23740         store year values.  This assumption is not true on x32 and on
23741         some non-glibc platforms.
23742
23743         mktime: merge wrapv change from gnulib
23744         * time/mktime.c (WRAPV): New macro.
23745         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
23746         (guess_time_tm, __mktime_internal): Do not assume that signed
23747         integer overflow wraps around; modern compilers generate code
23748         where this assumption is no longer valid.
23749
23750 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23751
23752         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23753         Replace "jmp L(pseudo_end)" with "ret".
23754         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
23755         Likewise.
23756
23757 2012-05-23  Andreas Jaeger  <aj@suse.de>
23758
23759         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
23760         * sysdeps/unix/sysv/linux/poll.c: Remove file.
23761
23762 2012-05-23  Andreas Jaeger  <aj@suse.de>
23763             Maximilian Attems  <max@stro.at>
23764
23765         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
23766         New macros.
23767
23768 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23769
23770         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
23771         code so that pseudo_end is just ret and the stack pointer is
23772         correct also for static library in error case.
23773
23774 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
23775
23776         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
23777         move to syscalls.list.
23778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
23779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
23780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
23781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
23782
23783         * manual/install.texi (Running make install): Do not mention Linux
23784         kernel version for which pt_chown is not needed.
23785         (Linux): Do not mention problems with nscd with 2.0 kernels.
23786         * INSTALL: Regenerated.
23787
23788 2012-05-23  Andreas Jaeger  <aj@suse.de>
23789
23790         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
23791         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
23792         macro.
23793         * sysdeps/unix/sysv/linux/s390/bits/mman.h
23794         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23795         * sysdeps/unix/sysv/linux/sh/bits/mman.h
23796         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23797         * sysdeps/unix/sysv/linux/i386/bits/mman.h
23798         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23799         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
23800         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23801         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
23802         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
23803         * sysdeps/unix/sysv/linux/bits/in.h
23804         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
23805
23806 2012-05-22  Roland McGrath  <roland@hack.frob.com>
23807
23808         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
23809         (PREPARE_VERSION): Just use assert instead, it will be elided
23810         under [NDEBUG] anyway.
23811
23812 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23813
23814         * sysdeps/unix/sysv/linux/Makefile: Include
23815         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
23816         (sysdep_routines): Remove sysctl.
23817         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
23818         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
23819         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
23820         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
23821         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
23822
23823 2012-05-22  Andreas Jaeger  <aj@suse.de>
23824
23825         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
23826         that pseudo_end is just ret and the stack pointer is correct also
23827         for static library in error case.
23828
23829 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
23830
23831         [BZ #14122]
23832         * nss/nsswitch.c (defconfig_entries): New variable.
23833         (__nss_database_lookup): Don't leak defconfig entries.
23834         (nss_parse_service_list): Don't leak on error paths.
23835         (free_database_entries): New function.
23836         (free_defconfig): New function.
23837         (free_mem): Move common code to free_database_entries.
23838
23839 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23840
23841         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
23842         Add arch_prctl.
23843         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
23844
23845         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
23846         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
23847         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
23848         New macro.
23849         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
23850         (INTERNAL_SYSCALL_TYPES): Likewise.
23851         (LOAD_ARGS_TYPES_[1-6]): Likewise.
23852         (LOAD_REGS_TYPES_[1-6]): Likewise.
23853         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
23854         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
23855
23856 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23857
23858         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
23859         copysignl for GLIBC_2_0.
23860         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
23861         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
23862         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
23863         logbl for GLIBC_2_0.
23864         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23865         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23866
23867 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23868
23869         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
23870         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23871
23872         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
23873         Use "neg %eax".
23874
23875         * time/mktime.c: Update copyright years.
23876
23877 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23878
23879         mktime: merge comment-quoting-style change from gnulib
23880         * time/mktime.c: Quote 'like this' in comments.
23881         The GNU coding standards suggest that we no longer quote `like this',
23882         as "`" and "'" are typically rendered asymmetrically nowadays.
23883         The typical gnulib style is to quote 'like this' when quoting
23884         code, and "like this" when quoting English.
23885
23886         * time/mktime.c (compile-command): Add "-I.".
23887
23888         mktime: merge mktime-internal.h change from gnulib
23889         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
23890
23891         mktime: merge time_r change from gnulib
23892         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
23893
23894         mktime: merge DEBUG change from gnulib
23895         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
23896         case system <time.h> has a #define.
23897
23898         mktime: merge <sys/types.h> change from gnulib
23899         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
23900         since <time.t> is now guaranteed to define time_t.
23901
23902         mktime: merge HAVE_CONFIG_H change from gnulib
23903         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
23904
23905 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23906
23907         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23908         Use "neg %eax".
23909
23910         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
23911         __rlim_t cast.
23912         (struct rusage): Use anonymous union to pad each field to
23913         __syscall_slong_t.
23914
23915 2012-05-21  David S. Miller  <davem@davemloft.net>
23916
23917         * Makefules (o-iterator): Remove .s cases.
23918         (compile-command.s): Delete.
23919         (COMPILE.s): Delete.
23920         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
23921
23922 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23923
23924         * configure.in (libc_cv_predef_stack_protector): Only consider
23925         "foobar" and "__stack_chk_fail" lines in libc_undefs.
23926         * configure: Regenerated.
23927
23928 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23929
23930         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
23931         New macro.  Use R*LP on int and pointer.
23932         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
23933         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
23934         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
23935         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
23936
23937         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
23938         [__WORDSIZE_TIME64_COMPAT32] instead of
23939         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
23940         (struct utmp): Likewise.
23941         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
23942         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23943         Renamed to ...
23944         (__WORDSIZE_TIME64_COMPAT32): This.
23945         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
23946         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
23947         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
23948         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
23949         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
23950         (__WORDSIZE_TIME64_COMPAT32): New macro.
23951
23952 2012-05-21  Andreas Jaeger  <aj@suse.de>
23953
23954         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
23955         only if [SHARED]. Add prototype for __wcschr_ia32.
23956
23957 2012-05-21  Roland McGrath  <roland@hack.frob.com>
23958
23959         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
23960         of %rbp unmolested in the jmp_buf while mangling the low bits.
23961         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
23962         unmolested high bits of %rbp while demangling the low bits.
23963         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
23964
23965 2012-05-21  Andreas Jaeger  <aj@suse.de>
23966
23967         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
23968         * sunrpc/svc_simple.c: Use it for registerrpc.
23969         * sunrpc/xcrypt.c: Use it for passwd2des.
23970
23971         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
23972
23973 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23974
23975         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
23976         Don't define if [__SYSCALL_WORDSIZE != 32].
23977         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
23978         New macro.
23979
23980 2012-05-21  Bruno Haible  <bruno@clisp.org>
23981             Andreas Jaeger  <aj@suse.de>
23982
23983         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
23984         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
23985         inptr and inend for must_buffer_ch.
23986         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
23987         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
23988         * stdio-common/Makefile (tests): Remove bug15.
23989         (bug15-ENV): Remove macro.
23990         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
23991         anymore.
23992
23993 2012-05-19  Andreas Jaeger  <aj@suse.de>
23994             Roland McGrath  <roland@hack.frob.com>
23995
23996         * manual/contrib.texi: Completely rewritten. It contains now an
23997         alphabetical list of contributors and their contributions.
23998
23999 2012-05-21  Richard Henderson  <rth@twiddle.net>
24000
24001         * misc/getauxval.c (__getauxval): Use unsigned long int.
24002         * misc/sys/auxv.h: Include <sys/cdefs.h>.
24003         (getauxval): Use unsigned long int.
24004
24005 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
24006
24007         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
24008
24009 2012-05-21  Roland McGrath  <roland@hack.frob.com>
24010
24011         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
24012         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
24013         __alignof__ (long double).
24014
24015 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24016
24017         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24018
24019 2012-05-20  Richard Henderson  <rth@twiddle.net>
24020
24021         * misc/getauxval.c: New file.
24022         * misc/sys/auxv.h: New file.
24023         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
24024         (routines): Add getauxval.
24025         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
24026         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
24027         * elf/dl-sysdep.c (_dl_auxv): Remove.
24028         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
24029         * elf/dl-support.c (_dl_auxv): New variable.
24030         (_dl_aux_init): Initialize it.
24031         * manual/startup.texi (Auxiliary Vector): New node.
24032         * sysdeps/generic/bits/hwcap.h: New file.
24033         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
24034         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
24035         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
24036         * sysdeps/sparc/sysdep.h: ... here.  Include it.
24037         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
24038         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
24039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24040         Update.
24041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
24042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
24043         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
24044         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
24045         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
24046         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
24047         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
24048         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
24049
24050 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24051
24052         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24053
24054 2012-05-19  David S. Miller  <davem@davemloft.net>
24055
24056         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24057
24058 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
24059
24060         [BZ #14123]
24061         * math/s_ccosh.c: Include <float.h>
24062         (__ccosh): Avoid internal overflow calculating sinh and cosh
24063         values before multiplying by sin and cos values.
24064         * math/s_ccoshf.c: Likewise.
24065         * math/s_ccoshl.c: Likewise.
24066         * math/s_csin.c: Likewise.
24067         * math/s_csinf.c: Likewise.
24068         * math/s_csinl.c: Likewise.
24069         * math/s_csinh.c: Likewise.
24070         * math/s_csinhf.c: Likewise.
24071         * math/s_csinhl.c: Likewise.
24072         * math/libm-test.inc (ccos_test): Add more tests.
24073         (ccosh_test): Likewise.
24074         (csin_test): Likewise.
24075         (csinh_test): Likewise.
24076         * sysdeps/i386/fpu/libm-test-ulps: Update.
24077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24078
24079 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
24080
24081         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
24082         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
24083
24084         * sysdeps/x86_64/x32/_itoa.h: Add comment.
24085
24086 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
24087
24088         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
24089         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
24090         * sysdeps/powerpc/soft-fp/Versions: Likewise.
24091         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
24092         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
24093         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
24094         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
24095         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
24096         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
24097         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
24098         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
24099         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
24100         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
24101         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
24102         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
24103         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
24104         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
24105         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
24106         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
24107         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
24108         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
24109         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
24110         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
24111         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
24112         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
24113         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
24114         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
24115         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
24116         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
24117         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
24118         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
24119
24120 2012-05-18  Andreas Jaeger  <aj@suse.de>
24121
24122         * csu/.gitignore: Delete.
24123
24124 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24125
24126         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
24127         (timex): Use __syscall_slong_t.
24128
24129 2012-05-18  Andreas Jaeger  <aj@suse.de>
24130             Carlos O'Donell  <carlos_odonell@mentor.com>
24131
24132         * manual/install.texi (Configuring and compiling): Update
24133         description about files modified in the source directory.
24134         * INSTALL: Regenerated.
24135
24136 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24137
24138         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
24139         value.  Use "or" to set return value to -1.
24140         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
24141         negate return value.
24142
24143 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24144
24145         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
24146         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
24147         failure if the compiler has Graphite support disabled.
24148         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
24149         Likewise.
24150         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
24151         CFLAGS-memmove.c): Likewise.
24152         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
24153         Likewise.
24154
24155 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
24156
24157         * sysdeps/x86_64/x32/_itoa.h: New file.
24158
24159         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
24160         getdents system call only if kernel and user dirents have the
24161         same d_ino and d_off.
24162
24163         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
24164         LLONG_MAX != LONG_MAX.
24165         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24166         (_fitoa_word): Likewise.
24167
24168         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
24169         years.
24170         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
24171         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
24172         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
24173
24174         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
24175         include <bits/wordsize.h>.  Check __x86_64__ instead of
24176         __WORDSIZE.
24177         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
24178         if __x86_64__ is defined.  Use anonymous union on fpstate.
24179
24180         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
24181         anonymous union.
24182
24183 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
24184
24185         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24186         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
24187         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
24188         Refer to _rtld_local_ro instead of _rtld_global_ro.
24189         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
24190         Likewise.
24191         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
24192         Likewise.
24193         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
24194         Likewise.
24195         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
24196         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
24197         of _rtld_global, and rtld_progname instead of _dl_argv[0].
24198
24199         * sysdeps/powerpc/powerpc32/dl-machine.c
24200         (__elf_machine_runtime_setup) [PROF]: Don't reference
24201         _dl_prof_resolve.
24202
24203 2012-05-18  Andreas Jaeger  <aj@suse.de>
24204
24205         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
24206         function only available for GCCs before 3.4 since GCC 3.4
24207         introduced a builtin.
24208         (lrint): Likewise.
24209         (llrintf): Likewise.
24210         (llrint): Likewise.
24211         (fmaxf): Likewise.
24212         (fmax): Likewise.
24213         (fminf): Likewise.
24214         (fmin): Likewise.
24215         (rint): Likewise.
24216         (rintf): Likewise.
24217         (nearbyint): Likewise.
24218         (nearbyintf): Likewise.
24219         (ceil): Likewise.
24220         (ceilf): Likewise.
24221         (floor): Likewise.
24222         (floorf): Likewise.
24223
24224 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24225
24226         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
24227         on both fields and cast pointer to __syscall_ulong_t.
24228
24229         * bits/types.h (__fsword_t): New type.
24230         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
24231         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
24232         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24233         (__FSWORD_T_TYPE): Likewise.
24234         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24235         (__FSWORD_T_TYPE): Likewise.
24236         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24237         (__FSWORD_T_TYPE): Likewise.
24238         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
24239         (__FSWORD_T_TYPE): Likewise.
24240         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
24241         __SWORD_TYPE with __fsword_t.
24242         (statfs64): Likewise.
24243
24244 2012-05-17  David S. Miller  <davem@davemloft.net>
24245
24246         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
24247
24248 2012-05-17  Andreas Jaeger  <aj@suse.de>
24249
24250         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
24251         warning.
24252
24253 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24254
24255         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
24256
24257 2012-05-17  Andreas Jaeger  <aj@suse.de>
24258
24259         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
24260         when it is used.
24261
24262 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24263
24264         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
24265
24266 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24267
24268         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
24269         * sysdeps/x86_64/tst-mallocalign1.c: New file.
24270
24271 2012-05-17  Andreas Jaeger  <aj@suse.de>
24272             Carlos O'Donell  <carlos_odonell@mentor.com>
24273
24274         [BZ #14059]
24275         * sysdeps/x86_64/multiarch/init-arch.h
24276         (bit_YMM_Usable): Rename to...
24277         (bit_AVX_Usable): ... this.
24278         (bit_FMA4_Usable): New macro.
24279         (bit_XMM_state): New macro.
24280         (bit_YMM_state): New macro.
24281         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
24282         [__ASSEMBLER__] (index_AVX_Usable): ... this.
24283         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
24284         (CPUID_OSXSAVE): New macro.
24285         (CPUID_AVX): New macro.
24286         (CPUID_FMA4): New macro.
24287         (index_YMM_Usable): Rename to...
24288         (index_AVX_Usable): ... this.
24289         (HAS_AVX): Use HAS_ARCH_FEATURE.
24290         (HAS_FMA4): Likewise.
24291         (HAS_YMM_USABLE): Remove.
24292         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24293         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
24294         are present.
24295         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
24296         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
24297         * sysdeps/x86_64/multiarch/Makefile: Likewise.
24298         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
24299         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
24300
24301 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
24302
24303         * math/libm-test.c: Support platforms without multiple rounding modes.
24304         * math/bug-nextafter.c: Support platforms without FP exceptions.
24305         * math/bug-nexttoward.c: Likewise.
24306         * math/test-fenv.c: Likewise.
24307         * math/test-misc.c: Likewise.
24308         * stdlib/bug-getcontext.c: Likewise.
24309
24310 2012-05-17  Andreas Jaeger  <aj@suse.de>
24311
24312         * manual/examples/search.c (critter_cmp): Change signature to
24313         avoid warnings.
24314         * manual/string.texi (Collation Functions): Likewise.
24315
24316 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24317
24318         * bits/types.h: Fold copyright years.
24319         * bits/typesizes.h: Likewise.
24320         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
24321         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
24322         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
24323         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
24324         * time/time.h: Likewise.
24325
24326 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
24327
24328         [BZ #208]
24329         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
24330         in instead of returning them.  Return void.
24331         (__libc_mallinfo): Accumulate over all arenas.
24332         (__malloc_stats): Adjust for change in int_mallinfo interface.
24333
24334 2012-05-16  Roland McGrath  <roland@hack.frob.com>
24335
24336         [BZ #10375]
24337         * configure.in (NM): Add AC_CHECK_TOOL for it.
24338         (libc_extra_cflags): New substituted variable.
24339         Check for -fstack-protector being used implicitly.
24340         * configure: Regenerated.
24341         * config.make.in (config-extra-cflags): New variable,
24342         gets @libc_extra_cflags@.
24343         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
24344
24345         [BZ #10375]
24346         * configure.in: Check for _FORTIFY_SOURCE being predefined.
24347         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
24348         * configure: Regenerated.
24349         * config.make.in (CPPUNDEFS): New substituted variable.
24350         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
24351         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
24352         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
24353
24354 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24355
24356         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
24357         (mq_attr): Use __syscall_slong_t.
24358
24359 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24360
24361         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
24362         Check __x86_64__ instead of __WORDSIZE.
24363         (_STAT_VER_LINUX): Likewise.
24364         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
24365         __syscall_ulong_t and __syscall_slong_t.
24366         (stat64): Likewise.
24367
24368 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24369
24370         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
24371
24372 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24373
24374         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
24375
24376 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24377
24378         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
24379         __syscall_ulong_t.
24380
24381         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
24382         include <bits/wordsize.h>.  Check __x86_64__ instead of
24383         __WORDSIZE.
24384         (greg_t): Use "__extension__ long long int" if __x86_64__ is
24385         defined.
24386         (mcontext_t): Replace "unsigned long" with "unsigned long long".
24387
24388         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
24389         include <bits/wordsize.h>.  Check __x86_64__ instead of
24390         __WORDSIZE.
24391         (user_regs_struct): Use "__extension__ unsigned long long"
24392         instead of "unsigned long" if __x86_64__ is defined.
24393         (user): Likewise.  Pad after pointer field if __ILP32__ is
24394         defined.
24395
24396 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
24397
24398         * configure.in (makeinfo): Require version 4.5 or later.  Allow
24399         versions 5 to 9.
24400         * configure: Regenerated.
24401         * manual/install.texi (texinfo): Increase version requirement to
24402         4.5 or later.
24403         * INSTALL: Regenerated.
24404
24405         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
24406
24407 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24408
24409         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
24410
24411         * sysdeps/x86_64/x32/ffs.c: New file.
24412
24413         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
24414         __syscall_ulong_t.
24415         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
24416         defined.  Use __syscall_ulong_t.
24417         (shminfo): Use __syscall_ulong_t.
24418         (shm_info): Likewise.
24419
24420         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
24421         __syscall_ulong_t.
24422
24423         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
24424         <bits/wordsize.h>.
24425         (msgqnum_t): Use __syscall_ulong_t.
24426         (msglen_t): Likewise.
24427         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
24428         __syscall_ulong_t.
24429
24430         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
24431         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24432
24433         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
24434
24435         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
24436         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
24437
24438         * sysvipc/sys/msg.h (msgbuf): Replace long int with
24439         __syscall_slong_t.
24440
24441         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
24442         include <bits/wordsize.h>.  Check __x86_64__ instead of
24443         __WORDSIZE.
24444
24445         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
24446         "unsigned long long int" if __x86_64__ is defined.
24447         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
24448
24449         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
24450         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
24451         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
24452
24453         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
24454         <stdint.h>.
24455         (GET_PC): Cast to uintptr_t first.
24456         (GET_FRAME): Likewise.
24457         (GET_STACK): Likewise.
24458
24459         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
24460         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
24461         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
24462         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
24463         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
24464         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
24465         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
24466         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
24467         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24468         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
24469         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
24470         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
24471         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
24472         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
24473         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
24474         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
24475         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
24476         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
24477         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
24478         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
24479         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
24480         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
24481         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
24482         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
24483         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
24484         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
24485         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
24486         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
24487         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
24488
24489 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
24490
24491         * Makerules (+depfiles): Also collect depfiles from .oS in
24492         $(extra-objs).
24493         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
24494         .oS, $(libnldbl-routines)).
24495
24496         * Makerules (native-compile-mkdep-flags): Define.
24497         * sunrpc/Makefile (extra-objs): Add $(addprefix
24498         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
24499         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
24500         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
24501         calling $(make-target-directory).
24502
24503 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24504
24505         * bits/types.h (__snseconds_t): Removed.
24506         * time/time.h (struct timespec): Replace __snseconds_t with
24507         __syscall_slong_t.
24508         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
24509         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
24510         Likewise.
24511         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24512         (__SNSECONDS_T_TYPE): Likewise.
24513         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24514         (__SNSECONDS_T_TYPE): Likewise.
24515         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24516         (__SNSECONDS_T_TYPE): Likewise.
24517
24518 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24519
24520         * sysdeps/mach/hurd/bits/typesizes.h
24521         (__SYSCALL_SLONG_TYPE): New macro.
24522         (__SYSCALL_ULONG_TYPE): Likewise.
24523
24524 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24525
24526         * bits/types.h (__syscall_slong_t): New type.
24527         (__syscall_ulong_t): Likewise.
24528
24529         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
24530         (__SYSCALL_ULONG_TYPE): Likewise.
24531         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
24532         (__SYSCALL_SLONG_TYPE): Likewise.
24533         (__SYSCALL_ULONG_TYPE): Likewise.
24534         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
24535         (__SYSCALL_SLONG_TYPE): Likewise.
24536         (__SYSCALL_ULONG_TYPE): Likewise.
24537         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
24538         (__SYSCALL_SLONG_TYPE): Likewise.
24539         (__SYSCALL_ULONG_TYPE): Likewise.
24540
24541 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24542
24543         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
24544         Add sigaltstack-offsets.sym.
24545         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
24546         <sigaltstack-offsets.h>.
24547         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
24548         longjmp_msg pointer.
24549         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
24550         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
24551         signal stack.
24552         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
24553
24554 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24555
24556         * elf/stackguard-macros.h: Remove file.
24557         * sysdeps/generic/stackguard-macros.h: New file.
24558         * sysdeps/i386/stackguard-macros.h: Likewise.
24559         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
24560         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
24561         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
24562         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
24563         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
24564         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
24565         * sysdeps/x86_64/stackguard-macros.h: Likewise.
24566         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
24567         <elf/stackguard-macros.h>.
24568
24569         [BZ #14109]
24570         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
24571         __aligned__ in attribute.
24572         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
24573         (gregset_t): Likewise.
24574
24575 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24576
24577         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
24578         * sysdeps/x86_64/64/Implies-after: Here.  New file.
24579         * sysdeps/x86_64/x32/Implies-after: New file.
24580
24581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24582
24583         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
24584         and access return value for _dl_profile_fixup.  Use R10_LP to
24585         load frame size.
24586
24587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24588
24589         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
24590
24591 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24592
24593         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
24594         * sysdeps/x86_64/x32/sysdep.h: New file.
24595
24596 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24597
24598         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
24599         * sysdeps/x86_64/setjmp.S: Likewise.
24600
24601 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24602
24603         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
24604         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
24605         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
24606         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
24607         remove unused global constant.
24608
24609 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
24610
24611         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
24612         include of <not-cancel.h>.
24613
24614 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24615
24616         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
24617
24618 2012-05-15  Jeff Law  <law@redhat.com>
24619             Andreas Jaeger  <aj@suse.de>
24620
24621         [BZ #13594]
24622         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
24623         out from...
24624         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
24625         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
24626         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
24627         code changing __hst_map_handle.map.
24628
24629 2012-05-15  Roland McGrath  <roland@hack.frob.com>
24630
24631         * configure.in (sysnames): Look for Implies-before and Implies-after
24632         files.
24633         * configure: Regenerated.
24634
24635 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24636
24637         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
24638         8-byte data alignment with LP_SIZE alignment.
24639
24640 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24641
24642         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
24643         into R10_LP.
24644
24645 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24646
24647         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
24648
24649 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24650
24651         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
24652         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
24653         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
24654         Likewise.
24655         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
24656
24657 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24658
24659         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
24660         (stackinfo_sub_sp): Likewise.
24661
24662 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24663
24664         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
24665         RAX_LP.
24666
24667 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24668
24669         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
24670         into R*_LP.
24671
24672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24673
24674         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
24675         sizes into R*_LP.
24676
24677 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24678
24679         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
24680
24681 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24682
24683         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
24684         into R11_LP and load __x86_64_shared_cache_size_half into
24685         R8_LP.
24686
24687 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
24688
24689         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
24690         R8_LP.
24691
24692 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24693
24694         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
24695         logb for POWER7.
24696         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
24697         logbf for POWER7.
24698         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
24699         logbl for POWER7.
24700         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
24701         powerpc32/power7/fpu/s_logb.c via #include.
24702         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
24703         powerpc32/power7/fpu/s_logbf.c via #include.
24704         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
24705         powerpc32/power7/fpu/s_logbl.c via #include.
24706
24707 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
24708
24709         * README.libm: Remove file.
24710
24711 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24712
24713         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
24714         count for x32.  Use R*_LP and omit operand-size suffix.
24715
24716 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24717
24718         * shlib-versions: Move x86_64-.*-linux.* entries to ...
24719         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
24720         * sysdeps/x86_64/x32/shlib-versions: New file.
24721
24722 2012-05-14  Roland McGrath  <roland@hack.frob.com>
24723
24724         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
24725         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
24726         Use _dl_fatal_printf instead.
24727
24728 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24729
24730         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
24731         set if not set by the user.  Do not allow for being unset.
24732         * sysdeps/unix/sysv/linux/configure: Regenerated.
24733
24734 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24735
24736         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
24737         the `q' suffix from lea and replace .quad with ASM_ADDR.
24738
24739 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24740
24741         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
24742         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
24743         instead of $17.
24744         (PTR_DEMANGLE): Likewise.
24745
24746 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24747
24748         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
24749         (LP_OP): Likewise.
24750         (ASM_ADDR): Likewise.
24751         (RAX_LP): Likewise.
24752         (RBP_LP): Likewise.
24753         (RBX_LP): Likewise.
24754         (RCX_LP): Likewise.
24755         (RDI_LP): Likewise.
24756         (RSI_LP): Likewise.
24757         (RSP_LP): Likewise.
24758         (R8_LP): Likewise.
24759         (R9_LP): Likewise.
24760         (R10_LP): Likewise.
24761         (R10_LP): Likewise.
24762         (R11_LP): Likewise.
24763         (R12_LP): Likewise.
24764         (R13_LP): Likewise.
24765         (R14_LP): Likewise.
24766         (R15_LP): Likewise.
24767
24768 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24769
24770         * sysdeps/x86_64/x32/dl-machine.h: New file.
24771
24772 2012-05-14  Andreas Jaeger  <aj@suse.de>
24773
24774         * manual/Makefile (subdir): Remove export of subdir.
24775         (all): Remove target.
24776         (.PHONY): Remove all from list.
24777         (mkinstalldirs): Remove.
24778         (.PHONY): Remove installdirs from list.
24779         ($(inst_infodir)/libc.info): Use make-target-directory.
24780         (installdirs): Remove.
24781         (subdir_%): Remove.
24782         (glibc-targets): Remove.
24783         (lib): Remove.
24784         (stubs): Remove.
24785         ($(objpfx)stubs ../po/manual.pot): Remove.
24786         ($(objpfx)stamp%): Remove.
24787         (make-target-directory): Remove.
24788         (subdir_install): Remove.
24789         (routines): Remove.
24790         (aux): Remove.
24791         (sources): Remove.
24792         (objects): Remove.
24793         (headers): Remove.
24794
24795         [BZ #13750]
24796         * manual/.gitignore: Remove, it's not needed anymore.
24797         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
24798         all files in it.
24799         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
24800         directory.
24801         (texis): Renamed to $(objpfx)texis.
24802         (texis-path): New, contains path to generated files.
24803         (chapters.%): Use texis-path for complete path, add extra argument
24804         libc-texinfo.sh.
24805         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
24806         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
24807         (summary,texi, stamp-summary): Use complete path of
24808         files. Generate files in build dir.
24809         (dir-add.texi): Build in build dir.
24810         (libm-err.texi,stamp-libm-err): Likewise.
24811         (version.texi, stamp-version): Likewise.
24812         (.%c.texi): Likewise.
24813         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
24814         (mostlyclean): Remove target.
24815         (realclean): Remove target.
24816         (generated): Add new variable with contents from mostlyclean and
24817         realclean, remove entries duplicated in common-mostlyclean, add
24818         stamp-libm-err and stamp-version.
24819         (generated-dirs): Add libc directory.
24820         ($(inst_infodir)/libc.info): Install files from build dir.
24821
24822         * manual/install.texi (Configuring and compiling): Adjust since
24823         the info files are not part of the tar ball anymore.
24824
24825 2012-05-14  Andreas Jaeger  <aj@suse.de>
24826
24827         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
24828         variable.
24829
24830 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
24831
24832         [BZ #13717]
24833         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
24834         to 2.2.0 where earlier.
24835         * sysdeps/unix/sysv/linux/configure: Regenerated.
24836         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
24837         Remove conditional code.
24838         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
24839         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
24840         Remove conditional code.
24841         [!__NR_lchown]: Likewise.
24842         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24843         [__NR_lchown]: Likewise.
24844         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
24845         comment referencing __ASSUME_LCHOWN_SYSCALL.
24846         * sysdeps/unix/sysv/linux/i386/sigaction.c
24847         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24848         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24849         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
24850         Remove conditional code.
24851         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
24852         (__protocol_available): Remove #if 0 code.
24853         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
24854         conditional code.
24855         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
24856         * sysdeps/unix/sysv/linux/kernel-features.h
24857         (__ASSUME_GETCWD_SYSCALL): Don't define.
24858         (__ASSUME_REALTIME_SIGNALS): Likewise.
24859         (__ASSUME_PREAD_SYSCALL): Likewise.
24860         (__ASSUME_PWRITE_SYSCALL): Likewise.
24861         (__ASSUME_POLL_SYSCALL): Likewise.
24862         (__ASSUME_LCHOWN_SYSCALL): Likewise.
24863         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
24864         non-SPARC.
24865         (__ASSUME_SIOCGIFNAME): Don't define.
24866         (__ASSUME_MSG_NOSIGNAL): Likewise.
24867         (__ASSUME_SENDFILE): Define unconditionally.
24868         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
24869         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
24870         conditional code.
24871         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
24872         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
24873         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24874         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24875         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
24876         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
24877         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
24878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
24879         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24880         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
24882         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24883         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
24885         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24886         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
24888         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24889         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
24891         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24892         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
24894         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
24895         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
24897         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24898         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
24900         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24901         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24902         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
24903         Remove conditional code.
24904         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24905         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24906         Remove conditional code.
24907         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24908         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
24909         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
24910         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24911         Remove conditional code.
24912         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24913         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
24914         Remove conditional code.
24915         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24916         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
24917         Remove conditional code.
24918         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24919         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
24920         Remove conditional code.
24921         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
24922         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
24923         Remove conditional code.
24924         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24925         * sysdeps/unix/sysv/linux/sh/pwrite64.c
24926         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
24927         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
24928         * sysdeps/unix/sysv/linux/sigaction.c
24929         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24930         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24931         * sysdeps/unix/sysv/linux/sigpending.c
24932         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24933         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24934         * sysdeps/unix/sysv/linux/sigprocmask.c
24935         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24936         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24937         * sysdeps/unix/sysv/linux/sigsuspend.c
24938         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
24939         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
24940         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
24941         (__libc_missing_rt_sigs): Remove.
24942         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
24943         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
24944         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
24945         Remove conditional code.
24946         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
24947         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
24948         return 1.
24949         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
24950         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
24951         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
24952         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
24953
24954 2012-05-14  Andreas Jaeger  <aj@suse.de>
24955
24956         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
24957         it's not used in glibc.
24958         (__coshm1): Likewise.
24959         (__acosh1p): Likewise.
24960         (__sgn): Likewise.
24961
24962         * manual/string.texi (Copying and Concatenation): Add missing
24963         variable in concat example.
24964         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
24965
24966 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24967
24968         [BZ #14103]
24969         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
24970         __builtin_clzl with __builtin_clzll.
24971
24972 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
24973
24974         [BZ #14104]
24975         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
24976         libc_freeres_ptr.
24977
24978 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24979
24980         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
24981         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
24982         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
24983         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
24984
24985 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
24986
24987         * NEWS: Update ia64 info.
24988
24989 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
24990
24991         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
24992         used as bcopy.
24993
24994 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
24995
24996         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
24997         * sysdeps/unix/syscalls.list (dup3): Likewise.
24998         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
24999         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
25000
25001 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
25002
25003         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
25004         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
25005
25006 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
25007
25008         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
25009         thread pointer.
25010         (TLS_IE): Use mov/add instead of movq/addq to load thread
25011         pointer.
25012         (TLS_GD_PREFIX): New.
25013         (TLS_GD): Use it.
25014
25015 2012-05-11  David S. Miller  <davem@davemloft.net>
25016
25017         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
25018         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
25019         (_FPU_SETCW): Likewise.
25020
25021 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25022
25023         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
25024         is 32-byte aligned.
25025
25026 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
25027
25028         [BZ #11837]
25029         * iconvdata/gb18030.c: Update tables.
25030         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
25031         characters specially.
25032         (BODY for TO_LOOP): Add encoding of missing ranges.
25033
25034 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
25035
25036         [BZ #13673]
25037         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
25038         * sysdeps/mach/hurd/dup3.c: Likewise.
25039         * sysdeps/mach/hurd/readlinkat.c: Likewise.
25040         * sysdeps/powerpc/memmove.c:: Likewise.
25041
25042 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25043
25044         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
25045         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
25046
25047 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25048
25049         * elf/elf.h (R_X86_64_RELATIVE64): New.
25050         (R_X86_64_NUM): Updated.
25051         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
25052         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
25053         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
25054         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
25055         tst-quad1pie tst-quad2pie
25056         (modules-names): Add tst-quadmod1 tst-quadmod2.
25057         ($(objpfx)tst-quad1): New dependency.
25058         ($(objpfx)tst-quad2): Likewise.
25059         ($(objpfx)tst-quad1pie): Likewise.
25060         ($(objpfx)tst-quad2pie): Likewise.
25061         * sysdeps/x86_64/tst-quad1.c: New file.
25062         * sysdeps/x86_64/tst-quad1pie.c: New file.
25063         * sysdeps/x86_64/tst-quad2.c: Likewise.
25064         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
25065         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
25066         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
25067         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
25068         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
25069
25070 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25071
25072         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
25073         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
25074         * streams/stropts.h (t_scalar_t): Define type.
25075
25076         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
25077         (_PATH_PRESERVE): Set to "/var/lib".
25078         (_PATH_RWHODIR): Set to "/var/spool/rwho".
25079
25080         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
25081         instead of int.
25082
25083         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
25084         if __dir_mkfile succeeded.
25085
25086         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
25087         checking for _hurd_dtablesize.  Unlock it right after having
25088         finished _hurd_dtable allocation.
25089
25090 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25091
25092         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
25093         * sysdeps/mach/hurd/configure: Regenerated.
25094         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
25095         special-casing to...
25096         * sysdeps/gnu/configure.in: ... this new file.
25097         * sysdeps/unix/sysv/linux/configure: Regenerated.
25098         * sysdeps/gnu/configure: New generated file.
25099
25100         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
25101         for Linux: use nsec instead of usec, as well as:
25102         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
25103         members of type struct timespec.
25104         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
25105         New macros.
25106         (struct stat64): Likewise.
25107         (_STATBUF_ST_NSEC): New macro.
25108         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
25109
25110         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
25111         __strtoul_internal rather than strtoul.
25112
25113 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25114
25115         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
25116         and reject them.
25117
25118 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25119
25120         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
25121         which preserves existing values.
25122         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
25123
25124 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25125
25126         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
25127         TIMEOUT values.  Return EINVAL for NFDS values either negative or
25128         greater than FD_SETSIZE.
25129
25130 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25131
25132         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
25133         allocated, call __vm_protect to finish enabling the existing space, and
25134         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
25135         allocate the remainder.
25136
25137 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25138
25139         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
25140         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
25141
25142 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25143
25144         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
25145         sysdeps/mach/hurd/readlink.c.
25146
25147         * posix/tst-sysconf.c (posix_options): Only use
25148         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
25149         _POSIX_SYNCHRONIZED_IO when they are defined
25150         * sysdeps/mach/hurd/bits/posix_opt.h:
25151         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
25152         (_XOPEN_REALTIME): Undefine macro.
25153         (_XOPEN_REALTIME_THREADS): Undefine macro.
25154         (_XOPEN_SHM): Undefine macro.
25155         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
25156         macro to -1.
25157         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
25158         macro to -1.
25159         (_POSIX_ASYNC_IO): Undefine macro.
25160         (_POSIX_PRIORITIZED_IO): Undefine macro.
25161         (_POSIX_SPIN_LOCKS): Define macro to -1.
25162
25163         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
25164         SA_NODEFER, SA_RESETHAND.
25165         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
25166         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
25167         F_DUPFD_CLOEXEC.
25168
25169 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25170
25171         * elf/Makefile (pldd-modules): Define unconditionally.
25172
25173 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25174
25175         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
25176
25177 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25178
25179         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
25180         Return ENOENT when name is empty.
25181         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
25182
25183 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25184
25185         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
25186
25187         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
25188
25189 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25190
25191         Fix mlock in all cases except non-readable pages.
25192         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
25193         instead of VM_PROT_ALL as parameter to __vm_wire function.
25194
25195         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
25196         (__mkdir): When path is `/', just fail with EEXIST.
25197         * sysdeps/mach/hurd/mkdirat.c: Likewise.
25198
25199 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25200
25201         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
25202         <sys/uio.h> (for writev).
25203         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
25204         and <sys/param.h> (for MIN).
25205
25206 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25207
25208         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
25209         REQUESTED_TIME.  Properly set the remaining time and return EINTR
25210         if interrupted.
25211
25212 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25213
25214         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
25215         Depend on against $(link-rpcuserlibs).
25216
25217 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25218
25219         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
25220         (__libc_stack_end): Do not use attribute_relro.
25221         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
25222         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
25223         to libthread-provided value.
25224         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
25225         attribute_relro.
25226
25227 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25228
25229         [BZ #3748]
25230         * bits/libc-lock.h (__libc_once_get): New macro.
25231         * sysdeps/mach/bits/libc-lock.h: Likewise.
25232         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
25233         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
25234         instead of using implementation details.
25235
25236         * libio/fileops.c: Unconditionally include <kernel-features.h>.
25237         * libio/freopen.c: Likewise.
25238         * libio/freopen64.c: Likewise.
25239         * misc/syslog.c: Likewise.
25240         * nscd/connections.c: Likewise.
25241         * nscd/netgroupcache.c: Likewise.
25242         * sysdeps/posix/getcwd.c: Likewise.
25243
25244 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25245
25246         * math/w_ilogbf.c: Add #include <limits.h>.
25247
25248 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25249
25250         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
25251         path instead of returning without unlocking.
25252
25253         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
25254         immediate-write ioctls.
25255         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
25256
25257 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25258
25259         * sysdeps/mach/hurd/i386/init-first.c (init): Use
25260         __builtin_frame_address instead of making assumptions about the
25261         location of the return address relative to DATA.  Force early load of
25262         the return address.
25263         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
25264         __builtin_frame_address.
25265
25266         dup3 for GNU Hurd.
25267         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
25268         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
25269         implement dup3 and do some further code clean-ups.
25270         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
25271         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
25272
25273 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25274
25275         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
25276
25277         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
25278         HURD_CRITICAL_END around holding _hurd_dtable_lock.
25279         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
25280         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
25281         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
25282         d->port.lock.
25283
25284         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
25285         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
25286         when handler == SIG_ERR, not when handler != SIG_ERR.
25287
25288 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25289
25290         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
25291         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
25292         definitions.
25293
25294         accept4 for GNU Hurd.
25295         * include/sys/socket.h (__libc_accept4): New prototype.
25296         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
25297         to implement __libc_accept4.
25298         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
25299         __libc_accept4.
25300         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
25301
25302         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
25303         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
25304         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
25305         signal-defines.sym.
25306
25307 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25308
25309         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
25310
25311 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
25312
25313         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
25314         assertion on O_CLOEXEC flag.
25315         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
25316         * hurd/intern-fd.c: Likewise.
25317         * hurd/port2fd.c: Likewise.
25318
25319 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25320
25321         [BZ #3906]
25322         * bits/in.h (IPV6_PKTINFO): Define new macro.
25323         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
25324
25325 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25326
25327         [BZ #13954]
25328         [BZ #13955]
25329         [BZ #13956]
25330         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
25331         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
25332         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
25333         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
25334         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25335         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
25336         * math/libm-test.inc (logb_test) : Additional logb tests.
25337
25338 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
25339             Andreas Jaeger  <aj@suse.de>
25340
25341         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
25342         * configure: Regenerated.
25343         * config.h.in (LINK_OBSOLETE_RPC): New macro.
25344         * config.make.in (link-obsolete-rpc): New substituted variable.
25345         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
25346         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
25347         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25348         (shared-only-routines): Don't set it under [link-obsolete-rpc],
25349         so that libc.a contains the symbols.
25350         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
25351         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
25352         * sunrpc/auth_none.c: Likewise.
25353         * sunrpc/auth_unix.c: Likewise.
25354         * sunrpc/authdes_prot.c: Likewise.
25355         * sunrpc/authuxprot.c: Likewise.
25356         * sunrpc/clnt_gen.c: Likewise.
25357         * sunrpc/clnt_perr.c: Likewise.
25358         * sunrpc/clnt_raw.c: Likewise.
25359         * sunrpc/clnt_simp.c: Likewise.
25360         * sunrpc/clnt_tcp.c: Likewise.
25361         * sunrpc/clnt_udp.c: Likewise.
25362         * sunrpc/clnt_unix.c: Likewise.
25363         * sunrpc/des_crypt.c: Likewise.
25364         * sunrpc/des_soft.c: Likewise.
25365         * sunrpc/get_myaddr.c: Likewise.
25366         * sunrpc/key_call.c: Likewise.
25367         * sunrpc/key_prot.c: Likewise.
25368         * sunrpc/netname.c: Likewise.
25369         * sunrpc/pm_getmaps.c: Likewise.
25370         * sunrpc/pm_getport.c: Likewise.
25371         * sunrpc/pmap_clnt.c: Likewise.
25372         * sunrpc/pmap_prot.c: Likewise.
25373         * sunrpc/pmap_prot2.c: Likewise.
25374         * sunrpc/pmap_rmt.c: Likewise.
25375         * sunrpc/publickey.c: Likewise.
25376         * sunrpc/rpc_cmsg.c: Likewise.
25377         * sunrpc/rpc_common.c: Likewise.
25378         * sunrpc/rpc_dtable.c: Likewise.
25379         * sunrpc/rpc_prot.c: Likewise.
25380         * sunrpc/rpc_thread.c: Likewise.
25381         * sunrpc/rtime.c: Likewise.
25382         * sunrpc/svc.c: Likewise.
25383         * sunrpc/svc_auth.c: Likewise.
25384         * sunrpc/svc_raw.c: Likewise.
25385         * sunrpc/svc_run.c: Likewise.
25386         * sunrpc/svc_tcp.c: Likewise.
25387         * sunrpc/svc_udp.c: Likewise.
25388         * sunrpc/svc_unix.c: Likewise.
25389         * sunrpc/svcauth_des.c: Likewise.
25390         * sunrpc/xcrypt.c: Likewise.
25391         * sunrpc/xdr.c: Likewise.
25392         * sunrpc/xdr_array.c: Likewise.
25393         * sunrpc/xdr_float.c: Likewise.
25394         * sunrpc/xdr_intXX_t.c: Likewise.
25395         * sunrpc/xdr_mem.c: Likewise.
25396         * sunrpc/xdr_rec.c: Likewise.
25397         * sunrpc/xdr_ref.c: Likewise.
25398         * sunrpc/xdr_sizeof.c: Likewise.
25399         * sunrpc/xdr_stdio.c: Likewise.
25400
25401 2012-05-10  Roland McGrath  <roland@hack.frob.com>
25402
25403         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
25404         change.  Update copyright years.
25405
25406 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25407
25408         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
25409
25410 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
25411             Joseph Myers  <joseph@codesourcery.com>
25412             Paul Pluzhnikov  <ppluzhnikov@google.com>
25413
25414         [BZ #14012]
25415         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
25416         requiring rpcgen.
25417         [cross-compiling] (extra-libs): Likewise.
25418         [cross-compiling] (extra-libs-others): Likewise.
25419         [cross-compiling] (librpcsvc-routines): Likewise.
25420         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
25421         [cross-compiling] (omit-deps): Likewise.
25422         (sunrpc-CPPFLAGS): New variable.
25423         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
25424         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
25425         (cross-rpcgen-objs): New variable.
25426         (extra-objs): Append $(cross-rpcgen-objs).
25427         ($(cross-rpcgen-objs)): New rule.
25428         ($(objpfx)cross-rpcgen): Likewise.
25429         (rpcgen-cmd): Define to use $(built-program-file).  Expand
25430         comment.
25431         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
25432         ($(objpfx)x%.stmp): Likewise.
25433         * sunrpc/proto.h [IS_IN_build] (_): Define.
25434         [IS_IN_build] (_libc_intl_domainname): Likewise.
25435
25436 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25437
25438         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
25439         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
25440         and R_X86_64_TPOFF64.
25441
25442 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
25443
25444         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
25445         sysdeps/unix/sysv/syscalls.list.
25446         (stime): Likewise.
25447         (utime): Likewise.
25448         * sysdeps/unix/sysv/syscalls.list: Remove file.
25449
25450 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25451
25452         [BZ #3440]
25453         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
25454         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
25455         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
25456         (__LC_IDENTIFICATION): Make these macros useful in #if
25457         expressions, as required by C99.
25458
25459 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
25460
25461         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
25462         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
25463         after this.
25464
25465 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25466
25467         * stdlib/longlong.h: Updated from GCC.
25468
25469 2012-05-09  Andreas Jaeger  <aj@suse.de>
25470
25471         * nscd/nscd.c (run_modes): Make named enum, reorder so that
25472         default is first entry.
25473         (run_mode): Set type.
25474         (main): Remove informal message about syslog.
25475         (options): Fix typo.
25476
25477         [BZ #14053]
25478         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
25479         to asm.
25480         (lrint): Likewise.
25481         (llrintf): Likewise.
25482         (llrint): Likewise.
25483         (rint): Likewise.
25484         (rintf): Likewise.
25485         (nearbyint): Likewise.
25486         (nearbyintf): Likewise.
25487
25488 2012-05-09  Andreas Jaeger  <aj@suse.de>
25489             Pedro Alves  <palves@redhat.com>
25490
25491         * nscd/nscd.c (run_mode): Use enum.
25492         (main): Cleanup coding style issue.
25493
25494 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
25495             Andreas Jaeger  <aj@suse.de>
25496
25497         * nscd/nscd.c (go_background): Replaced with...
25498         (run_mode): ... this.
25499         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
25500         (options): Add -F --foreground.
25501         (main): Implement it.
25502         (parse_opt): Parse it.
25503
25504 2012-05-09  Andreas Jaeger  <aj@suse.de>
25505
25506         [BZ #14083]
25507         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
25508         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
25509         -Wconversion warning.
25510         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
25511         Likewise.
25512
25513 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
25514
25515         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
25516         == 0.
25517         (LC_ALL): Use macro-int-constant.
25518         (LC_COLLATE): Likewise.
25519         (LC_CTYPE): Likewise.
25520         (LC_MESSAGES): Likewise.
25521         (LC_MONETARY): Likewise.
25522         (LC_NUMERIC): Likewise.
25523         (LC_TIME): Likewise.
25524         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
25525         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25526         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25527         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
25528         Specify type.
25529         [C99-based standards] (float_t): Expect type.
25530         [C99-based standards] (double_t): Expect type.
25531         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
25532         type.
25533         [C99-based standards] (HUGE_VALL): Likewise.
25534         [C99-based standards] (INFINITY): Likewise.
25535         [C99-based standards] (NAN): Likewise.
25536         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
25537         [C99-based standards] (FP_NAN): Likewise.
25538         [C99-based standards] (FP_NORMAL): Likewise.
25539         [C99-based standards] (FP_SUBNORMAL): Likewise.
25540         [C99-based standards] (FP_ZERO): Likewise.
25541         [C99-based standards] (FP_FAST_FMA): Use
25542         optional-macro-int-constant.  Specify type.  Require == 1.
25543         [C99-based standards] (FP_FAST_FMAF): Likewise.
25544         [C99-based standards] (FP_FAST_FMAL): Likewise.
25545         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
25546         [C99-based standards] (FP_ILOGBNAN): Likewise.
25547         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
25548         Specify type.
25549         [C99-based standards] (MATH_ERREXCEPT): Likewise.
25550         [C99-based standards] (math_errhandling): Specify type.
25551         [ISO99 || ISO11] (signgam): Do not allow.
25552         [non-C99-based standards] (copysignf): Do not allow.
25553         [non-C99-based standards] (exp2f): Likewise.
25554         [non-C99-based standards] (log2f): Likewise.
25555         [non-C99-based standards] (modff): Allow.
25556         [non-C99-based standards] (erff): Do not allow.
25557         [non-C99-based standards] (erfcf): Likewise.
25558         [non-C99-based standards] (gammaf): Likewise.
25559         [non-C99-based standards] (hypotf): Likewise.
25560         [non-C99-based standards] (j0f): Likewise.
25561         [non-C99-based standards] (j1f): Likewise.
25562         [non-C99-based standards] (jnf): Likewise.
25563         [non-C99-based standards] (lgammaf): Likewise.
25564         [non-C99-based standards] (tgammaf): Likewise.
25565         [non-C99-based standards] (y0f): Likewise.
25566         [non-C99-based standards] (y1f): Likewise.
25567         [non-C99-based standards] (ynf): Likewise.
25568         [non-C99-based standards] (isnanf): Likewise.
25569         [non-C99-based standards] (acoshf): Likewise.
25570         [non-C99-based standards] (asinhf): Likewise.
25571         [non-C99-based standards] (atanhf): Likewise.
25572         [non-C99-based standards] (cbrtf): Likewise.
25573         [non-C99-based standards] (expm1f): Likewise.
25574         [non-C99-based standards] (ilogbf): Likewise.
25575         [non-C99-based standards] (log1pf): Likewise.
25576         [non-C99-based standards] (logbf): Likewise.
25577         [non-C99-based standards] (nextafterf): Likewise.
25578         [non-C99-based standards] (remainderf): Likewise.
25579         [non-C99-based standards] (rintf): Likewise.
25580         [non-C99-based standards] (scalbf): Likewise.
25581         [non-C99-based standards] (copysignl): Likewise.
25582         [non-C99-based standards] (exp2l): Likewise.
25583         [non-C99-based standards] (log2l): Likewise.
25584         [non-C99-based standards] (modfl): Allow.
25585         [non-C99-based standards] (erfl): Do not allow.
25586         [non-C99-based standards] (erfcl): Likewise.
25587         [non-C99-based standards] (gammal): Likewise.
25588         [non-C99-based standards] (hypotl): Likewise.
25589         [non-C99-based standards] (j0l): Likewise.
25590         [non-C99-based standards] (j1l): Likewise.
25591         [non-C99-based standards] (jnl): Likewise.
25592         [non-C99-based standards] (lgammal): Likewise.
25593         [non-C99-based standards] (tgammal): Likewise.
25594         [non-C99-based standards] (y0l): Likewise.
25595         [non-C99-based standards] (y1l): Likewise.
25596         [non-C99-based standards] (ynl): Likewise.
25597         [non-C99-based standards] (isnanl): Likewise.
25598         [non-C99-based standards] (acoshl): Likewise.
25599         [non-C99-based standards] (asinhl): Likewise.
25600         [non-C99-based standards] (atanhl): Likewise.
25601         [non-C99-based standards] (cbrtl): Likewise.
25602         [non-C99-based standards] (expm1l): Likewise.
25603         [non-C99-based standards] (ilogbl): Likewise.
25604         [non-C99-based standards] (log1pl): Likewise.
25605         [non-C99-based standards] (logbl): Likewise.
25606         [non-C99-based standards] (nextafterl): Likewise.
25607         [non-C99-based standards] (remainderl): Likewise.
25608         [non-C99-based standards] (rintl): Likewise.
25609         [non-C99-based standards] (scalbl): Likewise.
25610         [ISO || ISO99 || ISO11] (*_t): Do not allow.
25611         [non-C99-based standards] (FP_*): Do not allow.
25612         [C99-based standards] (FP_*): Change to
25613         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
25614         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25615         allow.
25616         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
25617         (SIG_ERR): Likewise.
25618         [X/Open-based standards] (SIG_HOLD): Likewise.
25619         (SIG_IGN): Likewise.
25620         (SIGABRT): Use macro-int-constant.  Specify type.  Require
25621         positive value.
25622         (SIGFPE): Likewise.
25623         (SIGILL): Likewise.
25624         (SIGINT): Likewise.
25625         (SIGSEGV): Likewise.
25626         (SIGTER): Likewise.
25627         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
25628         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
25629         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
25630         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
25631         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
25632         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
25633         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
25634         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
25635         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
25636         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
25637         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
25638         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
25639         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
25640         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
25641         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
25642         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
25643         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
25644         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
25645         [X/Open-based standards] (SIGTRAP): Likewise.
25646         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
25647         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
25648         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
25649         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
25650         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
25651         allow.
25652
25653 2012-05-08  Ian Wienand  <ianw@vmware.com>
25654
25655         [BZ #14080]
25656         * time/tzset.c (__tzset_parse_tz): Update default rules for
25657         daylight time changes in the Energy Policy Act of 2005.
25658
25659 2012-05-09  Andreas Jaeger  <aj@suse.de>
25660
25661         [BZ #13983]
25662         * elf/ldconfig.c (parse_conf): Change string to make clear that
25663         ldconfig only issued a warning if ld.so.conf does not exist.
25664
25665 2012-05-08  David S. Miller  <davem@davemloft.net>
25666
25667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
25668         movxtod instead of popping the value on the stack.
25669
25670         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25671
25672 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
25673
25674         * config.h.in: Add HAVE_ARM_PCS_VFP.
25675
25676 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
25677
25678         [BZ #13979]
25679         * include/features.h: Warn if user requests __FORTIFY_SOURCE
25680         checking but the checks are disabled for any reason.
25681
25682 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
25683
25684         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
25685         and ELF64_R_TYPE with ELFW(R_TYPE).
25686
25687 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
25688
25689         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
25690         (ulimit): Likewise.
25691
25692         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
25693         (settimeofday): Likewise.
25694
25695 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
25696
25697         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
25698         a struct th_u2 inside the union, and move tu_block/tu_code into
25699         a new th_u3 union of tu_block/tu_code inside of that.  Move
25700         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
25701         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
25702         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
25703         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
25704         (th_stuff): Change to th_u1.tu_stuff.
25705         (th_data): Define.
25706         (th_msg): Change to th_u1.th_u2.tu_data.
25707
25708 2012-05-07  David S. Miller  <davem@davemloft.net>
25709
25710         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25711
25712         [BZ #14074]
25713         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
25714         (SETUP_PIC_REG): Use it.
25715         (SETUP_PIC_REG_LEAF): Use it.
25716
25717 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
25718
25719         [BZ #13885]
25720         [BZ #13923]
25721         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25722         USE_AS_EXPM1L.
25723         (EXPL_FINITE): Likewise.
25724         (FLDLOG): Likewise.
25725         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25726         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25727         e_expl.S.
25728         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25729         USE_AS_EXPM1L.
25730         (EXPL_FINITE): Likewise.
25731         (FLDLOG): Likewise.
25732         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
25733         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
25734         e_expl.S.
25735         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
25736         test of -max_value argument for long double.
25737         * sysdeps/i386/fpu/libm-test-ulps: Update.
25738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25739
25740 2012-05-06  David S. Miller  <davem@davemloft.net>
25741
25742         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
25743         quad soft-float symbols whose references which are compiler
25744         generated.
25745         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25746
25747 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
25748
25749         [BZ #13884]
25750         [BZ #13914]
25751         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25752         USE_AS_EXP10L.
25753         (EXPL_FINITE): Likewise.
25754         (FLDLOG): Likewise.
25755         (c0): Likewise.
25756         (c1): Likewise.
25757         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25758         Adjust comments for base varying.
25759         (__expl_finite): Change alias to EXPL_FINITE.
25760         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
25761         e_expl.S.
25762         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
25763         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
25764         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
25765         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
25766         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
25767         USE_AS_EXP10L.
25768         (EXPL_FINITE): Likewise.
25769         (FLDLOG): Likewise.
25770         (c0): Likewise.
25771         (c1): Likewise.
25772         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
25773         Adjust comments for base varying.
25774         (__expl_finite): Change alias to EXPL_FINITE.
25775         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
25776         tests for bugs.
25777         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25778
25779         [BZ #14064]
25780         * math/libm-test.inc (check_float_internal): Correct ulp
25781         calculation for subnormal expected results.
25782
25783 2012-05-06  Andreas Jaeger  <aj@suse.de>
25784
25785         * Makeconfig (+math-flags): New, set to -frounding-math.
25786         (+cflags): Add +math-flags so that all of glibc gets compiled with
25787         it.
25788
25789         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
25790
25791 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
25792
25793         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
25794         Disable one test.
25795
25796         [BZ #13787]
25797         [BZ #13922]
25798         [BZ #14036]
25799         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
25800         (__ieee754_expl): Allow for and saturate large arguments.
25801         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
25802         (u_threshold): Likewise.
25803         (__exp): Call __ieee754_exp before checking for overflow and
25804         underflow.
25805         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
25806         (u_threshold): Likewise.
25807         (__expf): Call __ieee754_expf before checking for overflow and
25808         underflow.
25809         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
25810         (u_threshold): Likewise.
25811         (__expl): Call __ieee754_expl before checking for overflow and
25812         underflow.
25813         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
25814         (__ieee754_expl): Allow for and saturate large arguments.
25815         * math/libm-test.inc (exp_test): Add another test.  Do not allow
25816         missing overflow exception on overflow.
25817         (expm1_test): Do not allow missing overflow exception on overflow.
25818
25819         * sysdeps/i386/fpu/e_expl.c: Move to ...
25820         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
25821         rather than using inline asm.
25822         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
25823         * sysdeps/x86_64/fpu/e_expl.S: Copy from
25824         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
25825
25826         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
25827         (nice): Likewise.
25828         (poll): Likewise.
25829         (signal): Likewise.
25830         (time): Likewise.
25831         (times): Likewise.
25832
25833 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25834
25835         * sysdeps/unix/syscalls.list (adjtime): Add entry from
25836         sysdeps/unix/common/syscalls.list.
25837         (fchmod): Likewise.
25838         (fchown): Likewise.
25839         (ftruncate): Likewise.
25840         (getrusage): Likewise.
25841         (gettimeofday): Likewise.
25842         (setpgid): Likewise.
25843         (setregid): Likewise.
25844         (setreuid): Likewise.
25845         (sigaction): Likewise.
25846         (truncate): Likewise.
25847         (vhangup): Likewise.
25848         * sysdeps/unix/common/syscalls.list: Remove file.
25849         * sysdeps/unix/bsd/Implies: Don't include unix/common.
25850         * sysdeps/unix/sysv/linux/Implies: Likewise.
25851
25852 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25853
25854         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
25855         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
25856         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
25857         Moved to ...
25858         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
25859         Here.
25860         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
25861         to ...
25862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
25863         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
25864         to ...
25865         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
25866         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
25867         to ...
25868         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
25869         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
25870         to ...
25871         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
25872         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
25873         to ...
25874         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
25875         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
25876         to ...
25877         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
25878         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
25879         to ...
25880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
25881         Here.
25882         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
25883         to ...
25884         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
25885         Here.
25886         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
25887         to ...
25888         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
25889         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
25890         Moved to ...
25891         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
25892         Here.
25893         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
25894         to ...
25895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
25896
25897 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25898
25899         * sysdeps/unix/common/bits/dirent.h: Remove file.
25900         * sysdeps/unix/common/bits/fcntl.h: Likewise.
25901
25902         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
25903         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
25904         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
25905         * sysdeps/unix/bsd/isatty.c: Likewise.
25906         * sysdeps/unix/bsd/tcdrain.c: Likewise.
25907         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
25908         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
25909
25910 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25911
25912         [BZ #13563]
25913         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
25914         long double comparison inaccuracies.
25915         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
25916         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25917
25918 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
25919
25920         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
25921         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
25922
25923 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
25924
25925         [BZ #14049]
25926         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
25927         nonzero digits before rounding a hex value.
25928         * stdlib/tst-strtod.c (tests): Add another test.
25929
25930 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25931
25932         * sysdeps/s390/fpu/libm-test-ulps: Update.
25933
25934 2012-05-03  Andreas Jaeger  <aj@suse.de>
25935
25936         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
25937         does not get optimized out.
25938         (malloc_opt_barrier): New.
25939
25940 2012-05-03  Andreas Jaeger  <aj@suse.de>
25941             Roland McGrath  <roland@hack.frob.com>
25942
25943         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
25944         intermediate file deletion.
25945         (generated): Add .symlist files.
25946
25947 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
25948
25949         [BZ #13775]
25950         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
25951         Redirect under this condition.
25952         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25953         [__USE_GNU] (__dprintf_chk): Not under this condition.
25954         [__USE_GNU] (__vdprintf_chk): Likewise.
25955         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
25956         under this condition.
25957         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
25958         [__USE_XOPEN2K8] (dprintf): Define under this condition.
25959         [__USE_XOPEN2K8] (vdprintf): Likewise.
25960         [__USE_GNU] (__dprintf_chk): Not under this condition.
25961         [__USE_GNU] (__vdprintf_chk): Likewise.
25962         [__USE_GNU] (dprintf): Likewise.
25963         [__USE_GNU] (vdprintf): Likewise.
25964
25965 2012-05-03  Roland McGrath  <roland@hack.frob.com>
25966
25967         * elf/Makefile (common-generated): Set this instead of generated for
25968         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
25969         $(all-built-dso)-derived lists.
25970
25971 2012-05-03  Andreas Jaeger  <aj@suse.de>
25972
25973         * sysdeps/i386/fpu/libm-test-ulps: Update.
25974
25975         * FAQ: Removed.
25976         * FAQ.in: Likewise.
25977         * scripts/gen-FAQ.pl: Likewise.
25978         * manual/install.texi (Installation): Point to online location of
25979         FAQ.
25980         * Makefile (files-for-dist): Remove FAQ.
25981         (FAQ): Remove.
25982
25983 2012-05-02  Allan McRae  <allan@archlinux.org>
25984
25985         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
25986         (LDFLAGS-reldepmod5.so): Likewise.
25987         (LDFLAGS-reldep6mod1.so): Likewise.
25988         (LDFLAGS-reldep6mod4.so): Likewise.
25989         (LDFLAGS-reldep8mod3.so): Likewise.
25990         (LDFLAGS-unload4mod1.so): Likewise.
25991         (LDFLAGS-unload4mod2.so): Likewise.
25992         (LDFLAGS-tst-initorder): Likewise.
25993         (LDFLAGS-tst-initordera2.so): Likewise.
25994         (LDFLAGS-tst-initordera3.so): Likewise.
25995         (LDFLAGS-tst-initordera4.so): Likewise.
25996         (LDFLAGS-tst-initorderb2.so): Likewise.
25997         (LDFLAGS-noload): Likewise.
25998         (LDFLAGS-next): Likewise.
25999         (LDFLAGS-order2mod1.so): Likewise.
26000         (LDFLAGS-order2mod2.so): Likewise.
26001         (LDFLAGS-tst-initorder2): Likewise.
26002         (LDFLAGS-tst-initorder2a.so): Likewise.
26003         (LDFLAGS-tst-initorder2b.so): Likewise.
26004         (LDFLAGS-tst-initorder2c.so): Likewise.
26005         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
26006
26007 2012-05-02  David S. Miller  <davem@davemloft.net>
26008
26009         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26010
26011 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
26012
26013         [BZ #14055]
26014         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
26015
26016 2012-05-02  Andreas Jaeger  <aj@suse.de>
26017
26018         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
26019         since we manipulate rounding mode.
26020         (CPPFLAGS-test-idouble.c): Likewise.
26021         (CPPFLAGS-test-ifloat.c): Likewise.
26022         (CFLAGS-test-ldouble.c): Likewise.
26023         (CFLAGS-test-double.c): Likewise.
26024         (CFLAGS-test-float.c): Likewise.
26025         (CFLAGS-test-misc.c): Likewise.
26026         (CFLAGS-test-test-fenv.c): Likewise.
26027
26028 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26029
26030         [BZ #2550]
26031         [BZ #2570]
26032         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
26033         comparisons to determine direction to adjust input.
26034
26035 2012-05-01  Roland McGrath  <roland@hack.frob.com>
26036
26037         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
26038         output to the target.
26039
26040         * scripts/localplt.awk: New file.
26041         * elf/Makefile ($(objpfx)check-localplt): Target removed.
26042         (check-localplt-CFLAGS): Variable removed.
26043         ($(all-built-dso:=.jmprel)): New static pattern rule.
26044         (generated): Add those targets.
26045         (localplt-built-dso): New variable.
26046         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
26047
26048         * elf/check-localplt.c: File removed.
26049
26050         * scripts/check-execstack.awk: New file.
26051         * elf/Makefile ($(objpfx)check-execstack): Target removed.
26052         (check-execstack-CFLAGS): Variable removed.
26053         ($(objpfx)check-execstack.h): Target removed.
26054         ($(objpfx)execstack-default): New target.
26055         (generated): Add that instead of check-execstack.h.
26056         ($(all-built-dso:=.phdr)): New static pattern rule.
26057         (generated): Add those targets.
26058         * elf/check-execstack.c: File removed.
26059
26060         * scripts/check-textrel.awk: New file.
26061         * elf/Makefile ($(objpfx)check-textrel): Target removed.
26062         (check-textrel-CFLAGS): Variable removed.
26063         (all-built-dso): Use := to define.o
26064         ($(all-built-dso:=.dyn)): New static pattern rule.
26065         (generated): Add those targets.
26066         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
26067         * config.make.in (READELF): New substituted variable.
26068         * elf/check-textrel.c: File removed.
26069
26070 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26071
26072         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
26073         allow.
26074         * conform/data/ctype.h-data [C99-based standards] (isblank):
26075         Expect function.
26076         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
26077         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
26078         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26079         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
26080         Specify type.  Require positive value.
26081         (EILSEQ): Likewise.
26082         (ERANGE): Likewise.
26083         [ISO || POSIX] (EILSEQ): Do not expect.
26084         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
26085         Specify type.  Require positive value.
26086         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
26087         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
26088         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
26089         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
26090         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
26091         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
26092         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
26093         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
26094         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
26095         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
26096         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
26097         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
26098         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
26099         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
26100         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
26101         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
26102         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
26103         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
26104         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
26105         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
26106         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
26107         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
26108         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
26109         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
26110         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
26111         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
26112         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
26113         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
26114         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
26115         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
26116         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
26117         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
26118         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
26119         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
26120         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
26121         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
26122         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
26123         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
26124         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
26125         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
26126         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
26127         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
26128         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
26129         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
26130         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
26131         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
26132         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
26133         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
26134         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
26135         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
26136         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
26137         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
26138         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
26139         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
26140         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
26141         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
26142         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
26143         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
26144         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
26145         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
26146         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
26147         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
26148         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
26149         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
26150         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
26151         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
26152         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
26153         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
26154         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
26155         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
26156         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
26157         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
26158         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
26159         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
26160         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
26161         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
26162         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
26163         Require >= 2.
26164         (FLT_ROUNDS): Expect as macro, not constant.
26165         (FLT_MANT_DIG): Use macro-int-constant.
26166         (DBL_MANT_DIG): Likewise.
26167         (LDBL_MANT_DIG): Likewise.
26168         (FLT_DIG): Likewise.
26169         (DBL_DIG): Likewise.
26170         (LDBL_DIG): Likewise.
26171         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
26172         (DBL_MIN_EXP): Likewise.
26173         (LDBL_MIN_EXP): Likewise.
26174         (FLT_MAX_EXP): Use macro-int-constant.
26175         (DBL_MAX_EXP): Likewise.
26176         (LDBL_MAX_EXP): Likewise.
26177         (FLT_MAX_10_EXP): Likewise.
26178         (DBL_MAX_10_EXP): Likewise.
26179         (LDBL_MAX_10_EXP): Likewise.
26180         (FLT_MAX): Use macro-constant.
26181         (DBL_MAX): Likewise.
26182         (LDBL_MAX): Likewise.
26183         (FLT_EPSILON): Use macro-constant.  Give upper bound.
26184         (DBL_EPSILON): Likewise.
26185         (LDBL_EPSILON): Likewise.
26186         (FLT_MIN): Likewise.
26187         (DBL_MIN): Likewise.
26188         (LDBL_MIN): Likewise.
26189         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
26190         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
26191         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
26192         [ISO11] (FLT_HAS_SUBNORM): Likewise.
26193         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
26194         [ISO11] (DBL_DECIMAL_DIG): Likewise.
26195         [ISO11] (FLT_DECIMAL_DIG): Likewise.
26196         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
26197         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
26198         [ISO11] (FLT_TRUE_MIN): Likewise.
26199         [ISO11] (LDBL_TRUE_MIN): Likewise.
26200         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26201         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
26202         (SCHAR_MIN): Use macro-int-constant.  Specify type.
26203         (SCHAR_MAX): Likewise.
26204         (UCHAR_MAX): Likewise.
26205         (CHAR_MIN): Likewise.
26206         (CHAR_MAX): Likewise.
26207         (MB_LEN_MAX): Use macro-int-constant.
26208         (SHRT_MIN): Use macro-int-constant.  Specify type.
26209         (SHRT_MAX): Likewise.
26210         (USHRT_MAX): Likewise.
26211         (INT_MAX): Likewise.
26212         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
26213         bound negative.
26214         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26215         bound with "U".
26216         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26217         bound with "L".
26218         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
26219         bound negative.  Suffix upper bound with "L".
26220         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
26221         bound with "UL".
26222         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
26223         Specify type.
26224         [C99-based standards] (LLONG_MAX): Likewise.
26225         [C99-based standards] (ULLONG_MAX): Likewise.
26226         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
26227         == 0.
26228         [ISO11] (max_align_t): Require type.
26229         [ISO || ISO99 || ISO11] (*_t): Do not allow.
26230
26231         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
26232         from $CFLAGS, without defining away __attribute__ calls.
26233         (checknamespace): Use $CFLAGS_namespace.
26234
26235         * conform/conformtest.pl (@keywords): Only include C99 keywords
26236         for standards based on C99 or C11.
26237
26238         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
26239         Disable tests.
26240         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
26241         UNIX98]: Likewise.
26242
26243         * conform/conformtest.pl: Handle "macro-int-constant" and test for
26244         usability of symbols in #if.
26245
26246         * conform/conformtest.pl: If macro or constant types start
26247         "promoted:", expect the symbol to be of the following type
26248         promoted by the integer promotions.
26249
26250         * conform/conformtest.pl: Parse all "constant" and "macro" lines
26251         in one place.  Also handle "macro-constant".
26252
26253         * conform/conformtest.pl: Only accept expected macro values with
26254         "==".  Parse all "macro" lines in one place.
26255         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
26256
26257         * conform/conformtest.pl: Handle braced types on "constant" lines
26258         instead of handling "typed-constant".
26259         * conform/data/signal.h-data: Use "constant" instead of
26260         "typed-constant".
26261
26262         * conform/conformtest.pl: Handle "optional-" at start of lines in
26263         one place rather than duplicating several cases.  Handle each
26264         format of "macro" line with initial "optional-".
26265
26266         * conform/conformtest.pl: Only accept expected constant or
26267         optional-constant values with "==".  Parse all "constant" lines in
26268         one place.  Parse all "optional-constant" lines in one place.
26269         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
26270         * conform/data/fmtmsg.h-data: Likewise.
26271         * conform/data/netinet/in.h-data: Likewise.
26272         * conform/data/tar.h-data: Likewise.
26273         * conform/data/limits.h-data: Use "==" form on "constant" and
26274         "optional-constant" lines.
26275
26276         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
26277         Use -std=c99 for XOPEN2K.
26278         (@knownproblems): Remove.
26279         (newtoken): Don't check %isknown.
26280
26281         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
26282         Do not expect macro.
26283         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
26284         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
26285         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
26286         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
26287         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
26288         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
26289         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
26290         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
26291         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
26292         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
26293         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
26294         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
26295         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
26296         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
26297         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
26298         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
26299         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
26300         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
26301         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
26302         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
26303         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
26304         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
26305         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
26306         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
26307         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
26308         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
26309         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
26310         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
26311         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
26312         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
26313         [XPG3] (acosh): Likewise.
26314         [XPG3] (asinh): Likewise.
26315         [XPG3] (atanh): Likewise.
26316         [XPG3] (cbrt): Likewise.
26317         [XPG3] (expm1): Likewise.
26318         [XPG3] (ilogb): Likewise.
26319         [XPG3] (log1p): Likewise.
26320         [XPG3] (logb): Likewise.
26321         [XPG3] (nextafter): Likewise.
26322         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
26323         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
26324         [XPG3] (remainder): Likewise.
26325         [XPG3] (rint): Likewise.
26326         [XPG3 || XPG4 || UNIX98] (round): Likewise.
26327         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
26328         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
26329         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
26330         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
26331         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
26332         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
26333         [UNIX98 || XOPEN2K] (scalb): Expect.
26334         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
26335         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
26336         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
26337         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
26338         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
26339         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
26340         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
26341         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
26342         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
26343         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
26344         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
26345         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
26346         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
26347         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
26348         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
26349         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
26350         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
26351         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
26352         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
26353         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
26354         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
26355         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
26356         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
26357         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
26358         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
26359         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
26360         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
26361         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
26362         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
26363         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
26364         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
26365         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
26366         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
26367         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
26368         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
26369         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
26370         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
26371         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
26372         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
26373         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
26374         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
26375         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
26376         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
26377         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
26378         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
26379         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
26380         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
26381         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
26382         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
26383         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
26384         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
26385         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
26386         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
26387         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
26388         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
26389         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
26390         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
26391         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
26392         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
26393         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
26394         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
26395         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
26396         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
26397         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
26398         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
26399         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
26400         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
26401         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
26402         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
26403         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
26404         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
26405         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
26406         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
26407         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
26408         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
26409         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
26410         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
26411         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
26412         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
26413         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
26414         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
26415         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
26416         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
26417         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
26418         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
26419         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
26420         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
26421         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
26422         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
26423         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
26424         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
26425         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
26426         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
26427         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
26428         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
26429         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
26430         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
26431         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
26432         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
26433         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
26434         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
26435         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
26436         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
26437         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
26438         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
26439         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
26440         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
26441         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
26442         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
26443         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
26444         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
26445         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
26446         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
26447         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
26448         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
26449         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
26450         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
26451         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
26452         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
26453         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
26454         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
26455         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
26456         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
26457         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
26458         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
26459         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
26460         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
26461         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
26462         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
26463         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
26464         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
26465         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
26466         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
26467         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
26468         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
26469         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
26470         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
26471
26472         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
26473         _XOPEN_SOURCE_EXTENDED for XPG4.
26474
26475         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
26476
26477         * Makeconfig (localtime): Remove variable.
26478         (inst_localtime-file): Likewise.
26479
26480 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26481
26482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
26483         Update.
26484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26485         Update.
26486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
26487         Update.
26488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
26489         Update.
26490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
26491         Update.
26492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
26493         Update.
26494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26495         Update.
26496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
26497         Update.
26498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26499         Update.
26500
26501 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
26502
26503         [BZ #2550]
26504         [BZ #2570]
26505         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
26506         comparisons to determine direction to adjust input.
26507         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
26508         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
26509         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
26510         Likewise.
26511         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
26512         Likewise.
26513         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
26514         Likewise.
26515         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
26516         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
26517         Likewise.
26518         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
26519         Likewise.
26520         * math/libm-test.inc (nexttoward_test): Add more tests.
26521
26522 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
26523
26524         [BZ #14040]
26525         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
26526         in version GLIBC_2.1, not GLIBC_2.0.
26527         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
26528         Likewise.
26529
26530 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
26531
26532         [BZ #13942]
26533         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
26534         (1 - x) * (1 + x).
26535         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26536         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
26537         * math/libm-test.inc (acos_test): Add more tests.
26538         (asin_test): Likewise.
26539         * sysdeps/i386/fpu/libm-test-ulps: Update.
26540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26541
26542         [BZ #14034]
26543         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
26544         of square root.
26545         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
26546         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
26547         * math/libm-test.inc (acos_test_tonearest): New function.
26548         (acos_test_towardzero): Likewise.
26549         (acos_test_downward): Likewise.
26550         (acos_test_upward): Likewise.
26551         (asin_test_tonearest): Likewise.
26552         (asin_test_towardzero): Likewise.
26553         (asin_test_downward): Likewise.
26554         (asin_test_upward): Likewise.
26555         (main): Call the new functions.
26556         * sysdeps/i386/fpu/libm-test-ulps: Update.
26557         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26558
26559         [BZ #13884]
26560         [BZ #13924]
26561         * math/e_exp10.c: Include <float.h>.
26562         (__ieee754_exp10): Handle underflow here rather than multiplying
26563         large negative argument by M_LN10.
26564         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
26565         of __ieee754_expf.
26566         * math/e_exp10l.c: Include <float.h>.
26567         (__ieee754_exp10l): Handle underflow here rather than multiplying
26568         large negative argument by M_LN10l.
26569         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
26570         spurious overflow exception on underflow.
26571
26572 2012-04-29  Marek Polacek  <polacek@redhat.com>
26573
26574         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
26575         (__fortify_function): New macro.
26576         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
26577         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
26578         __extern_always_inline.
26579         * libio/bits/stdio2.h: Likewise.
26580         * libio/bits/stdio.h: Likewise.
26581         * string/string.h: Likewise.
26582         * string/bits/string3.h: Likewise.
26583         * include/stdio.h: Likewise.
26584         * stdlib/bits/stdlib.h: Likewise.
26585         * stdlib/stdlib.h: Likewise.
26586         * rt/bits/mqueue2.h: Likewise.
26587         * rt/mqueue.h: Likewise.
26588         * posix/bits/unistd.h: Likewise.
26589         * posix/unistd.h: Likewise.
26590         * io/bits/poll2.h: Likewise.
26591         * io/bits/fcntl2.h: Likewise.
26592         * io/fcntl.h: Likewise.
26593         * io/sys/poll.h: Likewise.
26594         * misc/bits/syslog.h: Likewise.
26595         * misc/bits/syslog-ldbl.h: Likewise.
26596         * misc/sys/syslog.h: Likewise.
26597         * socket/bits/socket2.h: Likewise.
26598         * socket/sys/socket.h: Likewise.
26599         * debug/tst-chk1.c: Likewise.
26600         * wcsmbs/bits/wchar2.h: Likewise.
26601         * wcsmbs/bits/wchar-ldbl.h: Likewise.
26602         * wcsmbs/wchar.h: Likewise.
26603
26604 2012-04-29  Andreas Jaeger  <aj@suse.de>
26605
26606         * Makerules (tests): Remove enable-check-abi protection.
26607         (check-abi-warn): Remove.
26608         (check-abi-%): Remove check-abi-warn usage.
26609
26610         * configure.in: Remove check-abi configure option.
26611         * configure: Regenerated.
26612         * config.make.in (enable-check-abi): Remove.
26613
26614 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
26615
26616         [BZ #14033]
26617         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
26618         double functions to double *_finite functions.
26619
26620         [BZ #13941]
26621         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
26622         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
26623         LDBL_MIN_EXP.
26624         * stdio-common/Makefile (tests): Add tst-sprintf3.
26625         * stdio-common/tst-sprintf3.c: New file.
26626
26627         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
26628         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
26629
26630 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26631
26632         * conform/conformtest.pl: Remove duplicate typed-constant
26633         handling.
26634
26635 2012-04-28  David S. Miller  <davem@davemloft.net>
26636
26637         * Makerules (%.abilist): Add vpath on sysdep_dirs.
26638         (check-abi-%): Remove AWK script prerequisite and explicit
26639         abilist directory.
26640         (check-abi): Rewrite to just diff the symlist with the abilist.
26641         (config-tls, config-abi-config): Delete, no longer used.
26642         (update-abi-%): Remove AWK script and explicit abilist directory.
26643         (update-abi): Rewrite to simply compare and conditionally copy the
26644         symlist and the sysdep abilist file.  Remove update-abi-config
26645         checks.
26646         * abilist/ld.abilist: Remove.
26647         * abilist/libBrokenLocale.abilist: Remove.
26648         * abilist/libanl.abilist: Remove.
26649         * abilist/libcrypt.abilist: Remove.
26650         * abilist/libdl.abilist: Remove.
26651         * abilist/librt.abilist: Remove.
26652         * abilist/libthread_db.abilist: Remove.
26653         * abilist/libutil.abilist: Remove.
26654         * scripts/extract-abilist.awk: Remove.
26655         * scripts/merge-abilist.awk: Remove.
26656         * sysdeps/generic/libcidn.abilist: New file.
26657         * sysdeps/generic/libnss_compat.abilist: New file.
26658         * sysdeps/generic/libnss_db.abilist: New file.
26659         * sysdeps/generic/libnss_dns.abilist: New file.
26660         * sysdeps/generic/libnss_files.abilist: New file.
26661         * sysdeps/generic/libnss_hesiod.abilist: New file.
26662         * sysdeps/generic/libnss_nis.abilist: New file.
26663         * sysdeps/generic/libnss_nisplus.abilist: New file.
26664         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
26665         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
26666         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
26667         file.
26668         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
26669         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
26670         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
26671         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
26672         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
26673         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
26674         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
26675         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
26676         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
26677         file.
26678         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
26679         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
26680         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
26681         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
26682         file.
26683         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
26684         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
26685         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
26686         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
26687         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
26688         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
26689         file.
26690         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
26691         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
26692         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
26693         file.
26694         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
26695         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
26696         New file.
26697         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
26698         New file.
26699         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
26700         New file.
26701         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
26702         New file.
26703         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
26704         New file.
26705         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
26706         New file.
26707         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
26708         New file.
26709         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
26710         New file.
26711         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
26712         New file.
26713         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
26714         New file.
26715         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
26716         New file.
26717         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
26718         New file.
26719         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
26720         New file.
26721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
26722         file.
26723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
26724         New file.
26725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
26726         New file.
26727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
26728         file.
26729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
26730         New file.
26731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
26732         New file.
26733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
26734         file.
26735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
26736         New file.
26737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
26738         New file.
26739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
26740         New file.
26741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
26742         New file.
26743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
26744         New file.
26745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
26746         New file.
26747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
26748         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
26749         file.
26750         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
26751         New file.
26752         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
26753         file.
26754         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
26755         file.
26756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
26757         file.
26758         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
26759         file.
26760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
26761         file.
26762         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
26763         New file.
26764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
26765         file.
26766         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
26767         file.
26768         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
26769         New file.
26770         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
26771         file.
26772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
26773         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
26774         file.
26775         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
26776         New file.
26777         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
26778         file.
26779         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
26780         file.
26781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
26782         file.
26783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
26784         file.
26785         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
26786         file.
26787         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
26788         New file.
26789         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
26790         file.
26791         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
26792         file.
26793         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
26794         New file.
26795         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
26796         file.
26797         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
26798         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
26799         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
26800         file.
26801         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
26802         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
26803         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
26804         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
26805         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
26806         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
26807         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
26808         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
26809         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
26810         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
26811         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
26812         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
26813         file.
26814         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
26815         New file.
26816         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
26817         file.
26818         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
26819         file.
26820         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
26821         file.
26822         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
26823         file.
26824         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
26825         file.
26826         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
26827         New file.
26828         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
26829         New file.
26830         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
26831         file.
26832         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
26833         New file.
26834         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
26835         file.
26836         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
26837         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
26838         file.
26839         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
26840         New file.
26841         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
26842         file.
26843         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
26844         file.
26845         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
26846         file.
26847         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
26848         file.
26849         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
26850         file.
26851         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
26852         New file.
26853         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
26854         New file.
26855         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
26856         file.
26857         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
26858         New file.
26859         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
26860         file.
26861
26862 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
26863
26864         * conform/conformtest.pl: Fix typo in handling typed-constant from
26865         allow-header.
26866
26867 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26868
26869         * README: Cut down references to pre-2.6 Linux kernels and
26870         Linuxthreads.  Update lists of configurations in libc and ports
26871         and sort alphabetically.  Say "or newer" with Linux kernel version
26872         requirements.
26873
26874         * config.h.in [IS_IN_build]: Allow compiling without optimization.
26875
26876 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
26877
26878         [BZ #887]
26879         * math/libm-test.inc (logb_test_downward): New test to expose
26880         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
26881         rounding mode.
26882
26883 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
26884
26885         [BZ #14027]
26886         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
26887         to be done.
26888         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
26889         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
26890
26891 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
26892
26893         * sysdeps/unix/i386/brk.S: Remove file.
26894         * sysdeps/unix/i386/dl-brk.S: Likewise.
26895         * sysdeps/unix/i386/pipe.S: Likewise.
26896         * sysdeps/unix/i386/sigreturn.S: Likewise.
26897         * sysdeps/unix/i386/syscall.S: Likewise.
26898         * sysdeps/unix/i386/vfork.S: Likewise.
26899         * sysdeps/unix/i386/wait.S: Likewise.
26900
26901         * sysdeps/unix/common/tcsendbrk.c: Move to ...
26902         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
26903
26904         * configure.in (arm*-none*): Do not allow without
26905         --enable-hacker-mode.
26906         (netbsd*): Remove case setting base_os.
26907         (386bsd*): Likewise.
26908         (freebsd*): Likewise.
26909         (bsdi*): Likewise.
26910         (osf*): Likewise.
26911         (sunos*): Likewise.
26912         (ultrix*): Likewise.
26913         (newsos*): Likewise.
26914         (dynix*): Likewise.
26915         (*bsd*): Likewise.
26916         (sysv*): Likewise.
26917         (isc*): Likewise.
26918         (esix*): Likewise.
26919         (sco*): Likewise.
26920         (minix*): Likewise.
26921         (irix4*): Likewise.
26922         (irix6*): Likewise.
26923         (solaris[2-9]*): Likewise.
26924         (none): Likewise.
26925         * configure: Regenerated.
26926
26927 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26928
26929         [BZ #11521]
26930         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
26931         overflow or cancellation in calculating denominator.
26932         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
26933         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
26934         down expression to avoid unexpected rounding in newer GCCs.
26935         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
26936
26937 2012-04-26  David S. Miller  <davem@davemloft.net>
26938
26939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
26940         long-double compat symbols.
26941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
26942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
26943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
26944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
26945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
26946         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
26947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
26948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
26949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
26950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
26951         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
26953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26954
26955 2012-04-25  David S. Miller  <davem@davemloft.net>
26956
26957         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
26958         HWCAP_* values only after the memory barriers have been defined.
26959         (atomic_full_barrier): Define.
26960         (atomic_read_barrier): Define.
26961         (atomic_write_barrier): Define.
26962
26963 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26964
26965         * shlib-versions: Add libgcc_s version information.
26966         * sysdeps/generic/libgcc_s.h: Remove.
26967         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
26968         libgcc_s.h.
26969         * sysdeps/gnu/unwind-resume.c: Likewise.
26970         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
26971
26972 2012-04-25  David S. Miller  <davem@davemloft.net>
26973
26974         * sysdeps/unix/sparc/brk.S: Delete.
26975         * sysdeps/unix/sparc/dl-brk.S: Delete.
26976         * sysdeps/unix/sparc/pipe.S: Delete.
26977         * sysdeps/unix/sparc/sysdep.S: Delete.
26978         * sysdeps/unix/sparc/sysdep.h: Delete.
26979         * sysdeps/unix/sparc/vfork.S: Delete.
26980         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
26981         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
26982         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
26983         ret_ERRVAL, r0, r1, MOVE): Define.
26984         (JUMPTARGET): Remove.
26985         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
26986         sysdeps/unix/sparc/sysdep.h
26987         (ENTRY, END): Remove.
26988         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26989
26990 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
26991
26992         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
26993         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
26994         -DIS_IN_build.
26995
26996         * timezone/README: Update upstream location and email address for
26997         tzcode and tzdata.
26998         * timezone/zdump.c: Update from tzcode 2012b.
26999         * timezone/zic.c: Likewise.
27000
27001         * configure.in (libc_cv_as_needed): Remove test.
27002         * configure: Regenerated.
27003         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
27004         conditional definition.
27005         [$(have-as-needed) != yes] (no-as-needed): Likewise.
27006         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
27007         * config.make.in (have-as-needed): Remove variable.
27008
27009 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27010             Paul Pluzhnikov  <ppluzhnikov@google.com>
27011
27012         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
27013         strings correctly.
27014
27015 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
27016
27017         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
27018         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
27019         * sysdeps/sh/strlen.S: Likewise.
27020
27021 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
27022
27023         * sysdeps/unix/fork.S: Remove file.
27024         * sysdeps/unix/i386/fork.S: Likewise.
27025         * sysdeps/unix/sparc/fork.S: Likewise.
27026
27027         * sysdeps/unix/system.c: Remove file.
27028         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
27029
27030         * sysdeps/unix/getegid.S: Remove file.
27031         * sysdeps/unix/geteuid.S: Likewise.
27032
27033 2012-04-24  Roland McGrath  <roland@hack.frob.com>
27034
27035         * scripts/check-localplt.awk: New file.
27036         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
27037         of diff.
27038         * scripts/data/localplt-generic.data: Add a comment.
27039
27040         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
27041         NODE when __dir_mkfile failed.
27042         * sysdeps/mach/hurd/symlinkat.c: Likewise.
27043         Reported by Ludovic Courtès <ludo@gnu.org>.
27044
27045 2012-04-24  Andreas Jaeger  <aj@suse.de>
27046
27047         * Makerules (common-clean): Also remove gen-as-const-headers
27048         files.
27049
27050 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
27051
27052         * Makerules (native-compile): Do not change working directory for
27053         build.  Use $(OUTPUT_OPTION) in command.
27054         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
27055
27056 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27057
27058         [BZ #13886]
27059         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
27060         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
27061         * math/libm-test.inc (floor_test): Add more tests.
27062         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
27063
27064 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
27065
27066         * sysdeps/unix/getdents.c: Remove file.
27067         * sysdeps/unix/sysv/getdents.c: Likewise.
27068         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
27069
27070         * sysdeps/unix/syscalls.list (madvise): Add syscall from
27071         sysdeps/unix/mman/syscalls.list.
27072         (mmap): Likewise.
27073         (mprotect): Likewise.
27074         (msync): Likewise.
27075         (munmap): Likewise.
27076         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
27077         * sysdeps/unix/mman/syscalls.list: Remove.
27078         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
27079
27080         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
27081         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
27082         * configure: Regenerated.
27083         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
27084         $(libgcc_s_suffix).
27085         * config.make.in (libgcc_s_suffix): Remove variable.
27086
27087 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
27088
27089         * sysdeps/unix/sysv/gethostname.c: Move to ...
27090         * sysdeps/posix/gethostname.c: ... here.
27091
27092         * sysdeps/unix/execve.S: Remove file.
27093
27094         * sysdeps/unix/_exit.S: Remove file.
27095
27096 2012-04-23  Andreas Jaeger  <aj@suse.de>
27097
27098         [BZ #13739]
27099         * manual/Makefile: Remove make dist support, there's no
27100         need for a stand-alone documentation tar ball.
27101         (TEXI2DVI): Define always, it's not in Makeconfig.
27102         (dist): Removed.
27103         (tar-it): Removed.
27104         (edition): Removed.
27105         (glibc-doc-$(edition).tar): Removed
27106         (%.Z): Removed.
27107         (%.gz): Removed.
27108         (%.uu): Removed.
27109         (ETAGS): Remove, it's in Makeconfig.
27110         (move-if-change): Remove, it's in Makeconfig.
27111
27112 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
27113
27114         [BZ #13970]
27115         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
27116         (strtod, strtof, strtold, strtol, strtoul, strtoq)
27117         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
27118         (strtod_l, strtof_l, strtold_l): Remove __wur.
27119         It is not necessarily an error to ignore strtol's return value.
27120         One can reliably look at the stored endptr to decide whether
27121         the number had valid syntax.
27122
27123 2012-04-21  Andreas Jaeger  <aj@suse.de>
27124
27125         [BZ #13739]
27126         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
27127
27128 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
27129
27130         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
27131         * sysdeps/unix/sysv/Versions: Remove file.
27132
27133 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
27134
27135         [BZ #13927]
27136         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27137
27138 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
27139
27140         [BZ #7064]
27141         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
27142         version from __vm86.
27143
27144 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
27145
27146         * sysdeps/unix/common/lxstat.c: Remove file.
27147         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
27148
27149         * sysdeps/unix/sysv/Makefile: Remove file.
27150
27151         * sysdeps/unix/sysv/direct.h: Remove file.
27152
27153         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
27154         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
27155         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
27156         * sysdeps/unix/sysv/bits/signum.h: Likewise.
27157         * sysdeps/unix/sysv/bits/stat.h: Likewise.
27158         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
27159         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
27160
27161         * sysdeps/unix/sysv/setrlimit.c: Remove file.
27162
27163         * sysdeps/unix/xmknod.c: Remove file.
27164         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
27165
27166         * sysdeps/unix/sysv/settimeofday.c: Remove file.
27167
27168         * sysdeps/unix/sysv/i386/time.S: Remove file.
27169
27170         * sysdeps/unix/fxstat.c: Remove file.
27171         * sysdeps/unix/xstat.c: Likewise.
27172         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
27173
27174         * sysdeps/unix/sysv/sigaction.c: Remove file.
27175
27176         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
27177         (sysdep_headers): Remove variable.
27178         [termio.h not in sysdep_headers] (generated): Likewise.
27179         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
27180         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
27181         * sysdeps/unix/sysv/tcdrain.c: Likewise.
27182         * sysdeps/unix/sysv/tcflow.c: Likewise.
27183         * sysdeps/unix/sysv/tcflush.c: Likewise.
27184         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
27185         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
27186         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
27187         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
27188         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
27189
27190         * sysdeps/unix/siglist.c: Remove file.
27191
27192         * sysdeps/unix/getppid.S: Remove file.
27193
27194         * sysdeps/unix/mkdir.c: Remove file.
27195         * sysdeps/unix/rmdir.c: Likewise.
27196
27197 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
27198
27199         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
27200         ERR_MAX value.
27201         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
27202         errlist-compat value.
27203
27204 2012-04-18  David S. Miller  <davem@davemloft.net>
27205
27206         * sysdeps/generic/memcopy.h (reg_char): Delete.
27207         * debug/strcat_chk.c: Use char, not reg_char.
27208         * debug/strcpy_chk.c: Likewise.
27209         * debug/strncat_chk.c: Likewise.
27210         * debug/strncpy_chk.c: Likewise.
27211         * string/memchr.c: Likewise.
27212         * string/memrchr.c: Likewise.
27213         * string/rawmemchr.c: Likewise.
27214         * string/strcat.c: Likewise.
27215         * string/strchr.c: Likewise.
27216         * string/strchrnul.c: Likewise.
27217         * string/strcmp.c: Likewise.
27218         * string/strcpy.c: Likewise.
27219         * string/strncat.c: Likewise.
27220         * string/strncmp.c: Likewise.
27221         * string/strncpy.c: Likewise.
27222
27223 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27224
27225         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
27226         __builtin_memcopy is called when src and dest ranges are known to not
27227         overlap.
27228
27229 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27230
27231         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
27232         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
27233         fwd_align_merge macro call.
27234         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
27235         bwd_align_merge macro call.
27236         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27237
27238 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
27239
27240         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
27241         bwd_align_merge macros.
27242         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
27243         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
27244         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
27245
27246 2012-04-18  David S. Miller  <davem@davemloft.net>
27247
27248         * sysdeps/sparc/sparc64/memcopy.h: Delete.
27249
27250 2012-04-18  Andreas Jaeger  <aj@suse.de>
27251
27252         [BZ# 6794]
27253         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
27254         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
27255         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27256
27257         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
27258         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
27259         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27260
27261         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
27262         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
27263         Adjust for changed ldbl-128 files.
27264
27265         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
27266         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
27267         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
27268
27269 2012-04-17  David S. Miller  <davem@davemloft.net>
27270
27271         * sysdeps/sparc/sparc32/memcopy.h: Delete.
27272
27273 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
27274
27275         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
27276         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
27277         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
27278         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
27279         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
27280         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
27281
27282 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27283
27284         [BZ #6794]
27285         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
27286         * math/libm-test.inc: Add ilogb errno and exception tests.
27287         * math/w_ilogb.c: New file: ilogb wrapper.
27288         * math/w_ilogbf.c: New file: ilogbf wrapper.
27289         * math/w_ilogbl.c: New file: ilogbl wrapper.
27290         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
27291         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
27292         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
27293         exception being thrown with 0.0 as argument.
27294         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
27295         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
27296         exception being thrown with 0.0 as argument.
27297         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
27298         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27299         exception being thrown with 0.0 as argument.
27300         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
27301         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
27302         exception being thrown with 0.0 as argument.
27303         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
27304         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
27305         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
27306         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
27307         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
27308         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
27309         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
27310         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
27311         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
27312
27313 2012-04-17  Petr Baudis  <pasky@ucw.cz>
27314
27315         * include/sys/uio.h: Change __vector to __iovec to avoid clash
27316         with altivec.
27317
27318 2012-04-16  Marek Polacek  <polacek@redhat.com>
27319
27320         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
27321
27322 2012-04-16  Marek Polacek  <polacek@redhat.com>
27323
27324         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
27325         operands of fdivp instruction.
27326
27327 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27328
27329         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
27330         * elf/tst-auditmod3b.c: Likewise.
27331         * elf/tst-auditmod4b.c: Likewise.
27332         * elf/tst-auditmod5b.c: Likewise.
27333         * elf/tst-auditmod6b.c: Likewise.
27334         * elf/tst-auditmod6c.c: Likewise.
27335         * elf/tst-auditmod7b.c: Likewise.
27336         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
27337         * sysdeps/x86_64/preconfigure.in: Likewise.
27338         * sysdeps/x86_64/preconfigure: Regenerated.
27339
27340 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27341
27342         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
27343         __ILP32__.
27344
27345 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
27346
27347         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27348         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
27349
27350 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
27351
27352         [BZ #13973]
27353         * locale/iso-639.def: Fix gl language name. Spotted by
27354         Yaron Shahrabani.
27355
27356 2012-04-12  Roland McGrath  <roland@hack.frob.com>
27357
27358         [BZ #2074]
27359         * libio/libio.h (__io_write_fn): Update comment.
27360
27361 2012-04-12  Petr Baudis  <pasky@ucw.cz>
27362
27363         [BZ #2074]
27364         * stdio.texi (Hook Functions): The user provided writer function
27365         is not allowed to return -1.
27366
27367 2012-04-11  David S. Miller  <davem@davemloft.net>
27368
27369         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27370
27371 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
27372
27373         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
27374         Add a leading slash to rtkaio.
27375
27376 2012-04-11  Jim Meyering  <meyering@redhat.com>
27377
27378         [BZ #11959]
27379         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
27380         It is not necessarily an error to ignore fwrite's return
27381         value.  One can reliably use ferror to test for errors after
27382         the fact.
27383
27384 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27385
27386         * bits/types.h (__snseconds_t): New type.
27387         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
27388
27389         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
27390         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27391         (__SNSECONDS_T_TYPE): Likewise.
27392         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27393         (__SNSECONDS_T_TYPE): Likewise.
27394         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27395         (__SNSECONDS_T_TYPE): Likewise.
27396
27397 2012-04-10  Andreas Jaeger  <aj@suse.de>
27398
27399         [BZ #2636]
27400         * manual/time.texi (Processor Time): Return type of times is
27401         elapsed real time since an arbitrary point in the past.
27402         (CPU Time): Move CLK_TCK from here...
27403         (Processor Time): ...to here.  Correct description.
27404         * manual/conf.texi (Constants for Sysconf): Correct description of
27405         _SC_CLK_TCK.
27406
27407 2012-04-10  David S. Miller  <davem@davemloft.net>
27408
27409         [BZ #13967]
27410         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
27411         where the is a gap between DT_REL(A) and DT_JMPREL.
27412
27413 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
27414
27415         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
27416         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27417         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27418
27419 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27420
27421         * elf/dl-support.c (_dl_inhibit_cache): New variable.
27422         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
27423         (dl_main): Handle --inhibit-cache.
27424         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
27425         _dl_inhibit_cache.
27426         * elf/dl-load.c (_dl_map_object): Use it.
27427         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
27428
27429 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27430
27431         [BZ #13872]
27432         * sysdeps/i386/fpu/e_powl.S (p78): New object.
27433         (__ieee754_powl): Saturate large exponents rather than testing for
27434         overflow of y*log2(x).
27435         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27436         * math/libm-test.inc (pow_test): Do not permit spurious overflow
27437         exceptions.
27438
27439         [BZ #11521]
27440         * math/s_ctan.c: Include <float.h>.
27441         (__ctan): Avoid internal overflow or cancellation in calculating
27442         denominator.
27443         * math/s_ctanf.c: Likewise.
27444         * math/s_ctanl.c: Likewise.
27445         * math/s_ctanh.c: Likewise.
27446         * math/s_ctanhf.c: Likewise.
27447         * math/s_ctanhl.c: Likewise.
27448         * math/libm-test.inc (ctan_test): Add more tests.
27449         (ctanh_test): Likewise.
27450         * sysdeps/i386/fpu/libm-test-ulps: Update.
27451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27452
27453 2012-04-09  Andreas Jaeger  <aj@suse.de>
27454
27455         [BZ #6894]
27456         * manual/filesys.texi (Directory Entries): Mention that d_namlen
27457         is an optional BSD extension.
27458
27459         [BZ #10254]
27460         * manual/stdio.texi (Opening Streams): Document additional fopen
27461         parameters.
27462
27463 2012-04-09  Roland McGrath  <roland@hack.frob.com>
27464
27465         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
27466         %eax without telling the compiler.
27467
27468 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
27469
27470         [BZ # 13963]
27471         * manual/install.texi: Use sourceware.org.
27472
27473 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
27474
27475         [BZ #13873]
27476         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
27477         (__ieee754_pow): Generate overflow and underflow using huge*huge
27478         and tiny*tiny rather than just returning constant infinity or zero
27479         for large exponents.
27480         * math/libm-test.inc (pow_test): Require overflow exceptions for
27481         applicable cases of large exponents.
27482
27483         [BZ #706]
27484         * sysdeps/i386/fpu/e_pow.S (p10): New object.
27485         (__ieee754_pow): Use iterative multiplication algorithm only for
27486         integer exponents with absolute value below 1024.  Check for odd
27487         integer exponents when using algorithm for real exponents.
27488         * math/libm-test.inc (pow_test): Add more tests.
27489         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27490
27491 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
27492
27493         [BZ #13705]
27494         * math/libm-test.inc (exp_test): Do not allow overflow exception
27495         on underflow test.
27496
27497 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
27498
27499         [BZ #13705]
27500         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
27501         instead of __kernel_standard_f.
27502
27503 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
27504
27505         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
27506         * sysdeps/x86_64/memset_chk.S: Likewise.
27507
27508 2012-04-08  Andreas Jaeger  <aj@suse.de>
27509
27510         [BZ #10153]
27511         * manual/startup.texi (Environment Access): Describe return value
27512         for putenv and setenv.
27513
27514         [BZ #6895]
27515         * manual/filesys.texi (Directory Entries): Add description for
27516         DT_LNK.
27517
27518         [BZ #6890]
27519         * manual/filesys.texi (Directory Entries): Clarify that it's file
27520         system not operating system in the description of DT_UNKNOWN.
27521
27522         [BZ #6578]
27523         * manual/syslog.texi (closelog): Fix reference, it's openlog.
27524
27525 2012-04-08  Stephen Compall  <s11@member.fsf.org>
27526
27527         [BZ #6649]
27528         * manual/llio.texi (Opening and Closing Files): Add cross
27529         reference to explain mode argument.
27530
27531 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
27532
27533         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
27534         * sysdeps/x86_64/memset_chk.S: Likewise.
27535
27536 2012-04-07  David S. Miller  <davem@davemloft.net>
27537
27538         * elf/elf.h (R_SPARC_WDISP10): Define.
27539         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
27540         R_SPARC_SIZE32.
27541         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
27542         R_SPARC_SIZE64 and R_SPARC_H34.
27543
27544 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
27545
27546         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
27547         conditions and remove no longer applicable assertion.
27548
27549 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27550
27551         * bits/byteswap.h: Include <features.h>.
27552         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
27553         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
27554
27555 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
27556
27557         * bits/byteswap.h (__bswap_16): Removed.
27558         Include <bits/byteswap-16.h> to get __bswap_16.
27559         * sysdeps/i386/bits/byteswap.h: Likewise.
27560         * sysdeps/s390/bits/byteswap.h: Likewise.
27561         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27562         * bits/byteswap-16.h: New file.
27563         * sysdeps/i386/bits/byteswap-16.h: Likewise.
27564         * sysdeps/s390/bits/byteswap-16.h: Likewise.
27565         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
27566         * string/Makefile (headers): Add bits/byteswap-16.h.
27567
27568 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27569
27570         [BZ #13895]
27571         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
27572         extra indirection.
27573         * nss/Makefile (tests-static, tests): Add tst-nss-static.
27574         * nss/tst-nss-static.c: New.
27575
27576 2012-04-06  Robert Millan  <rmh@gnu.org>
27577
27578         [BZ #6486]
27579         * manual/llio.texi (File Position Primitive): lseek
27580         refers to WHENCE when it really means OFFSET.
27581
27582 2012-04-06  Andreas Jaeger  <aj@suse.de>
27583
27584         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
27585         strncmp declarations.
27586
27587         * abilist/libc.abilist: Add __poll and __ppoll.
27588
27589 2012-04-05  David S. Miller  <davem@davemloft.net>
27590
27591         * scripts/check-local-headers.sh: Accept a host triplet in the
27592         path matched by the exclude regexp.
27593
27594         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
27595         definition.
27596         * sysdeps/powerpc/powerpc32/dl-machine.h
27597         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
27598         * sysdeps/s390/s390-32/dl-machine.h
27599         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27600         * sysdeps/sparc/sparc32/dl-machine.h
27601         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27602         * sysdeps/sparc/sparc64/dl-machine.h
27603         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
27604
27605         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
27606         lazy binding.
27607         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
27608         undefined symbol errors.
27609
27610         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
27611         DT_NEEDED entries.
27612
27613 2012-04-05  Michael Matz  <matz@suse.de>
27614
27615         [BZ #13592]
27616         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
27617
27618 2012-04-05  Andreas Jaeger  <aj@suse.de>
27619
27620         [BZ #13908]
27621         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
27622         comment.
27623
27624 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27625
27626         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
27627         which ROUND is no valid rounding mode.
27628
27629 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27630
27631         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
27632         read again.
27633         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
27634
27635 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27636
27637         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
27638         an exception using FPU order intentionally.
27639
27640 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27641
27642         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
27643         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
27644         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
27645         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
27646
27647 2012-04-05  Simon Josefsson  <simon@josefsson.org>
27648
27649         [BZ #12340]
27650         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
27651         EINVAL when BUFLEN is too smal.
27652
27653 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
27654
27655         [BZ #13553]
27656         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
27657         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
27658
27659 2012-04-03  Andreas Jaeger  <aj@suse.de>
27660
27661         [BZ #13938]
27662         * manual/setjmp.texi (System V contexts): Fix sentence.
27663
27664         [BZ #13926]
27665         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
27666         New macro for this case.
27667         [!__GNUC__] (__bswap_64): New inline function for this case.
27668         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27669         * bits/byteswap.h: Likewise.
27670         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
27671         ull, guard with __GLIBC_HAVE_LONG_LONG.
27672
27673         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
27674         __GLIBC_HAVE_LONG_LONG.
27675
27676         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
27677         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
27678
27679 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27680
27681         [BZ #13691]
27682         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
27683         inptr and inend, rather than using last_ch.
27684
27685 2012-04-02  David S. Miller  <davem@davemloft.net>
27686
27687         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
27688         * stdio-common/printf-parse.h (read_int): Change return type to
27689         'int', return -1 on INT_MAX overflow.
27690         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
27691         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
27692         overflows INT_MAX.  Check for overflow of in-format-string precision
27693         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
27694         SIZE_MAX not INT_MAX for integer overflow test.
27695         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
27696         skip the construct in the format string but do not record anything.
27697         * stdio-common/bug22.c: Adjust to test both width/prevision
27698         INT_MAX overflow as well as total length INT_MAX overflow.  Check
27699         explicitly for proper errno values.
27700
27701 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
27702
27703         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
27704         CHAR_MAX.
27705         * string/test-strcmp.c [! WIDE]: Likewise.
27706         * time/tst-mktime2.c: Likewise for INT_MAX.
27707         * string/test-string.h: #include <sys/param.h> for MIN.
27708
27709         * csu/init-first.c (__libc_init_first): Call __ctype_init.
27710         * sysdeps/i386/init-first.c (init): Likewise.
27711         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
27712         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
27713         * sysdeps/sh/init-first.c (init): Likewise.
27714
27715 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
27716
27717         * po/ru.po: Update from translation team.
27718         * po/vi.po: Likewise.
27719
27720 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
27721
27722         * resolv/nss_dns/dns-host.c: Merge copyright years.
27723
27724 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27725
27726         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27727         Optimize memcpy with prefetch if
27728         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
27729         src, dst pointers have unequal 16 byte alignments.
27730
27731 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
27732
27733         [BZ #13928]
27734         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
27735         from a CNAME entry and return the minimum ttl for the query.
27736         (gaih_getanswer_slice): Likewise.
27737
27738 2012-03-30  Jeff Law  <law@redhat.com>
27739
27740         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
27741         due to long keys.
27742         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
27743         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
27744
27745         * resolv/nss_dns/dns-host.c: Update copyright year.
27746
27747 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
27748
27749         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
27750         requests to save a system call.  Fix check that all bytes are sent.
27751
27752         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
27753         comments for sendmmsg.
27754
27755 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27756
27757         [BZ #13691]
27758         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
27759         with only 1 character between 0x0041 and 0x01b0.
27760         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
27761         * wcsmbs/tst-mbsnrtowcs.c: New file.
27762
27763 2012-03-29  David S. Miller  <davem@davemloft.net>
27764
27765         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
27766         small copies by hand.
27767
27768 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27769
27770         [BZ #13761]
27771         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
27772         _nss_compat_initgroups_dyn): Fall back to malloc/free
27773         for large group memberships.
27774
27775 2012-03-28  David S. Miller  <davem@davemloft.net>
27776
27777         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
27778         that branches into memcpy.
27779         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
27780         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
27781         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
27782         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
27783         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
27784         bits.
27785         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
27786         implementation too.
27787         * sysdeps/sparc/mempcpy.S: New file.
27788
27789         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
27790         the IFUNC routine in the libc case.
27791         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27792
27793         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
27794         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
27795         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
27796         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
27797         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
27798         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
27799         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
27800         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
27801
27802         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
27803         loop to 256 bytes instead of 64 bytes and fix test signedness.
27804
27805         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
27806         * sysdeps/sparc/sparc32/Makefile: rather than here...
27807         * sysdeps/sparc/sparc64/Makefile: and here.
27808
27809 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
27810
27811         * malloc/mallocbug.c: Avoid warnings about unused variables.
27812
27813 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
27814
27815         [BZ #13760]
27816         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
27817         in the right place. Discard and retry query if response is
27818         larger than input buffer size.
27819
27820 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
27821
27822         [BZ #369]
27823         [BZ #2678]
27824         [BZ #3866]
27825         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
27826         x for large integer exponent.
27827         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
27828         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
27829         sign of result as needed afterwards.
27830         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
27831         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
27832         result for underflowing pow the same as for overflow.
27833         (__kernel_standard_l): Handle powl overflow and underflow here
27834         rather than calling __kernel_standard.
27835         * math/libm-test.inc (pow_test): Add more tests.
27836
27837         [BZ #3868]
27838         [BZ #13879]
27839         [BZ #13910]
27840         [BZ #13911]
27841         [BZ #13912]
27842         [BZ #13913]
27843         [BZ #13915]
27844         [BZ #13916]
27845         [BZ #13917]
27846         [BZ #13918]
27847         [BZ #13919]
27848         [BZ #13920]
27849         [BZ #13921]
27850         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
27851         * sysdeps/ieee754/k_standard.c: Include <float.h>.
27852         (__kernel_standard_l): New function.
27853         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
27854         __kernel_standard.
27855         * math/w_acosl.c (__acosl): Likewise.
27856         * math/w_asinl.c (__asinl): Likewise.
27857         * math/w_atan2l.c (__atan2l): Likewise.
27858         * math/w_atanhl.c (__atanhl): Likewise.
27859         * math/w_coshl.c (__coshl): Likewise.
27860         * math/w_exp10l.c (__exp10l): Likewise.
27861         * math/w_exp2l.c (__exp2l): Likewise.
27862         * math/w_fmodl.c (__fmodl): Likewise.
27863         * math/w_hypotl.c (__hypotl): Likewise.
27864         * math/w_j0l.c (__j0l, __y0l): Likewise.
27865         * math/w_j1l.c (__j1l, __y1l): Likewise.
27866         * math/w_jnl.c (__jnl, __ynl): Likewise.
27867         * math/w_lgammal.c (__lgammal): Likewise.
27868         * math/w_log10l.c (__log10l): Likewise.
27869         * math/w_log2l.c (__log2l): Likewise.
27870         * math/w_logl.c (__logl): Likewise.
27871         * math/w_powl.c (__powl): Likewise.
27872         * math/w_remainderl.c (__remainderl): Likewise.
27873         * math/w_scalbl.c (sysv_scalbl): Likewise.
27874         * math/w_sinhl.c (__sinhl): Likewise.
27875         * math/w_sqrtl.c (__sqrtl): Likewise.
27876         * math/w_tgammal.c (__tgammal): Likewise.
27877         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
27878         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
27879         * math/libm-test.inc (acos_test): Add more tests.
27880         (acosh_test): Likewise.
27881         (asin_test): Likewise.
27882         (atanh_test): Likewise.
27883         (exp_test): Likewise.
27884         (exp10_test): Likewise.
27885         (exp2_test): Likewise.
27886         (expm1_test): Likewise.
27887         (lgamma_test): Likewise.
27888         (log_test): Likewise.
27889         (log10_test): Likewise.
27890         (log1p_test): Likewise.
27891         (log2_test): Likewise.
27892         (pow_test): Do not allow some spurious overflow exceptions.
27893         (sqrt_test): Add more tests.
27894         (tgamma_test): Likewise.
27895         (y0_test): Likewise.
27896         (y1_test): Likewise.
27897         (yn_test): Likewise.
27898
27899 2012-03-27  Anton Blanchard  <anton@samba.org>
27900
27901         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
27902         MAP_HUGETLB.
27903         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27904         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27905         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27906
27907 2012-03-27  David S. Miller  <davem@davemloft.net>
27908
27909         * conform/Makefile: Run run-conformtest.sh using $(BASH).
27910
27911         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
27912         have-as-vis3 check.
27913
27914 2012-03-27  Andreas Jaeger  <aj@suse.de>
27915
27916         * sysdeps/x86_64/elf/configure.in: Moved to ...
27917         * sysdeps/x86_64/configure.in: ... here.
27918         * sysdeps/x86_64/elf/start.S: Moved to ...
27919         * sysdeps/x86_64/start.S: ... here.
27920         * sysdeps/x86_64/elf/configure: Delete.
27921
27922         * sysdeps/x86_64/configure.in: Merge contents from
27923         sysdeps/i386/configure.in (without i686 check).
27924
27925         * sysdeps/i386/elf/Versions: Merge into ...
27926         * sysdeps/i386/Versions: ... this.
27927         * sysdeps/i386/elf/Versions: Delete file.
27928         * sysdeps/i386/elf/start.S: Moved to ...
27929         * sysdeps/i386/start.S: ...here.
27930         * sysdeps/i386/elf/configure.in: Merge into...
27931         * sysdeps/i386/configure.in: ...here.
27932         * sysdeps/i386/elf/configure.in: Delete file.
27933         * sysdeps/i386/elf/configure: Delete file.
27934
27935         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
27936         * debug/backtracesyms.c: ... here.
27937         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
27938         * debug/backtracesymsfd.c: ... here.
27939         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
27940         * sysdeps/generic/ifunc-sel.h: ... here.
27941
27942         * sysdeps/unix/i386/start.c: Delete file.
27943         * sysdeps/unix/sparc/start.c: Delete file.
27944         * sysdeps/unix/start.c: Delete file.
27945
27946         * sysdeps/sh/elf/configure.in: Moved to ...
27947         * sysdeps/sh/configure.in: ... here.
27948         * sysdeps/sh/elf/start.S: Moved to ...
27949         * sysdeps/sh/start.S: ... here.
27950         * sysdeps/sh/elf/configure: Delete file.
27951
27952         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
27953         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
27954         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
27955         * sysdeps/powerpc/powerpc64/entry.h: ... here.
27956         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
27957         * sysdeps/powerpc/powerpc64/start.S: here.
27958         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
27959         * sysdeps/powerpc/powerpc64/Makefile: ... this.
27960         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
27961         * sysdeps/powerpc/powerpc64/configure.in: ... this.
27962         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
27963
27964         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
27965         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
27966         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
27967         * sysdeps/powerpc/powerpc32/start.S: ... here.
27968         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
27969         * sysdeps/powerpc/powerpc32/configure.in: ... this.
27970         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
27971
27972         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
27973         * sysdeps/powerpc/ifunc-sel.h: ... here.
27974         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
27975         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
27976
27977         * sysdeps/sparc/elf/configure.in: Moved to ...
27978         * sysdeps/sparc/configure.in: ... here.
27979         * sysdeps/sparc/elf/configure: Delete file.
27980         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
27981         * sysdeps/sparc/sparc32/start.S: ... here.
27982         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
27983         * sysdeps/sparc/sparc64/start.S: ... here.
27984         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
27985         * sysdeps/sparc/sparc32/Makefile: ... this.
27986         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
27987         * sysdeps/sparc/sparc64/Makefile: ... this.
27988
27989         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
27990         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
27991         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
27992         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
27993         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
27994         * sysdeps/s390/s390-32/setjmp.S: ... here.
27995         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
27996         * sysdeps/s390/s390-32/configure.in: ... here.
27997         * sysdeps/s390/s390-32/elf/configure: Delete file.
27998         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
27999         * sysdeps/s390/s390-32/start.S: ... here.
28000
28001         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
28002         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
28003         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
28004         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
28005         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
28006         * sysdeps/s390/s390-64/setjmp.S: ... here.
28007         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
28008         * sysdeps/s390/s390-64/configure.in: ... here
28009         * sysdeps/s390/s390-64/elf/configure: Delete file.
28010         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
28011         * sysdeps/s390/s390-64/start.S: ... here.
28012         * sysdeps/s390/s390-64/elf/configure: Delete.
28013
28014         * configure.in: Remove support for elf directories in sysdeps.
28015
28016         * configure: Regenerated.
28017         * sysdeps/i386/configure: Regenerated.
28018         * sysdeps/powerpc/powerpc32/configure: Regenerated.
28019         * sysdeps/powerpc/powerpc64/configure: Regenerated.
28020         * sysdeps/s390/s390-32/configure: Regenerated.
28021         * sysdeps/s390/s390-64/configure: Regenerated.
28022         * sysdeps/sh/configure: Regenerated.
28023         * sysdeps/sparc/configure: Regenerated.
28024         * sysdeps/x86_64/configure: Regenerated.
28025
28026 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
28027
28028         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28029
28030         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
28031         denormal result into account.
28032
28033 2012-03-25  Roland McGrath  <roland@hack.frob.com>
28034
28035         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
28036         Reported by Allan McRae <allan@archlinux.org>.
28037
28038 2012-03-23  Jeff Law  <law@redhat.com>
28039
28040         * nss/getnssent.c (__nss_getent): Fix typo.
28041
28042 2012-03-23  David S. Miller  <davem@davemloft.net>
28043
28044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28045
28046 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
28047
28048         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
28049         to pad to uint64_t for each field.
28050         (dl_tls_index): Replace unsigned long with uint64_t.
28051
28052 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
28053         Paul Pluzhnikov  <ppluzhnikov@google.com>
28054
28055         [BZ #6528]
28056         * grp/Makefile (otherlibs): Don't set it.
28057         * inet/Makefile (otherlibs): Likewise.
28058         * login/Makefile (otherlibs): Likewise.
28059         * nscd/Makefile (otherlibs): Likewise.
28060         * posix/Makefile (otherlibs): Likewise.
28061         * pwd/Makefile (otherlibs): Likewise.
28062         * rt/Makefile (otherlibs): Likewise.
28063         * sunrpc/Makefile (otherlibs): Likewise.
28064         * nss/Makefile (otherlibs): Likewise.
28065         Add libnss_files to routines and static-only-routines.
28066         ($(objpfx)getent): Remove rule.
28067         * resolv/Makefile: Add libnss_dns and libresolv to routines and
28068         static-only-routines.
28069
28070 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
28071
28072         [BZ #13892]
28073         * math/s_cexp.c: Include <float.h>.
28074         (__cexp): Handle exp result overflowing not necessarily
28075         overflowing both real and imaginary parts of result.
28076         * math/s_cexpf.c: Likewise.
28077         * math/s_cexpl.c: Likewise.
28078         * math/libm-test.inc (cexp_test): Add more tests.
28079         * sysdeps/i386/fpu/libm-test-ulps: Update.
28080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28081
28082 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28083
28084         * include/link.h (ELFW): New macro.
28085         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
28086         Replace ELF64_R_TYPE with ELFW(R_TYPE).
28087
28088 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28089
28090         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
28091         with uint64_t.
28092
28093 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28094
28095         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
28096         declaration.
28097         (struct La_x32_retval): Likewise.
28098
28099 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
28100
28101         * sysdeps/x86_64/preconfigure.in: New file.
28102         * sysdeps/x86_64/preconfigure: New generated file.
28103
28104 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
28105
28106         [BZ #13824]
28107         * math/e_exp2l.c: Include <float.h>.
28108         (__ieee754_exp2l): Handle overflow and underflow cases
28109         separately.  Only pass fractional part of argument to
28110         __ieee754_expl.
28111         * math/libm-test.inc (exp2_test): Add more tests.
28112
28113         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
28114         negating x to take absolute value.
28115         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
28116         Likewise.
28117         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
28118         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
28119         Likewise.
28120         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
28121         computing low part if x was negated.
28122         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
28123
28124 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28125
28126         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
28127         la_x32_gnu_pltexit.
28128         (pltexit): Cast int_retval to ptrdiff_t.
28129         * elf/tst-auditmod3b.c: Likewise.
28130         * elf/tst-auditmod4b.c: Likewise.
28131         * elf/tst-auditmod5b.c: Likewise.
28132         * elf/tst-auditmod6b.c: Likewise.
28133         * elf/tst-auditmod6c.c: Likewise.
28134         * elf/tst-auditmod7b.c: Likewise.
28135
28136         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
28137         and x32_gnu_pltexit.
28138
28139         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
28140         __ELF_NATIVE_CLASS.
28141         (La_x32_regs): New macro.
28142         (La_x32_retval): Likewise.
28143         (la_x32_gnu_pltenter): New function prototype.
28144         (la_x32_gnu_pltexit): Likewise.
28145
28146 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
28147
28148         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
28149         exponent.
28150
28151         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28152
28153         * configure.in (libc_cv_cc_nofma): Check for option to disable
28154         generation of FMA instructions.
28155         * configure: Regenerate.
28156         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
28157         * sysdeps/ieee754/dbl-64/Makefile: New file.
28158         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28159         Remove brandred-fma4.
28160         (CFLAGS-brandred-fma4.c): Remove.
28161         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
28162         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
28163         define.
28164         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
28165         define.
28166
28167 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28168
28169         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
28170         LLONG_MAX != LONG_MAX.
28171         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28172         (_fitoa_word): Likewise.
28173         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
28174         LLONG_MAX != LONG_MAX.
28175         * stdio-common/_itowa.h: Include <_itoa.h>.
28176         (_itowa_word): Use _ITOA_WORD_TYPE on value.
28177         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
28178         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
28179         only if not defined.
28180         (_ITOA_WORD_TYPE): Likewise.
28181         (_itoa_word): Use _ITOA_WORD_TYPE on value.
28182         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
28183
28184 2012-03-21  David S. Miller  <davem@davemloft.net>
28185
28186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28187
28188 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
28189
28190         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
28191         of x86_64 when setting libc_cv_slibdir, libdir and
28192         libc_cv_localedir.
28193         * sysdeps/unix/sysv/linux/configure: Regenerated.
28194
28195 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28196
28197         * manual/lang.texi (Old Varargs): Remove section.
28198         (How Variadic): Update menu.
28199         (va_start): Do not mention varargs.h.
28200
28201 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28202             Joseph Myers  <joseph@codesourcery.com>
28203
28204         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
28205         link test.
28206         * configure: Regenerated.
28207
28208 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
28209
28210         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
28211         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
28212         conformtest.pl
28213
28214 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28215
28216         * NOTES: Remove.
28217         * Makefile (files-for-dist): Remove NOTES.
28218         (NOTES): Remove rule.
28219         * README: Don't refer to NOTES.
28220         * manual/creature.texi: Don't include macros.texi.
28221         * manual/intro.texi (creature.texi): Remove comment referring to
28222         NOTES.
28223
28224         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
28225         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
28226         * configure: Regenerated.
28227         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
28228         LIBC_TRY_CC_OPTION.
28229         (libc_cv_as_i686): Likewise.
28230         (libc_cv_cc_avx): Likewise.
28231         (libc_cv_cc_sse2avx): Likewise.
28232         (libc_cv_cc_fma4): Likewise.
28233         (libc_cv_cc_novzeroupper): Likewise.
28234         * sysdeps/i386/configure: Regenerated.
28235
28236         [BZ #13883]
28237         * sysdeps/i386/fpu/s_cexp.S: Remove.
28238         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
28239         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
28240         * math/libm-test.inc (cexp_test): Add more tests.
28241         * sysdeps/i386/fpu/libm-test-ulps: Update.
28242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28243
28244 2012-03-21  Allan McRae  <allan@archlinux.org>
28245
28246         * timezone/Makefile: Do not install iso3166.tab and zone.tab
28247
28248 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
28249
28250         [BZ #13871]
28251         * math/w_exp2.c: Do not include <float.h>.
28252         (o_threshold, u_threshold): Remove.
28253         (__exp2): Calculate result before checking finiteness and calling
28254         __kernel_standard.
28255         * math/w_exp2f.c: Likewise.
28256         * math/w_exp2l.c: Likewise.
28257         * math/libm-test.inc (exp2_test): Require overflow exception for
28258         1e6 input.
28259
28260         [BZ #3866]
28261         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
28262         range of signed 64-bit integers before using fistpll.  Remove
28263         checks for whether integers fit in mantissa bits.
28264         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
28265         the range of signed 32-bit integers before using fistpl.  Remove
28266         checks for whether integers fit in mantissa bits.
28267         * sysdeps/i386/fpu/e_powl.S (p64): New object.
28268         (__ieee754_powl): Test for y outside the range of signed 64-bit
28269         integers before using fistpll.  Reduce 64-bit values to 63-bit
28270         ones as needed.
28271         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
28272         divide-by-zero is raised for zero to large negative powers.
28273         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
28274         (__ieee754_powl): Test for y outside the range of signed 64-bit
28275         integers before using fistpll.  Reduce 64-bit values to 63-bit
28276         ones as needed.
28277         * math/libm-test.inc (pow_test): Add more tests.
28278
28279 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28280
28281         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
28282         <stdio-common/_itoa.h>.
28283         * debug/segfault.c: Likewise.
28284         * elf/dl-cache.c: Likewise.
28285         * elf/dl-minimal.c: Likewise.
28286         * elf/dl-misc.c: Likewise.
28287         * elf/dl-sysdep.c: Likewise.
28288         * elf/dl-version.c: Likewise.
28289         * elf/rtld.c: Likewise.
28290         * hurd/hurdsock.c: Likewise.
28291         * hurd/lookup-retry.c: Likewise.
28292         * malloc/malloc.c: Likewise.
28293         * malloc/mtrace.c: Likewise.
28294         * nscd/nscd_getgr_r.c: Likewise.
28295         * nscd/nscd_getpw_r.c: Likewise.
28296         * nscd/nscd_getserv_r.c: Likewise.
28297         * posix/getopt_init.c: Likewise.
28298         * posix/wordexp.c: Likewise.
28299         * stdio-common/_itoa.c: Likewise.
28300         * stdio-common/printf_fphex.c: Likewise.
28301         * stdio-common/vfprintf.c: Likewise.
28302         * string/_strerror.c: Likewise.
28303         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
28304         * sysdeps/i386/i686/hp-timing.h: Likewise.
28305         * sysdeps/mach/_strerror.c: Likewise.
28306         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
28307         * sysdeps/mach/hurd/sethostid.c: Likewise.
28308         * sysdeps/mach/hurd/xmknodat.c: Likewise.
28309         * sysdeps/mach/xpg-strerror.c: Likewise.
28310         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
28311         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28312         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
28313         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
28314         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28315         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
28316         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28317         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28318         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
28319         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
28320         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
28321         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
28322         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
28323         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
28324         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
28325         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
28326         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
28327         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
28328         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28329         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28330         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
28331
28332         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
28333
28334         * stdio-common/_itoa.h: Moved to ...
28335         * sysdeps/generic/_itoa.h: Here.
28336
28337         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
28338
28339         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
28340         instead of "_itoa.h" and "_itowa.h".
28341         * stdio-common/vfprintf.: Likewise.
28342
28343 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28344
28345         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
28346         <bits/wordsize.h>.
28347         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
28348         (__signbit): Likwise.
28349         (llrintf): Likwise.
28350         (llrint): Likwise.
28351
28352 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
28353
28354         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
28355         __WORDSIZE != 64.
28356
28357 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
28358
28359         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
28360         OVERFLOW_EXCEPTION_OK.
28361         * math/libm-test.inc ("Philosophy"): Update comment about
28362         exception testing.
28363         (OVERFLOW_EXCEPTION): Define.
28364         (OVERFLOW_EXCEPTION_OK): Likewise.
28365         (INVALID_EXCEPTION_OK): Renumber.
28366         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
28367         (IGNORE_ZERO_INF_SIGN): Likewise.
28368         (test_exceptions): Handle FE_OVERFLOW.
28369         (exp10_test): Expect overflow exceptions.
28370         (exp2_test): Likewise.
28371         (expm1_test): Likewise.
28372         (nextafter_test): Likewise.
28373         (pow_test): Likewise.
28374         (scalbn_test): Likewise.
28375         (scalbln_test): Likewise.
28376
28377 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28378
28379         * sysdeps/x86_64/bits/atomic.h
28380         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
28381         64bit integer.
28382         (atomic_exchange_acq): Likewise.
28383         (__arch_exchange_and_add_body): Likewise.
28384         (__arch_add_body): Likewise.
28385         (atomic_add_negative): Likewise.
28386         (atomic_add_zero): Likewise.
28387
28388 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28389
28390         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
28391         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
28392
28393 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28394
28395         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
28396         Check __x86_64__ instead of __WORDSIZE.
28397
28398 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28399
28400         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
28401
28402 2012-03-19  David S. Miller  <davem@davemloft.net>
28403
28404         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28405
28406         * sysdeps/sparc/fpu/fenv_private.h: New file.
28407         * sysdeps/sparc/fpu/math_private.h: Use it.
28408         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
28409         Remove.
28410         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
28411         (libc_feholdexcept_setroundl): Remove.
28412         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
28413         Remove.
28414         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
28415         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
28416
28417 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28418
28419         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
28420         int64_t instead of long int.
28421         (INSERT_WORDS64): Likwise.
28422
28423 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
28424
28425         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
28426         _Unwind_GetCFA return to _Unwind_Ptr first.
28427
28428 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
28429
28430         [BZ #13629]
28431         * math/s_clog.c: Include <float.h>.
28432         (__clog): Scale large or subnormal inputs.
28433         * math/s_clogf.c: Likewise.
28434         * math/s_clogl.c: Likewise.
28435         * math/s_clog10.c: Include <float.h>.
28436         (M_LOG10_2): Define.
28437         (__clog10): Scale large or subnormal inputs.
28438         * math/s_clog10f.c: Likewise.
28439         * math/s_clog10l.c: Likewise.
28440         * math/libm-test.inc (clog_test): Add more tests.
28441         (clog10_test): Likewise.
28442         * sysdeps/i386/fpu/libm-test-ulps: Update.
28443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28444
28445         [BZ #11451]
28446         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
28447         x and y.
28448         * math/libm-test.inc (atan2_test): Add another test.
28449
28450         * Makerules (common-objdir-compile): Remove.
28451         * sysdeps/unix/Makefile (config-generated): Do not add
28452         $(unix-generated) to variable.
28453         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
28454         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
28455         Remove rule.
28456         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
28457         Likewise.
28458         [generic bits/local_lim.h] (before-compile): Do not append to
28459         variable.
28460         [generic bits/local_lim.h] (common-generated): Likewise.
28461         [generic sys/param.h] (before-compile): Do not append to variable.
28462         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
28463         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
28464         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
28465         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
28466         include.
28467         [generic sys/param.h] (sys/param.h-includes): Remove variable.
28468         [generic sys/param.h] (sys/param.h-includes): Remove rule.
28469         [generic sys/param.h] ($(addprefix
28470         $(common-objpfx),$(sys/param.h-includes))): Likewise.
28471         [generic sys/param.h] (common-generated): Do not append to
28472         variable.
28473         [generic sys/param.h] (sysdep_headers): Likewise.
28474         [generic bits/errno.h] (before-compile): Do not append to
28475         variable.
28476         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
28477         rule.
28478         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
28479         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
28480         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
28481         [generic bits/errno.h] (common-generated): Do not append to
28482         variable.
28483         [generic bits/ioctls.h] (before-compile): Do not append to
28484         variable.
28485         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
28486         rule.
28487         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
28488         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
28489         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
28490         rule.
28491         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
28492         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
28493         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
28494         [generic bits/ioctls.h] (common-generated): Do not append to
28495         variable.
28496         [generic sys/syscall.h] (syscall.h): Remove variable.
28497         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
28498         rule.
28499         [generic sys/syscall.h] (before-compile): Do not append to
28500         variable.
28501         [generic sys/syscall.h] (common-generated): Likewise.
28502         * sysdeps/unix/errnos-tmpl.c: Remove file.
28503         * sysdeps/unix/errnos.awk: Likewise.
28504         * sysdeps/unix/ioctls-tmpl.c: Likewise.
28505         * sysdeps/unix/ioctls.awk: Likewise.
28506         * sysdeps/unix/mk-local_lim.c: Likewise.
28507         * sysdeps/unix/snarf-ioctls: Likewise.
28508
28509 2012-03-19  Richard Henderson  <rth@twiddle.net>
28510
28511         * sysdeps/i386/fpu/fenv_private.h: New file.
28512         * sysdeps/i386/fpu/math_private.h: Use it.
28513         (math_opt_barrier, math_force_eval): Remove.
28514         (libc_feholdexcept_setround_53bit): Remove.
28515         (libc_feupdateenv_53bit): Remove.
28516         * sysdeps/x86_64/fpu/math_private.h: Likewise.
28517         (math_opt_barrier, math_force_eval): Remove.
28518         (libc_feholdexcept): Remove.
28519         (libc_feholdexcept_setround): Remove.
28520         (libc_fetestexcept, libc_fesetenv): Remove.
28521         (libc_feupdateenv_test): Remove.
28522         (libc_feupdateenv, libc_feholdsetround): Remove.
28523         (libc_feresetround): Remove.
28524
28525         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
28526         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28527
28528         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
28529         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
28530         (libc_feupdateenv_testl): New.
28531         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
28532         (libc_feupdateenv_testf): New.
28533         (libc_feupdateenv): Use libc_feupdateenv_test.
28534         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
28535         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
28536
28537         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
28538         (libc_feholdsetroundf, libc_feholdsetroundl): New.
28539         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
28540         (libc_feresetround_noex): New.
28541         (libc_feresetround_noexf): New.
28542         (libc_feresetround_noexl): New.
28543         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
28544         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
28545         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
28546         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
28547         SET_RESTORE_ROUND.
28548         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
28549         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
28550         (__cos): Likewise.
28551         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
28552         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
28553         SET_RESTORE_ROUND_NOEX.
28554         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
28555         SET_RESTORE_ROUND_NOEXF.
28556         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
28557         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
28558         (libc_feholdsetroundf): New.
28559         (libc_feresetround, libc_feresetroundf): New.
28560
28561         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
28562         (libc_feholdexcept_setround_53bit): Convert from macro to function.
28563         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
28564
28565         * sysdeps/generic/math_private.h: Include <fenv.h>.
28566         (default_libc_feholdexcept): New.
28567         (default_libc_feholdexcept_setround): New.
28568         (default_libc_fesetenv, default_libc_feupdateenv): New.
28569         (libc_feholdexcept): Only define if undefined.
28570         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
28571         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
28572         (libc_feholdexcept_setroundl): Likewise.
28573         (libc_feholdexcept_setround_53bit): Likewise.
28574         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
28575         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
28576         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
28577         (libc_feupdateenv_53bit): Likewise.
28578         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
28579         (libc_feholdexcept): Convert from macro to inline function.
28580         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
28581         (libc_fesetenv, libc_feupdateenv): Likewise.
28582
28583         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
28584         not previously defined.
28585         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
28586         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
28587         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
28588         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
28589         * sysdeps/ieee754/flt-32/math_private.h: New file.
28590         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
28591         math_private.h below SET_FLOAT_WORD.
28592         (__isnan, __isinf_ns, __finite): Remove.
28593         (__isnanf, __isinf_nsf, __finitef): Remove.
28594
28595 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
28596
28597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28598
28599 2012-03-17  David S. Miller  <davem@davemloft.net>
28600
28601         [BZ #6471]
28602         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
28603         for 2.16.
28604
28605 2012-03-16  David S. Miller  <davem@davemloft.net>
28606
28607         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
28608         warnings.
28609
28610         [BZ #6471]
28611         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
28612         properly.
28613         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
28614         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
28615         sysdep_routines when subdir is sysvipc.
28616         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
28617         __getshmlba helper.
28618
28619         * sysdeps/sparc/fpu/libm-test/ulps: Update.
28620
28621 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28622
28623         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
28624         [__LP64__].
28625
28626 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28627
28628         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
28629         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
28630         (__lround): Renamed to ...
28631         (__llround): This.  Replace long int with long long int.
28632         Define lround functions as aliases of llround functions.
28633         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
28634
28635 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28636
28637         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
28638         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
28639         adresses to uintptr_t.  Replace "long int" and "unsigned long
28640         int" with "greg_t" on va_arg.
28641
28642 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28643
28644         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
28645         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
28646
28647         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
28648         Move e_machine check before EI_CLASS check.  Handle x32
28649         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
28650         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
28651         SKIP_EM_IA_64 and include
28652         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
28653
28654         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
28655         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
28656         (add_system_dir): New macro.
28657
28658         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
28659         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
28660
28661 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28662
28663         [BZ #2551]
28664         [BZ #2552]
28665         [BZ #2553]
28666         [BZ #2554]
28667         [BZ #2562]
28668         [BZ #2563]
28669         [BZ #2565]
28670         [BZ #2566]
28671         [BZ #2576]
28672         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
28673         (y0): Likewise.
28674         * math/w_j0f.c (j0f): Likewise.
28675         (y0f): Likewise.
28676         * math/w_j0l.c (__j0l): Likewise.
28677         (__y0l): Likewise.
28678         * math/w_j1.c (j1): Likewise.
28679         (y1): Likewise.
28680         * math/w_j1f.c (j1f): Likewise.
28681         (y1f): Likewise.
28682         * math/w_j1l.c (__j1l): Likewise.
28683         (__y1l): Likewise.
28684         * math/w_jn.c (jn): Likewise.
28685         (yn): Likewise.
28686         * math/w_jnf.c (jnf): Likewise.
28687         (ynf): Likewise.
28688         * math/w_jnl.c (__jnl): Likewise.
28689         (__ynl): Likewise.
28690         * math/libm-test.inc (j0_test): Add more tests.
28691         (j1_test): Likewise.
28692         (jn_test): Likewise.  Add trailing semicolon to existing test.
28693         (y0_test): Likewise.
28694         (y1_test): Likewise.
28695         * sysdeps/i386/fpu/libm-test-ulps: Update.
28696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28697
28698         [BZ #13851]
28699         [BZ #13854]
28700         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
28701         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
28702         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
28703         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
28704         (__tanl): Set errno for infinite argument.
28705         * sysdeps/i386/fpu/mptan.c: Remove.
28706         * sysdeps/i386/fpu/s_tan.S: Likewise.
28707         * sysdeps/i386/fpu/s_tanl.S: Likewise.
28708         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
28709         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
28710         * math/libm-test.inc (tan_test): Add more tests and enable more
28711         tests for double and long double.
28712         * sysdeps/i386/fpu/libm-test-ulps: Update.
28713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28714
28715 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
28716
28717         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
28718         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
28719
28720 2012-03-16  Roland McGrath  <roland@hack.frob.com>
28721
28722         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
28723         * configure.in: Use it for both main tree and add-ons.
28724         * configure: Regenerated.
28725
28726 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28727
28728         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
28729
28730 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
28731
28732         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
28733         in comment.
28734
28735         [BZ #13851]
28736         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
28737         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
28738         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
28739         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
28740         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
28741         infinite argument.
28742         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
28743         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
28744         != 0 for prec == 2.
28745         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
28746         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
28747         * sysdeps/i386/fpu/s_cosl.S: Likewise.
28748         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
28749         * sysdeps/i386/fpu/s_sinl.S: Likewise.
28750         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
28751         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
28752         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
28753         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
28754         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
28755         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
28756         * math/libm-test.inc (cos_test): Add more tests and enable more
28757         tests for long double.
28758         (sin_test): Likewise.
28759         (sincos_test): Likewise.
28760         * sysdeps/i386/fpu/libm-test-ulps: Update.
28761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28762
28763 2012-03-16  David S. Miller  <davem@davemloft.net>
28764
28765         * sysdeps/sparc/fpu/math_private.h: New file.
28766
28767 2012-03-15  David S. Miller  <davem@davemloft.net>
28768
28769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
28770         file.
28771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
28772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
28773         file.
28774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
28775         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
28776         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
28777         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
28778         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
28779         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
28780         sysdep routines.
28781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28782
28783         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
28784         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
28785
28786         * sysdeps/sparc/sparc-ifunc.h: New file.
28787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
28788         sparc-ifunc.h
28789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
28790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28791         Likewise.
28792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
28793         Likewise.
28794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
28795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
28796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
28797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
28798         Likewise.
28799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
28800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
28801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
28802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
28803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
28804         Likewise.
28805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
28806         Likewise.
28807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
28808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
28809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
28810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
28811         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
28812         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
28813         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
28814         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
28815         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
28816         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
28817         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
28818         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
28819         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
28820         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
28821         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
28822         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
28823         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
28824         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
28825         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
28826         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
28827         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
28828         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
28829         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
28830         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
28831
28832 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28833
28834         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
28835         scaling.
28836         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28837
28838 2012-03-15  Andreas Jaeger  <aj@suse.de>
28839
28840         [BZ #13852]
28841         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
28842         ieee754/flt-32 implementation for sin, cos and sincos.
28843         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
28844         * sysdeps/i386/fpu/s_cosf.S: Likewise.
28845         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
28846         * sysdeps/i386/fpu/s_sinf.S: Likewise.
28847         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
28848         ieee754/flt-32 implementation for tan.
28849
28850         * math/libm-test.inc (cos_test): Enable some large input tests for
28851         float as well
28852         (sin_test): Likewise.
28853         (sincos_test): Likewise.
28854         (tan_test): Add tests for large input.
28855
28856         * sysdeps/i386/fpu/libm-test-ulps: Update.
28857
28858 2012-03-15  Andreas Jaeger  <aj@suse.de>
28859
28860         [BZ #13658]
28861         * math/libm-test.inc (cos_test): Add more test cases.
28862         (sin_test): Likewise.
28863         (sincos_test): Likewise.
28864
28865 2012-03-15  Andreas Jaeger  <aj@suse.de>
28866
28867         [BZ #13837]
28868         * math/libm-test.inc (cos_test): Add a test case for large input
28869         value.
28870         (sin_test): Likewise.
28871         (sincos_test): Likewise.
28872
28873 2012-03-15  Andreas Jaeger  <aj@suse.de>,
28874         Joseph Myers  <joseph@codesourcery.com>
28875
28876         [BZ #13658]
28877         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
28878         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
28879         * sysdeps/i386/fpu/branred.c: Likewise.
28880         * sysdeps/i386/fpu/dosincos.c: Likewise.
28881         * sysdeps/i386/fpu/mpa.c: Likewise.
28882         * sysdeps/i386/fpu/s_cos.S: Likewise.
28883         * sysdeps/i386/fpu/s_sin.S: Likewise.
28884         * sysdeps/i386/fpu/s_sincos.S: Likewise.
28885         * sysdeps/i386/fpu/sincos32.c: Likewise.
28886
28887         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
28888         Define.
28889         (libc_feupdateenv_53bit): Define.
28890         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
28891         Define.
28892         (libc_feupdateenv_53bit): Define.
28893
28894         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
28895         53 bit (without extend i386 double precision).
28896
28897         * math/libm-test.inc (sincos_test): Add tests for large input.
28898         (sin): Likewise.
28899         (cos): Likewise.
28900
28901         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28902
28903 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
28904
28905         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28906
28907 2012-03-15  David S. Miller  <davem@davemloft.net>
28908
28909         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
28910         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
28911         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
28912         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
28913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
28914         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
28915         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
28916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
28917         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
28918         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
28919         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
28920         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
28921         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
28922         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
28923         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
28924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
28925         file.
28926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
28927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
28928         file.
28929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
28930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
28931         file.
28932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
28933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
28934         file.
28935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
28936         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
28937         fmin/fmax sysdep routines.
28938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
28939
28940 2012-03-14  David S. Miller  <davem@davemloft.net>
28941
28942         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
28943         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
28944         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
28945         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
28946         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
28947         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
28948         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
28949         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
28950         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
28951         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
28952         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
28953         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
28954         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
28955         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
28956         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
28957         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
28958         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
28959         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
28960         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
28961         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
28962         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
28963         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
28964         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
28965         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
28966         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
28967         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
28968         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
28969         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
28970         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
28971         routines.
28972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
28973         file.
28974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
28975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
28976         file.
28977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
28978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
28979         file.
28980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
28981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
28982         file.
28983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
28984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
28985         file.
28986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
28987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
28988         file.
28989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
28990         file.
28991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
28992         file.
28993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
28994         file.
28995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
28996         New file.
28997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
28998         file.
28999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
29000         file.
29001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
29002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
29003         file.
29004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
29005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
29006         file.
29007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
29008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
29009         file.
29010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
29011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
29012         VIS3 routines.
29013
29014         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
29015         New file.
29016
29017         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29018
29019         * sysdeps/sparc/configure.in: New file.
29020         * sysdeps/sparc/configure: Generate.
29021         * configure.in (libc_cv_sparc_as_vis3): Substitute.
29022         * configure: Regenerate.
29023         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
29024         * config.make.in (have-as-vis3): New.
29025         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
29026         available use -Av9d instead of -Av9a.
29027         * sysdeps/sparc/sparc64/Makefile: Likewise.
29028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
29029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
29030         New file.
29031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
29032         file.
29033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
29034         New file.
29035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
29036         file.
29037         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
29038         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
29039         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
29040         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
29041         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
29042
29043         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
29044         fzeros/fnegs to load 0x80000000 into a float register instead of
29045         using the stack.
29046         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
29047
29048 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
29049
29050         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29051         bits/syscall.h.
29052         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
29053         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
29054         ($(inst_includedir)/bits/syscall.h): Remove rule.
29055         ($(objpfx)bits/syscall.d): Include instead of
29056         $(objpfx)syscall-list.d.
29057         (generated): Change syscall-list.h and syscall-list.d to
29058         bits/syscall.h and bits/syscall.d.
29059
29060 2012-03-14  Roland McGrath  <roland@hack.frob.com>
29061
29062         [BZ #13846]
29063         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
29064
29065 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
29066
29067         [BZ #13841]
29068         * math/s_csqrt.c: Include <float.h>.
29069         (__csqrt): Scale large or subnormal inputs.
29070         * math/s_csqrtf.c: Likewise.
29071         * math/s_csqrtl.c: Likewise.
29072         * math/libm-test.inc (csqrt_test): Add more tests.
29073         * sysdeps/i386/fpu/libm-test-ulps: Update.
29074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29075
29076         [BZ #13840]
29077         * math/libm-test.inc (hypot_test): Add more tests.
29078
29079 2012-03-13  David S. Miller  <davem@davemloft.net>
29080
29081         [BZ #13840]
29082         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
29083         double-precision for the calculation instead of scaling.
29084
29085 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
29086
29087         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
29088         manipulate bits before adding and subtracting TWO52[sx].
29089         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
29090         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29091         Likewise.
29092         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
29093
29094 2012-03-13  David S. Miller  <davem@davemloft.net>
29095
29096         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
29097         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
29098         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
29099         rtld-global-offsets.h
29100         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29101
29102         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
29103         large parameters.
29104
29105         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
29106
29107         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
29108         'err' in the ifdef scope in which it is actually used.
29109
29110         * nss/nss_db/db-init.c: Include string.h
29111
29112 2012-03-12  David S. Miller  <davem@davemloft.net>
29113
29114         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
29115         masking out of the most significant byte of random value used.
29116         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29117         Fix coding style in previous change.
29118
29119         * sysdeps/unix/sysv/linux/kernel-features.h
29120         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
29121         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
29122         expression.
29123         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
29124         later.
29125
29126 2012-03-11  David S. Miller  <davem@davemloft.net>
29127
29128         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
29129         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
29130         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
29131         for 'resultvar' otherwise things get truncated on 64-bit.
29132
29133         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29134         Fix masking out of the most significant byte of random value used.
29135
29136         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29137
29138 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
29139
29140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29141
29142 2012-03-09  David S. Miller  <davem@davemloft.net>
29143
29144         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
29145         variables with appropriate CPP guards.
29146         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
29147         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
29148         on resulting framesize and the management of the outregs buffer for pltexit.
29149         Preserve floating point return values across _dl_call_pltexit call.
29150         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
29151         framesize and the management of the outregs buffer for pltexit.
29152         Preserve floating point return values across _dl_call_pltexit
29153         call.
29154         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
29155         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
29156         (print_exit): Fix format string for return register value.
29157
29158 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
29159
29160         * sunrpc/Makefile (others): Add rpcgen.
29161         ($(objpfx)rpcgen): Remove special build rule and dependency on
29162         libc.
29163         * sunrpc/rpcgen.c: New file.
29164
29165 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
29166
29167         [BZ #13673]
29168         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
29169         * stdio-common/bug-vfprintf-nargs.c: Likewise.
29170         * sysdeps/i386/crti.S: Likewise.
29171         * sysdeps/i386/crtn.S: Likewise.
29172         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
29173         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
29174         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
29175         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
29176         * sysdeps/sh/crti.S: Likewise.
29177         * sysdeps/sh/crtn.S: Likewise.
29178         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29179
29180         [BZ #13673]
29181         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
29182         with URL.
29183         * locale/programs/locfile-kw.gperf: Likewise.
29184         * locale/programs/charmap-kw.h: Regenerated.
29185         * locale/programs/locfile-kw.h: Likewise.
29186
29187         [BZ #13673]
29188         * intl/plural.y: Replace FSF snail mail address with URL.
29189         * intl/plural.c: Regenerated.
29190
29191 2012-03-09  Richard Henderson  <rth@twiddle.net>
29192
29193         * include/math_private.h: Remove file.
29194         * math/math_private.h: Move file ...
29195         * sysdeps/generic/math_private.h: ... here.
29196
29197         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
29198         * sysdeps/powerpc/fpu/math_private.h: Likewise.
29199         * sysdeps/x86_64/fpu/math_private.h: Likewise.
29200
29201         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
29202         and <math_private.h>.
29203         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
29204         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
29205         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
29206         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
29207         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
29208         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
29209         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
29210         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29211         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29212         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29213         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29214         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29215         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29216         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29217         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29218         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29219         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29220         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29221         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29222         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29223         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29224         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29225         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29226         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29227         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
29228         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29229         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29230         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29231         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29232         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
29233         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29234         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29235         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
29236         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
29237         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
29238         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
29239         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
29240         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
29241         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
29242         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29243         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
29244         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
29245         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
29246         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
29247         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
29248         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
29249         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
29250         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
29251         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
29252         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
29253         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
29254         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
29255         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
29256         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
29257         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
29258         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29259         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29260         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
29261         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
29262         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
29263         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29264         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
29265         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29266         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
29267         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
29268         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29269         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29270         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29271         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
29272         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
29273         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
29274         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29275         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
29276         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29277         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
29278         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
29279         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
29280         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
29281         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
29282         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
29283         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
29284         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
29285         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
29286         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29287         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29288         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
29289         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
29290         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
29291         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29292         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29293         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29294         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29295         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29296         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29297         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29298         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29299         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29300         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29301         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29302         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29303         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29304         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29305         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29306         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29307         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
29308         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29309         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29310         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29311         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
29312         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
29313         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
29314         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
29315         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29316         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
29317         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
29318         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29319         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
29320         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
29321         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
29322         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29323         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
29324         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
29325         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29326         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
29327         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
29328         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
29329         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29330         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
29331         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
29332         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
29333         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
29334         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29335         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
29336         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
29337         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
29338         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
29339         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29340         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
29341         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
29342         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29343         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29344         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
29345         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
29346         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
29347         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
29348         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
29349         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
29350         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
29351         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
29352         * sysdeps/ieee754/k_standard.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29354         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29355         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29356         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29357         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29358         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29359         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29360         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29361         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29362         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29363         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29364         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29365         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29366         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29367         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29368         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29369         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
29370         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29371         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29372         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
29373         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
29374         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
29375         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
29376         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
29377         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
29378         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
29379         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
29380         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
29381         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
29382         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
29383         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
29384         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
29385         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
29386         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
29387         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
29388         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
29389         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
29390         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
29391         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
29392         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
29393         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
29394         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
29395         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
29396         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
29397         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
29398         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
29399         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
29400         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
29401         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
29402         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
29403         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
29404         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
29405         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
29406         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
29407         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29408         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
29409         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
29410         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
29411         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
29412         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
29413         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
29414         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
29415         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
29416         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29417         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29418         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29419         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29420         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29421         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29422         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29423         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29424         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29425         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29426         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29427         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29428         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29429         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
29430         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29431         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29432         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
29433         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
29434         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
29435         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
29436         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
29437         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
29438         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
29439         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
29440         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29441         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29442         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
29443         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
29444         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
29445         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
29446         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
29447         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
29448         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
29449         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
29450         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
29451         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
29452         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
29453         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
29454         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
29455         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
29456         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
29457         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
29458         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
29459         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
29460         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
29461         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
29462         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
29463         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
29464         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
29465         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29466         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29467         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29468         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29469         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29470         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29471         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29472         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29473         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29474         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29475         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29476         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29477         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29478         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
29479         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
29480         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
29481         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
29482         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
29483         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
29484         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
29485         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
29486         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
29487         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
29488         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
29489         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
29490         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
29491         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
29492         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
29493         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
29494         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
29495         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
29496         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
29497         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
29498         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
29499         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
29500         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
29501         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
29502         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
29503         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
29504         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29505         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
29506         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
29507         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
29508         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
29509         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
29510         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
29511         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
29512         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
29513         * sysdeps/ieee754/s_lib_version.c: Likewise.
29514         * sysdeps/ieee754/s_matherr.c: Likewise.
29515         * sysdeps/ieee754/s_signgam.c: Likewise.
29516         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29517         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29518         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
29519         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
29520         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
29521         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
29522         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
29523         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
29524         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
29525         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
29526         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
29527         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
29528         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
29529         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
29530         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
29531         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
29532         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
29533         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
29534         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
29535         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
29536         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
29537
29538 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29539
29540         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
29541         * sunrpc/rpc_main.c: Likewise.
29542         * sunrpc/rpc_svcout.c: Likewise.
29543
29544 2012-03-09  David S. Miller  <davem@davemloft.net>
29545
29546         * include/math_private.h: New file.
29547
29548 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
29549
29550         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
29551         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
29552         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
29553         from <bits/socket_type.h>.
29554         (enum __socket_type): Don't define here.
29555         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
29556         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29557         bits/socket_type.h.
29558
29559         [BZ #13566]
29560         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
29561         checking __USE_GNU.
29562
29563         * Makerules ($(inst_includedir)/%.h): New rule.
29564         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
29565         (install-others): Remove variable setting.
29566         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
29567
29568 2012-03-08  Richard Henderson  <rth@twiddle.net>
29569
29570         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
29571         from macro to inline function; merge with the
29572         !__LIBC_INTERNAL_MATH_INLINES version.
29573         (__ieee754_sqrtf): Likewise.
29574
29575         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
29576         to inline function.
29577         (__rintf, __floor, __floorf): Likewise.
29578
29579         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
29580         macro to inline function.
29581         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
29582
29583         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
29584         not <math/math_private.h>.
29585
29586 2012-03-08  David S. Miller  <davem@davemloft.net>
29587
29588         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
29589         copyright year.
29590         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
29591
29592 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
29593
29594         * resolv/gai_misc.c (handle_requests): Fix struct timespec
29595         normalization.
29596         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
29597         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29598
29599 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
29600
29601         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
29602         be defined individually, they must be defined as a block.  Define
29603         S for printing a string instead of hidint the different by using a
29604         macro for adding the 'l'.
29605         * stdio-common/tst-fphex-wide.c: Adjust.
29606
29607 2012-03-07  Marek Polacek  <polacek@redhat.com>
29608
29609         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
29610
29611 2012-03-08  Marek Polacek  <polacek@redhat.com>
29612
29613         [BZ #13806]
29614         * stdio-common/Makefile (tests): Add tst-fphex-wide.
29615         * stdio-common/tst-fphex.c: Define a few macros to make the
29616         test reusable.  Use them.
29617         * stdio-common/tst-fphex-wide.c: New file.
29618
29619 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
29620
29621         [BZ #6911]
29622         * manual/macros.texi (gnusystems): New macro.
29623         (nongnusystems): Likewise.
29624         (gnulinuxhurdsystems): Likewise.
29625         (gnuhurdsystems): Likewise..
29626         (gnulinuxsystems): Likewise.
29627         * manual/charset.texi: Use new macros or @theglibc{} to refer to
29628         variants of the GNU system, not "GNU system".
29629         * manual/conf.texi: Likewise.
29630         * manual/errno.texi: Likewise.  Update example of errno macro
29631         expansion.
29632         * manual/filesys.texi: Likewise.
29633         (getumask): Document as specific to GNU/Hurd.
29634         * manual/install.texi: Likewise.  Reword some references to
29635         GNU/Linux.
29636         * manual/intro.texi: Likewise.
29637         * manual/io.texi: Likewise.
29638         (File Name Portability): Detail which constraints are inapplicable
29639         to all GNU systems and which are only inapplicable to GNU/Hurd.
29640         * manual/job.texi: Likewise.
29641         * manual/llio.texi: Likewise.
29642         (O_NOCTTY): Document as present on GNU/Linux.
29643         * manual/maint.texi: Likewise.
29644         * manual/memory.texi: Likewise.
29645         * manual/pattern.texi: Likewise.
29646         * manual/pipe.texi: Likewise.
29647         * manual/process.texi: Likewise.
29648         * manual/resource.texi: Likewise.
29649         (RUSAGE_CHILDREN): Remove statement about specifying a particular
29650         child on GNU/Hurd.
29651         * manual/setjmp.texi: Likewise.
29652         * manual/signal.texi: Likewise.
29653         * manual/startup.texi: Likewise.
29654         * manual/stdio.texi: Likewise.
29655         * manual/terminal.texi: Likewise.
29656         (ONLCR): Document as POSIX.
29657         (OXTABS): Document availability on GNU/Linux as XTABS.
29658         (ONOEOT): Document availability separately from other bits.
29659         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
29660         * manual/time.texi: Likewise.
29661         * manual/users.texi: Likewise.
29662         * INSTALL: Regenerated.
29663         * sysdeps/gnu/errlist.c: Regenerated.
29664
29665         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
29666         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
29667         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
29668         puts.
29669         * configure: Regenerated.
29670
29671 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
29672
29673         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
29674         default includes instead of AC_HEADER_CHECK.
29675         * sysdeps/i386/configure: Regenerated.
29676
29677         [BZ #10716]
29678         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
29679         * math/s_cacoshf.c (__cacoshf): Likewise.
29680         * math/s_cacoshl.c (__cacoshl): Likewise.
29681         * math/s_casinh.c (__casinh): Set signs of result from argument.
29682         * math/s_casinhf.c (__casinhf): Likewise.
29683         * math/s_casinhl.c (__casinhl): Likewise.
29684         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
29685         (casinh_test): Add more tests.
29686         * sysdeps/i386/fpu/libm-test-ulps: Update.
29687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29688
29689 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
29690
29691         * po/zh_TW.po: Update from translation team.
29692
29693         * login/Makefile (distribute): Remove variable.
29694         * catgets/Makefile: Likewise.
29695         * mach/Makefile: Likewise.
29696         * malloc/Makefile: Likewise.
29697         * misc/Makefile: Likewise.
29698         * iconv/Makefile: Likewise.
29699         * nscd/Makefile: Likewise.
29700         * hurd/Makefile: Likewise.
29701         * manual/Makefile: Likewise.
29702         * locale/Makefile: Likewise.
29703         * intl/Makefile: Likewise.
29704         * conform/Makefile: Likewise.
29705         * nss/Makefile: Likewise.
29706         * time/Makefile: Likewise.
29707         * soft-fp/Makefile: Likewise.
29708         * dirent/Makefile: Likewise.
29709         * gmon/Makefile: Likewise.
29710         * po/Makefile: Likewise.
29711         * rt/Makefile: Likewise.
29712         * socket/Makefile: Likewise.
29713         * math/Makefile: Likewise.
29714         * signal/Makefile: Likewise.
29715         * debug/Makefile: Likewise.
29716         * elf/Makefile: Likewise.
29717         * timezone/Makefile: Likewise.
29718         * stdlib/Makefile: Likewise.
29719         * iconvdata/Makefile: Likewise.
29720         * sunrpc/Makefile: Likewise.
29721         * io/Makefile: Likewise.
29722         * argp/Makefile: Likewise.
29723         * inet/Makefile: Likewise.
29724         * hesiod/Makefile: Likewise.
29725         * grp/Makefile: Likewise.
29726         * csu/Makefile: Likewise.
29727         * wctype/Makefile: Likewise.
29728         * crypt/Makefile: Likewise.
29729         * libio/Makefile: Likewise.
29730         * string/Makefile: Likewise.
29731         * nis/Makefile: Likewise.
29732         * resolv/Makefile: Likewise.
29733         * stdio-common/Makefile: Likewise.
29734         * wcsmbs/Makefile: Likewise.
29735         * dlfcn/Makefile: Likewise.
29736         * posix/Makefile: Likewise.
29737
29738         [BZ #6959]
29739         * timezone/Makefile: Don't install timezone files, just the programs
29740         and scripts.
29741
29742 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
29743
29744         * nss/databases.def: Add missing gshadow entry.
29745
29746         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
29747
29748 2012-03-06  Marek Polacek  <polacek@redhat.com>
29749
29750         [BZ #13726]
29751         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
29752         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
29753         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
29754         * stdio-common/tst-long-dbl-fphex.c: New file.
29755
29756 2012-03-06  David S. Miller  <davem@davemloft.net>
29757
29758         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
29759         (set_obp_int): New function.
29760         (get_obp_int): New function.
29761         (__get_clockfreq_via_dev_openprom): Likewise.
29762         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
29763         Avoid unused variable warnings on 'val' and use builtin_expect.
29764         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
29765         __builtin_expect.
29766         (INLINE_CLONE_SYSCALL): Likewise.
29767
29768 2012-03-05  David S. Miller  <davem@davemloft.net>
29769
29770         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29771
29772 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
29773
29774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29775
29776         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
29777         only for |x| >= 40.
29778         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29779
29780 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
29781
29782         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
29783         Replace gettimeofday with __vdso_gettimeofday.
29784
29785         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29786         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
29787         __vdso_clock_gettime and __vdso_getcpu.
29788
29789         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
29790         time with __vdso_time.
29791
29792 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29793
29794         * manual/lang.texi (size_t): Note types to which size_t may be
29795         equivalent with the GNU C Library, but do not describe when
29796         differences between them are significant.
29797
29798 2012-03-05  Andreas Jaeger  <aj@suse.de>
29799
29800         * sysdeps/i386/fpu/libm-test-ulps: Update.
29801
29802 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
29803
29804         [BZ #3976]
29805         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
29806         (__ieee754_pow): Save and restore rounding mode and use
29807         round-to-nearest for main computations.
29808         * math/libm-test.inc (pow_test_tonearest): New function.
29809         (pow_test_towardzero): Likewise.
29810         (pow_test_downward): Likewise.
29811         (pow_test_upward): Likewise.
29812         (main): Call the new functions.
29813         * sysdeps/i386/fpu/libm-test-ulps: Update.
29814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29815
29816         [BZ #3976]
29817         * math/libm-test.inc (cosh_test_tonearest): New function.
29818         (cosh_test_towardzero): Likewise.
29819         (cosh_test_downward): Likewise.
29820         (cosh_test_upward): Likewise.
29821         (sinh_test_tonearest): Likewise.
29822         (sinh_test_towardzero): Likewise.
29823         (sinh_test_downward): Likewise.
29824         (sinh_test_upward): Likewise.
29825         (main): Call the new functions.
29826         * sysdeps/i386/fpu/libm-test-ulps: Update.
29827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29828
29829 2012-03-05  Tom de Vries  <tom@codesourcery.com>
29830
29831         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
29832         default stack guard is set in last bytes.
29833         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
29834
29835 2012-03-05  Kees Cook  <keescook@chromium.org>
29836
29837         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
29838
29839         [BZ #13656]
29840         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
29841         possibly allocate from heap instead of stack.
29842         * stdio-common/bug-vfprintf-nargs.c: New file.
29843         * stdio-common/Makefile (tests): Add nargs overflow test.
29844
29845 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
29846
29847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29848
29849 2012-03-03  Marek Polacek  <polacek@redhat.com>
29850
29851         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
29852         * math/math_private.h: Likewise.
29853         * stdlib/tst-strtod.c: Likewise.
29854         * sysdeps/i386/i486/bits/atomic.h: Likewise.
29855         * sysdeps/x86_64/bits/atomic.h: Likewise.
29856
29857 2012-03-02  David S. Miller  <davem@davemloft.net>
29858
29859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
29860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
29861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
29862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
29863         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
29864         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
29865         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
29866         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
29867
29868 2012-03-02  Roland McGrath  <roland@hack.frob.com>
29869
29870         [BZ #13792]
29871         * manual/examples/README: New file, says the example source files
29872         can be used under GPL>=2.
29873         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
29874         line containing just "*/".
29875         * manual/examples/add.c: Add copyright header (GPL>=2).
29876         * manual/examples/argp-ex1.c: Likewise.
29877         * manual/examples/argp-ex2.c: Likewise.
29878         * manual/examples/argp-ex3.c: Likewise.
29879         * manual/examples/argp-ex4.c: Likewise.
29880         * manual/examples/atexit.c: Likewise.
29881         * manual/examples/db.c: Likewise.
29882         * manual/examples/dir.c: Likewise.
29883         * manual/examples/dir2.c: Likewise.
29884         * manual/examples/execinfo.c: Likewise.
29885         * manual/examples/filecli.c: Likewise.
29886         * manual/examples/filesrv.c: Likewise.
29887         * manual/examples/fmtmsgexpl.c: Likewise.
29888         * manual/examples/genpass.c: Likewise.
29889         * manual/examples/inetcli.c: Likewise.
29890         * manual/examples/inetsrv.c: Likewise.
29891         * manual/examples/isockad.c: Likewise.
29892         * manual/examples/longopt.c: Likewise.
29893         * manual/examples/memopen.c: Likewise.
29894         * manual/examples/memstrm.c: Likewise.
29895         * manual/examples/mkfsock.c: Likewise.
29896         * manual/examples/mkisock.c: Likewise.
29897         * manual/examples/mygetpass.c: Likewise.
29898         * manual/examples/pipe.c: Likewise.
29899         * manual/examples/popen.c: Likewise.
29900         * manual/examples/rprintf.c: Likewise.
29901         * manual/examples/search.c: Likewise.
29902         * manual/examples/select.c: Likewise.
29903         * manual/examples/setjmp.c: Likewise.
29904         * manual/examples/sigh1.c: Likewise.
29905         * manual/examples/sigusr.c: Likewise.
29906         * manual/examples/stpcpy.c: Likewise.
29907         * manual/examples/strdupa.c: Likewise.
29908         * manual/examples/strftim.c: Likewise.
29909         * manual/examples/strncat.c: Likewise.
29910         * manual/examples/subopt.c: Likewise.
29911         * manual/examples/swapcontext.c: Likewise.
29912         * manual/examples/termios.c: Likewise.
29913         * manual/examples/testopt.c: Likewise.
29914         * manual/examples/testpass.c: Likewise.
29915         * manual/examples/timeval_subtract.c: Likewise.
29916
29917         [BZ #13792]
29918         * manual/time.texi (Elapsed Time): Move timeval_subtract example
29919         function to ...
29920         * manual/timeval_subtract.c.texi: ... here, new file.
29921
29922 2012-03-02  David S. Miller  <davem@davemloft.net>
29923
29924         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
29925
29926 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
29927
29928         [BZ #3976]
29929         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
29930         (__sin): Save and restore rounding mode and use round-to-nearest
29931         for all computations.
29932         (__cos): Save and restore rounding mode and use round-to-nearest
29933         for all computations.
29934         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
29935         <fenv.h>.
29936         (tan): Save and restore rounding mode and use round-to-nearest for
29937         all computations.
29938         * math/libm-test.inc (cos_test_tonearest): New function.
29939         (cos_test_towardzero): Likewise.
29940         (cos_test_downward): Likewise.
29941         (cos_test_upward): Likewise.
29942         (sin_test_tonearest): Likewise.
29943         (sin_test_towardzero): Likewise.
29944         (sin_test_downward): Likewise.
29945         (sin_test_upward): Likewise.
29946         (tan_test_tonearest): Likewise.
29947         (tan_test_towardzero): Likewise.
29948         (tan_test_downward): Likewise.
29949         (tan_test_upward): Likewise.
29950         (main): Call the new functions.
29951         * sysdeps/i386/fpu/libm-test-ulps: Update.
29952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29953
29954         [BZ #10135]
29955         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
29956         small n, then large n, before computing and testing k+n.
29957         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
29958         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
29959         Likewise.
29960         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
29961         Likewise.
29962         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
29963         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
29964         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
29965         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
29966         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
29967         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
29968         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
29969         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
29970         * math/libm-test.inc (scalbn_test): Add more tests.
29971         (scalbln_test): Likewise.
29972
29973         * manual/filesys.texi (mode_t): Describe constraints on size and
29974         signedness, not exact equivalence to a particular type.
29975         (ino_t): Likewise.
29976         (ino64_t): Likewise.
29977         (dev_t): Likewise.
29978         (nlink_t): Likewise.
29979         (blkcnt_t): Likewise.
29980         (blkcnt64_t): Likewise.
29981         * manual/llio.texi (off_t): Likewise.
29982
29983         [BZ #3976]
29984         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
29985         (__ieee754_exp): Save and restore rounding mode and use
29986         round-to-nearest for all computations.
29987         * math/libm-test.inc (exp_test_tonearest): New function.
29988         (exp_test_towardzero): Likewise.
29989         (exp_test_downward): Likewise.
29990         (exp_test_upward): Likewise.
29991         (main): Call the new functions.
29992         * sysdeps/i386/fpu/libm-test-ulps: Update.
29993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29994
29995 2012-03-01  Chris Demetriou  <cgd@google.com>
29996
29997         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
29998         have predictable order.
29999
30000 2012-03-01  David S. Miller  <davem@davemloft.net>
30001
30002         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
30003
30004         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
30005         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
30006         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
30007         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
30008
30009         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
30010         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
30011         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
30012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
30013         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
30014         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
30015         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
30016         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
30017         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
30018
30019         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30020
30021         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
30022         * sysdeps/sparc/fpu/libm-test-ulps: to here.
30023         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
30024
30025         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
30026         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
30027         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30028         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
30029         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
30030         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
30031         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
30032         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
30033         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30034         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
30035         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
30036         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30037         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30038         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30039         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30040         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30041         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
30042         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
30043         * sysdeps/sparc/elf/configure: Regenerated.
30044
30045 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
30046
30047         * configure.in (AS, LD): Require binutils 2.20 or later.
30048         * configure: Regenerated.
30049         * manual/install.texi (Tools for Compilation): Give binutils 2.20
30050         as required minimum version.
30051         * INSTALL: Regenerated.
30052
30053         [BZ #2541]
30054         [BZ #4108]
30055         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
30056         before squaring exponent.
30057         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
30058         bottom long double and 27 bits of top long double before squaring
30059         exponent.
30060         * math/libm-test.inc (erfc_test): Add more tests.
30061         * sysdeps/i386/fpu/libm-test-ulps: Update.
30062         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30064
30065 2012-03-01  Kai Tietz  <ktietz@redhat.com>
30066
30067         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
30068         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
30069         containing bit-fields.
30070         * soft-fp/extended.h (_FP_UNION_E): Likewise.
30071         * soft-fp/single.h (_FP_UNION_S): Likewise.
30072         * soft-fp/double.h (_FP_UNION_D): Likewise.
30073
30074 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
30075
30076         [BZ #13786]
30077         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
30078         not include ../strcmp.S.
30079         [USE_AS_STRNCASECMP_L]: Likewise.
30080         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
30081         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
30082         * sysdeps/i386/i686/multiarch/strncase_l-c.c
30083         (__strncasecmp_l_ia32): Define as alias to
30084         __strncasecmp_l_nonascii.
30085
30086         [BZ #5794]
30087         * math/libm-test.inc (expm1_test): Add test for bug 5794.
30088         * sysdeps/i386/fpu/libm-test-ulps: Update.
30089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30090
30091         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
30092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30093
30094 2012-02-29  Jeff Law  <law@redhat.com>
30095
30096         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
30097         out of bounds read.
30098
30099 2012-02-29  Marek Polacek  <polacek@redhat.com>
30100
30101         [BZ #13706]
30102         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
30103         * elf/Makefile: Add rules to run tst-unused-dep.out.
30104
30105 2012-02-28  David S. Miller  <davem@davemloft.net>
30106
30107         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
30108         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
30109         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
30110         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
30111         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
30112         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
30113
30114 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
30115
30116         * math/libm-test.inc (llround_test): Move one test from
30117         lround_test.  Use TEST_f_L in moved test.
30118         (lround_test): Move misplaced test to llround_test.  Add testcase
30119         from bug 2561.
30120
30121 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
30122
30123         * sysdeps/x86_64/fpu/e_expf.S: New file.
30124         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
30125
30126 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
30127
30128         [BZ #13637]
30129         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
30130         of remain_len that may cause incomplete multi-byte character and
30131         false match.
30132         * posix/bug-regex33.c: New file.
30133         * posix/Makefile (tests): Add bug-regex33.
30134
30135 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
30136
30137         * manual/macros.texi: New file.
30138         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
30139         * manual/libc.texinfo: Include macros.texi.
30140         * manual/creatute.texi: Likewise.
30141         * manual/install.texi: Likewise.
30142         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
30143         @glibcadj{} in references to the GNU C Library.
30144         * manual/charset.texi: Likewise.
30145         * manual/conf.texi: Likewise.
30146         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
30147         when not using those macros.
30148         * manual/creature.texi: Likewise.
30149         * manual/crypt.texi: Likewise.
30150         * manual/errno.texi: Likewise.
30151         * manual/filesys.texi: Likewise.
30152         * manual/header.texi: Likewise.
30153         * manual/install.texi: Likewise.
30154         * manual/intro.texi: Likewise.
30155         * manual/io.texi: Likewise.
30156         * manual/job.texi: Likewise.
30157         * manual/lang.texi: Likewise.
30158         * manual/libc.texiinfo: Likewise.
30159         * manual/llio.texi: Likewise.
30160         * manual/locale.texi: Likewise.
30161         * manual/maint.texi: Likewise.
30162         * manual/math.texi: Likewise.
30163         * manual/memory.texi: Likewise.
30164         * manual/message.texi: Likewise.
30165         * manual/nss.texi: Likewise.
30166         * manual/pattern.texi: Likewise.
30167         * manual/process.texi: Likewise.
30168         * manual/resource.texi: Likewise.
30169         * manual/search.texi: Likewise.
30170         * manual/setjmp.texi: Likewise.
30171         * manual/signal.texi: Likewise.
30172         * manual/socket.texi: Likewise.
30173         * manual/startup.texi: Likewise.
30174         * manual/stdio.texi: Likewise.
30175         * manual/string.texi: Likewise.
30176         * manual/sysinfo.texi: Likewise.
30177         * manual/syslog.texi: Likewise.
30178         * manual/terminal.texi: Likewise.
30179         * manual/time.texi: Likewise.
30180         * manual/users.texi: Likewise.
30181         * INSTALL: Regenerated.
30182         * NOTES: Regenerated.
30183         * sysdeps/gnu/errlist.c: Regenerated.
30184
30185 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
30186
30187         * include/dirent.h: Include <dirstream.h> before
30188         <dirent/dirent.h>.
30189
30190 2012-02-28  David S. Miller  <davem@davemloft.net>
30191
30192         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
30193         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
30194         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
30195         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
30196
30197 2012-02-27  David S. Miller  <davem@davemloft.net>
30198
30199         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
30200         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
30201         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
30202         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
30203
30204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
30205         frame pointer instead of stack pointer relative arg slot.
30206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30207         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30208         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30209
30210 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
30211
30212         [BZ #3992]
30213         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
30214
30215 2012-02-27  David S. Miller  <davem@davemloft.net>
30216
30217         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
30218         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
30219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
30220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
30221         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
30222         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
30223         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
30224         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
30225
30226 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30227
30228         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
30229         later.  Allow versions 5-9.
30230         * configure: Regenerated.
30231         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
30232         required minimum version and 4.6 as recommended version.  Do not
30233         mention bugs in GCC 2.7 and 2.8.
30234         * INSTALL: Regenerated.
30235
30236 2012-02-27  David S. Miller  <davem@davemloft.net>
30237
30238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
30239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
30240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
30241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
30242         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
30243         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
30244         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
30245         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
30246
30247         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
30248         manipulate bits before adding and subtracting TWO112[sx].
30249         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
30250
30251 2012-02-27  Roland McGrath  <roland@hack.frob.com>
30252
30253         [BZ #13775]
30254         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
30255         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
30256         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
30257         being in POSIX, because they are in 1003.1-2008.
30258
30259         * rt/tst-aio.c: Include <fcntl.h>.
30260         * rt/tst-aio7.c: Likewise.
30261         * rt/tst-aio64.c: Likewise.
30262
30263         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
30264
30265 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
30266
30267         * manual/install.texi (--with-headers): Describe headers as
30268         interface headers, not private headers.
30269         (Specific advice for GNU/Linux systems): Describe use of headers
30270         from "make headers_install", not private headers from older
30271         kernels.
30272         * INSTALL: Regenerated.
30273         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
30274         Change to 2.6.19.
30275         * sysdeps/unix/sysv/linux/configure: Regenerated.
30276
30277         * manual/llio.texi (fclean): Remove documentation.
30278
30279         * manual/Makefile (libc-texi-generated): New variable.  Include
30280         version.texi.
30281         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
30282         $(libc-texi-generated), not duplicated list of files.
30283         (version.texi, stamp-version): New rules.
30284         (realclean): Remove $(libc-texi-generated), not individual files
30285         from that list.  Do not remove dir-add.texinfo.
30286         * manual/libc.texinfo: Comment out uses of edition numbers and
30287         references to printed manual.  Remove last-updated dates.
30288         (EDITION): Comment out.
30289         (ISBN): Likewise.
30290         (VERSION, UPDATED): Remove.
30291         (version.texi): Include.
30292
30293 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
30294
30295         * sysdeps/posix/spawni.c: Include <signal.h>.
30296         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
30297         * sysdeps/pthread/aio_fsync.c: Likewise.
30298
30299 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
30300
30301         * conform/Makefile (tests): Run only when not cross-compiling and
30302         when fast-check is not defined.
30303
30304         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
30305         * conform/data/limits.h-data: Fixes for POSIX2008.
30306         * conform/run-conformtest.sh: Run all tests.
30307         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
30308         headers.
30309         * include/bits/dlfcn.h: Likewise.
30310         * include/langinfo.h: Likewise.
30311         * include/monetary.h: Likewise.
30312         * include/sys/poll.h: Likewise.
30313
30314         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
30315         for __USE_GNU.
30316         * posix/spawn.h: Define __need_sigset_t.
30317         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
30318         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
30319         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
30320         to get sigevent_t only.
30321         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
30322         only for __USE_GNU.
30323         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30324         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
30325         process_vm_writev only for __USE_GNU.
30326         * termios/termios.h: Declare tcgetsid also for POSIX2008.
30327
30328         * conform/Makefile: For now ignore errors from run-conformtest.
30329         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
30330         POSIX to avoid namespace pollution.  Don't prepend headers.
30331         * conform/data/aio.h-data: Fixes for POSIX testing.
30332         * conform/data/fcntl.h-data: Likewise.
30333         * conform/data/glob.h-data: Likewise.
30334         * conform/data/grp.h-data: Likewise.
30335         * conform/data/pthread.h-data: Likewise.
30336         * conform/data/pwd.h-data: Likewise.
30337         * conform/data/signal.h-data: Likewise.
30338         * conform/data/spawn.h-data: Likewise.
30339         * conform/data/stdio.h-data: Likewise.
30340         * conform/data/stdlib.h-data: Likewise.
30341         * conform/data/stropts.h-data: Likewise.
30342         * conform/data/sys/mman.h-data: Likewise.
30343         * conform/data/sys/stat.h-data: Likewise.
30344         * conform/data/sys/types.h-data: Likewise.
30345         * conform/data/sys/wait.h-data: Likewise.
30346         * conform/data/time.h-data: Likewise.
30347         * conform/data/unistd.h-data: Likewise.
30348         * conform/data/utime.h-data: Likewise.
30349
30350         * io/sys/stat.h: fchmod was always in POSIX.
30351         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
30352         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
30353         * rt/aio.h: Define __need_timespec before including <time.h>.
30354         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
30355         struct.  Add forward declaration of pthread_attr_t and use it in
30356         sigevent.
30357         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30358         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30359         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
30360         always remove CLK_TCK definition.
30361
30362 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
30363
30364         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
30365
30366 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
30367
30368         * conform/run-conformtest.sh: New file.
30369         * conform/Makefile: Run run-conformtest for tests.
30370         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
30371         support.
30372
30373         * conform/data/uchar.h-data: New file.
30374         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
30375         * conform/data/arpa/inet.h-data: Likewise.
30376         * conform/data/assert.h-data: Likewise.
30377         * conform/data/complex.h-data: Likewise.
30378         * conform/data/cpio.h-data: Likewise.
30379         * conform/data/ctype.h-data: Likewise.
30380         * conform/data/dirent.h-data: Likewise.
30381         * conform/data/dlfcn.h-data: Likewise.
30382         * conform/data/errno.h-data: Likewise.
30383         * conform/data/fcntl.h-data: Likewise.
30384         * conform/data/float.h-data: Likewise.
30385         * conform/data/fmtmsg.h-data: Likewise.
30386         * conform/data/fnmatch.h-data: Likewise.
30387         * conform/data/ftw.h-data: Likewise.
30388         * conform/data/glob.h-data: Likewise.
30389         * conform/data/grp.h-data: Likewise.
30390         * conform/data/iconv.h-data: Likewise.
30391         * conform/data/inttypes.h-data: Likewise.
30392         * conform/data/langinfo.h-data: Likewise.
30393         * conform/data/libgen.h-data: Likewise.
30394         * conform/data/limits.h-data: Likewise.
30395         * conform/data/locale.h-data: Likewise.
30396         * conform/data/math.h-data: Likewise.
30397         * conform/data/monetary.h-data: Likewise.
30398         * conform/data/mqueue.h-data: Likewise.
30399         * conform/data/ndbm.h-data: Likewise.
30400         * conform/data/net/if.h-data: Likewise.
30401         * conform/data/netdb.h-data: Likewise.
30402         * conform/data/netinet/in.h-data: Likewise.
30403         * conform/data/nl_types.h-data: Likewise.
30404         * conform/data/poll.h-data: Likewise.
30405         * conform/data/pthread.h-data: Likewise.
30406         * conform/data/pwd.h-data: Likewise.
30407         * conform/data/regex.h-data: Likewise.
30408         * conform/data/sched.h-data: Likewise.
30409         * conform/data/search.h-data: Likewise.
30410         * conform/data/semaphore.h-data: Likewise.
30411         * conform/data/setjmp.h-data: Likewise.
30412         * conform/data/signal.h-data: Likewise.
30413         * conform/data/spawn.h-data: Likewise.
30414         * conform/data/stdarg.h-data: Likewise.
30415         * conform/data/stdio.h-data: Likewise.
30416         * conform/data/stdlib.h-data: Likewise.
30417         * conform/data/string.h-data: Likewise.
30418         * conform/data/strings.h-data: Likewise.
30419         * conform/data/stropts.h-data: Likewise.
30420         * conform/data/sys/ipc.h-data: Likewise.
30421         * conform/data/sys/mman.h-data: Likewise.
30422         * conform/data/sys/msg.h-data: Likewise.
30423         * conform/data/sys/resource.h-data: Likewise.
30424         * conform/data/sys/select.h-data: Likewise.
30425         * conform/data/sys/sem.h-data: Likewise.
30426         * conform/data/sys/shm.h-data: Likewise.
30427         * conform/data/sys/socket.h-data: Likewise.
30428         * conform/data/sys/stat.h-data: Likewise.
30429         * conform/data/sys/statvfs.h-data: Likewise.
30430         * conform/data/sys/time.h-data: Likewise.
30431         * conform/data/sys/timeb.h-data: Likewise.
30432         * conform/data/sys/times.h-data: Likewise.
30433         * conform/data/sys/types.h-data: Likewise.
30434         * conform/data/sys/uio.h-data: Likewise.
30435         * conform/data/sys/un.h-data: Likewise.
30436         * conform/data/sys/utsname.h-data: Likewise.
30437         * conform/data/sys/wait.h-data: Likewise.
30438         * conform/data/syslog.h-data: Likewise.
30439         * conform/data/tar.h-data: Likewise.
30440         * conform/data/termios.h-data: Likewise.
30441         * conform/data/utime.h-data: Likewise.
30442         * conform/data/utmpx.h-data: Likewise.
30443         * conform/data/varargs.h-data: Likewise.
30444         * conform/data/wchar.h-data: Likewise.
30445         * conform/data/wctype.h-data: Likewise.
30446         * conform/data/wordexp.h-data: Likewise.
30447
30448         * include/stropts.h: New file.
30449         * include/uchar.h: New file.
30450         * include/aio.h: Changes to allow conformtest.pl to use the headers.
30451         * include/assert.h: Likewise.
30452         * include/ctype.h: Likewise.
30453         * include/dirent.h: Likewise.
30454         * include/dlfcn.h: Likewise.
30455         * include/fcntl.h: Likewise.
30456         * include/fnmatch.h: Likewise.
30457         * include/glob.h: Likewise.
30458         * include/grp.h: Likewise.
30459         * include/libio.h: Likewise.
30460         * include/locale.h: Likewise.
30461         * include/math.h: Likewise.
30462         * include/net/if.h: Likewise.
30463         * include/netdb.h: Likewise.
30464         * include/netinet/in.h: Likewise.
30465         * include/pthread.h: Likewise.
30466         * include/pwd.h: Likewise.
30467         * include/regex.h: Likewise.
30468         * include/sched.h: Likewise.
30469         * include/search.h: Likewise.
30470         * include/setjmp.h: Likewise.
30471         * include/signal.h: Likewise.
30472         * include/stdio.h: Likewise.
30473         * include/stdlib.h: Likewise.
30474         * include/string.h: Likewise.
30475         * include/sys/cdefs.h: Likewise.
30476         * include/sys/mman.h: Likewise.
30477         * include/sys/msg.h: Likewise.
30478         * include/sys/resource.h: Likewise.
30479         * include/sys/select.h: Likewise.
30480         * include/sys/socket.h: Likewise.
30481         * include/sys/stat.h: Likewise.
30482         * include/sys/statvfs.h: Likewise.
30483         * include/sys/time.h: Likewise.
30484         * include/sys/times.h: Likewise.
30485         * include/sys/uio.h: Likewise.
30486         * include/sys/utsname.h: Likewise.
30487         * include/sys/wait.h: Likewise.
30488         * include/termios.h: Likewise.
30489         * include/time.h: Likewise.
30490         * include/ulimit.h: Likewise.
30491         * include/unistd.h: Likewise.
30492         * include/utime.h: Likewise.
30493         * include/wchar.h: Likewise.
30494         * include/wctype.h: Likewise.
30495         * include/wordexp.h: Likewise.
30496
30497         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
30498
30499         * time/time.h: TIME_UTC must be a macro.
30500         Make timespec_get available for ISO C11 only as well.
30501
30502 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
30503
30504         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
30505         Reported by Peng Haitao <penght@cn.fujitsu.com>.
30506
30507 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30508
30509         * configure.in: Use -o not -a in test for unsupported multi-arch.
30510
30511 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30512
30513         * manual/texinfo.tex: Update to version 2012-01-19.16.
30514
30515 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
30516
30517         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
30518
30519 2012-02-24  Roland McGrath  <roland@hack.frob.com>
30520
30521         [BZ #13738]
30522         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
30523         * manual/fdl-1.3.texi: New file.
30524         * manual/fdl-1.1.texi: File removed.
30525
30526         [BZ #13738]
30527         * manual/libc.texinfo (FDL_VERSION): New @set.
30528         Use it for mention of FDL in cover text.
30529         (Documentation License): Use it in @include file name.
30530
30531 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30532             Roland McGrath  <roland@hack.frob.com>
30533
30534         [BZ #5461]
30535         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
30536         not LONG_LONG_MAX and LONG_LONG_MIN.
30537         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
30538         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
30539         name.
30540         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
30541
30542 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30543
30544         [BZ #2547]
30545         [BZ #11365]
30546         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
30547         manipulate bits before adding and subtracting TWO23[sx].
30548         * math/libm-test.inc (nearbyint_test): Add more tests.
30549
30550 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30551
30552         [BZ #2548]
30553         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
30554         bits before adding and subtracting TWO23[sx].
30555         * math/libm-test.inc (rint_test): Add more tests.
30556         (rint_test_tonearest): Likewise.
30557         (rint_test_towardzero): Likewise.
30558         (rint_test_downward): Likewise.
30559         (rint_test_upward: Likewise.
30560
30561 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30562
30563         [BZ #10110]
30564         * include/stdc-predef.h: New file.  Extracted from features.h.
30565         * include/features.h: Include stdc-predef.h.
30566         * Makefile (headers): Add stdc-predef.h.
30567         * CONFORMANCE (Compiler limitations): Update.
30568
30569 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
30570
30571         * manual/libc.texinfo (VERSION, UPDATED): Revert.
30572
30573 2012-02-21  David S. Miller  <davem@davemloft.net>
30574
30575         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
30576         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30577
30578 2012-02-20  David S. Miller  <davem@davemloft.net>
30579
30580         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
30581         using a normal save/restore sequence, rather than allocating a
30582         dummy stack frame just to store a frame pointer and restore.
30583         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30584
30585 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30586
30587         * manual/install.texi: Fix stray word in line-wrapped comment.
30588
30589 2012-02-20  David S. Miller  <davem@davemloft.net>
30590
30591         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
30592         both binutils and gcc support GOTDATA.
30593
30594         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
30595         "rd %pc" in the PIC register setup sequences.
30596
30597         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
30598         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
30599         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
30600         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
30601         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
30602         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30603         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30604         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
30605         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
30606         (SYSCALL_ERROR_HANDLER): Likewise.
30607         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
30608         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30609         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
30610         (SYSCALL_ERROR_HANDLER): Likewise.
30611
30612         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
30613         (HAVE_GCC_GOTDATA): New.
30614         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
30615         relocation support in both binutils and gcc.
30616         * sysdeps/sparc/elf/configure: Regenerate.
30617
30618         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
30619         * sysdeps/sparc/sparc32/elf/configure: Delete.
30620         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
30621         * sysdeps/sparc/sparc64/elf/configure: Delete.
30622         * sysdeps/sparc/elf/configure.in: New file.
30623         * sysdeps/sparc/elf/configure: Generate.
30624
30625         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
30626         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
30627         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30628         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
30629         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
30630
30631 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30632
30633         * manual/install.texi: Do not mention specific glibc version
30634         numbers.
30635         * manual/libc.texinfo (VERSION, UPDATED): Update.
30636         (@copying): Use @copyright{} and range of years.
30637
30638 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
30639
30640         [BZ #13695]
30641         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
30642         [crti.S not in sysdirs] (generated): Do not append.
30643         [crti.S not in sysdirs] (omit-deps): Likewise.
30644         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
30645         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
30646         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
30647         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
30648         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
30649         Likewise.
30650         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
30651         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
30652         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
30653         * csu/defs.awk: Remove file.
30654         * sysdeps/generic/initfini.c: Likewise.
30655         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
30656         variable.
30657         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
30658         Likewise.
30659
30660 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30661
30662         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
30663         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
30664         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
30665         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
30666         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30667         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
30668         <bits/epoll.h>.
30669         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
30670         (__EPOLL_PACKED): Define to empty if not defined by
30671         <bits/epoll.h>.
30672         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
30673         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30674         bits/epoll.h.
30675
30676 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30677
30678         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
30679         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
30680         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
30681         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
30682         <bits/timerfd.h>.
30683         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
30684         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30685         bits/timerfd.h.
30686
30687 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
30688
30689         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
30690         in C locale.
30691         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30692         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
30693         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
30694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30695
30696 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
30697
30698         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30699         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
30700
30701 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
30702
30703         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
30704         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
30705         defined.
30706         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
30707         Likewise.
30708         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
30709         entry for 2.16.
30710
30711 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
30712
30713         * math/w_acos.c: Use non-signaling floating-point comparisons.
30714         * math/w_acosf.c: Likewise.
30715         * math/w_acosh.c: Likewise.
30716         * math/w_acoshf.c: Likewise.
30717         * math/w_acoshl.c: Likewise.
30718         * math/w_acosl.c: Likewise.
30719         * math/w_asin.c: Likewise.
30720         * math/w_asinf.c: Likewise.
30721         * math/w_asinl.c: Likewise.
30722         * math/w_atanh.c: Likewise.
30723         * math/w_atanhf.c: Likewise.
30724         * math/w_atanhl.c: Likewise.
30725         * math/w_exp2.c: Likewise.
30726         * math/w_exp2f.c: Likewise.
30727         * math/w_exp2l.c: Likewise.
30728         * math/w_j0.c: Likewise.
30729         * math/w_j0f.c: Likewise.
30730         * math/w_j0l.c: Likewise.
30731         * math/w_j1.c: Likewise.
30732         * math/w_j1f.c: Likewise.
30733         * math/w_j1l.c: Likewise.
30734         * math/w_jn.c: Likewise.
30735         * math/w_jnf.c: Likewise.
30736         * math/w_log.c: Likewise.
30737         * math/w_log10.c: Likewise.
30738         * math/w_log10f.c: Likewise.
30739         * math/w_log10l.c: Likewise.
30740         * math/w_log2.c: Likewise.
30741         * math/w_log2f.c: Likewise.
30742         * math/w_log2l.c: Likewise.
30743         * math/w_logf.c: Likewise.
30744         * math/w_logl.c: Likewise.
30745         * math/w_sqrt.c: Likewise.
30746         * math/w_sqrtf.c: Likewise.
30747         * math/w_sqrtl.c: Likewise.
30748         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30749         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30750         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30751         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30752         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30753
30754 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30755
30756         [BZ #9739]
30757         * manual/string.texi (strnlen): Use correct parameter name in
30758         equivalent expression.
30759
30760 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30761
30762         [BZ #11174]
30763         * manual/users.texi (seteuid): Consistently use neweuid for
30764         argument name.
30765
30766 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
30767
30768         [BZ #13704]
30769         * manual/nss.texi (Services in the NSS configuration): Correct
30770         list of services in example configuration file.
30771
30772 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
30773
30774         [BZ #11322]
30775         * manual/arith.texi: Remove statements about negative zero
30776         behaving identically to zero.
30777
30778 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30779
30780         [BZ #5993]
30781         * manual/install.texi: Do not document upgrading from libc5.
30782
30783 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
30784
30785         [BZ #4596]
30786         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
30787
30788 2012-02-18  David S. Miller  <davem@davemloft.net>
30789
30790         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
30791         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
30792         %o7 across the call.
30793         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
30794         instead.
30795         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
30796         SETUP_PIC_REG_LEAF.
30797         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30798         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
30799         * sysdeps/sparc/crtn.S: Likewise.
30800
30801 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
30802
30803         * aout/Makefile: Remove.
30804
30805 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
30806
30807         [BZ #13058]
30808         * manual/examples/argp-ex1.c (main): Format definition in GNU
30809         style.
30810         * manual/examples/argp-ex2.c (main): Likewise.
30811         * manual/examples/argp-ex3.c (main): Likewise.
30812         * manual/examples/argp-ex4.c (main): Likewise.
30813         * manual/examples/longopt.c (main): Use new-style prototype
30814         definition.
30815         * manual/examples/strncat.c (main): Specify return type and use
30816         (void) for arguments.
30817         * manual/examples/subopt.c (main): Use char **argv argument.
30818
30819 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30820
30821         [BZ #5077]
30822         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
30823         rounding modes.
30824
30825 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
30826
30827         [BZ #6907]
30828         * manual/string.texi (strchr): Change when strchrnul is
30829         recommended.
30830
30831 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
30832
30833         [BZ #174]
30834         * manual/locale.texi (setlocale): Document LOCPATH.
30835
30836 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30837
30838         [BZ #10210]
30839         * manual/process.texi (execle): Move @dots{} before last argument.
30840
30841 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
30842
30843         [BZ #12047]
30844         * manual/charset.texi (Generic Charset Conversion): Fix typo
30845         (LC_TYPE -> LC_CTYPE).
30846
30847 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
30848
30849         [BZ #5805]
30850         * manual/arith.texi (scalbn): Use @var{} on parameter names.
30851         (scalbnf): Likewise.
30852         (scalbnl): Likewise.
30853         (scalbln): Likewise.
30854         (scalblnf): Likewise.
30855         (scalblnl): Likewise.
30856         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
30857         (vwarnx): Likewise.
30858         (verr): Likewise.
30859         (verrx): Likewise.
30860         * manual/filesys.texi (telldir): Use braces around return type.
30861         * manual/llio.texi (mmap): Add space after comma.
30862         (mmap64): Likewise.
30863         * manual/math.texi (jn): Use @var{} on parameter names.
30864         (jnf): Likewise.
30865         (jnl): Likewise.
30866         (yn): Likewise.
30867         (ynf): Likewise.
30868         (ynl): Likewise.
30869         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
30870         line.
30871         * manual/resource.texi (ulimit): Use @dots{} instead of literal
30872         "...".
30873         (sched_get_priority_min): Remove semicolon on @deftypefun line.
30874         (sched_get_priority_max): Likewise.
30875         * manual/signal.texi (sigvec): Add space after comma.
30876         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
30877         names.
30878         (if_indextoname): Likewise.
30879         (if_freenameindex): Likewise.
30880         (sendto): Use ',' instead of '.' in prototype.
30881         * manual/startup.texi (syscall): Use @dots{} instead of literal
30882         "...".
30883         * manual/stdio.texi (__fpending): Separate initial words of
30884         paragraph from @deftypefun line.
30885         * manual/syslog.texi (syslog): Use @dots{} instead of literal
30886         "...".
30887         (vsyslog): Use @var{} on parameter names.
30888         * manual/terminal.texi (stty): Use @var{} on parameter names.
30889         * manual/users.texi (getutmp): Use @var{} on parameter names.
30890         (getutmpx): Likewise.
30891
30892 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30893
30894         [BZ #6884]
30895         * manual/stdio.texi (fopen): Fix typos in description of
30896         ",ccs=STRING".
30897
30898 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
30899
30900         [BZ #4026]
30901         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
30902         get clock_id definition.
30903
30904 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
30905
30906         [BZ #4822]
30907         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
30908         (madvise): Cast every argument to void on its own.
30909
30910 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30911
30912         [BZ #9902]
30913         * manual/startup.texi (Exit Status): Fix typo.
30914
30915 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
30916
30917         [BZ #10140]
30918         * manual/examples/argp-ex1.c: Include <stdlib.h>.
30919         * manual/examples/argp-ex2.c: Likewise.
30920         * manual/examples/argp-ex3.c: Likewise.
30921
30922 2012-02-16  Richard Henderson  <rth@redhat.com>
30923
30924         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
30925         * sysdeps/s390/s390-32/initfini.c: Remove.
30926         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
30927         * sysdeps/s390/s390-64/initfini.c: Remove.
30928
30929 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30930
30931         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
30932         compiler output for sysdeps/generic/initfini.c.
30933         * sysdeps/sh/elf/initfini.c: Remove file.
30934
30935 2012-02-16  David S. Miller  <davem@davemloft.net>
30936
30937         [BZ #11494]
30938         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
30939
30940         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
30941         * sysdeps/sparc/crti.S: New file.
30942         * sysdeps/sparc/crtn.S: New file.
30943         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
30944         * sysdeps/sparc/sparc64/Makefile: Likewise.
30945
30946 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
30947
30948         [BZ #3335]
30949         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
30950
30951 2012-02-15  Roland McGrath  <roland@hack.frob.com>
30952
30953         [BZ #4822]
30954         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
30955
30956         * mach/devstream.c (cookie_io_functions_t): Macro removed.
30957         (write, read, close): Likewise.
30958         Patch by Aurelien Jarno <aurelien@aurel32.net>.
30959
30960 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
30961
30962         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
30963         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
30964         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
30965         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
30966         <bits/signalfd.h>.
30967         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
30968         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30969         bits/signalfd.h.
30970
30971 2012-02-14  Marek Polacek  <polacek@redhat.com>
30972
30973         * sysdeps/x86_64/crti.S: New file.
30974         * sysdeps/x86_64/crtn.S: New file.
30975         * sysdeps/x86_64/elf/initfini.c: Remove file.
30976
30977 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30978
30979         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
30980         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
30981         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
30982         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
30983         <bits/inotify.h>.
30984         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
30985         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30986         bits/inotify.h.
30987
30988 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
30989
30990         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
30991         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
30992         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
30993         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
30994         <bits/eventfd.h>.
30995         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
30996         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30997         bits/eventfd.h.
30998
30999 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
31000
31001         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
31002         __feraiseexcept instead of feraiseexcept.
31003
31004         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
31005         nanosleep invocations.
31006         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
31007         strings, and add error checking for a nanosleep invocations.
31008
31009 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31010
31011         Replace FSF snail mail address with URLs, as per GNU coding standards.
31012         Most of the snail mail addresses were wrong anyway, and omitting
31013         them makes the source code easier to maintain.  Almost all of the
31014         changes are to license notices and to locale LC_IDENTIFICATION
31015         addresses, except for this one:
31016         * manual/libc.texinfo: In "Published by", give the FSF's URL,
31017         not its snail mail address.
31018
31019 2012-02-09  Richard Henderson  <rth@twiddle.net>
31020
31021         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
31022         of kernel-features.h.
31023
31024         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
31025
31026 2012-02-08  Marek Polacek  <polacek@redhat.com>
31027
31028         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
31029         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
31030         * sysdeps/gnu/_G_config.h: Likewise.
31031         * sysdeps/generic/_G_config.h: Likewise.
31032
31033 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
31034
31035         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
31036         tests.
31037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31038
31039         * sysdeps/powerpc/powerpc32/crti.S: New file.
31040         * sysdeps/powerpc/powerpc32/crtn.S: New file.
31041         * sysdeps/powerpc/powerpc64/crti.S: New file.
31042         * sysdeps/powerpc/powerpc64/crtn.S: New file.
31043
31044         * Makeconfig (have-initfini): Don't set.
31045         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
31046         * configure.in (nopic_initfini): Don't substitute.
31047         * config.h.in (HAVE_INITFINI): Don't #undef.
31048         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
31049         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
31050
31051 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
31052
31053         Support crti.S and crtn.S provided directly by architectures.
31054         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
31055         [crti.S in sysdirs] (omit-deps): Likewise.
31056         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
31057         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
31058         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
31059         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
31060         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
31061         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
31062         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
31063         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
31064         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
31065         compiler output for sysdeps/generic/initfini.c.
31066         * sysdeps/i386/elf/Makefile: Remove file.
31067         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
31068
31069 2012-02-07  Marek Polacek  <polacek@redhat.com>
31070
31071         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
31072         * sysdeps/gnu/_G_config.h: Likewise.
31073         * sysdeps/mach/hurd/_G_config.h: Likewise.
31074
31075 2012-02-07  Marek Polacek  <polacek@redhat.com>
31076
31077         * math/Makefile (tests): Add tst-CMPLX2.
31078         * math/tst-CMPLX2.c: New file.
31079
31080 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
31081
31082         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
31083
31084         * math/libm-test.inc (jn_test): Add missing L suffix.
31085
31086 2012-02-06  Marek Polacek  <polacek@redhat.com>
31087
31088         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
31089         * sysdeps/i386/fpu/e_powf.S: Likewise.
31090         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
31091         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
31092         * sysdeps/i386/fpu/e_acosh.S: Likewise.
31093         * sysdeps/i386/fpu/e_pow.S: Likewise.
31094         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
31095         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
31096         * sysdeps/i386/fpu/s_expm1.S: Likewise.
31097         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
31098         * sysdeps/i386/fpu/e_log2.S: Likewise.
31099         * sysdeps/i386/fpu/e_log2l.S: Likewise.
31100         * sysdeps/i386/fpu/e_scalb.S: Likewise.
31101         * sysdeps/i386/fpu/e_powl.S: Likewise.
31102         * sysdeps/i386/fpu/s_log1p.S: Likewise.
31103         * sysdeps/i386/fpu/e_log10f.S: Likewise.
31104         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
31105         * sysdeps/i386/fpu/e_logl.S: Likewise.
31106         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
31107         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
31108         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
31109         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
31110         * sysdeps/i386/fpu/e_log2f.S: Likewise.
31111         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
31112         * sysdeps/i386/fpu/e_log.S: Likewise.
31113         * sysdeps/i386/fpu/s_cexp.S: Likewise.
31114         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
31115         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
31116         * sysdeps/i386/fpu/e_logf.S: Likewise.
31117         * sysdeps/i386/fpu/e_log10l.S: Likewise.
31118         * sysdeps/i386/fpu/e_atanh.S: Likewise.
31119         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
31120         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
31121         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
31122         * sysdeps/i386/fpu/e_log10.S: Likewise.
31123         * sysdeps/i386/fpu/s_frexp.S: Likewise.
31124         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
31125         * sysdeps/i386/fpu/s_asinh.S: Likewise.
31126         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
31127         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
31128         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
31129         * sysdeps/i386/asm-syntax.h: Likewise.
31130         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
31131         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
31132         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
31133         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
31134         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
31135         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
31136         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
31137         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
31138         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
31139         * sysdeps/powerpc/sysdep.h: Likewise.
31140         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
31141         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
31142
31143 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31144
31145         [BZ #411]
31146         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
31147
31148 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
31149
31150         * sysdeps/i386/sysdep.h: Include <features.h>.
31151         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
31152         version.
31153
31154 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
31155
31156         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
31157         Define.
31158         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
31159         LOAD_PIC_REG_STR.
31160
31161 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31162
31163         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
31164         (SETUP_PIC_REG): Use GET_PC_THUNK.
31165         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
31166         macro.
31167
31168 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31169
31170         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
31171         for non-PIC compilation.
31172         (SETUP_PIC_REG): Add .p2align directive.
31173         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
31174         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
31175         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31176         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31177         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
31178         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31179         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
31180         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31181         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31182         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31183         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31184         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31185         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31186         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31187         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31188         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
31189         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
31190         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31191         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31192         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31193         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31194         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
31195         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31196         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
31197         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
31198         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
31199         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31200         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
31201         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31202         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31203         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31204         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31205         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31206         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31207         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31208         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31209         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31210         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31211         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31212         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31213         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31214
31215 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
31216
31217         * math/tst-CMPLX.c: Include <stdio.h>.
31218
31219 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
31220
31221         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
31222         float.
31223         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31224         * sysdeps/sparc/bits/mathdef.h: Likewise.
31225
31226 2012-01-31  Marek Polacek  <polacek@redhat.com>
31227
31228         * libio/libio.h: Don't define _PARAMS.
31229         * locale/programs/config.h: Don't define PARAMS.
31230         * stdlib/strtol_l.c: Likewise.
31231         (__strtol_l): Remove PARAMS from the prototype.
31232
31233 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
31234
31235         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
31236         names.  Just use the correct names.  Remove unnecessary wrapper
31237         functions.
31238         * malloc/arena.c: Likewise.
31239         * malloc/hooks.c: Likewise.
31240
31241         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
31242         ARENA_TEST says not to.  Simplify test for creation of a new arena.
31243         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
31244
31245 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
31246
31247         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
31248         into tail calls.
31249         (update_get_addr): New function.
31250         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
31251         GET_ADDR_MODULE parameter.
31252
31253 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31254
31255         * crypt/cert.c: Remove __STDC__ conditionals.
31256         * crypt/crypt-entry.c: Likewise.
31257         * crypt/crypt_util.c: Likewise.
31258         * libio/filedoalloc.c: Likewise.
31259         * libio/fileops.c: Likewise.
31260         * libio/genops.c: Likewise.
31261         * libio/iofclose.c: Likewise.
31262         * libio/iofdopen.c: Likewise.
31263         * libio/iofopen.c: Likewise.
31264         * libio/iofopen64.c: Likewise.
31265         * libio/iogetdelim.c: Likewise.
31266         * libio/iopopen.c: Likewise.
31267         * libio/obprintf.c: Likewise.
31268         * libio/oldfileops.c: Likewise.
31269         * libio/oldiofclose.c: Likewise.
31270         * libio/oldiofdopen.c: Likewise.
31271         * libio/oldiofopen.c: Likewise.
31272         * libio/oldiopopen.c: Likewise.
31273         * libio/wfiledoalloc.c: Likewise.
31274         * libio/wgenops.c: Likewise.
31275         * locale/programs/xmalloc.c: Likewise.
31276         * misc/syslog.c: Likewise.
31277         * stdio-common/xbug.c: Likewise.
31278         * string/memchr.c: Likewise.
31279         * string/memcmp.c: Likewise.
31280         * string/memrchr.c: Likewise.
31281         * string/rawmemchr.c: Likewise.
31282         * sysdeps/posix/getcwd.c: Likewise.
31283         * time/strftime_l.c: Likewise.
31284
31285 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
31286
31287         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
31288         * config.make.in (config-cflags-sse2avx): Define.
31289         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
31290         Fix typo.
31291
31292 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
31293
31294         * scripts/config.guess: Update from upstream config git repository.
31295         * scripts/config.sub: Likewise.
31296
31297 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
31298
31299         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
31300         (EM_NUM): Update.
31301         (R_TILEPRO_*, R_TILEGX_*): New macros.
31302
31303         * scripts/firstversions.awk: Fix bug in version range handling.
31304
31305         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
31306
31307         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
31308
31309         * include/sys/epoll.h: New file.
31310         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
31311         libc_hidden_def.
31312
31313 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
31314
31315         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
31316         Avoid unnecessary __WORDSIZE == 64 test.
31317         (fmaxf): Use VEX format if possible.
31318         (fmax): Likewise.
31319         (fminf): Likewise.
31320         (fmin): Likewise.
31321
31322         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
31323         * math/math_private.h: Remove libc_fegetround* and
31324         libc_fesetround*.
31325         * sysdeps/i386/configure.in: Check for -msse2avx.
31326         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
31327         also if SSE2AVX is defined.
31328         Remove libc_fegetround* and libc_fesetround*.
31329         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
31330         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
31331         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
31332         of HAS_YMM_USABLE.
31333         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31334         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31335         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31336         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31337         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31338
31339         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
31340
31341 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31342
31343         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
31344         size is not set.
31345         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31346
31347 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
31348
31349         [BZ #13618]
31350         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
31351         relocation.
31352         * Makeconfig (libm): Define.
31353         * elf/Makefile: Add rules to build and run tst-relsort1.
31354         * elf/tst-relsort1.c: New file.
31355         * elf/tst-relsort1mod1.c: New file.
31356         * elf/tst-relsort1mod2.c: New file.
31357
31358 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
31359
31360         * math/s_ldexp.c: Remove __STDC__ conditionals.
31361         * math/s_ldexpf.c: Likewise.
31362         * math/s_ldexpl.c: Likewise.
31363         * math/s_nextafter.c: Likewise.
31364         * math/s_nexttowardf.c: Likewise.
31365         * math/s_significand.c: Likewise.
31366         * math/s_significandf.c: Likewise.
31367         * math/s_significandl.c: Likewise.
31368         * math/w_jnl.c: Likewise.
31369         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
31370         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
31371         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
31372         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
31373         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
31374         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
31375         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
31376         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
31377         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
31378         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
31379         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
31380         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31381         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
31382         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
31383         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
31384         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
31385         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
31386         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
31387         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
31388         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
31389         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
31390         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
31391         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
31392         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
31393         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
31394         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
31395         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
31396         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
31397         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
31398         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
31399         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
31400         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
31401         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
31402         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
31403         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
31404         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
31405         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
31406         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
31407         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
31408         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
31409         * sysdeps/ieee754/k_standard.c: Likewise.
31410         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
31411         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
31412         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
31413         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
31414         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
31415         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
31416         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
31417         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
31418         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
31419         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
31420         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
31421         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
31422         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
31423         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
31424         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
31425         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
31426         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
31427         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
31428         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
31429         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
31430         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31431         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
31432         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
31433         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
31434         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
31435         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31436         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31437         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31438         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31439         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
31440         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
31441         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
31442         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
31443         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
31444         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
31445         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
31446         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
31447         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
31448         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
31449         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
31450         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
31451         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
31452         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
31453         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
31454         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
31455         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
31456         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
31457         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
31458         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
31459         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
31460         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
31461         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
31462         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
31463         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
31464         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
31465         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
31466         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
31467         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
31468         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
31469         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
31470         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
31471         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
31472         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
31473         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
31474         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
31475         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
31476         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
31477         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
31478         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
31479         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
31480         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
31481         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
31482         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
31483         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
31484         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
31485         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
31486         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
31487         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
31488         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
31489         * sysdeps/ieee754/s_matherr.c: Likewise.
31490         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
31491         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
31492         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
31493         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
31494
31495 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31496
31497         * crypt/md5.h: Remove __STDC__ conditionals.
31498         * libio/libioP.h: Likewise.
31499         * locale/programs/config.h: Likewise.
31500         * sysdeps/generic/sysdep.h: Likewise.
31501         * sysdeps/i386/asm-syntax.h: Likewise.
31502         * sysdeps/s390/asm-syntax.h: Likewise.
31503         * sysdeps/unix/sysdep.h: Likewise.
31504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
31505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
31506
31507 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
31508
31509         * libio/libio.h: Remove __STDC__ conditionals.
31510         * malloc/obstack.h: Likewise.
31511         * math/complex.h: Likewise.
31512         * math/math.h: Likewise.
31513         * sysdeps/generic/_G_config.h: Likewise.
31514         * sysdeps/gnu/_G_config.h: Likewise.
31515         * sysdeps/mach/hurd/_G_config.h: Likewise.
31516         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31517         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
31518         * sysdeps/sparc/bits/mathdef.h: Likewise.
31519
31520 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
31521
31522         [BZ #13583]
31523         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
31524         Clean up HAS_* macros.
31525         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
31526         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
31527         possible.
31528         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
31529         HAS_AVX.
31530         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31531         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31532         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31533         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31534         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31535
31536 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
31537
31538         * elf/tst-unique3.cc (gets): Remove declaration.
31539         * elf/tst-unique3lib.cc (gets): Likewise.
31540         * elf/tst-unique3lib2.cc (gets): Likewise.
31541         * elf/tst-unique4.cc (gets): Likewise.
31542
31543 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
31544
31545         * include/stdio.h: Add C++ protection.  Add gets declarations and
31546         definitions.
31547         * debug/tst-chk1.c: Don't declare gets here.
31548         * stdio-common/tst-gets.c: Likewise.
31549
31550 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31551
31552         * posix/glob: Remove directory.
31553
31554 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
31555
31556         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
31557
31558 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
31559
31560         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
31561         of the non-standard EPFNOSUPPORT.
31562
31563 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31564
31565         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
31566         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
31567         ANYWHERE set to 1 only on KERN_NO_SPACE error.
31568
31569 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
31570
31571         * wcsmbs/uchar.h: Test __STDC_VERSION__.
31572
31573 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
31574
31575         * nscd/aicache.c (addhstaiX): Do not cache negative results of
31576         transient errors.
31577         * nscd/grpcache.c (cache_addgr): Likewise.
31578         * nscd/hstcache.c (cache_addhst): Likewise.
31579         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31580         * nscd/pwdcache.c (cache_addpw): Likewise.
31581         * nscd/servicescache.c (cache_addserv): Likewise.
31582
31583 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
31584
31585         * malloc/malloc.c: Various cleanups.
31586         * malloc/hooks.c: Likewise.
31587
31588         * stdlib/Makefile (tests): Add bug-fmtmsg1.
31589         * stdlib/bug-fmtmsg1.c: New file.
31590
31591         * stdlib/fmtmsg.c (init): Add missing unlock.
31592         Patch by Peng Haitao <penght@cn.fujitsu.com>.
31593
31594 2012-01-12  Marek Polacek  <polacek@redhat.com>
31595
31596         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
31597         and _GNU_SOURCE.
31598
31599 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31600
31601         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
31602         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
31603         macro to ensure uniqueness of label name.
31604         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31605         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31606
31607 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
31608
31609         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
31610
31611         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
31612         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
31613         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31614         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
31615
31616 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
31617
31618         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
31619
31620         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
31621         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
31622         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
31623
31624         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
31625
31626         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
31627         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
31628         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
31629         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
31630
31631         * math/bits/math-finite.h: Add ldexp support.
31632
31633 2012-01-10  Marek Polacek  <polacek@redhat.com>
31634
31635         * locale/programs/localedef.h (show_archive_content): Add noreturn
31636         attribute.
31637
31638 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
31639
31640         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
31641
31642 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31643
31644         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
31645
31646         * io/Makefile (headers): Add bits/poll2.h.
31647
31648 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
31649
31650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
31651         typo #include statement.
31652
31653 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31654
31655         * include/sys/cdefs.h: Define __attribute_alloc_size.
31656         * catgets/gencat.c: Add alloc_size attribute and apply consistently
31657         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
31658         * elf/pldd.c: Likewise.
31659         * iconv/iconv_charmap.c: Likewise.
31660         * iconv/iconvconfig.c: Likewise.
31661         * iconv/strtab.c: Likewise.
31662         * locale/programs/locale.c: Likewise.
31663         * locale/programs/localedef.h: Likewise.
31664         * locale/programs/simple-hash.c: Likewise.
31665         * nscd/nscd.h: Likewise.
31666         * nss/makedb.c: Likewise.
31667         * sysdeps/generic/ldconfig.h: Likewise.
31668         * locale/programs/localedef.c: Remove xmalloc prototype.
31669         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
31670
31671 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31672
31673         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
31674         appropriate.
31675
31676 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
31677
31678         * math/Makefile (tests): Add tst-CMPLX.
31679         * math/tst-CMPLX.c: New file.
31680
31681         * math/complex.h (CMPLXL): Fix typo.
31682
31683         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
31684         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
31685         GLIBC_2.16.
31686         * debug/tst-chk1.c: Add poll and ppoll tests.
31687         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
31688         * include/sys/poll.h: Add hidden proto for ppoll.
31689         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
31690         * sysdeps/mach/hurd/ppoll.c: Likewise.
31691         * io/ppoll.c: Likewise.
31692         * debug/poll_chk.c: New file.
31693         * debug/ppoll_chk.c: New file.
31694         * include/bits/poll2.h: New file.
31695         * io/bits/poll2.h: New file.
31696
31697         [BZ #1350]
31698         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
31699
31700         * configure.in: static is always set to yes.  Remove.
31701         * config.make.in: Don't set build-static.
31702         * Makeconfig: Remove use of build-static.
31703         * dlfcn/Makefile: Likewise.
31704         * elf/Makefile: Likewise.
31705         * math/Makefile: Likewise.
31706         * misc/Makefile: Likewise.
31707         * nptl/Makefile: Likewise.
31708         * sysdeps/mach/hurd/Makefile: Likewise.
31709
31710         * configure.in: PWD_P is not used anymore.
31711         * config.make.in: Remove PWD_P entry.
31712
31713         * configure.in: Remove last remnants of RANLIB.
31714         No need to check for signed size_t anymore.
31715         Don't set libc_commonpagesize and libc_relro_required here for Alpha
31716         and IA-64.
31717         Remove __builtin_expect test because we require at least gcc 3.4.
31718         * aclocal.m4: Likewise.
31719
31720         * wcsmbs/mbrtoc16.c: Implement using towc function.
31721         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
31722         * wcsmbs/wcsmbsload.c: Likewise.
31723         * iconv/gconv_simple.c: Likewise.
31724         * iconv/gconv_int.h: Likewise.
31725         * iconv/gconv_builtin.h: Likewise.
31726         * iconv/iconv_prog.c: Remove CHAR16 handling.
31727
31728         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
31729
31730         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
31731
31732         * configure.in: Remove --with-elf and --enable-bounded options.
31733         Dont set base_machine for ia64.  More non-ELF conditions removed.
31734         Remove testing and setting of leading underscore information.
31735         * config.make.in (build-bounded): Set to no.
31736         * config.h.in: Remove NO_UNDERSCORES entry.
31737         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
31738         them.
31739         * csu/start.c: Remove !NO_UNDERSCORE code.
31740         * locale/localeinfo.h: Likewise.
31741         * sysdeps/generic/machine-gmon.h: Likewise.
31742         * sysdeps/generic/sysdep.h: Likewise.
31743         * sysdeps/i386/sysdep.h: Likewise.
31744         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31745         * sysdeps/mach/sysdep.h: Likewise.
31746         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31747         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31748         * sysdeps/sh/sysdep.h: Likewise.
31749         * sysdeps/sparc/sparc32/alloca.S: Likewise.
31750         * sysdeps/unix/i386/sysdep.S: Likewise.
31751         * sysdeps/unix/sparc/start.c: Likewise.
31752         * sysdeps/unix/sparc/sysdep.S: Likewise.
31753         * sysdeps/unix/sparc/sysdep.h: Likewise.
31754         * sysdeps/unix/start.c: Likewise.
31755         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31756         * sysdeps/x86_64/sysdep.h: Likewise.
31757
31758 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
31759
31760         [BZ #13553]
31761         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
31762         for non-gcc.
31763         * argp/argp-fmtstream.h: Use const instead __const.
31764         * argp/argp.h: Likewise.
31765         * assert/assert.h: Likewise.
31766         * bits/fenv.h: Likewise.
31767         * bits/sched.h: Likewise.
31768         * bits/sigset.h: Likewise.
31769         * bits/sigthread.h: Likewise.
31770         * catgets/nl_types.h: Likewise.
31771         * conform/data/pthread.h-data: Likewise.
31772         * crypt/crypt-private.h: Likewise.
31773         * crypt/crypt.h: Likewise.
31774         * crypt/crypt_util.c: Likewise.
31775         * ctype/ctype.h: Likewise.
31776         * debug/execinfo.h: Likewise.
31777         * debug/mbsnrtowcs_chk.c: Likewise.
31778         * debug/mbsrtowcs_chk.c: Likewise.
31779         * debug/wcsnrtombs_chk.c: Likewise.
31780         * debug/wcsrtombs_chk.c: Likewise.
31781         * debug/wcstombs_chk.c: Likewise.
31782         * dirent/dirent.h: Likewise.
31783         * dlfcn/dlfcn.h: Likewise.
31784         * elf/neededtest4.c: Likewise.
31785         * grp/grp.h: Likewise.
31786         * gshadow/gshadow.h: Likewise.
31787         * iconv/gconv.h: Likewise.
31788         * iconv/gconv_int.h: Likewise.
31789         * iconv/gconv_simple.c: Likewise.
31790         * iconv/iconv.h: Likewise.
31791         * iconv/loop.c: Likewise.
31792         * iconv/skeleton.c: Likewise.
31793         * include/aio.h: Likewise.
31794         * include/aliases.h: Likewise.
31795         * include/argz.h: Likewise.
31796         * include/arpa/inet.h: Likewise.
31797         * include/assert.h: Likewise.
31798         * include/dirent.h: Likewise.
31799         * include/dlfcn.h: Likewise.
31800         * include/execinfo.h: Likewise.
31801         * include/fcntl.h: Likewise.
31802         * include/fenv.h: Likewise.
31803         * include/glob.h: Likewise.
31804         * include/grp.h: Likewise.
31805         * include/libintl.h: Likewise.
31806         * include/mntent.h: Likewise.
31807         * include/netdb.h: Likewise.
31808         * include/pwd.h: Likewise.
31809         * include/rpc/netdb.h: Likewise.
31810         * include/sched.h: Likewise.
31811         * include/search.h: Likewise.
31812         * include/shadow.h: Likewise.
31813         * include/signal.h: Likewise.
31814         * include/stdio.h: Likewise.
31815         * include/stdlib.h: Likewise.
31816         * include/string.h: Likewise.
31817         * include/sys/socket.h: Likewise.
31818         * include/sys/stat.h: Likewise.
31819         * include/sys/statfs.h: Likewise.
31820         * include/sys/statvfs.h: Likewise.
31821         * include/sys/syslog.h: Likewise.
31822         * include/sys/time.h: Likewise.
31823         * include/sys/uio.h: Likewise.
31824         * include/time.h: Likewise.
31825         * include/unistd.h: Likewise.
31826         * include/utmp.h: Likewise.
31827         * include/wchar.h: Likewise.
31828         * include/wctype.h: Likewise.
31829         * inet/aliases.h: Likewise.
31830         * inet/arpa/inet.h: Likewise.
31831         * inet/netinet/ether.h: Likewise.
31832         * inet/netinet/in.h: Likewise.
31833         * intl/libintl.h: Likewise.
31834         * io/bits/fcntl2.h: Likewise.
31835         * io/fcntl.h: Likewise.
31836         * io/ftw.h: Likewise.
31837         * io/sys/poll.h: Likewise.
31838         * io/sys/stat.h: Likewise.
31839         * io/sys/statfs.h: Likewise.
31840         * io/sys/statvfs.h: Likewise.
31841         * io/utime.h: Likewise.
31842         * libio/bits/stdio.h: Likewise.
31843         * libio/bits/stdio2.h: Likewise.
31844         * libio/libio.h: Likewise.
31845         * libio/libioP.h: Likewise.
31846         * libio/stdio.h: Likewise.
31847         * locale/lc-ctype.c: Likewise.
31848         * locale/locale.h: Likewise.
31849         * login/utmp.h: Likewise.
31850         * malloc/arena.c: Likewise.
31851         * malloc/malloc.c: Likewise.
31852         * malloc/malloc.h: Likewise.
31853         * malloc/mcheck.c: Likewise.
31854         * malloc/mtrace.c: Likewise.
31855         * math/bits/mathcalls.h: Likewise.
31856         * math/fenv.h: Likewise.
31857         * math/math_private.h: Likewise.
31858         * misc/bits/error.h: Likewise.
31859         * misc/bits/syslog.h: Likewise.
31860         * misc/err.h: Likewise.
31861         * misc/error.h: Likewise.
31862         * misc/fstab.h: Likewise.
31863         * misc/mntent.h: Likewise.
31864         * misc/regexp.h: Likewise.
31865         * misc/search.h: Likewise.
31866         * misc/sgtty.h: Likewise.
31867         * misc/sys/mman.h: Likewise.
31868         * misc/sys/syslog.h: Likewise.
31869         * misc/sys/uio.h: Likewise.
31870         * misc/sys/xattr.h: Likewise.
31871         * misc/ttyent.h: Likewise.
31872         * nis/rpcsvc/ypclnt.h: Likewise.
31873         * nss/nss.h: Likewise.
31874         * posix/bits/unistd.h: Likewise.
31875         * posix/fnmatch.h: Likewise.
31876         * posix/glob.h: Likewise.
31877         * posix/sched.h: Likewise.
31878         * posix/spawn.h: Likewise.
31879         * posix/sys/wait.h: Likewise.
31880         * posix/unistd.h: Likewise.
31881         * posix/wordexp.h: Likewise.
31882         * pwd/pwd.h: Likewise.
31883         * resolv/netdb.h: Likewise.
31884         * resource/sys/resource.h: Likewise.
31885         * rt/aio.h: Likewise.
31886         * rt/bits/mqueue2.h: Likewise.
31887         * rt/mqueue.h: Likewise.
31888         * shadow/shadow.h: Likewise.
31889         * signal/signal.h: Likewise.
31890         * socket/send.c: Likewise.
31891         * socket/sendto.c: Likewise.
31892         * socket/sys/socket.h: Likewise.
31893         * stdio-common/printf.h: Likewise.
31894         * stdlib/bits/stdlib.h: Likewise.
31895         * stdlib/fmtmsg.h: Likewise.
31896         * stdlib/monetary.h: Likewise.
31897         * stdlib/stdlib.h: Likewise.
31898         * stdlib/ucontext.h: Likewise.
31899         * streams/stropts.h: Likewise.
31900         * string/argz.h: Likewise.
31901         * string/bits/string2.h: Likewise.
31902         * string/string.h: Likewise.
31903         * string/strings.h: Likewise.
31904         * sunrpc/rpc/auth.h: Likewise.
31905         * sunrpc/rpc/auth_des.h: Likewise.
31906         * sunrpc/rpc/clnt.h: Likewise.
31907         * sunrpc/rpc/netdb.h: Likewise.
31908         * sunrpc/rpc/pmap_clnt.h: Likewise.
31909         * sunrpc/rpc/xdr.h: Likewise.
31910         * sysdeps/generic/inttypes.h: Likewise.
31911         * sysdeps/generic/net/if.h: Likewise.
31912         * sysdeps/generic/sys/swap.h: Likewise.
31913         * sysdeps/gnu/net/if.h: Likewise.
31914         * sysdeps/gnu/utmpx.h: Likewise.
31915         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
31916         * sysdeps/i386/i486/bits/string.h: Likewise.
31917         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
31918         * sysdeps/s390/bits/string.h: Likewise.
31919         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
31920         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
31921         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31922         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
31923         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
31924         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
31925         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
31926         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
31927         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
31928         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31929         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
31930         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
31931         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
31932         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
31933         * sysdeps/unix/sysv/linux/readv.c: Likewise.
31934         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
31935         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
31936         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31937         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
31938         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
31939         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31940         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
31941         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
31942         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
31943         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
31944         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
31945         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
31946         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31947         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
31948         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
31949         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
31950         * sysvipc/sys/ipc.h: Likewise.
31951         * sysvipc/sys/msg.h: Likewise.
31952         * sysvipc/sys/sem.h: Likewise.
31953         * sysvipc/sys/shm.h: Likewise.
31954         * termios/termios.h: Likewise.
31955         * time/sys/time.h: Likewise.
31956         * time/time.h: Likewise.
31957         * wcsmbs/bits/wchar2.h: Likewise.
31958         * wcsmbs/uchar.h: Likewise.
31959         * wcsmbs/wchar.h: Likewise.
31960         * wctype/wctype.h: Likewise.
31961
31962         [BZ #13551]
31963         * Makeconfig: Remove all but ELF support including AIX support.
31964         * Makerules: Likewise.
31965         * config.h.in: Likewise.
31966         * config.make.in: Likewise.
31967         * configure: Likewise.
31968         * configure.in: Likewise.
31969         * csu/Makefile: Likewise.
31970         * csu/version.c: Likewise.
31971         * debug/Makefile: Likewise.
31972         * dlfcn/Makefile: Likewise.
31973         * elf/Makefile: Likewise.
31974         * extra-lib.mk: Likewise.
31975         * iconv/Makefile: Likewise.
31976         * include/libc-symbols.h: Likewise.
31977         * include/shlib-compat.h: Likewise.
31978         * resolv/Makefile: Likewise.
31979         * resolv/res_libc.c: Likewise.
31980         * rt/Makefile: Likewise.
31981         * sysdeps/i386/asm-syntax.h: Likewise.
31982         * sysdeps/i386/sysdep.h: Likewise.
31983         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
31984         * sysdeps/mach/sysdep.h: Likewise.
31985         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
31986         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
31987         * sysdeps/s390/asm-syntax.h: Likewise.
31988         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31989         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31990         * sysdeps/sh/sysdep.h: Likewise.
31991         * sysdeps/unix/sparc/sysdep.h: Likewise.
31992         * sysdeps/wordsize-32/divdi3.c: Likewise.
31993         * sysdeps/x86_64/sysdep.h: Likewise.
31994
31995         * argp/Versions: Remove _argp_unlock_xxx.
31996
31997         [BZ #13559]
31998         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
31999         * abilist/libBrokenLocale.abilist: Likewise.
32000         * abilist/libanl.abilist: Likewise.
32001         * abilist/libc.abilist: Likewise.
32002         * abilist/libcrypt.abilist: Likewise.
32003         * abilist/libdl.abilist: Likewise.
32004         * abilist/libm.abilist: Likewise.
32005         * abilist/libnsl.abilist: Likewise.
32006         * abilist/libpthread.abilist: Likewise.
32007         * abilist/libresolv.abilist: Likewise.
32008         * abilist/librt.abilist: Likewise.
32009         * abilist/libthread_db.abilist: Likewise.
32010         * abilist/libutil.abilist: Likewise.
32011         * abilist/libnss_db.abilist: New file.
32012
32013         * scripts/abilist.awk: Add support for indirect functions.
32014
32015         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
32016
32017         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
32018
32019         * shlib-versions: Remove entries for ports architectures.
32020
32021         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
32022         files in ports.
32023         * elf/stackguard-macros.h: Remove support for IA-64.
32024         * elf/tst-auditmod1.c: Likewise.
32025         * sysdeps/generic/ldsodefs.h: Likewise.
32026
32027         * sysdeps/unix/sysv/linux/configure.in: Ports should define
32028         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
32029         configure files.
32030
32031         [BZ #13552]
32032         * configure.in: Remove --enable-omitfp support.
32033         * FAQ.in: Adjust.
32034         * config.make.in: Likewise.
32035         * Makeconfig: Likewise.
32036         * manual/install.texi: Likewise.
32037
32038         In case anyone cares, the IA-64 architecture could move to ports.
32039         * sysdeps/ia64/*: Removed.
32040         * sysdeps/unix/sysv/linux/ia64/*: Removed.
32041         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
32042
32043         [BZ #13555]
32044         * configure.in: Remove entries for unsupported architectures.
32045
32046         [BZ #13533]
32047         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
32048         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
32049         routines.
32050         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
32051         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
32052         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
32053         fall back to using wcrtomb.
32054         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
32055         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
32056         renaming.
32057         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
32058         * wcsmbs/tst-c16c32-1.c: New file.
32059
32060         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
32061         local variable.
32062
32063         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
32064
32065         * elf/tst-unique3.cc: Add explicit declaration of gets.
32066         * elf/tst-unique3lib.cc: Likewise.
32067         * elf/tst-unique3lib2.cc: Likewise.
32068         * elf/tst-unique4.cc: Likewise.
32069
32070         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
32071
32072 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
32073
32074         [BZ #13566]
32075         * assert/assert.h (static_assert): Don't define for C++.
32076         * libio/stdio.h (gets): Do declare for C++ <= C++11.
32077         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
32078
32079 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
32080
32081         * iconv/loop.c (single loop): Fix assertion in storing of
32082         remaining bytes.
32083
32084         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
32085
32086 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
32087
32088         * posix/getconf.c: Update copyright year.
32089         * nss/getent.c: Likewise.
32090         * nss/makedb.c: Likewise.
32091         * iconv/iconvconfig.c: Likewise.
32092         * iconv/iconv_prog.c: Likewise.
32093         * elf/ldconfig.c: Likewise.
32094         * elf/pldd.c: Likewise.
32095         * elf/sotruss.ksh: Likewise.
32096         * catgets/gencat.c: Likewise.
32097         * csu/version.c: Likewise.
32098         * elf/ldd.bash.in: Likewise.
32099         * elf/sprof.c (print_version): Likewise.
32100         * locale/programs/locale.c: Likewise.
32101         * locale/programs/localedef.c: Likewise.
32102         * login/programs/pt_chown.c: Likewise.
32103         * nscd/nscd.c (print_version): Likewise.
32104         * debug/xtrace.sh: Likewise.
32105         * malloc/memusage.sh: Likewise.
32106         * malloc/mtrace.pl: Likewise.
32107         * debug/catchsegv.sh: Likewise.
32108
32109 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
32110
32111         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
32112         pure attribute.
32113
32114 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
32115
32116         [BZ #13533]
32117         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
32118         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
32119         transformations.
32120         * iconv/gconv_int.h: Likewise.
32121         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
32122         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
32123         from libc for GLIBC_2.16.
32124         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
32125         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
32126         * wcsmbs/uchar.h: Really define mbstate_t.
32127         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
32128         * wcsmbs/c16rtomb.c: New file.
32129         * wcsmbs/mbrtoc16.c: New file.
32130         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
32131         for C/POSIX locale.
32132         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
32133         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
32134
32135         * wcsmbs/wchar.h: Add missing __restrict.
32136
32137 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32138
32139         [BZ #13532]
32140         * time/Makefile (routines): Add timespec_get.
32141         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
32142         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
32143         timespec for ISO C11.
32144         * time/timespec_get.c: New file.
32145         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
32146         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
32147
32148         [BZ #13531]
32149         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
32150         * stdlib/stdlib.h: Declare aligned_alloc.
32151         * Versions.def: Add GLIBC_2.16 for libc.
32152         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
32153
32154         [BZ 13527]
32155         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
32156         ISO C11.
32157
32158         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
32159         code.
32160
32161         [BZ #13528]
32162         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
32163
32164         [BZ #13529]
32165         * assert/assert.h (static_assert): Define.
32166
32167         * version.h: Update for 2.16 development version.
32168
32169         [BZ #13526]
32170         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
32171         _ISOC11_SOURCE.
32172
32173         * version.h (RELEASE): Bump for 2.15 release.
32174         * include/features.h (__GLIBC_MINOR__): Bump to 15.
32175
32176         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
32177         Patch by Marek Polacek <mpolacek@redhat.com>.
32178
32179         * bits/byteswap.h: Protect long long constants with __extension__.
32180         * sysdeps/i386/bits/byteswap.h: Likewise.
32181         * sysdeps/ia64/bits/byteswap.h: Likewise.
32182         * sysdeps/s390/bits/byteswap.h: Likewise.
32183         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32184
32185 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32186
32187         [BZ #13540]
32188         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
32189         destination buffer.
32190         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
32191
32192 2011-12-23  Marek Polacek  <polacek@redhat.com>
32193
32194         * elf/dl-addr.c (determine_info): Add inline keyword.
32195         * elf/tst-auditmod4b.c (check_avx): Likewise.
32196         * elf/tst-auditmod6b.c (check_avx): Likewise.
32197         * elf/tst-auditmod6c.c (check_avx): Likewise.
32198         * elf/tst-auditmod7b.c (check_avx): Likewise.
32199
32200 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
32201
32202         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
32203         !__SSE_MATH__.
32204
32205 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32206
32207         [BZ #13540]
32208         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
32209         processing for last bytes.
32210
32211 2011-08-06  Bruno Haible  <bruno@clisp.org>
32212
32213         [BZ #13061]
32214         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
32215         U+0385, not to U+1FEE.
32216
32217         [BZ #13062]
32218         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
32219         entry for U+00A5 U+0301.
32220
32221 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32222
32223         [BZ #13166]
32224         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
32225         buffer for the output is too small.
32226
32227         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
32228         optimization.
32229
32230         [BZ #13185]
32231         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
32232         SSE flags if possible.
32233
32234 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32235
32236         [BZ #13540]
32237         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
32238         processing for last bytes.
32239
32240 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
32241
32242         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
32243         (syscall-list-default-options, syscall-list-default-condition)
32244         (syscall-list-includes): Define.
32245         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
32246         list of ABIs and options and #if conditions for each ABI.  Do not
32247         handle common syscalls between ABIs specially.
32248         * sysdeps/unix/sysv/linux/powerpc/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/s390/Makefile (64bit-predefine): Remove.
32254         (syscall-list-variants, syscall-list-32bit-options)
32255         (syscall-list-32bit-condition, syscall-list-64bit-options)
32256         (syscall-list-64bit-condition): Define.
32257         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
32258         Remove.
32259         (syscall-list-variants, syscall-list-32bit-options)
32260         (syscall-list-32bit-condition, syscall-list-64bit-options)
32261         (syscall-list-64bit-condition): Define.
32262         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
32263         Remove.
32264         (syscall-list-variants, syscall-list-32bit-options)
32265         (syscall-list-32bit-condition, syscall-list-64bit-options)
32266         (syscall-list-64bit-condition): Define.
32267
32268 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
32269
32270         * locale/iso-639.def: Add brx entry.
32271
32272         [BZ #13328]
32273         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
32274         Proposed by Mariusz_Cukr <marcukr@op.pl>.
32275
32276         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
32277         __feraiseexcept_renamed.
32278
32279 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32280
32281         [BZ #13538]
32282         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
32283         EPOLLET with unsigned values.
32284         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
32285         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
32286
32287         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
32288         to large cancellation.
32289         * math/s_cacoshf.c: Likewise.
32290         * math/s_cacoshl.c: Likewise.
32291
32292 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
32293
32294         [BZ #13305]
32295         [BZ #12786]
32296         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
32297         * math/s_cacoshf.c: Likewise.
32298         * math/s_cacoshl.c: Likewise.
32299
32300 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
32301
32302         [BZ #13439]
32303         * iconv/gconv.h: Define __GCONV_SWAP.
32304         * iconvdata/unicode.c: The swap bit must be stored in __flags.
32305         * iconvdata/utf-16.c: Likewise.
32306         * iconvdata/utf-32.c: Likewise.
32307
32308 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
32309
32310         [BZ #13524]
32311         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
32312         numerator after shifting it by one limb.
32313
32314 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
32315
32316         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
32317         under [__USE_EXTERN_INLINES].
32318
32319 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32320
32321         [BZ #13446]
32322         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
32323
32324 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32325
32326         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
32327         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
32328         optimized code.
32329         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
32330         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
32331         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
32332         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
32333         for strncasecmp/strncasecmp_l compilation.
32334         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
32335         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
32336
32337 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
32338
32339         [BZ #13484]
32340         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
32341         of __asm__.
32342
32343 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
32344
32345         [BZ #13506]
32346         * time/tzfile.c (__tzfile_read): Check values from file header.
32347
32348 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
32349
32350         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
32351         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
32352         * powerpc/powerpc32/dl-start.S: Likewise.
32353         * powerpc/powerpc32/elf/start.S: Likewise.
32354         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
32355         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
32356         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
32357         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
32358         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
32359         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
32360         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
32361         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
32362         * powerpc/powerpc32/fpu/s_round.S: Likewise.
32363         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
32364         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
32365         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
32366         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
32367         * powerpc/powerpc32/memset.S: Likewise.
32368         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
32369         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
32370         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
32371         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
32372         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
32373         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
32374         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
32375         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
32376         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
32377         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
32378         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
32379         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
32380         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
32381
32382 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32383
32384         * math/libm-test.inc: Added more nearbyint tests.
32385         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
32386         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
32387         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
32388         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
32389
32390 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
32391
32392         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
32393         FD_CLOEXEC.
32394
32395 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32396
32397         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
32398         Add wcscpy-ssse3 wcscpy-c.
32399         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
32400         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
32401         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
32402         * sysdeps/x86_64/wcschr.S: New file.
32403         * sysdeps/x86_64/wcsrchr.S: New file.
32404         * string/test-strcmp.c: Remove checking of wcscmp function for
32405         wrong alignments.
32406         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
32407         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
32408         wcsrchr-sse2 wcsrchr-c.
32409         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
32410         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
32411         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
32412         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
32413         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
32414         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
32415         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
32416         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
32417         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
32418         * wcsmbc/wcschr.c (WCSCHR): New macro.
32419
32420 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32421
32422         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
32423         * wcsmbs/test-wcsrchr.c: New file.
32424         * string/test-strrchr.c: Add wcsrchr support.
32425         (WIDE): New macro.
32426         * wcsmbs/test-wcscpy.c: New file.
32427         * string/test-strcpy.c: Add wcscpy support.
32428         (WIDE): New macro.
32429
32430 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
32431
32432         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
32433         the inner loop.
32434
32435 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
32436
32437         [BZ #13472]
32438         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
32439
32440 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
32441
32442         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
32443         Minor optimizations.
32444
32445         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
32446         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
32447         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32448
32449 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
32450
32451         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
32452         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
32453         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
32454         for gcc to avoid warnings.
32455         * inet/Makefile (tests): Add tst-checks.
32456         * inet/tst-checks.c: New file.
32457
32458         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
32459         warning.
32460
32461         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
32462         __wmemcmp_sse2.
32463
32464         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
32465         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
32466
32467         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
32468
32469 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
32470
32471         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
32472         problem.
32473
32474         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
32475
32476 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
32477
32478         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
32479         conditional on GCC version.
32480         (__arch_compare_and_exchange_val_8_acq)
32481         (__arch_compare_and_exchange_val_16_acq)
32482         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
32483         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
32484         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
32485
32486 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
32487
32488         * sysdeps/sh/backtrace.c: New file.
32489
32490 2011-12-02  Andreas Schwab  <schwab@redhat.com>
32491
32492         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
32493         parenthesis.
32494
32495 2011-12-01  Andreas Schwab  <schwab@redhat.com>
32496
32497         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
32498         falling back to utime.
32499
32500 2011-11-30  Andreas Schwab  <schwab@redhat.com>
32501
32502         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
32503         expectations for float.
32504
32505 2011-11-29  Andreas Schwab  <schwab@redhat.com>
32506
32507         * locale/weight.h (findidx): Add parameter len.
32508         * locale/weightwc.h (findidx): Likewise.
32509         * posix/fnmatch_loop.c (FCT): Adjust caller.
32510         * posix/regcomp.c (build_equiv_class): Likewise.
32511         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
32512         * posix/regexec.c (check_node_accept_bytes): Likewise.
32513         * string/strcoll_l.c (STRCOLL): Likewise.
32514         * string/strxfrm_l.c (STRXFRM): Likewise.
32515
32516 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
32517
32518         * Makefile.in: Remove CVSOPT handling.
32519         * configure.in: Remove use of AC_REVISION.
32520         * iconvdata/Makefile (distribute): No need to filter out CVS.
32521         * scripts/list-sources.sh: Remove CVS, subversion and monotone
32522         handling.
32523
32524 2011-11-16  Andreas Schwab  <schwab@redhat.com>
32525
32526         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
32527         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
32528         [USE_AS_STRNCASECMP_L]: Likewise.
32529         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
32530         NO_TLS_DIRECT_SEG_REFS.
32531         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
32532         Fix argument offsets for non-PIC.
32533         [USE_AS_STRNCASECMP_L]: Likewise.
32534         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
32535         NO_TLS_DIRECT_SEG_REFS.
32536
32537 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32538
32539         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
32540         O_CLOEXEC.
32541         * locale/loadlocale.c (_nl_load_locale): Likewise.
32542
32543 2011-11-15  Andreas Schwab  <schwab@redhat.com>
32544
32545         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
32546         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
32547         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
32548         (SYSCALL_GETTIME): Set errno on error.
32549
32550         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
32551         count references to noai6ai_cached.
32552
32553 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
32554
32555         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
32556
32557         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
32558         FD_CLOEXEC for /proc/self/maps.
32559
32560         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
32561         FD_CLOEXEC for /proc/meminfo.
32562
32563         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
32564         gai.conf.
32565
32566         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
32567         FD_CLOEXEC for given file.
32568
32569         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
32570
32571         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
32572         FD_CLOEXEC for /etc/hosts.
32573         (_gethtent): Likewise.
32574
32575         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
32576
32577         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
32578         cancellation and set FD_CLOEXEC for /etc/netgroup.
32579
32580         * nss/nss_files/files-key.c (search): Don't allow cancellation when
32581         reading /etc/publickey.
32582
32583         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
32584         allow cancellation when reading /etc/group.
32585
32586         * nss/nss_files/files-alias.c (internal_setent): Don't allow
32587         cancellation.
32588         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
32589
32590         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
32591         when using data file.
32592
32593         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
32594
32595         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
32596         (write_nis_obj): Use "c" and "e" in fopen.
32597
32598         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
32599
32600         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
32601
32602         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
32603
32604         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
32605
32606         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
32607         locale.alias.
32608
32609         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
32610
32611         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
32612
32613         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
32614
32615         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
32616         file parsing and set FD_CLOEXEC.
32617
32618 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32619
32620         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
32621
32622 2011-11-14  Andreas Schwab  <schwab@redhat.com>
32623
32624         * malloc/arena.c (arena_get2): Don't call reused_arena when
32625         _int_new_arena failed.
32626
32627 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
32628
32629         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
32630         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
32631         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
32632         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32633         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32634         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
32635         to compile strcasecmp and strncasecmp.
32636         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
32637         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
32638
32639         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
32640
32641 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
32642
32643         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
32644         locale-defines.sym to gen-as-const-headers.
32645         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
32646         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
32647         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
32648         to compile strcasecmp and strncasecmp.
32649         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
32650         strcasecmp_l and strncasecmp_l.
32651         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
32652         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
32653         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
32654         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
32655         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
32656         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
32657         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
32658         * sysdeps/i386/i686/multiarch/strncase.S: New file.
32659         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
32660         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
32661         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
32662
32663 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
32664
32665         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
32666         result of SYSDEP_GETTIME_CPU to retval.
32667         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
32668         parameter list to macro.  Remove trailing semicolon.  Adjust users.
32669
32670         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
32671         variable.
32672
32673         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
32674         mantissa words.
32675         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32676
32677         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
32678         from unused variable.
32679
32680         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
32681         DWARF definitions.
32682         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
32683         for assembling.
32684
32685         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
32686         over namespaces.
32687
32688         * sunrpc/rpc_prot.c (rejected): Fix case value.
32689
32690         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
32691         unsigned long long int to avoid warnings in shift.
32692
32693         * posix/regex_internal.c (re_string_reconstruct): Actually use result
32694         of use of trans.
32695         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
32696         variable tmp.
32697
32698         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
32699         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
32700         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
32701
32702         * nis/nis_table.c (nis_list): Use variable of correct type for
32703         result of __follow_path call.
32704
32705 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32706
32707         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
32708         of math functions ceil, trunc, floor, round, and sqrt, when
32709         avaliable on the platform.
32710         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
32711         name clash.
32712         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32713         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32714         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32715
32716 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
32717
32718         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
32719         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
32720
32721 2011-11-11  Roland McGrath  <roland@hack.frob.com>
32722
32723         * include/unistd.h: Fix __readlink return type.
32724         Reported by Chris Metcalf <cmetcalf@tilera.com>.
32725
32726 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
32727
32728         * stdlib/ucontext.h: Undo last change for makecontext.
32729
32730 2011-11-11  Andreas Schwab  <schwab@redhat.com>
32731
32732         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
32733
32734         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
32735         * setjmp/setjmp.h: Mark functions as non-leaf.
32736         * setjmp/bits/setjmp2.h: Likewise.
32737         * stdlib/ucontext.h: Likewise.
32738
32739 2011-11-10  Andreas Schwab  <schwab@redhat.com>
32740
32741         * malloc/arena.c (_int_new_arena): Don't increment narenas.
32742         (reused_arena): Don't check arena limit.
32743         (arena_get2): Atomically check arena limit.
32744
32745 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
32746
32747         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
32748         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
32749
32750         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
32751         instructions.
32752
32753 2011-11-07  Andreas Schwab  <schwab@redhat.com>
32754
32755         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
32756         handler when locking.
32757
32758         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
32759         Fix size of allocated buffer.
32760
32761 2011-11-04  Andreas Schwab  <schwab@redhat.com>
32762
32763         [BZ #10103]
32764         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
32765         declarations for long double functions.
32766         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
32767
32768         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
32769
32770 2011-11-03  Andreas Schwab  <schwab@redhat.com>
32771
32772         * nscd/nscd.c (main): Don't start AVC thread until credentials are
32773         installed.
32774
32775         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
32776         is disabled.
32777
32778 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32779
32780         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
32781
32782 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
32783
32784         * include/alloca.h (stackinfo_alloca_round): Define.
32785         (extend_alloca): Use it.
32786         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
32787         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
32788         here.
32789
32790         * scripts/check-local-headers.sh: Ignore libaudit.h.
32791
32792         * nscd/Makefile (extra-objs): Make recursively expanded.
32793
32794 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
32795
32796         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
32797         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
32798
32799         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
32800         * posix/tst-rfc3484-2.c: Likewise.
32801         * posix/tst-rfc3484-3.c: Likewise.
32802
32803         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
32804         process_vm_writev.
32805         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
32806         process_vm_writev.
32807         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
32808         process_vm_writev from libc using GLIBC_2.15 version.
32809
32810         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
32811
32812 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
32813
32814         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
32815         stack usage.
32816
32817 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
32818
32819         [BZ #13367]
32820         * nss/getent.c (initgroups_keys): Show error message in case no group
32821         names are given.
32822
32823         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
32824         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
32825         __bump_nl_timestamp.
32826         * nscd/connections (nscd_init): When host database is served open
32827         netlink socket and request notification about configuration changes.
32828         (main_loop_poll): Track netlink file descriptor and bump timestamp
32829         in case data becomes available.
32830         (main_loop_epoll): Likewise.
32831         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
32832         (database_pers_head): Add extra_data fileds.
32833         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
32834         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
32835         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
32836         Adjust caller.
32837         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
32838         in6ai data, call __free_in6ai.
32839         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
32840         Add -DHAVE_NETLINK.
32841         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
32842         interface information.  Reuse previous data if netlink timestamp
32843         is not changed.
32844         (__bump_nl_timestamp): New function.
32845         (__free_in6ai): New function.
32846
32847 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
32848
32849         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
32850         close_not_cancel_no_status here.
32851         (__check_pf): Reorganize code a bit to not call close twice if OOM.
32852
32853 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32854
32855         [BZ #13276]
32856         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
32857         return value.
32858
32859         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
32860         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
32861         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
32862
32863 2011-07-03  Andreas Jaeger  <aj@suse.de>
32864
32865         [BZ #10709]
32866         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
32867         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
32868         * math/libm-test.inc (sin_test): Add test case.
32869
32870 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
32871
32872         [BZ #13337]
32873         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
32874         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32875
32876         * elf/chroot_canon.c (chroot_canon): Cleanups.
32877
32878         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
32879
32880         [BZ #13335]
32881         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
32882         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
32883
32884         * string/test-strchr.c: Make usable for strchrnul testing.
32885         * string/test-strchrnul.c: New file.
32886         * string/Makefile (strop-tests): Add strchrnul.
32887
32888         * po/it.po: Update from translation team.
32889         * po/es.po: Likewise.
32890
32891 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
32892
32893         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
32894         the three constants needed as parameters.  Drop the others.
32895         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
32896         __m128i_strloadu_tolower.
32897         Create and initialize variable zero and use it in all the places
32898         where _mm_setzero_si128 was used.
32899
32900         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
32901         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
32902         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
32903         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
32904         anymore.
32905         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
32906         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
32907         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
32908         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
32909         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
32910         __mpranred, __mptan.
32911         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
32912         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
32913         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
32914         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
32915         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
32916         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
32917         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
32918         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
32919         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
32920
32921 2011-10-28  Andreas Schwab  <schwab@redhat.com>
32922
32923         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
32924         redefine if SHARED.
32925         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
32926
32927         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
32928         wide char related routines to wcsmbs subdir.
32929
32930 2011-10-27  Andreas Schwab  <schwab@redhat.com>
32931
32932         [BZ #13344]
32933         * misc/sys/cdefs.h (__THROWNL): Define.
32934         * posix/unistd.h: Use __THREADNL instead of __THREAD
32935         for memory synchronization functions.
32936
32937 2011-10-26  Roland McGrath  <roland@hack.frob.com>
32938
32939         [BZ #13349]
32940         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
32941         doesn't exist.
32942         * manual/stdio.texi (Obstack Streams): Node removed.
32943
32944 2011-10-26  Andreas Schwab  <schwab@redhat.com>
32945
32946         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
32947         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
32948         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
32949
32950         * math/math_private.h (math_force_eval): Allow non-addressable
32951         arguments.
32952         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
32953
32954 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
32955
32956         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
32957         file is not needed.
32958
32959         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
32960         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32961         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32962         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32963         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32964         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32965         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32966         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
32967         Add AVX variants.
32968         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
32969         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
32970         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
32971         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
32972         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
32973         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
32974         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
32975         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
32976         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
32977         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
32978         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
32979         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
32980         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
32981         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
32982         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
32983         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
32984         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
32985         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
32986         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
32987
32988         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
32989         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
32990
32991         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
32992         place.  Use VEX encoding when compiling for AVX.
32993
32994 2011-10-25  Andreas Schwab  <schwab@redhat.com>
32995
32996         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
32997         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
32998
32999         * string/test-strchr.c (do_test): Don't generate NUL bytes.
33000
33001 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
33002
33003         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
33004         useless if() expression.
33005         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33006         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
33007         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
33008         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33009         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
33010         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
33011         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33012         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33013         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
33014         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33015         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33016         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33017         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
33018         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33019         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
33020         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
33021         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33022         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33023         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
33024
33025         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
33026
33027 2011-10-25  Andreas Schwab  <schwab@redhat.com>
33028
33029         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
33030         condition.
33031         * elf/dl-fini.c (_dl_sort_fini): Likewise.
33032
33033 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
33034
33035         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
33036         .text section.  Avoid duplicate constants.
33037         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
33038         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33039         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33040         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33041         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33042         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33043         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33044         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33045         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
33046         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
33047         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
33048         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
33049         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
33050         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
33051         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
33052         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
33053         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
33054         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
33055         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
33056         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33057         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
33058         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
33059         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
33060         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
33061         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
33062         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
33063         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
33064         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
33065         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
33066         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
33067         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
33068         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
33069         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
33070         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
33071         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
33072         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
33073         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
33074         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
33075         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
33076         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
33077         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
33078         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
33079         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
33080         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
33081         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
33082
33083 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
33084
33085         * sysdeps/x86_64/dla.h: Move to ...
33086         * sysdeps/x86_64/fpu/dla.h: ...here.
33087         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
33088         situations.  Use __builtin_fma only for gcc 4.6 and up.
33089
33090         * config.make.in: Add have-mfma4 entry.
33091         * configure.in: Substitute libc_cv_cc_fma4.
33092         * math/Makefile (dbl-only-routines): Add sincostab.
33093         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
33094         Use __sincostab not sincos.
33095         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
33096         name is a macro.
33097         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33098         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33099         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33100         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
33101         using __copysign.
33102         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
33103         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
33104         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
33105         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
33106         and __inv.
33107         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
33108         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
33109         __copysign.
33110         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
33111         define aliases when function name is a macro.
33112         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
33113         sysdeps/ieee754/dbl-64/sincos.tbl.
33114         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
33115         fma4-enabled routines.
33116         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
33117         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
33118         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
33119         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
33120         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
33121         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
33122         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
33123         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
33124         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
33125         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
33126         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
33127         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
33128         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
33129         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
33130         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
33131         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
33132         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
33133         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
33134         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
33135         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
33136         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
33137         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
33138         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
33139         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
33140         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
33141         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
33142         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
33143         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
33144         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
33145         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
33146
33147         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
33148         rename.
33149         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33150         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33151         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33152         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33153         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33154         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33155         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33156         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33157
33158 2011-10-24  Andreas Schwab  <schwab@redhat.com>
33159
33160         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
33161
33162 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33163
33164         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
33165
33166         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
33167         prediction.
33168         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
33169
33170         * string/strnlen.c: Don't define STRNLEN, reverse logic.
33171         Remove unused variable magic_bits.
33172         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
33173
33174         * string/strnlen.c: Define and use STRNLEN macro.
33175         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
33176         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
33177         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
33178         * wcsmbs/wcslen.c: Define and use WCSLEN.
33179         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
33180         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
33181         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
33182         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
33183         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
33184         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
33185         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
33186
33187 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33188
33189         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33190         strnlen-sse2-no-bsf.
33191         Rename strlen-no-bsf to strlen-sse2-no-bsf.
33192         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
33193         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
33194         Add strnlen support.
33195         (USE_AS_STRNLEN): New macro.
33196         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
33197         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
33198         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
33199         * sysdeps/x86_64/wcslen.S: New file.
33200
33201 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
33202
33203         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
33204         XMM-moves are used for copying on small sizes.
33205
33206 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33207
33208         * wcsmbs/Makefile (strop-tests): Add wcschr.
33209         * wcsmbs/test-wcschr.c: New file.
33210         * string/test-strchr.c: Update.
33211         Add wcschr support.
33212         (WIDE): New macro.
33213
33214 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33215
33216         * wcsmbs/Makefile (strop-tests): Add wcslen.
33217         * wcsmbs/test-wcslen.c: New file.
33218         * string/test-strlen.c: Update.
33219         Add wcslen support.
33220         (WIDE): New macro.
33221
33222 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33223
33224         * po/it.po: Update from translation team.
33225
33226 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33227
33228         * sysdeps/x86_64/wcscmp.S: Update.
33229         Fix wrong comparison semantics.
33230         wcscmp shall use signed comparison not unsigned.
33231         Don't use substraction to avoid overflow bug.
33232         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
33233         * wcsmbc/wcscmp.c: Likewise.
33234         * string/test-strcmp.c: Likewise.
33235         Add new tests to check cases with negative values.
33236
33237 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
33238
33239         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
33240         * sysdeps/x86_64/dla.h: ...here.  New file.
33241         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
33242         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33243         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33244         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33245         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33246         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33247         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33248         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33249         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33250
33251 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
33252
33253         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
33254         __ynl_finite aliases.
33255
33256 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33257
33258         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33259
33260         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
33261         define DLA_FMA.
33262         [DLA_FMA] (EMULV): Use DLA_FMA.
33263         [DLA_FMA] (MUL12): Use EMULV.
33264         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
33265         that are not needed.
33266         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
33267         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33268         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33269         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33270         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33271         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
33272         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
33273
33274 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
33275
33276         * math/s_nan.c: Undef __nan.
33277         * math/s_nanf.c: Undef __nanf.
33278         * math/s_nanl.c: Undef __nanl.
33279         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
33280         "math_private.h".
33281
33282 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
33283
33284         * math/s_catan.c: Add branch predictions.
33285         * math/s_catanf.c: Likewise.
33286         * math/s_catanh.c: Likewise.
33287         * math/s_catanhf.c: Likewise.
33288         * math/s_catanhl.c: Likewise.
33289         * math/s_catanl.c: Likewise.
33290         * math/s_cexp.c: Likewise.
33291         * math/s_cexpf.c: Likewise.
33292         * math/s_cexpl.c: Likewise.
33293         * math/s_clog.c: Likewise.
33294         * math/s_clog10.c: Likewise.
33295         * math/s_clog10f.c: Likewise.
33296         * math/s_clog10l.c: Likewise.
33297         * math/s_clogf.c: Likewise.
33298         * math/s_clogl.c: Likewise.
33299         * math/s_csqrt.c: Likewise.
33300         * math/s_csqrtf.c: Likewise.
33301         * math/s_csqrtl.c: Likewise.
33302         * math/s_ctanf.c: Likewise.
33303         * math/s_ctanh.c: Likewise.
33304         * math/s_ctanhf.c: Likewise.
33305         * math/s_ctanhl.c: Likewise.
33306         * math/s_ctanl.c: Likewise.
33307
33308         * math/math_private.h: Define __nan, __nanf, __nanl.
33309         * math/s_cacosh.c: Include <math_private.h>.
33310         * math/s_cacoshl.c: Likewise.
33311         * math/s_casinh.c: Likewise.
33312         * math/s_casinhf.c: Likewise.
33313         * math/s_casinhl.c: Likewise.
33314         * math/s_ccos.c: Rely entire on ccosh.
33315         * math/s_ccosf.c: Rely entire on ccoshf.
33316         * math/s_ccosl.c: Rely entirely on ccoshl.
33317         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
33318         Remove tests for FE_INVALID.
33319         * math/s_ccoshf.c: Likewise.
33320         * math/s_ccoshl.c: Likewise.
33321         * math/s_csin.c: Likewise.
33322         * math/s_csinf.c: Likewise.
33323         * math/s_csinh.c Likewise.
33324         * math/s_csinhf.c: Likewise.
33325         * math/s_csinhl.c: Likewise.
33326         * math/s_csinl.c: Likewise.
33327         * math/s_ctan.c: Likewise.
33328         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
33329         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
33330         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
33331
33332 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
33333
33334         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
33335         compilation problems.
33336
33337         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
33338         __builtin_expect.
33339
33340 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
33341
33342         * sysdeps/i386/configure.in: Test for -mfma4 option.
33343         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
33344         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
33345         COMMON_CPUID_INDEX_80000001.
33346         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
33347         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
33348         use it if FMA3 is not supported.
33349         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
33350
33351         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
33352         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33353
33354 2011-10-20  Andreas Schwab  <schwab@redhat.com>
33355
33356         [BZ #12892]
33357         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
33358         it would create a cycle with a link time dependency.
33359
33360 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
33361
33362         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
33363         instruction.
33364         * string/Makefile (strop-tests): Add rawmemchr.
33365         * string/test-rawmemchr.c: New file.
33366
33367         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
33368         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
33369         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
33370         when compiling str{,n}casecmp and when AVX is available.  Hook up
33371         new optimized code in initializers.
33372
33373 2011-10-19  Andreas Schwab  <schwab@redhat.com>
33374
33375         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
33376         __feraiseexcept instead of feraiseexcept.
33377
33378 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
33379
33380         * math/math_private.h: Define defaults for libc_fetestexcept and
33381         libc_feupdateenv.
33382         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
33383         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
33384         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33385         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33386         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
33387         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33388         libc_fetestexcept and libc_feupdateenv.
33389
33390         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
33391         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
33392         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
33393         * sysdeps/x86_64/fpu/math_private.h: Define special version of
33394         libc_feholdexcept_setround.
33395
33396         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
33397         Add s_nearbyint-c and s_nearbyintf-c.
33398         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
33399         nearbyintf inlines.
33400         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
33401         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
33402         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
33403         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
33404
33405         * math/math_private.h: Define defaults for libc_fegetround,
33406         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
33407         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
33408         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
33409         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
33410         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
33411         standard functions.
33412         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33413         Remove comments and hacks for old compiler versions.
33414         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
33415         libc_fegetround, libc_fesetround, libc_feholdexcept, and
33416         libc_feholdexceptl.
33417
33418 2011-10-18  Andreas Schwab  <schwab@redhat.com>
33419
33420         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
33421         (__feraiseexcept_renamed): Add __NTH.
33422         (feraiseexcept): Add __NTH.  Rename local variables to fix
33423         namespace violations.
33424
33425 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
33426
33427         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
33428
33429         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
33430
33431         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
33432         recently added interfaces.
33433         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33434
33435         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
33436         about macro parameter expansion.
33437
33438         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
33439         __NO_MATH_INLINES is defined.  Cleanups.
33440
33441         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
33442         and __floorf is target has SSE4.1.
33443         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
33444         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
33445         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
33446         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
33447
33448         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
33449         name.
33450         (floorf): Likewise.
33451
33452         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
33453
33454 2011-10-17  Andreas Schwab  <schwab@redhat.com>
33455
33456         * misc/sys/cdefs.h: Fix last change.
33457
33458         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
33459         database lookup.
33460
33461 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
33462
33463         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
33464
33465         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
33466         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
33467         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
33468         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
33469         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
33470         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
33471         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
33472         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
33473         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
33474         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
33475         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
33476         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
33477         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
33478         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
33479         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
33480         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
33481         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
33482         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
33483         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
33484         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
33485         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
33486         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
33487
33488         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
33489         ceil, ceilf, floor, floorf.
33490
33491         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
33492         Perform IRELATIVE relocations last.
33493
33494         * elf/do-rel.h: Add another parameter nrelative, replacing the
33495         local variable with the same name.  Change name of the function
33496         to end in Rel or Rela (uppercase).
33497         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
33498         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
33499         elf_dynamic_do_##reloc function.
33500
33501 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33502
33503         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
33504         is sufficient, at least on modern CPUs.
33505
33506         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
33507
33508         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
33509         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
33510
33511         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
33512         __expl_finite.
33513         * math/bits/math-finite.h: Add entries for exp.
33514         * math/e_expl.c: Add __*_finite alias.
33515         * sysdeps/i386/fpu/e_exp.S: Likewise.
33516         * sysdeps/i386/fpu/e_expf.S: Likewise.
33517         * sysdeps/i386/fpu/e_expl.c: Likewise.
33518         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
33519         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
33520         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
33521         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
33522         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
33523         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
33524         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
33525
33526         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
33527         is sufficient, at least on modern CPUs.
33528
33529         * ctype/ctype-info.c (__ctype_init): Define.
33530         * include/ctype.h (__ctype_init): Declare.
33531         (__ctype_b_loc): The variable is always initialized.
33532         (__ctype_toupper_loc): Likewise.
33533         (__ctype_tolower_loc): Likewise.
33534         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
33535         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
33536
33537 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
33538
33539         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
33540
33541         * configure.in: Also look in $cxxmachine/include for C++ system
33542         headers.
33543
33544 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33545
33546         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
33547         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
33548         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
33549         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
33550         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
33551         (USE_AS_WMEMCMP): New macro.
33552         Fixing indents.
33553         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
33554         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
33555         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
33556         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
33557         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33558         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
33559         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
33560         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
33561         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
33562         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
33563         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
33564         (USE_AS_WMEMCMP): New macro.
33565         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
33566         * sysdeps/string/test-memcmp.c: Update.
33567         Fix simple_wmemcmp.
33568         Add new tests.
33569         * wcsmbs/wmemcmp.c: Update.
33570         (WMEMCMP): New macro.
33571         Fix overflow bug.
33572
33573 2011-10-12  Andreas Jaeger  <aj@suse.de>
33574
33575         [BZ #13268]
33576         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
33577
33578 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
33579
33580         * libio/iofwide.c (do_length): Avoid warning.
33581
33582         * ctype/ctype.h (__isctype_f): Add missing __THROW.
33583
33584 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
33585
33586         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
33587
33588         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
33589         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
33590         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
33591         * sysdeps/i386/i686/fpu/e_log.S: New file.
33592         * sysdeps/i386/i686/fpu/e_logf.S: New file.
33593         * sysdeps/i386/i686/fpu/e_logl.S: New file.
33594
33595         * ctype/ctype.h: Add support for inlined isXXX functions when
33596         compiling C++ code.
33597
33598 2011-10-14  Andreas Schwab  <schwab@redhat.com>
33599
33600         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33601
33602         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
33603
33604 2011-10-13  Roland McGrath  <roland@hack.frob.com>
33605
33606         [BZ #13291]
33607         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
33608
33609 2011-10-13  Andreas Schwab  <schwab@redhat.com>
33610
33611         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
33612         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
33613         feraiseexcept.
33614
33615         * sysdeps/x86_64/memrchr.S: Check for zero size.
33616
33617         * string/stratcliff.c: Add memrchr tests.
33618
33619 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33620
33621         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33622         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
33623         rawmemchr-sse2 rawmemchr-sse2-bsf.
33624         * sysdeps/i386/i686/multiarch/memchr.S: New file.
33625         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
33626         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
33627         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
33628         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
33629         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
33630         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
33631         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
33632         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
33633         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
33634         * string/memrchr.c (MEMRCHR): New macro.
33635
33636 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
33637
33638         Add integration with gcc's -ffinite-math-only and optimize wrapper
33639         functions in libm.
33640         * Versions.def: Define GLIBC_2.15 version for libm.
33641         * math/Makefile (headers): Add bits/math-finite.h.
33642         * math/bits/math-finite.h: New file.
33643         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
33644         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
33645         * math/e_acoshl.c: Add __*_finite alias.
33646         * math/e_acosl.c: Likewise.
33647         * math/e_asinl.c: Likewise.
33648         * math/e_atan2l.c: Likewise.
33649         * math/e_atanhl.c: Likewise.
33650         * math/e_coshl.c: Likewise.
33651         * math/e_exp10.c: Likewise.
33652         * math/e_exp10f.c: Likewise.
33653         * math/e_exp10l.c: Likewise.
33654         * math/e_exp2l.c: Likewise.
33655         * math/e_fmodl.c: Likewise.
33656         * math/e_gammal_r.c: Likewise.
33657         * math/e_hypotl.c: Likewise.
33658         * math/e_j0l.c: Likewise.
33659         * math/e_j1l.c: Likewise.
33660         * math/e_jnl.c: Likewise.
33661         * math/e_lgammal_r.c: Likewise.
33662         * math/e_log10l.c: Likewise.
33663         * math/e_log2l.c: Likewise.
33664         * math/e_logl.c: Likewise.
33665         * math/e_powl.c: Likewise.
33666         * math/e_sinhl.c: Likewise.
33667         * math/e_sqrtl.c: Likewise.
33668         * math/e_scalb.c: Completely rewritten and optimized.
33669         * math/e_scalbf.c: Likewise.
33670         * math/e_scalbl.c: Likewise.
33671         * math/w_acos.c: Likewise.
33672         * math/w_acosf.c: Likewise.
33673         * math/w_acosl.c: Likewise.
33674         * math/w_acosh.c: Likewise.
33675         * math/w_acoshf.c: Likewise.
33676         * math/w_acoshl.c: Likewise.
33677         * math/w_asin.c: Likewise.
33678         * math/w_asinf.c: Likewise.
33679         * math/w_asinl.c: Likewise.
33680         * math/w_atan2.c: Likewise.
33681         * math/w_atan2f.c: Likewise.
33682         * math/w_atan2l.c: Likewise.
33683         * math/w_atanh.c: Likewise.
33684         * math/w_atanhf.c: Likewise.
33685         * math/w_atanhl.c: Likewise.
33686         * math/w_exp10.c: Likewise.
33687         * math/w_exp10f.c: Likewise.
33688         * math/w_exp10l.c: Likewise.
33689         * math/w_fmod.c: Likewise.
33690         * math/w_fmodf.c: Likewise.
33691         * math/w_fmodl.c: Likewise.
33692         * math/w_j0.c: Likewise.
33693         * math/w_j0f.c: Likewise.
33694         * math/w_j0l.c: Likewise.
33695         * math/w_j1.c: Likewise.
33696         * math/w_j1f.c: Likewise.
33697         * math/w_j1l.c: Likewise.
33698         * math/w_jn.c: Likewise.
33699         * math/w_jnf.c: Likewise.
33700         * math/w_log.c: Likewise.
33701         * math/w_logf.c: Likewise.
33702         * math/w_logl.c: Likewise.
33703         * math/w_log10.c: Likewise.
33704         * math/w_log10f.c: Likewise.
33705         * math/w_log10l.c: Likewise.
33706         * math/w_log2.c: Likewise.
33707         * math/w_log2f.c: Likewise.
33708         * math/w_log2l.c: Likewise.
33709         * math/w_pow.c: Likewise.
33710         * math/w_powf.c: Likewise.
33711         * math/w_powl.c: Likewise.
33712         * math/w_remainder.c: Likewise.
33713         * math/w_remainderf.c: Likewise.
33714         * math/w_remainderl.c: Likewise.
33715         * math/w_scalb.c: Likewise.
33716         * math/w_scalbf.c: Likewise.
33717         * math/w_scalbl.c: Likewise.
33718         * math/w_sqrt.c: Likewise.
33719         * math/w_sqrtf.c: Likewise.
33720         * math/w_sqrtl.c: Likewise.
33721         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
33722         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
33723         used.
33724         * math/math_private.h: Declare __kernel_standard_f.
33725         * math/w_cosh.c: Remove cruft and optimize a bit.
33726         * math/w_coshf.c: Likewise.
33727         * math/w_coshl.c: Likewise.
33728         * math/w_exp2.c: Likewise.
33729         * math/w_exp2f.c: Likewise.
33730         * math/w_exp2l.c: Likewise.
33731         * math/w_hypot.c: Likewise.
33732         * math/w_hypotf.c: Likewise.
33733         * math/w_hypotl.c: Likewise.
33734         * math/w_lgamma.c: Likewise.
33735         * math/w_lgamma_r.c: Likewise.
33736         * math/w_lgammaf.c: Likewise.
33737         * math/w_lgammaf_r.c: Likewise.
33738         * math/w_lgammal.c: Likewise.
33739         * math/w_lgammal_r.c: Likewise.
33740         * math/w_sinh.c: Likewise.
33741         * math/w_sinhf.c: Likewise.
33742         * math/w_sinhl.c: Likewise.
33743         * math/w_tgamma.c: Likewise.
33744         * math/w_tgammaf.c: Likewise.
33745         * math/w_tgammal.c: Likewise.
33746         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
33747         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
33748         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
33749         Minor optimizations.  Pretty printing.  Remove cruft.
33750         * sysdeps/i386/fpu/e_acosf.S: Likewise.
33751         * sysdeps/i386/fpu/e_acosh.S: Likewise.
33752         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
33753         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
33754         * sysdeps/i386/fpu/e_acosl.c: Likewise.
33755         * sysdeps/i386/fpu/e_asin.S: Likewise.
33756         * sysdeps/i386/fpu/e_asinf.S: Likewise.
33757         * sysdeps/i386/fpu/e_atan2.S: Likewise.
33758         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
33759         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
33760         * sysdeps/i386/fpu/e_atanh.S: Likewise.
33761         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
33762         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
33763         * sysdeps/i386/fpu/e_exp10.S: Likewise.
33764         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
33765         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
33766         * sysdeps/i386/fpu/e_exp2.S: Likewise.
33767         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
33768         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
33769         * sysdeps/i386/fpu/e_fmod.S: Likewise.
33770         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
33771         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
33772         * sysdeps/i386/fpu/e_hypot.S: Likewise.
33773         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
33774         * sysdeps/i386/fpu/e_log.S: Likewise.
33775         * sysdeps/i386/fpu/e_log10.S: Likewise.
33776         * sysdeps/i386/fpu/e_log10f.S: Likewise.
33777         * sysdeps/i386/fpu/e_log10l.S: Likewise.
33778         * sysdeps/i386/fpu/e_log2.S: Likewise.
33779         * sysdeps/i386/fpu/e_log2f.S: Likewise.
33780         * sysdeps/i386/fpu/e_log2l.S: Likewise.
33781         * sysdeps/i386/fpu/e_logf.S: Likewise.
33782         * sysdeps/i386/fpu/e_logl.S: Likewise.
33783         * sysdeps/i386/fpu/e_pow.S: Likewise.
33784         * sysdeps/i386/fpu/e_powf.S: Likewise.
33785         * sysdeps/i386/fpu/e_powl.S: Likewise.
33786         * sysdeps/i386/fpu/e_remainder.S: Likewise.
33787         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
33788         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
33789         * sysdeps/i386/fpu/e_scalb.S: Likewise.
33790         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
33791         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
33792         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
33793         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
33794         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
33795         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
33796         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
33797         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
33798         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
33799         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
33800         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
33801         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
33802         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
33803         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
33804         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
33805         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
33806         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
33807         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
33808         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
33809         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
33810         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
33811         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
33812         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
33813         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
33814         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
33815         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
33816         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
33817         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
33818         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
33819         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
33820         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
33821         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
33822         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
33823         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
33824         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
33825         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
33826         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
33827         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33828         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
33829         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
33830         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
33831         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
33832         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
33833         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
33834         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
33835         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
33836         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
33837         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
33838         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
33839         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
33840         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
33841         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
33842         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
33843         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
33844         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
33845         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
33846         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
33847         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
33848         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33849         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
33850         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
33851         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
33852         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
33853         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
33854         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
33855         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
33856         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
33857         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
33858         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
33859         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
33860         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
33861         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
33862         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
33863         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
33864         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
33865         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
33866         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
33867         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
33868         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
33869         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
33870         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
33871         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
33872         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
33873         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
33874         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
33875         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
33876         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
33877         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
33878         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
33879         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
33880         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
33881         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33882         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
33883         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
33884         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
33885         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
33886         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
33887         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
33888         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
33889         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
33890         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
33891         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
33892         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
33893         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
33894         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
33895         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
33896         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
33897         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
33898         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
33899         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
33900         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
33901         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
33902         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
33903         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
33904         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
33905         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
33906         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
33907         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
33908         (__isnanf): Likewise.
33909         (__isinf_ns): Likewise.
33910         (__isinf_nsf): Likewise.
33911         (__finite): Likewise.
33912         (__finitef): Likewise.
33913         (__ieee754_sqrt): Define as macro.
33914         (__ieee754_sqrtf): Define as macro.
33915         (__ieee754_sqrtl): Define as macro.
33916         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
33917         inlined copy.
33918         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
33919         __FINITE_MATH_ONLY__ consistent.
33920         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
33921
33922 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
33923
33924         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
33925         of rawmemchr.
33926
33927         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
33928
33929 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
33930
33931         * po/ja.po: Update from translation team.
33932
33933 2011-10-08  Roland McGrath  <roland@hack.frob.com>
33934
33935         * locale/programs/locarchive.c (prepare_address_space): New function.
33936         (create_archive, enlarge_archive, open_archive): Use it.
33937
33938         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
33939         inside [SHARED], where it is used.
33940
33941         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
33942
33943         * nss/getent.c (netgroup_keys): Remove unused variable.
33944         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
33945
33946 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
33947
33948         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
33949         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
33950         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
33951         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
33952         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
33953         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
33954         * math/Makefile (libm-calls): Add s_isinf_ns.
33955         * math/divtc3.c: Use __isinf_nsl instead of isinf.
33956         * math/multc3.c: Likewise.
33957         * math/s_casin.c: Likewise.
33958         * math/s_casinf.c: Likewise.
33959         * math/s_casinl.c: Likewise.
33960         * math/s_ccos.c: Likewise.
33961         * math/s_ccosf.c: Likewise.
33962         * math/s_ccosl.c: Likewise.
33963         * math/s_ctan.c: Likewise.
33964         * math/s_ctanf.c: Likewise.
33965         * math/s_ctanh.c: Likewise.
33966         * math/s_ctanhf.c: Likewise.
33967         * math/s_ctanhl.c: Likewise.
33968         * math/s_ctanl.c: Likewise.
33969         * math/w_fmod.c: Likewise.
33970         * math/w_fmodf.c: Likewise.
33971         * math/w_fmodl.c: Likewise.
33972         * math/w_remainder.c: Likewise.
33973         * math/w_remainderf.c: Likewise.
33974         * math/w_remainderl.c: Likewise.
33975         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
33976         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
33977         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
33978         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
33979         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
33980         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
33981         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
33982         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
33983
33984         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
33985         of the number.
33986         * stdio-common/printf_fphex.c: Likewise.
33987         * stdio-common/printf_size.c: Likewise.
33988
33989         * math/e_exp10.c: Include math_private.h using <...> not "...".
33990         * math/e_exp10f.c: Likewise.
33991         * math/e_exp10l.c: Likewise.
33992         * math/e_exp2l.c: Likewise.
33993         * math/e_j0l.c: Likewise.
33994         * math/e_j1l.c: Likewise.
33995         * math/e_jnl.c: Likewise.
33996         * math/e_lgammal_r.c: Likewise.
33997         * math/e_rem_pio2l.c: Likewise.
33998         * math/e_scalb.c: Likewise.
33999         * math/e_scalbf.c: Likewise.
34000         * math/e_scalbl.c: Likewise.
34001         * math/k_cosl.c: Likewise.
34002         * math/k_sinl.c: Likewise.
34003         * math/k_tanl.c: Likewise.
34004         * math/s_cacoshf.c: Likewise.
34005         * math/s_catan.c: Likewise.
34006         * math/s_catanf.c: Likewise.
34007         * math/s_catanh.c: Likewise.
34008         * math/s_catanhf.c: Likewise.
34009         * math/s_catanhl.c: Likewise.
34010         * math/s_catanl.c: Likewise.
34011         * math/s_ccosh.c: Likewise.
34012         * math/s_ccoshf.c: Likewise.
34013         * math/s_ccoshl.c: Likewise.
34014         * math/s_cexp.c: Likewise.
34015         * math/s_cexpf.c: Likewise.
34016         * math/s_cexpl.c: Likewise.
34017         * math/s_clog.c: Likewise.
34018         * math/s_clog10.c: Likewise.
34019         * math/s_clog10f.c: Likewise.
34020         * math/s_clog10l.c: Likewise.
34021         * math/s_clogf.c: Likewise.
34022         * math/s_clogl.c: Likewise.
34023         * math/s_csin.c: Likewise.
34024         * math/s_csinf.c: Likewise.
34025         * math/s_csinh.c: Likewise.
34026         * math/s_csinhf.c: Likewise.
34027         * math/s_csinhl.c: Likewise.
34028         * math/s_csinl.c: Likewise.
34029         * math/s_csqrt.c: Likewise.
34030         * math/s_csqrtf.c: Likewise.
34031         * math/s_csqrtl.c: Likewise.
34032         * math/s_ctan.c: Likewise.
34033         * math/s_ctanf.c: Likewise.
34034         * math/s_ctanh.c: Likewise.
34035         * math/s_ctanhf.c: Likewise.
34036         * math/s_ctanhl.c: Likewise.
34037         * math/s_ctanl.c: Likewise.
34038         * math/s_ldexp.c: Likewise.
34039         * math/s_ldexpf.c: Likewise.
34040         * math/s_ldexpl.c: Likewise.
34041         * math/s_significand.c: Likewise.
34042         * math/s_significandf.c: Likewise.
34043         * math/s_significandl.c: Likewise.
34044         * math/w_acos.c: Likewise.
34045         * math/w_acosf.c: Likewise.
34046         * math/w_acosh.c: Likewise.
34047         * math/w_acoshf.c: Likewise.
34048         * math/w_acoshl.c: Likewise.
34049         * math/w_acosl.c: Likewise.
34050         * math/w_asin.c: Likewise.
34051         * math/w_asinf.c: Likewise.
34052         * math/w_asinl.c: Likewise.
34053         * math/w_atan2.c: Likewise.
34054         * math/w_atan2f.c: Likewise.
34055         * math/w_atan2l.c: Likewise.
34056         * math/w_atanh.c: Likewise.
34057         * math/w_atanhf.c: Likewise.
34058         * math/w_atanhl.c: Likewise.
34059         * math/w_cosh.c: Likewise.
34060         * math/w_coshf.c: Likewise.
34061         * math/w_coshl.c: Likewise.
34062         * math/w_dremf.c: Likewise.
34063         * math/w_exp10.c: Likewise.
34064         * math/w_exp10f.c: Likewise.
34065         * math/w_exp10l.c: Likewise.
34066         * math/w_exp2.c: Likewise.
34067         * math/w_exp2f.c: Likewise.
34068         * math/w_fmod.c: Likewise.
34069         * math/w_fmodf.c: Likewise.
34070         * math/w_fmodl.c: Likewise.
34071         * math/w_hypot.c: Likewise.
34072         * math/w_hypotf.c: Likewise.
34073         * math/w_hypotl.c: Likewise.
34074         * math/w_j0.c: Likewise.
34075         * math/w_j0f.c: Likewise.
34076         * math/w_j0l.c: Likewise.
34077         * math/w_j1.c: Likewise.
34078         * math/w_j1f.c: Likewise.
34079         * math/w_j1l.c: Likewise.
34080         * math/w_jn.c: Likewise.
34081         * math/w_jnf.c: Likewise.
34082         * math/w_jnl.c: Likewise.
34083         * math/w_lgamma.c: Likewise.
34084         * math/w_lgamma_r.c: Likewise.
34085         * math/w_lgammaf.c: Likewise.
34086         * math/w_lgammaf_r.c: Likewise.
34087         * math/w_lgammal.c: Likewise.
34088         * math/w_lgammal_r.c: Likewise.
34089         * math/w_log.c: Likewise.
34090         * math/w_log10.c: Likewise.
34091         * math/w_log10f.c: Likewise.
34092         * math/w_log10l.c: Likewise.
34093         * math/w_log2.c: Likewise.
34094         * math/w_log2f.c: Likewise.
34095         * math/w_log2l.c: Likewise.
34096         * math/w_logf.c: Likewise.
34097         * math/w_logl.c: Likewise.
34098         * math/w_pow.c: Likewise.
34099         * math/w_powf.c: Likewise.
34100         * math/w_powl.c: Likewise.
34101         * math/w_remainder.c: Likewise.
34102         * math/w_remainderf.c: Likewise.
34103         * math/w_remainderl.c: Likewise.
34104         * math/w_scalb.c: Likewise.
34105         * math/w_scalbf.c: Likewise.
34106         * math/w_scalbl.c: Likewise.
34107         * math/w_sinh.c: Likewise.
34108         * math/w_sinhf.c: Likewise.
34109         * math/w_sinhl.c: Likewise.
34110         * math/w_sqrt.c: Likewise.
34111         * math/w_sqrtf.c: Likewise.
34112         * math/w_sqrtl.c: Likewise.
34113         * math/w_tgamma.c: Likewise.
34114         * math/w_tgammaf.c: Likewise.
34115         * math/w_tgammal.c: Likewise.
34116
34117         * po/ja.po: Update from translation team.
34118
34119 2011-09-29  Andreas Jaeger  <aj@suse.de>
34120
34121         [BZ #13179]
34122         * sunrpc/netname.c (netname2host): Fix logic.
34123
34124         [BZ #6779]
34125         [BZ #6783]
34126         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
34127         correctly.
34128         * math/w_remainder.c (__remainder): Likewise.
34129         * math/w_remainderf.c (__remainderf): Likewise.
34130         * math/libm-test.inc (remainder_test): Add test cases.
34131
34132 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34133
34134         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
34135         sdiv_qrnnd.
34136
34137 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34138
34139         * string/test-memcmp.c: Avoid unncessary #defines.
34140         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
34141
34142 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34143
34144         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
34145         Use new sse2 version for core i3 - i7 as it's faster
34146         than sse42 version.
34147         (bit_Prefer_PMINUB_for_stringop): New.
34148         * sysdeps/x86_64/rawmemchr.S: Update.
34149         Replace with faster SSE2 version.
34150         * sysdeps/x86_64/memrchr.S: New file.
34151         * sysdeps/x86_64/memchr.S: Update.
34152         Replace with faster SSE2 version.
34153
34154 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
34155
34156         * elf/dl-load.c (lose): Add cast to avoid warning.
34157
34158 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
34159
34160         * po/ca.po: Update from translation team.
34161
34162         * inet/getnetgrent_r.c: Hook up nscd.
34163         * nscd/Makefile (routines): Add nscd_netgroup.
34164         (nscd-modules): Add netgroupcache.
34165         (CFLAGS-netgroupcache.c): Define.
34166         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
34167         (cache_search): Add const to second parameter.
34168         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
34169         INNETGR.
34170         (dbs): Add netgrdb entry.
34171         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
34172         (verify_persistent_db): Handle netgrdb.
34173         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
34174         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
34175         GETFDNETGR.
34176         (netgroup_response_header): Define.
34177         (innetgroup_response_header): Define.
34178         (datahead): Add netgroup_response_header and innetgroup_response_header
34179         elements.
34180         * nscd/nscd.conf: Add entries for netgroup cache.
34181         * nscd/nscd.h (dbtype): Add netgrdb.
34182         (_PATH_NSCD_NETGROUP_DB): Define.
34183         (netgroup_iov_disabled): Declare.
34184         (xmalloc, xcalloc, xrealloc): Move declarations here.
34185         (cache_search): Adjust prototype.
34186         Add netgroup-related prototypes.
34187         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
34188         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
34189         (__nscd_innetgr): Declare.
34190         * nscd/selinux.c (perms): Use access_vector_t as element type and
34191         add netgroup-related initializers.
34192         * nscd/netgroupcache.c: New file.
34193         * nscd/nscd_netgroup.c: New file.
34194         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
34195         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
34196         For four parameters use innetgr.
34197         * nss/nss_files/files-init.c: Add definition and callback for netgr.
34198         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
34199         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
34200         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
34201
34202         * nscd/connections.c (register_traced_file): Don't register file
34203         for disabled databases.
34204
34205 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
34206
34207         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
34208
34209         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
34210         from tree and freeing node.
34211
34212 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
34213
34214         * nss/nsswitch.c (__nss_database_lookup): Handle
34215         nss_parse_service_list out of memory case.
34216
34217 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
34218
34219         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
34220         out of memory case.
34221
34222 2011-10-04  Andreas Schwab  <schwab@redhat.com>
34223
34224         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
34225         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
34226         pass it down.
34227         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
34228         elf_machine_rela, elf_machine_lazy_rel.
34229         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
34230         (ELF_DYNAMIC_DO_REL): Likewise.
34231         (ELF_DYNAMIC_DO_RELA): Likewise.
34232         (ELF_DYNAMIC_RELOCATE): Likewise.
34233         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
34234         to ELF_DYNAMIC_DO_REL.
34235         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
34236         (dl_main): In trace mode always set __RTLD_NOIFUNC.
34237         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
34238         elf_machine_rela.
34239         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
34240         skip_ifunc, don't call ifunc function if non-zero.
34241         (elf_machine_rela): Likewise.
34242         (elf_machine_lazy_rel): Likewise.
34243         (elf_machine_lazy_rela): Likewise.
34244         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
34245         (elf_machine_lazy_rel): Likewise.
34246         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
34247         Likewise.
34248         (elf_machine_lazy_rel): Likewise.
34249         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34250         Likewise.
34251         (elf_machine_lazy_rel): Likewise.
34252         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
34253         (elf_machine_lazy_rel): Likewise.
34254         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
34255         (elf_machine_lazy_rel): Likewise.
34256         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
34257         (elf_machine_lazy_rel): Likewise.
34258         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
34259         (elf_machine_lazy_rel): Likewise.
34260         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
34261         (elf_machine_lazy_rel): Likewise.
34262         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
34263         (elf_machine_lazy_rel): Likewise.
34264
34265 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
34266
34267         * nss/nss_files/files-init.c (_nss_files_init): Use static
34268         initialization for all the *_traced_file variables.
34269
34270 2011-09-28  Andreas Schwab  <schwab@redhat.com>
34271
34272         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34273
34274 2011-09-27  Roland McGrath  <roland@hack.frob.com>
34275
34276         [BZ #13226]
34277         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
34278
34279 2011-09-27  Andreas Schwab  <schwab@redhat.com>
34280
34281         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
34282         Reread the line before reparsing it.
34283
34284 2011-09-26  Andreas Schwab  <schwab@redhat.com>
34285
34286         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
34287
34288 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
34289             Maxim Kuvyrkov  <maxim@codesourcery.com>
34290             Joseph Myers  <joseph@codesourcery.com>
34291
34292         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
34293         if needed for __stack_chk_guard.
34294
34295 2011-09-19  Roland McGrath  <roland@hack.frob.com>
34296
34297         * sysdeps/posix/spawni.c (script_execute): Always define it.
34298         It will be optimized away if unused.
34299         (maybe_script_execute): New function.
34300         (__spawni): Call it.
34301
34302         * Makerules: Don't include tls.make.
34303         (config-tls): Always set to thread.
34304         * tls.make.c: File removed.
34305
34306 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
34307
34308         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
34309         * config.make.in (CPPFLAGS-config): New substituted variable.
34310
34311 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34312
34313         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
34314
34315         [BZ #13192]
34316         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
34317         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
34318
34319 2011-09-15  Roland McGrath  <roland@hack.frob.com>
34320
34321         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
34322         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
34323         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34324         (CALL_FAIL): Likewise.
34325         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
34326         (CALL_FAIL): Macro removed.
34327         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
34328
34329 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
34330
34331         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
34332         for __FINITE_MATH_ONLY__ == 1.
34333
34334 2011-09-15  Andreas Schwab  <schwab@redhat.com>
34335
34336         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
34337         __ieee754_sqrt instead of sqrt.
34338         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
34339         __ieee754_sqrtf instead of sqrtf.
34340         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
34341         __floorf instead of floorf.
34342         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
34343         __floorf, __truncf instead of floorf, truncf.
34344
34345 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
34346
34347         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
34348
34349         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
34350         __extern_always_inline.
34351         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
34352         32-bit.
34353
34354 2011-09-14  Andreas Schwab  <schwab@redhat.com>
34355
34356         * elf/rtld.c (dl_main): Also relocate in dependency order when
34357         doing symbol dependency testing.
34358
34359 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
34360
34361         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34362         Always define `refsym'.
34363
34364 2011-09-13  Andreas Schwab  <schwab@redhat.com>
34365
34366         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
34367         (__FD_ELT): Renamed from __FDELT.
34368         * misc/bits/select2.h (__FD_ELT): Likewise.
34369         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
34370         __FD_MASK instead of __FDELT, __FDMASK.
34371         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34372         Likewise.
34373         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
34374         Likewise.
34375
34376         * elf/Makefile (gen-ldd): Fix pattern.
34377
34378         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
34379         (init_tls): Likewise.
34380
34381 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
34382
34383         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
34384
34385 2011-09-12  Andreas Schwab  <schwab@redhat.com>
34386
34387         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
34388         `struct cmsghdr *' instead of `void *'.
34389         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
34390         Likewise.
34391
34392 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
34393
34394         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
34395         if non-absolute.
34396         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
34397         ldd_rewrite_script.
34398
34399 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
34400
34401         * configure.in: Remove --with-tls option.
34402         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
34403         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
34404         out in case it is missing.
34405         * sysdeps/ia64/elf/configure.in: Likewise.
34406         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
34407         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
34408         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
34409         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
34410         * sysdeps/sh/elf/configure.in: Likewise.
34411         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
34412         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
34413         * sysdeps/x86_64/elf/configure.in: Likewise.
34414         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
34415         * sysdeps/mach/hurd/tls.h: Likewise.
34416
34417         [BZ #13067]
34418         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
34419
34420         [BZ #13090]
34421         * configure.in: Fix use of AC_INIT.
34422
34423         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
34424
34425 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
34426
34427         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
34428         __set_errno.
34429         * malloc/hooks.c: Likewise.
34430
34431         [BZ #11929]
34432         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
34433         variables statically.
34434         (narenas): Initialize.
34435         (list_lock): Initialize.
34436         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
34437         initializtion of main_arena and list_lock.  Small cleanups.
34438         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
34439         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
34440         Add initializers to main_arena and mp_.
34441         (malloc_state): Remove pagesize member.  Change all users to use
34442         GLRO(dl_pagesize).
34443
34444         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
34445         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
34446         is always initialized.
34447
34448         * malloc/malloc.c: Removed unused configurations and dead code.
34449         * malloc/arena.c: Likewise.
34450         * malloc/hooks.c: Likewise.
34451         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
34452
34453         * include/tls.h: Removed.  USE___THREAD must always be defined.
34454         * bits/libc-tsd.h: Don't handle !USE___THREAD.
34455         * elf/dl-libc.c: Likewise.
34456         * elf/dl-tsd.c: Likewise.
34457         * include/errno.h: Likewise.
34458         * include/netdb.h: Likewise.
34459         * include/resolv.h: Likewise.
34460         * inet/herrno-loc.c: Likewise.
34461         * inet/herrno.c: Likewise.
34462         * malloc/arena.c: Likewise.
34463         * malloc/hooks.c: Likewise.
34464         * malloc/malloc.c: Likewise.
34465         * resolv/res-state.c: Likewise.
34466         * resolv/res_libc.c: Likewise.
34467         * sysdeps/i386/dl-machine.h: Likewise.
34468         * sysdeps/ia64/dl-machine.h: Likewise.
34469         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
34470         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
34471         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
34472         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
34473         * sysdeps/sh/dl-machine.h: Likewise.
34474         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
34475         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
34476         * sysdeps/unix/i386/sysdep.S: Likewise.
34477         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
34478         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
34479         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
34480         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
34481         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
34482         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
34483         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
34484         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
34485         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34486         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
34487         * sysdeps/unix/x86_64/sysdep.S: Likewise.
34488         * sysdeps/x86_64/dl-machine.h: Likewise.
34489         * tls.make.c: Likewise.
34490
34491         * configure.in: Remove --with-__thread option.  Make tests for
34492         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
34493         tls_model attribute fail if no support is available.  Remove
34494         USE_IN_LIBIO.
34495         * Makeconfig: Adjust for dropped configure option.  All features are
34496         now mandatory.
34497         * Makerules: Likewise.
34498         * Versions.def: Likewise.
34499         * argp/argp-fmtstream.c: Likewise.
34500         * argp/argp-fmtstream.h: Likewise.
34501         * argp/argp-help.c: Likewise.
34502         * assert/assert.c: Likewise.
34503         * config.h.in: Likewise.
34504         * config.make.in: Likewise.
34505         * configure: Likewise.
34506         * configure.in: Likewise.
34507         * csu/Versions: Likewise.
34508         * csu/init.c: Likewise.
34509         * elf/tst-audit2.c: Likewise.
34510         * elf/tst-tls10.c: Likewise.
34511         * elf/tst-tls10.h: Likewise.
34512         * elf/tst-tls11.c: Likewise.
34513         * elf/tst-tls12.c: Likewise.
34514         * elf/tst-tls14.c: Likewise.
34515         * elf/tst-tlsmod11.c: Likewise.
34516         * elf/tst-tlsmod12.c: Likewise.
34517         * elf/tst-tlsmod13.c: Likewise.
34518         * elf/tst-tlsmod13a.c: Likewise.
34519         * elf/tst-tlsmod14a.c: Likewise.
34520         * elf/tst-tlsmod15b.c: Likewise.
34521         * elf/tst-tlsmod16a.c: Likewise.
34522         * elf/tst-tlsmod16b.c: Likewise.
34523         * elf/tst-tlsmod7.c: Likewise.
34524         * elf/tst-tlsmod8.c: Likewise.
34525         * elf/tst-tlsmod9.c: Likewise.
34526         * gmon/gmon.c: Likewise.
34527         * grp/fgetgrent_r.c: Likewise.
34528         * grp/putgrent.c: Likewise.
34529         * hurd/fopenport.c: Likewise.
34530         * include/libc-symbols.h: Likewise.
34531         * include/tls.h: Likewise.
34532         * intl/gettextP.h: Likewise.
34533         * intl/loadinfo.h: Likewise.
34534         * locale/global-locale.c: Likewise.
34535         * locale/localeinfo.h: Likewise.
34536         * mach/devstream.c: Likewise.
34537         * malloc/arena.c: Likewise.
34538         * malloc/set-freeres.c: Likewise.
34539         * misc/err.c: Likewise.
34540         * misc/getttyent.c: Likewise.
34541         * misc/mntent_r.c: Likewise.
34542         * posix/getopt.c: Likewise.
34543         * posix/wordexp.c: Likewise.
34544         * pwd/fgetpwent_r.c: Likewise.
34545         * resolv/Versions: Likewise.
34546         * resolv/res_hconf.c: Likewise.
34547         * shadow/fgetspent_r.c: Likewise.
34548         * shadow/putspent.c: Likewise.
34549         * stdio-common/printf_fphex.c: Likewise.
34550         * stdio-common/tmpfile.c: Likewise.
34551         * stdlib/abort.c: Likewise.
34552         * stdlib/fmtmsg.c: Likewise.
34553         * sunrpc/auth_unix.c: Likewise.
34554         * sunrpc/clnt_perr.c: Likewise.
34555         * sunrpc/clnt_tcp.c: Likewise.
34556         * sunrpc/clnt_udp.c: Likewise.
34557         * sunrpc/clnt_unix.c: Likewise.
34558         * sunrpc/openchild.c: Likewise.
34559         * sunrpc/svc_simple.c: Likewise.
34560         * sunrpc/svc_tcp.c: Likewise.
34561         * sunrpc/svc_udp.c: Likewise.
34562         * sunrpc/svc_unix.c: Likewise.
34563         * sunrpc/xdr.c: Likewise.
34564         * sunrpc/xdr_array.c: Likewise.
34565         * sunrpc/xdr_rec.c: Likewise.
34566         * sunrpc/xdr_ref.c: Likewise.
34567         * sunrpc/xdr_stdio.c: Likewise.
34568
34569 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34570
34571         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
34572
34573 2011-07-03  Andreas Jaeger  <aj@suse.de>
34574
34575         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
34576         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
34577         regenerate with gen-libm-tests.pl.
34578
34579 2010-05-12  Petr Baudis  <pasky@suse.cz>
34580
34581         [BZ #11589]
34582         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
34583         around j0() zero points by switching to j1().
34584         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
34585         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
34586         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
34587         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
34588
34589 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34590
34591         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
34592         instead of 0.
34593         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
34594         instead of 0.
34595         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
34596         Patch in part by Pavel Roskin <proski@gnu.org>.
34597
34598         [BZ #13138]
34599         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
34600         realloc.
34601         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34602         Free memory block if necessary.
34603
34604         [BZ #12847]
34605         * libio/genops.c (INTDEF): For string streams the _lock pointer can
34606         be NULL.  Don't lock in this case.
34607
34608 2011-09-09  Roland McGrath  <roland@hack.frob.com>
34609
34610         * elf/elf.h (ELFOSABI_GNU): New macro.
34611         (ELFOSABI_LINUX): Define to that.
34612
34613 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
34614
34615         * string/strncat.c (strncat): Undef the symbol in case it has been
34616         defined in bits/string.h.
34617
34618 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
34619
34620         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
34621
34622         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
34623         link map.
34624
34625 2011-08-17  Andreas Jaeger  <aj@suse.de>
34626
34627         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
34628
34629 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
34630             Ian Lance Taylor  <iant@google.com>
34631
34632         * math/libm-test.inc (lround_test): New testcase.
34633         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
34634
34635 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
34636
34637         * Makefile: Remove support for automatic cvs check-ins.
34638         * Makerules: Likewise.
34639         * config.make.in: Likewise.
34640         * configure.in: Likewise.
34641         * intl/Makefile: Likewise.
34642         * locale/Makefile: Likewise.
34643         * po/Makefile: Likewise.
34644         * posix/Makefile: Likewise.
34645         * sysdeps/gnu/Makefile: Likewise.
34646         * sysdeps/mach/hurd/Makefile: Likewise.
34647         * sysdeps/sparc/sparc32/Makefile: Likewise.
34648
34649         [BZ #13118]
34650         * posix/Makefile (bug-regex32-ENV): Define.
34651         Patch by John Stanley <jpsinthemix@verizon.net>.
34652
34653         * misc/Makefile (headers): Add bits/select2.h.
34654         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
34655         * misc/bits/select2.h: New file.
34656         * include/bits/select2.h: New file.
34657         * debug/Makefile (routines): Add fdelt_chk.
34658         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
34659         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
34660         FD_ISSET.
34661         * debug/fdelt_chk.c: New file.
34662
34663         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
34664         * wcsmbs/test-wmemcmp.c: Likewise.
34665         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
34666         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
34667
34668 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34669
34670         * string/Makefile (strop-tests): Add memcmp.
34671         * string/test-wmemcmp.c: New file.
34672         * string/test-memcmp.c: Add wmemcmp support.
34673
34674 2011-09-08  Roland McGrath  <roland@hack.frob.com>
34675
34676         [BZ #13153]
34677         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
34678         2011-07-19 change.
34679
34680         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
34681         garbage value in a __mach_port_mod_refs call in the cases of the
34682         task-self and thread-self ports.
34683
34684 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34685
34686         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
34687
34688 2011-09-08  Andreas Schwab  <schwab@redhat.com>
34689
34690         * elf/dl-load.c (lose): Check for non-null L.
34691
34692 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34693
34694         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
34695
34696         * elf/dl-libc.c (dlerror_run): Pass back error code from
34697         dl_catch_error.
34698
34699         [BZ #13123]
34700         * elf/dl-load.c (lose): Free l_origin if it is valid.
34701
34702         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
34703         names.
34704         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
34705         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34706         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
34707         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34708         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
34709         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
34710
34711 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34712
34713         * sysdeps/powerpc/fpu/e_hypot.c: New file.
34714         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
34715         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
34716         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
34717         * sysdeps/powerpc/fpu/k_cosf.c: New file.
34718         * sysdeps/powerpc/fpu/k_sinf.c: New file.
34719         * sysdeps/powerpc/fpu/s_cosf.c: New file.
34720         * sysdeps/powerpc/fpu/s_sinf.c: New file.
34721         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
34722         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
34723
34724 2011-08-15  Alan Modra  <amodra@gmail.com>
34725
34726         [BZ #13092]
34727         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
34728         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
34729         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
34730         ppc_mcount to static-only-routines.
34731         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
34732         __mcount_internal.
34733         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
34734         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
34735
34736 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
34737
34738         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
34739         for finite and infinity parameters.
34740
34741 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
34742
34743         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
34744         and add nop instructions for throughput optimization.
34745         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
34746
34747 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
34748
34749         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
34750         aligned copy for power7 with vector-scalar instructions.
34751         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
34752
34753 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
34754
34755         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
34756         AVX check.
34757
34758 2011-09-07  Andreas Schwab  <schwab@redhat.com>
34759
34760         [BZ #13144]
34761         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
34762         last change.
34763
34764 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
34765
34766         * sysdeps/unix/sysv/linux/x86_64/init-first.c
34767         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
34768         syscall wrapper around clock_gettime in __vdso_clock_gettime.
34769         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
34770         clock_gettime.
34771
34772 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34773
34774         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
34775         Forgot to demangle the pointer.
34776
34777         * sysdeps/i386/sysdep.h: Define atom_text_section.
34778         * sysdeps/x86_64/sysdep.h: Likewise.
34779         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
34780         section with atom_text_section.
34781         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
34782         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
34783         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
34784         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34785         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
34786
34787         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
34788         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
34789         already be defined.  Change to take two parameters and don't assign
34790         result to variable.  Adjust all users.
34791         Define INTERNAL_GETTIME if not already defined.
34792         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
34793         call.
34794         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
34795         HAVE_CLOCK_GETTIME_VSYSCALL.
34796         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
34797
34798         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
34799         gettimeofday vsyscall, just use time.
34800
34801 2011-09-06  Andreas Schwab  <schwab@redhat.com>
34802
34803         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
34804         <errno.h>.
34805
34806 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
34807
34808         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
34809         syscall on x86-64.
34810         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
34811         syscall.
34812         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
34813         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
34814         syscall if possible.
34815
34816 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34817
34818         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
34819         e_ident.  Don't pass to find_mapsXX.
34820         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
34821
34822 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34823
34824         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34825         strchr-sse2-no-bsf strrchr-sse2-no-bsf
34826         * sysdeps/x86_64/multiarch/strchr.S: Update.
34827         Check bit_slow_BSF bit.
34828         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
34829         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
34830         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
34831
34832 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34833
34834         [BZ #13134]
34835         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
34836         before glibc 2.15.
34837         (tryshell): Define.
34838         (__spawni): Change last parameter to be flag.  Test
34839         SPAWN_XFLAGS_USE_PATH flag to use path or not.
34840         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
34841         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
34842         * posix/spawni.c: Likewise.
34843         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
34844         * posix/spawnp.c: Likewise.  Change normal version to use
34845         SPAWN_XFLAGS_USE_PATH.
34846         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
34847         SPAWN_XFLAGS_TRY_SHELL.
34848
34849         [BZ #13150]
34850         * posix/glob.h: Remove gcc 1.x support.
34851
34852         [BZ #13068]
34853         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
34854
34855 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34856
34857         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34858         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
34859         strrchr-sse2-bsf
34860         * sysdeps/i386/i686/multiarch/strchr.S: New file.
34861         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
34862         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
34863         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
34864         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
34865         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
34866
34867 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34868
34869         * sysdeps/x86_64/wcscmp.S: New file.
34870
34871         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
34872         wcscmp-c wcscmp-sse2
34873         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
34874         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
34875         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
34876         * wcsmbs/wcscmp.c: Allow renaming.
34877
34878 2011-09-05  David S. Miller  <davem@davemloft.net>
34879
34880         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
34881         stack slot, rather than the struct return pointer slot.
34882         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
34883         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
34884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
34885         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
34886
34887 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
34888
34889         * po/ja.po: Update from translation team.
34890
34891         [BZ #13144]
34892         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
34893         kernel in 64-bit binaries.
34894
34895 2011-09-01  David S. Miller  <davem@davemloft.net>
34896
34897         * elf/elf.h (HWCAP_SPARC_*): Move to..
34898         * sysdeps/sparc/sysdep.h: this new file and add new values.
34899         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
34900         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
34901         _DL_HWCAP_COUNT to 24.
34902         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34903         entries.
34904         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
34905         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
34906         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
34907         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
34908         instead of magic constants.
34909         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
34910
34911 2011-08-31  David S. Miller  <davem@davemloft.net>
34912
34913         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
34914         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
34915         Reimplement to do errno handling inline.
34916         (SYSCALL_ERROR_HANDLER): New macro.
34917         (__SYSCALL_STRING): Do not do errno handling in asm.
34918         (__CLONE_SYSCALL_STRING): Delete.
34919         (__INTERNAL_SYSCALL_STRING): Delete.
34920         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
34921         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
34922         (PSEUDO): Reimplement to do errno handling inline.
34923         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
34924         (SYSCALL_ERROR_HANDLER): New macro.
34925         (__SYSCALL_STRING): Do not do errno handling in asm.
34926         (__CLONE_SYSCALL_STRING): Delete.
34927         (__INTERNAL_SYSCALL_STRING): Delete.
34928         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
34929         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
34930         i386.
34931         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
34932         (inline_syscall*): Add 'err' argument.
34933         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
34934         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
34935         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
34936         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
34937
34938         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
34939         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34940
34941 2011-08-30  Andreas Schwab  <schwab@redhat.com>
34942
34943         * elf/rtld.c (dl_main): Relocate objects in dependency order.
34944
34945 2011-08-29  Jiri Olsa <jolsa@redhat.com>
34946
34947         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
34948         directive.
34949
34950 2011-08-24  David S. Miller  <davem@davemloft.net>
34951
34952         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
34953
34954 2011-08-24  Andreas Schwab  <schwab@redhat.com>
34955
34956         * elf/Makefile: Add rules to build and run unload8 test.
34957         * elf/unload8.c: New file.
34958         * elf/unload8mod1.c: New file.
34959         * elf/unload8mod1x.c: New file.
34960         * elf/unload8mod2.c: New file.
34961         * elf/unload8mod3.c: New file.
34962
34963         * elf/dl-close.c (_dl_close_worker): Reset private search list if
34964         it wasn't used.
34965
34966 2011-08-23  David S. Miller  <davem@davemloft.net>
34967
34968         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
34969         subtract stack bias.
34970         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
34971         %sp not %fp in calculations.
34972         (_JMPBUF_UNWINDS_ADJ): Likewise.
34973
34974         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
34975         (aio_suspend): Call it to force an exception region around the
34976         AIO_MISC_WAIT() invocation.
34977
34978 2011-08-23  Andreas Schwab  <schwab@redhat.com>
34979
34980         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
34981         backslash.
34982
34983 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
34984
34985         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
34986         protection macro.
34987         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
34988         and <dl-machine.h>.
34989         (Elf64_FuncDesc): Remove.
34990
34991 2011-08-22  David S. Miller  <davem@davemloft.net>
34992
34993         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
34994         sigaltstack check, add missing cfi directives.
34995         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
34996         missing cfi directives, and sigaltstack handling.
34997
34998 2011-08-16  Andreas Schwab  <schwab@redhat.com>
34999
35000         [BZ #11724]
35001         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
35002         object is seen twice.
35003         * elf/dl-fini.c (_dl_sort_fini): Likewise.
35004
35005         * elf/Makefile (distribute): Add tst-initorder2.c.
35006         (tests): Add tst-initorder2.
35007         (modules-names): Add tst-initorder2a tst-initorder2b
35008         tst-initorder2c tst-initorder2d.  Add rules to build them.
35009         ($(objpfx)tst-initorder2.out): New rule.
35010         * elf/tst-initorder2.c: New file.
35011         * elf/tst-initorder2.exp: New file.
35012
35013 2011-08-22  Andreas Schwab  <schwab@redhat.com>
35014
35015         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
35016
35017         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
35018         dependencies back to end of function.
35019
35020         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
35021         $(elfobjdir)/ld.so.
35022
35023 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
35024
35025         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
35026         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
35027         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
35028         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
35029         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
35030         of __vdso_gettimeofday.
35031         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
35032         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
35033         attribute_hidden.
35034         (_libc_vdso_platform_setup): Remove initialization of
35035         __vdso_gettimeofday and __vdso_time.
35036
35037 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
35038
35039         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
35040         and fgetc_unlocked.
35041         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
35042         getc_unlocked.
35043
35044         * elf/dl-open.c (add_to_global): Report additions to the global scope
35045         for LD_DEBUG=scopes.
35046         (dl_open_worker): Also print scope of newly loaded dependencies.
35047         (_dl_show_scope): Indicate if there is no scope.
35048
35049         [BZ #13114]
35050         * stdio-common/Makefile (tests): Add bug24.
35051         * stdio-common/bug24.c: New file.
35052
35053 2011-08-19  Andreas Jaeger  <aj@suse.de>
35054
35055         [BZ #13114]
35056         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
35057         non-existant file when using close-on-exec mode.
35058
35059 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
35060
35061         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
35062         the very first instruction.
35063
35064         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
35065         the CFI state in the end.
35066         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
35067         inclusion of dl-trampoline.h.
35068         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
35069
35070 2011-08-19  Andreas Schwab  <schwab@redhat.com>
35071
35072         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
35073         expectations for long double.
35074
35075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
35076         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
35077
35078 2011-08-14  David S. Miller  <davem@davemloft.net>
35079
35080         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
35081         artificual limit depends upon the system page size.
35082
35083 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
35084
35085         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
35086         * resolv/Makefile: Define CFLAGS-libresolv.
35087
35088 2011-08-17  Andreas Schwab  <schwab@redhat.com>
35089
35090         * nss/makedb.c (compute_tables): Make variables used in nested
35091         function static.
35092
35093 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
35094
35095         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
35096         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
35097         if buffer was too small.
35098
35099         * elf/pldd.c (main): Attach to all threads in the process.
35100         Rewrite /proc handling to use *at functions.
35101
35102 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
35103
35104         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
35105         specifies first scope to show.
35106         (dl_open_worker): Update callers.  Move printing scope of new
35107         object to before the relocation.
35108         * elf/rtld.c (dl_main): Update _dl_show_scope call.
35109         * sysdeps/generic/ldsodefs.h: Update declaration.
35110
35111         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
35112         string for the scope number.
35113
35114 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
35115
35116         * nscd/servicescache.c (cache_addserv): Make sure written is always
35117         initialized.
35118
35119 2011-08-14  Roland McGrath  <roland@hack.frob.com>
35120
35121         * sysdeps/i386/i486/bits/atomic.h
35122         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
35123         statement expression, so as to suppress "set but not used" warning.
35124         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
35125
35126         * string/strncat.c (STRNCAT): Use prototype definition.
35127
35128         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
35129         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
35130         -Iprograms here.
35131         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
35132         (localedef-modules): Add localedef.
35133         (locale-modules): Add locale.
35134
35135         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
35136         * elf/rtld.c (dl_main): Invert order of assignment in last change,
35137         to avoid a warning.
35138
35139 2011-08-14  David S. Miller  <davem@davemloft.net>
35140
35141         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
35142         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
35143
35144 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
35145
35146         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
35147         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
35148         * elf/rtld.c (dl_main): Set l_name of vDSO.
35149         Call _dl_show_scope when DL_DEBUG_SCOPES.
35150         (process_dl_debug): Recognize scopes flag and also set it for all.
35151         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
35152         Declare _dl_show_scope.
35153
35154         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
35155         (do_dlopen): Pass caller_dlopen to dl_open.
35156         (__libc_dlopen_mode): Initialize caller_dlopen.
35157
35158         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
35159         of libc.  Make tolower call locale-independent.  Optimize a bit by
35160         using isdigit instead of isalnum.
35161         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
35162
35163 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
35164
35165         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
35166         was a dependency or dynamically loaded.
35167
35168 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
35169
35170         * intl/l10nflist.c: Allow architecture-specific pop function.
35171         * sysdeps/x86_64/l10nflist.c: New file.
35172
35173         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
35174         classification.
35175
35176 2011-08-10  Andreas Schwab  <schwab@redhat.com>
35177
35178         * include/dirent.h: Add libc_hidden_proto for scandirat and
35179         scandirat64.  Don't declare __scandirat64.
35180         * dirent/scandirat.c: Add libc_hidden_def.
35181         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
35182         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
35183
35184 2011-08-10  David S. Miller  <davem@davemloft.net>
35185
35186         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
35187         enum.
35188         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35189         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35190         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35191
35192 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
35193
35194         * Versions.def [libc]: Add GLIBC_2.15.
35195         * dirent/Makefile (routines): Add scandirat and scandirat64.
35196         * dirent/Versions [libc]: Export scandirat and scandirat64 for
35197         GLIBC_2.15.
35198         * dirent/dirent.h: Declare scandirat and scandirat64.
35199         * dirent/scandirat.c: New file.
35200         * dirent/scandirat64.c: New file.
35201         * sysdeps/wordsize-64/scandirat.c: New file.
35202         * sysdeps/wordsize-64/scandirat64.c: New file.
35203         * dirent/opendir.c: Define opendirat.
35204         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
35205         using scandirat.
35206         * dirent/scandir64.c: Adjust for scandir.c change.
35207         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
35208         __scandirat64, and __scandir_cancel_handler.
35209         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
35210         additional parameter and use openat instead of open (outside of ld.so).
35211         Add new __opendir as wrapper around __opendirat.
35212         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
35213         here without requiring old scandirat implementation.
35214
35215 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
35216
35217         * dirent/scandir.c (cancel_handler): Renamed to
35218         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
35219         defined.  Adjust users.
35220         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
35221         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
35222
35223 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
35224
35225         * string/test-string.h (IMPL): Use __STRING to expand name and then
35226         stringify it.
35227
35228         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
35229         of cleanups.
35230
35231 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35232
35233         * string/Makefile: Update.
35234         (strop-tests): Append strncat.
35235         * string/test-wcscmp.c: New file.
35236         New comprehensive test for wcscmp.
35237         * string/test-strcmp.c: Update.
35238         (WIDE): New define.
35239
35240 2011-07-22  Andreas Schwab  <schwab@redhat.com>
35241
35242         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
35243         line.
35244
35245 2011-07-26  Andreas Schwab  <schwab@redhat.com>
35246
35247         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
35248         encoding to ACE if AI_IDN.
35249
35250 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
35251
35252         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
35253         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
35254
35255 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35256
35257         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
35258         Fix overflow bug in strncat.
35259         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
35260
35261         * string/test-strncat.c: Update.
35262         Add new tests for checking overflow bugs.
35263
35264 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35265
35266         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35267         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
35268         * sysdeps/i386/i686/multiarch/strcat.S: New file.
35269         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
35270         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
35271         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
35272         * sysdeps/i386/i686/multiarch/strncat.S: New file.
35273         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
35274         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
35275
35276         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
35277         (USE_AS_STRCAT): Define.
35278         Add strcat and strncat support.
35279         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
35280
35281 2011-07-25  Andreas Schwab  <schwab@redhat.com>
35282
35283         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
35284         __n bigger than INT_MAX+1.
35285         (__strncmp_g): Likewise.
35286
35287 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
35288
35289         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
35290         * libio/stido.h: Likewise.
35291
35292         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
35293         (AF_NFC): Define.
35294         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
35295         (AF_NFC): Define.
35296
35297         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
35298         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
35299         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
35300         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35301         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
35302
35303         [BZ #13021]
35304         * scripts/test-installation.pl: Don't expect libnss_test1 to be
35305         installed.
35306
35307         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
35308         typo.
35309         (_dl_x86_64_save_sse): Likewise.
35310
35311 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
35312
35313         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
35314         OSXSAVE.
35315         (_dl_x86_64_save_sse): Likewise.
35316
35317         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
35318
35319         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
35320
35321 2011-07-21  Andreas Schwab  <schwab@redhat.com>
35322
35323         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
35324         change.
35325         (_dl_x86_64_save_sse): Use correct AVX check.
35326
35327 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35328
35329         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
35330         bug in strncpy/strncat.
35331         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
35332
35333 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
35334
35335         * string/tester.c (test_strcat): Add tests for different alignments
35336         of source and destination.
35337         (test_strncat): Likewise.
35338
35339 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35340
35341         [BZ #12852]
35342         * posix/glob.c (glob): Check passed in values before using them in
35343         expressions to avoid some overflows.
35344         (glob_in_dir): Likewise.
35345
35346         [BZ #13007]
35347         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
35348         check for AVX enablement so that we don't crash with old kernels and
35349         new hardware.
35350         * elf/tst-audit4.c: Add same checks here.
35351         * elf/tst-audit6.c: Likewise.
35352
35353         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
35354
35355 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
35356
35357         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
35358
35359 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
35360
35361         * po/cs.po: Update from translation team.
35362         * po/bg.po: Likewise.
35363
35364 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
35365
35366         * misc/sys/cdefs.h: Add support for const attribute.
35367         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
35368         to gnu_dev_{major,minor,makedev} functions.
35369
35370 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
35371
35372         * intl/dcigettext.c (get_output_charset): Add missing bracket.
35373
35374 2011-07-20  Andreas Schwab  <schwab@redhat.com>
35375
35376         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
35377         strlen results.
35378
35379 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35380
35381         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
35382         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
35383         register in order to avoid conflicts with the soft frame pointer
35384         being held in r11 when necessary.
35385         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
35386         (INTERNAL_VSYSCALL_NCS): Likewise.
35387
35388 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
35389
35390         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
35391         * elf/dl-fini.c (_dl_fini): Adjust caller.
35392         * elf/dl-close.c (_dl_close_worker): Likewise.
35393         * sysdeps/generic/ldsodefs.h: Adjust declaration.
35394
35395 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35396
35397         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
35398         "aux_cache->nlibs < 0".
35399
35400         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
35401         in the reload-count case.
35402
35403 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
35404
35405         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35406         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
35407         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
35408         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
35409         * sysdeps/x86_64/multiarch/strcat.S: New file.
35410         * sysdeps/x86_64/multiarch/strncat.S: New file.
35411         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
35412         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
35413         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
35414         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
35415         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
35416         (USE_AS_STRCAT): Define.
35417         Add strcat and strncat support.
35418         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
35419         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
35420         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
35421         * string/strncat.c: Update.
35422         (USE_AS_STRNCAT): Define.
35423         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35424         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
35425         and i7.
35426         * sysdeps/x86_64/multiarch/init-arch.h
35427         (bit_Prefer_PMINUB_for_stringop): New.
35428         (index_Prefer_PMINUB_for_stringop): Likewise.
35429         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
35430         bit_Prefer_PMINUB_for_stringop.
35431
35432 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35433
35434         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
35435         buffer64.
35436         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
35437         of casting of buffer.
35438         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
35439         buffer32 and buffer64.
35440         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
35441         writes instead of casting of buffer.
35442         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
35443         buffer32.
35444         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
35445         casting of buffer.
35446
35447 2011-07-19  Andreas Schwab  <schwab@redhat.com>
35448
35449         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
35450
35451 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
35452
35453         * nscd/nscd.c (termination_handler): Don't do anything for a database
35454         if it has not yet been initialized.
35455
35456 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35457
35458         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35459
35460 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
35461
35462         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
35463
35464 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
35465
35466         * po/nl.po: Update from translation team.
35467         * po/sv.po: Likewise.
35468
35469 2011-07-16  Roland McGrath  <roland@hack.frob.com>
35470
35471         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
35472         now disallowed by GCC.
35473
35474         * configure.in (use-default-link): Default to yes if a test -shared
35475         link meets our qualifications.
35476         * configure: Regenerated.
35477
35478         * config.make.in (output-format): New variable.
35479         * configure.in: Check for ld --print-output-format support.
35480         * configure: Regenerated.
35481         * Makerules ($(common-objpfx)format.lds)
35482         [$(output-format) != unknown]: Just use $(output-format),
35483         instead of the linker-script munging.
35484
35485 2011-07-14  Roland McGrath  <roland@hack.frob.com>
35486
35487         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
35488         of $(common-objpfx)shlib.lds.
35489         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
35490
35491         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
35492         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
35493
35494         * configure.in (-z relro check): Adjust test code to add a large
35495         writable data section after it.
35496         * configure: Regenerated.
35497
35498 2011-07-11  Roland McGrath  <roland@hack.frob.com>
35499
35500         * configure.in (-z relro check): Fix test code to make the variable
35501         truly const.
35502         * configure: Regenerated.
35503
35504 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
35505
35506         * nscd/nscd.h (struct traced_file): Define.
35507         (struct database_dyn): Remove inotify_descr, reset_res, and filename
35508         elements.  Add traced_files.
35509         (inotify_fd): Declare.
35510         (register_traced_file): Declare.
35511         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
35512         (inotify_fd): Export.
35513         (resolv_conf_descr): Remove.
35514         (nscd_init): Move inotify descriptor creation to main.
35515         Don't register files for notification here.
35516         (register_traced_file): New function.
35517         (invalidate_cache): Don't use reset_res to determine whether to call
35518         res_init, go through the list of registered files.
35519         (main_loop_poll): The inotify descriptors are now stored in the
35520         structures for the traced files.
35521         (main_loop_epoll): Likewise
35522         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
35523         to __nss_disable_nscd.
35524         * nscd/cache.c (prune_cache): There is no single inotify descriptor
35525         for a database anymore.  Check the records for all the registered
35526         files instead.
35527         * nss/Makefile (libnss_files-routines): Add files-init.
35528         (libnss_db-routines): Add db-init.
35529         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
35530         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
35531         * nss/nss_db/db-init.c: New file.
35532         * nss/nss_files/files-init.c: New file.
35533         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
35534         __nss_lookup_function.
35535         (__nss_lookup_function): Call nss_load_library.
35536         (nss_load_all_libraries): New function.
35537         (__nss_disable_nscd): Take parameter with callback function for files
35538         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
35539         used for the cached services.
35540         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
35541         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
35542         options for features to all the files in nscd.
35543
35544         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
35545
35546 2011-07-10  Roland McGrath  <roland@hack.frob.com>
35547
35548         * csu/elf-init.c (__libc_csu_init): Comment typo.
35549
35550 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
35551
35552         * po/pl.po: Update from translation team.
35553         * po/ja.po: Likewise.
35554         * po/ru.po: Likewise.
35555         * po/ko.po: Likewise.
35556         * po/fr.po: Likewise.
35557
35558 2011-07-09  Roland McGrath  <roland@hack.frob.com>
35559
35560         * configure.in (.ctors/.dtors header and trailer check):
35561         Use an empirical test on a built program.
35562         * configure: Regenerated.
35563
35564         * configure.in (-z relro check): Use an empirical test on a built DSO.
35565         Detect, but do not require, on ia64.
35566         * configure: Regenerated.
35567
35568         * configure.in (READELF): Find it with AC_CHECK_TOOL.
35569         Update tests that use readelf to use $READELF instead.
35570         * configure: Regenerated.
35571
35572 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
35573
35574         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
35575         if the result is not used.
35576
35577 2011-07-05  Andreas Jaeger  <aj@suse.de>
35578
35579         [BZ#9696]
35580         * stdlib/tst-strtod.c: Add testcase.
35581
35582 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35583
35584         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
35585         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
35586         The latter has a higher limit.  Take additional parameter to pass to
35587         the new function.
35588         (__pathconf): Pass file to __statfs_link_max.
35589         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
35590         __statfs_link_max.
35591         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
35592         __statfs_link_max.
35593
35594         [BZ #12868]
35595         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
35596         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35597         Handle Lustre.
35598         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
35599         (__statfs_filesize_max): Likewise.
35600         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
35601
35602 2011-07-05  Andreas Jaeger  <aj@suse.de>
35603
35604         * resolv/res_comp.c (dn_skipname): Remove unused variable.
35605
35606 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
35607
35608         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
35609         `status' variable.
35610         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
35611         Likewise.
35612
35613 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35614
35615         * Makefile (strop-tests): Add strncat.
35616         * string/test-strncat.c: New file.
35617
35618 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
35619
35620         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
35621
35622 2011-06-21  Andreas Jaeger  <aj@suse.de>
35623
35624         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
35625         Copy rule from iconvdata/Makefile.
35626
35627 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35628
35629         [BZ #12922]
35630         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
35631         but no long options are defined, just return 'W'.
35632
35633 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
35634
35635         [BZ #9696]
35636         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
35637
35638 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
35639
35640         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
35641         netgroups to read.
35642         (innetgr): Likewise.
35643
35644 2011-07-05  Roland McGrath  <roland@hack.frob.com>
35645
35646         * config.make.in (install_root): Default to $(DESTDIR).
35647
35648 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
35649
35650         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
35651
35652 2011-07-02  Roland McGrath  <roland@hack.frob.com>
35653
35654         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
35655
35656         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
35657         containing directory rather than embedding absolute directory names.
35658
35659         * scripts/check-local-headers.sh: Rewritten using awk.
35660         Match by word, not by line.  Print error messages for matches.
35661         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
35662
35663         * Makerules [shlib-lds-flags empty]:
35664         ($(common-objpfx)libc_pic.opts): New target.
35665         ($(common-objpfx)libc_pic.os.clean): New target.
35666         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
35667
35668         * config.make.in (OBJCOPY): New variable.
35669         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
35670         * configure: Regenerated.
35671
35672         * config.make.in (use-default-link): New variable.
35673         * configure.in (use_default_link): Grok --with-default-link to set it.
35674         * configure: Regenerated.
35675         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
35676         (shlib-lds, shlib-lds-flags): Define to empty.
35677
35678         * Makerules (shlib-lds): New variable.
35679         (shlib-lds-flags): New variable.
35680         (build-shlib, build-moduile, build-module-asneeded): Use it.
35681         ($(common-objpfx)libc.so): Use $(shlib-lds).
35682         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
35683         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
35684
35685         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
35686         DT_FLAGS/DT_FLAGS_1 with zero flags.
35687
35688         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
35689         linker script munging.
35690
35691 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
35692
35693         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
35694         as 128-bit value.
35695         * crypt/sha512.c (sha512_process_block): Perform total addition using
35696         128-bit if possible.
35697         (__sha512_finish_ctx): Likewise.
35698         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
35699         as 64-bit value.
35700         * crypt/sha256.c (SWAP64): Define.
35701         (sha256_process_block): Perform total addition using 64-bit if
35702         possible.
35703         (__sha256_finish_ctx): Likewise.
35704
35705 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
35706
35707         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
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         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
35713
35714 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
35715
35716         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
35717         * nscd/initgrcache.c (addinitgroupsX): Likewise.
35718         * nscd/hstcache.c (cache_addhst): Likewise.
35719         * nscd/grpcache.c (cache_addgr): Likewise.
35720         * nscd/aicache.c (addhstaiX): Likewise
35721
35722 2011-07-01  Andreas Schwab  <schwab@redhat.com>
35723
35724         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
35725         domain only when needed.
35726
35727 2011-06-30  Andreas Schwab  <schwab@redhat.com>
35728
35729         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
35730         is always restored.
35731
35732 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
35733
35734         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
35735         are re-adding the entry.
35736         * nscd/servicescache.c (cache_addserv): Likewise.
35737
35738 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
35739
35740         * sysdeps/generic/dl-irel.h: fix protection against multiple
35741         inclusions.
35742         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
35743
35744 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
35745
35746         [BZ #12935]
35747         * malloc/memusage.sh: Fix quoting in message.
35748         * debug/xtrace.sh: Likewise.
35749
35750         * configure.in: Remove support for --experimental-malloc option, make
35751         it the default.
35752         * config.make.in: Likewise.
35753         * malloc/Makefile: Likewise.
35754
35755 2011-06-27  Andreas Schwab  <schwab@redhat.com>
35756
35757         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
35758         two-byte characters.
35759
35760 2011-06-27  Roland McGrath  <roland@hack.frob.com>
35761
35762         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
35763         AC_CACHE_CHECK invocation.
35764         * configure: Regenerated.
35765
35766         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
35767
35768 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
35769
35770         [BZ #12350]
35771         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
35772         bit from old_res_options.
35773
35774         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
35775
35776         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
35777         value type for setfct.
35778
35779 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
35780
35781         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35782         __gettimeofday instead of gettimeofday.
35783
35784 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
35785
35786         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
35787
35788 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
35789
35790         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
35791
35792         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
35793         info.
35794
35795 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35796
35797         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35798         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35799         strcpy-sse2-unaligned strncpy-sse2-unaligned
35800         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
35801         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
35802         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
35803         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
35804         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
35805         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
35806         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
35807         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
35808         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
35809         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
35810         (STRCPY): Support SSE2 and SSSE3 versions.
35811
35812 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
35813
35814         [BZ #12874]
35815         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
35816         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
35817         kernels which artificially limit size of requests.
35818
35819 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
35820
35821         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35822         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
35823         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
35824         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
35825         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
35826         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
35827         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
35828         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
35829         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
35830         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
35831         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
35832         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
35833         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
35834         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
35835         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
35836         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35837         Enable unaligned load optimization for Intel Core i3, i5 and i7
35838         processors.
35839         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
35840         Define.
35841         (index_Fast_Unaligned_Load): Define.
35842         (HAS_FAST_UNALIGNED_LOAD): Define.
35843
35844 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
35845
35846         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
35847
35848 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35849
35850         [BZ #12907]
35851         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
35852         until it is clear that the information is realy needed.
35853         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
35854
35855 2011-06-22  Andreas Schwab  <schwab@redhat.com>
35856
35857         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
35858
35859 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
35860
35861         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
35862         /sys/devices/system/cpu/online if it is usable.
35863
35864         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
35865         reading the information from the /proc filesystem to once a second.
35866
35867 2011-06-21  Andreas Jaeger  <aj@suse.de>
35868
35869         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
35870         NULL after inclusion of kernel headers.
35871
35872 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
35873
35874         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
35875         calls to internal_setent.
35876
35877         [BZ #12885]
35878         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
35879         addresses using gethostbyname4_r ignore IPv4 addresses.
35880
35881         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
35882         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
35883
35884         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
35885
35886 2011-06-20  David S. Miller  <davem@davemloft.net>
35887
35888         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
35889         inclusions.
35890         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
35891
35892         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
35893         (elf_irel): Use it.
35894         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
35895         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
35896         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
35897         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
35898         * sysdeps/x86_64/dl-irel.h: Likewise.
35899
35900         * elf/dl-runtime.c: Use elf_ifunc_invoke.
35901         * elf/dl-sym.c: Likewise.
35902
35903 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35904
35905         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
35906         need to dereference resplen2.
35907
35908 2011-06-14  Andreas Schwab  <schwab@redhat.com>
35909
35910         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
35911
35912 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
35913
35914         * Makeconfig: Define vardbdir and inst_vardbdir.
35915         * nss/Makefile: Add rules to install db-Makefile.
35916
35917         * nss/nss_db/db-XXX.c: Cleanup.
35918
35919         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
35920         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
35921         GLIBC_PRIVATE.
35922         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
35923         * nss/makedb.c: Implement -g option to specify that value strings
35924         are generated and should not be added to table iterated over for
35925         get*ent calls.
35926         * nss/nss_db/db-initgroups.c: New file.
35927
35928         * nss/getent.c: Add support for initgroups lookups through getgrouplist
35929         interface.
35930
35931         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
35932         (internal_getgrouplist): Adjust to name change.
35933         Update use_initgroups_entry if this is not the first call.
35934         * nss/databases.def: Add initgroups entry.
35935
35936         * nss/makedb.c (compute_tables): Check result of multiple hash table
35937         sizes to minimize maximum chain length.
35938
35939 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
35940
35941         * Versions.def: Add entry for libnss_db.
35942         * shlib-versions: Likewise.
35943         * nss/Makefile: Add rules to build libnss_db.
35944         * nss/Versions: Add libnss_db information.  Organize libnss_files
35945         entries better.
35946         * nss/db-Makefile: Add gshadow support.  Change rules for the new
35947         makedb progra.  Some minor improvements to generate smaller files.
35948         * nss/nss_db/nss_db.h: Move NSS database header data structures to
35949         here from...
35950         * nss/makedb.c: ...here.
35951         Improve database format to be smaller and require less memory at
35952         runtime.
35953         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
35954         db anymore.
35955         * nss/nss_db/db-netgrp.c: Likewise.
35956         * nss/nss_db/db-open.c: Likewise.
35957         * nss/nss_files/flies-XXX.x: Adjust comments.
35958         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
35959         * nss/nss_files/files-grp.c: Likewise.
35960         * nss/nss_files/files-hosts.c: Likewise.
35961         * nss/nss_files/files-network.c: Likewise.
35962         * nss/nss_files/files-proto.c: Likewise.
35963         * nss/nss_files/files-pwd.c: Likewise.
35964         * nss/nss_files/files-rpc.c: Likewise.
35965         * nss/nss_files/files-service.c: Likewise.
35966         * nss/nss_files/files-sgrp.c: Likewise.
35967         * nss/nss_files/files-spwd.c: Likewise.
35968         * nss/nss_db/db-alias.c: Removed.
35969         * nss/nss_db/dummy-db.h: Removed.
35970
35971 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
35972
35973         * nss/makedb.c: Rewritten to not use database library.
35974         * nss/Makefile: Update to build new makedb program.
35975
35976 2011-06-14  Andreas Jaeger  <aj@suse.de>
35977
35978         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
35979         memset declaration.
35980
35981 2011-06-10  Andreas Schwab  <schwab@redhat.com>
35982
35983         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
35984         tmpbuf.
35985
35986 2011-06-10  Roland McGrath  <roland@hack.frob.com>
35987
35988         * Makerules (shlib.lds): Fail if the linker script comes out empty.
35989         * elf/Makefile ($(objpfx)ld.so): Likewise.
35990
35991         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
35992         Don't list ld.so twice in dependencies.
35993
35994         * posix/bug-regex31.c: Include <stdlib.h>.
35995
35996         * nscd/hstcache.c (cache_addhst): Remove unused variable.
35997
35998         * nis/nss_compat/compat-spwd.c
35999         (getspent_next_nss_netgr): Remove unused variable.
36000         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
36001
36002         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
36003         nonmembers" output to use the right array.
36004
36005         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
36006
36007         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
36008
36009         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
36010         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
36011         * catgets/gencat.c (read_input_file): Likewise.
36012         * locale/programs/locarchive.c (enlarge_archive): Likewise.
36013
36014         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
36015         variable definition inside #if's controlling its use.
36016
36017         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
36018
36019         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
36020
36021         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
36022
36023         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
36024         unreachable code.
36025
36026         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
36027
36028         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
36029         * configure: Regenerated.
36030
36031         * Makerules: Revert last change.
36032         * elf/Makefile: Likewise.
36033
36034 2011-06-09  Roland McGrath  <roland@hack.frob.com>
36035
36036         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
36037         * elf/Makefile ($(objpfx)librtld.os): Likewise.
36038         (reloc-link): Likewise.
36039
36040 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
36041
36042         * elf/Makefile: Add rules to build pldd.
36043         * elf/pldd.c: New file.
36044         * elf/pldd-xx.c: New file.
36045
36046 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
36047
36048         * version.h: Update for 2.15 development version.
36049
36050 2011-06-07  David S. Miller  <davem@davemloft.net>
36051
36052         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
36053         ifuncs.
36054         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
36055         elf_machine_lazy_rel): Likewise.
36056         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
36057         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
36058         elf_machine_lazy_rel): Likewise.
36059         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
36060         dl_hwcap via passed in argument.
36061         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
36062         Likewise.
36063
36064 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36065
36066         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
36067
36068 2011-06-06  Roland McGrath  <roland@hack.frob.com>
36069
36070         [BZ #12849]
36071         * manual/fdl-1.1.texi: New file, verbatim from:
36072         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
36073         * manual/lgpl-2.1.texi: New file, verbatim from:
36074         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
36075         * manual/Makefile (licenses): New variable, list those new file names.
36076         (texis): Use it.
36077         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
36078
36079         * manual/fdl.texi: File removed.
36080         * manual/lesser.texi: File removed.
36081         * manual/libc.texinfo (Copying, Documentation License):
36082         Use new @include file names, put @appendix directive before @include.
36083
36084 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
36085
36086         [BZ #12841]
36087         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
36088         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
36089         (mq_open): Add __NTH.
36090
36091 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
36092
36093         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36094         Assume Intel Core i3/i5/i7 processor if AVX is available.
36095
36096 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
36097
36098         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
36099         typo.
36100
36101 2011-05-31  Andreas Schwab  <schwab@redhat.com>
36102
36103         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
36104         memory.  Use alloca_account.  Fix memory leak when retrying.
36105
36106 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
36107
36108         * version.h (RELEASE): Bump for 2.14 release.
36109         * include/features.h (__GLIBC_MINOR__): Bump to 14.
36110
36111         * config.make.in (RANLIB): Remove entry.
36112
36113 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
36114
36115         * po/Makefile (po-sed-cmd): Add ksh to extensions.
36116         (libc.pot): Work around missing support for .ksh extension in xgettext.
36117
36118         [BZ #12684]
36119         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
36120         if both request failed.
36121         (send_dg): In case of server errors clear resplen or *resplen2.
36122
36123         [BZ #12454]
36124         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
36125         when there are multiple maps.
36126         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
36127         (_dl_fini): Remove test here.
36128
36129         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
36130
36131 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
36132
36133         [BZ #12350]
36134         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
36135         bit from old_res_options.
36136         (gaih_inet): Likewise.
36137
36138         [BZ #11099]
36139         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
36140         as signed.
36141
36142         * resolv/res_init.c (res_setoptions): Make the code more compact.
36143
36144         [BZ #11558]
36145         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
36146         set RES_USEVC.
36147
36148         [BZ #11634]
36149         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
36150
36151         * malloc/malloc.h: Mark malloc hook variables as deprecated.
36152
36153         [BZ #11781]
36154         * malloc/malloc.h: Declare malloc hook variables as volatile.
36155
36156         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
36157         in last patch.
36158
36159         [BZ #11799]
36160         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
36161         raise in the comment.
36162         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
36163         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
36164         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
36165
36166 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
36167
36168         [BZ #12811]
36169         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
36170         grow the buffers more if it already has to be sufficient.
36171         (build_wcs_upper_buffer): Likewise.
36172         * posix/regexec.c (check_matching): Likewise.
36173         (clean_state_log_if_needed): Likewise.
36174         (extend_buffers): Don't enlarge buffers beyond size of the input
36175         buffer.
36176         Patches mostly by Emil Wojak <emil@wojak.eu>.
36177         * posix/bug-regex32.c: New file.
36178         * posix/Makefile (tests): Add bug-regex32.
36179
36180         * locale/findlocale.c (_nl_find_locale): Return right away if
36181         _nl_explode_name failed.
36182         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
36183
36184         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
36185
36186         * debug/xtrace.sh: Unify messages.
36187         * malloc/memusage.sh: Likewise.
36188
36189         [BZ #12813]
36190         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
36191         time symbol from vDSO.  Substitute with vsyscall if not available.
36192         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
36193         __vdso_time.
36194
36195         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
36196         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
36197         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
36198         Add sendmmsg and internal_sendmmsg.
36199         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
36200         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
36201         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
36202
36203         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
36204         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
36205         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
36206
36207 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
36208
36209         [BZ #12813]
36210         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
36211         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
36212         available.
36213         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
36214         __vdso_getcpu.
36215
36216         [BZ #12814]
36217         * iconvdata/Makefile (tests): Add bug-iconv9.
36218         * iconvdata/bug-iconv9.c: New file.
36219
36220 2011-05-27  Andreas Schwab  <schwab@redhat.com>
36221
36222         [BZ #12814]
36223         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
36224
36225 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
36226
36227         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36228         (struct user_regs_struct): Change intcs field back to cs.
36229
36230 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
36231
36232         * po/ja.po: Update from translation team.
36233
36234 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
36235
36236         [BZ #12795]
36237         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
36238         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
36239
36240 2011-05-20  Andreas Schwab  <schwab@redhat.com>
36241
36242         * stdlib/longlong.h: Update from GCC.
36243
36244 2011-05-23  Andreas Schwab  <schwab@redhat.com>
36245
36246         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
36247         parameter name.
36248         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
36249         Add parameter name.
36250         (__sysconf): Pass it down.
36251
36252 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
36253
36254         [BZ #12671]
36255         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
36256         some situations.
36257         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36258         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
36259         add in in __libc_use_alloca calls.  Adjust callers.
36260         (glob): Use malloc in some situations.
36261
36262         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
36263         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
36264         pltexit.
36265
36266 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
36267
36268         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
36269         and CLOCK_BOOTTIME_ALARM.
36270
36271         [BZ #12782]
36272         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
36273         is returned.
36274
36275         * string/_strerror.c (__strerror_r): Print negative errors as signed
36276         numbers.
36277
36278         [BZ #12777]
36279         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
36280         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
36281         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
36282
36283         * configure.in: Fix typo in redirection and correct removal of test
36284         files in two cases.
36285
36286         [BZ #12788]
36287         * locale/setlocale.c (new_composite_name): Fix test to check for
36288         identical name of all categories.
36289
36290         [BZ #12792]
36291         * libio/filedoalloc.c (local_isatty): New function.
36292         (_IO_file_doallocate): Use local_isatty.
36293         * stdio-common/perror.c (perror): In case a new stream is used
36294         forward the stream error.
36295         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
36296         error flag.
36297
36298 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
36299
36300         [BZ #11869]
36301         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
36302         alloca.
36303         * include/alloca.h (extend_alloca_account): Define.
36304
36305         [BZ #11857]
36306         * posix/regex.h: Fix comments with documentation of user-accessible
36307         fields after compilation and describe correct free'ing of pattern
36308         after re_compile_pattern.
36309         Patch by Reuben Thomas <rrt@sc3d.org>.
36310
36311 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
36312
36313         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
36314         and -mno-altivec to prevent the compiler from using Altivec and/or
36315         VSX instructions when the corresponding registers are not available.
36316
36317 2011-05-19  Andreas Schwab  <schwab@redhat.com>
36318
36319         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
36320
36321 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
36322
36323         * libio/freopen.c (freopen): Use __dup2, not dup2.
36324         * libio/freopen64.c (freopen64): Likewise.
36325
36326 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
36327
36328         [BZ #12775]
36329         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
36330         * math/Makefile (tests): Add test-powl.
36331         (CFLAGS-test-powl.c): Define.
36332         * math/test-powl.c: New file.
36333
36334 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
36335
36336         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
36337
36338 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
36339
36340         [BZ #11837]
36341         * iconvdata/gb18030.c: Update to GB18020-2005.
36342
36343 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
36344
36345         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
36346         RE_SYNTAX_POSIX_AWK): Update to match recent development.
36347         Patch by Aharon Robbins <arnold@skeeve.com>.
36348
36349         [BZ #11892]
36350         * stdlib/putenv.c (putenv): Don't always create copy of the variable
36351         on the stack.
36352
36353         [BZ #11895]
36354         * misc/pselect.c (__pselect): Handle timeout value errors hidden
36355         through underflows.
36356
36357         [BZ #12766]
36358         * misc/error.c (error_at_line): Ensure file_name and old_file_name
36359         point to strings before performing equality test for error_one_per_line
36360         mode.
36361
36362         [BZ #11697]
36363         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
36364
36365         [BZ #11820]
36366         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
36367         (struct user_fpregs_struct): Avoid __uint*_t types.
36368
36369         [BZ #6420]
36370         * malloc/mtrace.c (tr_where): Add additional parameter to point to
36371         symbol info.  Use it instead of calling _dl_addr locally.
36372         (lock_and_info): New function.
36373         (tr_freehook): Call lock_and_info and pass symbol info as additional
36374         parameter to tr_where.
36375         (tr_mallochook): Likewise.
36376         (tr_reallochook): Likewise.
36377         (tr_memalignhook): Likewise.
36378
36379         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
36380         used and couldn't be at all thread-safe.
36381
36382 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
36383
36384         * libio/freopen.c (freopen): Don't close old file descriptor
36385         before the new one is opened.  Instead dup the new file descriptor
36386         to the old one after the new stream is created.
36387         * libio/freopen64.c (freopen64): Likewise.
36388         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
36389         * libio/fileops.c (_IO_new_file_close_it): Handle new
36390         _IO_FLAGS2_NOCLOSE flag.
36391         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
36392         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
36393         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
36394         _IO_FLAGS2_NOCLOSE flag.
36395         * include/unistd.h: Add hidden_proto for dup3.
36396         Define __have_dup3.
36397         * io/dup3.c: Define hidden symbol.
36398         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
36399
36400         [BZ #7101]
36401         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
36402         when an incomplete long option is used.
36403         * posix/tst-getopt_long1.c: New file.
36404         * posix/Makefile (tests): Add tst-getopt_long1.
36405
36406         [BZ #10138]
36407         * scripts/config.guess: Update from autoconf-2.68.
36408         * scripts/config.sub: Likewise.
36409
36410         [BZ #10157]
36411         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
36412         tests into ...
36413         (has_cpuclock): ...this.  New function.
36414         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
36415         macro here based on has_cpuclock code.
36416
36417         [BZ #10149]
36418         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36419         First byte (not low byte) is now always NUL.
36420         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
36421
36422         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36423         Use non-cancelable interfaces.
36424
36425         [BZ #9809]
36426         * locale/iso-639.def: Add entry for Sorani.
36427
36428         [BZ #11901]
36429         * include/stdlib.h: Move include protection to the right place.
36430         Define abort_msg_s.  Declare __abort_msg with it.
36431         * stdlib/abort.c (__abort_msg): Adjust type.
36432         * assert/assert.c (__assert_fail_base): New function.  Majority
36433         of code from __assert_fail.  Allocate memory for __abort_msg with
36434         mmap.
36435         (__assert_fail): Now call __assert_fail_base.
36436         * assert/assert-perr.c: Remove bulk of implementation.  Use
36437         __assert_fail_base.
36438         * include/assert.hL Declare __assert_fail_base.
36439         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
36440         mmap.
36441         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
36442
36443 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
36444
36445         [BZ #11952]
36446         [BZ #12453]
36447         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
36448         until all modules are registered in the DTV.
36449         * elf/Makefile: Add rules to build and run tst-tls19.
36450         * elf/tst-tls19.c: New file.
36451         * elf/tst-tls19mod1.c: New file.
36452         * elf/tst-tls19mod2.c: New file.
36453         * elf/tst-tls19mod3.c: New file.
36454         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
36455
36456         [BZ #12083]
36457         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
36458         correctly.
36459
36460         [BZ #12601]
36461         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
36462         two-byte sequence errors.
36463         * iconvdata/Makefile (tests): Add bug-iconv8.
36464         * iconvdata/bug-iconv8.c: New file.
36465
36466         [BZ #12626]
36467         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
36468         buf2 definition.
36469
36470         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
36471
36472         [BZ #12432]
36473         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
36474         (dummy_getcfa): New function.
36475         (init): Get _Unwind_GetCFA address, use dummy if not found.
36476         (backtrace_helper): In recursion check, also check whether CFA changes.
36477         (__backtrace): Completely initialize arg.
36478
36479         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
36480         storing incomplete byte sequence in state object.  Avoid testing for
36481         guaranteed too small input if we know there is enough data available.
36482
36483 2011-05-11  Andreas Schwab  <schwab@redhat.com>
36484
36485         * Makeconfig (+link-pie): Indent.
36486         * Rules (binaries-pie): Define if $(have-fpie) and
36487         $(build-shared).
36488         (binaries-shared): Also filter out $(binaries-pie).
36489         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
36490         * nscd/Makefile (others-pie): Add nscd.
36491         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
36492         ($(objpfx)nscd): Remove command override.
36493         * login/Makefile (others-pie): Add pt_chown.
36494         ($(objpfx)pt_chown): Remove command override.
36495         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
36496         remove command overrides.
36497
36498 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
36499
36500         * libio/tst_putwc.c: Fix error messages.
36501
36502         [BZ #12724]
36503         * libio/fileops.c (_IO_new_file_close_it): Always flush when
36504         currently writing and seek to current position when not.
36505         * libio/Makefile (tests): Add bug-fclose1.
36506         * libio/bug-fclose1.c: New file.
36507
36508 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
36509
36510         [BZ #12511]
36511         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
36512         don't set DF_1_NODELETE here.
36513         (do_lookup_x): When entering new entry test for copy relocation
36514         and if necessary set DF_1_NODELETE flag.
36515         * elf/tst-unique4.cc: New file.
36516         * elf/tst-unique4.h: New file.
36517         * elf/tst-unique4lib.cc: New file.
36518         * elf/Makefile: Add rules to build and run tst-unique4.
36519         Patch by Piotr Bury <pbury@goahead.com>.
36520
36521 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36522
36523         [BZ #12052]
36524         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
36525
36526         [BZ #12625]
36527         * misc/mntent_r.c (addmntent): Flush the stream after the output
36528
36529         [BZ #12393]
36530         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
36531         (is_trusted_path_normalize): Skip initial colon.  Append slash
36532         to empty buffer.  Duplicate is_trusted_path code but allow
36533         constructed patch to be prefix.
36534         (is_dst): Allow $ORIGIN followed by /.
36535         (_dl_dst_substitute): Correct clearing of check_for_trusted.
36536         Correct testing of result of is_trusted_path_normalize
36537         (decompose_rpath): Fix warning.
36538
36539 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
36540
36541         [BZ #11257]
36542         * grp/initgroups.c (internal_getgrouplist): When we found the service
36543         list through the initgroups entry in nsswitch.conf do not always
36544         continue on a successful lookup.  Don't always use the
36545         __nss_group_database value if it is set.
36546         * nss/nsswitch.conf (initgroups): Change action for successful db
36547         lookup to continue for compatibility.
36548
36549 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
36550
36551         [BZ #11532]
36552         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
36553         and CP774 modules.
36554         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
36555         and CP774 modules.
36556         * iconvdata/tst-tables.sh: Likewise.
36557         * iconvdata/cp770.c: New file.
36558         * iconvdata/cp771.c: New file.
36559         * iconvdata/cp772.c: New file.
36560         * iconvdata/cp773.c: New file.
36561         * iconvdata/cp774.c: New file.
36562         * iconvdata/testdata/CP770: New file.
36563         * iconvdata/testdata/CP770..UTF8: New file.
36564         * iconvdata/testdata/CP771: New file.
36565         * iconvdata/testdata/CP771..UTF8: New file.
36566         * iconvdata/testdata/CP772: New file.
36567         * iconvdata/testdata/CP772..UTF8: New file.
36568         * iconvdata/testdata/CP773: New file.
36569         * iconvdata/testdata/CP773..UTF8: New file.
36570         * iconvdata/testdata/CP774: New file.
36571         * iconvdata/testdata/CP774..UTF8: New file.
36572
36573         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
36574         END CHARMAP line.
36575         * iconvdata/gen-8bit-gap.sh: Likewise.
36576         * iconvdata/gen-8bit.sh: Likewise.
36577
36578         * locale/iso-639.def: Add ary entry.
36579
36580         [BZ #11258]
36581         * locale/C-translit.h.in: Add U20A1 transliteration.
36582
36583         [BZ #12178]
36584         * locale/iso-639.def: Add wae entry.
36585         Patch by Kevin Bortis <bortis@translate-wae.ch>.
36586
36587         [BZ #12545]
36588         * locale/programs/localedef.c (construct_output_path): Use ssize_t
36589         for n.
36590
36591         [BZ #12711]
36592         * locale/C-translit.h.in: Add entry for U20B9.
36593         Patch by pravin.d.s@gmail.com.
36594
36595 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
36596
36597         [BZ #12713]
36598         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
36599         ENAMETOOLONG use generic getcwd.
36600         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
36601         in rtld.  Use *stat64.
36602         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
36603         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
36604         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
36605         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
36606         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
36607         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
36608         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
36609         __fstatat64 macros.
36610         * include/dirent.h: Add libc_hidden_proto for rewinddir.
36611         * dirent/rewinddir.c: Add libc_hidden_def.
36612         * sysdeps/mach/hurd/rewinddir.c: Likewise.
36613         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
36614
36615         * include/dirent.h (__alloc_dir): Add flags parameter.
36616         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
36617         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
36618         __alloc_dir.
36619         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
36620         from fdopendir if O_CLOEXEC is already set.
36621
36622 2011-03-15  Alan Modra  <amodra@gmail.com>
36623
36624         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
36625         l_tls_firstbyte_offset non-zero.  Save padding offset in
36626         l_tls_firstbyte_offset for later use.
36627         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
36628         freeing static tls block.
36629
36630 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
36631
36632         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
36633         where #ifdef was intended.  The intent is to prevent ARG_MAX from
36634         being defined by the kernel headers.
36635
36636 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
36637
36638         [BZ #12734]
36639         * resolv/resolv.h: Define RES_NOTLDQUERY.
36640         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
36641         no-tld-query and set RES_NOTLDQUERY.
36642         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
36643         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
36644         modern BIND to search name as TLD unless forbidden.
36645
36646 2011-05-07  Petr Baudis  <pasky@suse.cz>
36647             Ulrich Drepper  <drepper@gmail.com>
36648
36649         [BZ #12393]
36650         * elf/dl-load.c (fillin_rpath): Move trusted path check...
36651         (is_trusted_path): ...to here.
36652         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
36653         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
36654         using is_trusted_path_normalize() in setuid scripts.
36655
36656 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36657
36658         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
36659         __BEGIN/__END_DECLS.
36660
36661 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
36662
36663         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
36664         NSS_STATUS_NOTFOUND if no record was found.
36665
36666 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36667
36668         * sunrpc/Makefile (headers): Add rpc/netdb.h.
36669         (headers-not-in-tirpc): Remove rpc/netdb.h
36670         * resolv/netdb.h: Revert last change.
36671
36672 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
36673
36674         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
36675         circular dependency between libgcc.a and libc.a.
36676
36677 2011-05-05  Andreas Schwab  <schwab@redhat.com>
36678
36679         * resolv/netdb.h: Don't include <rpc/netdb.h>.
36680         * nis/Makefile: Don't install rpcsvc/*.
36681         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
36682         instead of <rpc/types.h>.
36683         (MAXHOSTNAMELEN): Define.
36684
36685 2011-05-03  Andreas Schwab  <schwab@redhat.com>
36686
36687         * elf/ldconfig.c (add_dir): Don't crash on empty path.
36688
36689 2011-04-28  Maciej Babinski  <mbabinski@google.com>
36690
36691         [BZ #12714]
36692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
36693         gethostbyname4_r when IPv6 results are possible.
36694
36695 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
36696
36697         [BZ #12723]
36698         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
36699         _PC_PIPE_BUF handling.
36700
36701 2011-04-30  Bruno Haible  <bruno@clisp.org>
36702
36703         [BZ #12717]
36704         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
36705         * resolv/netdb.h (getnameinfo): Change type of flags parameter
36706         to 'int'.
36707         * inet/getnameinfo.c (getnameinfo): Likewise.
36708
36709 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
36710
36711         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
36712         to groups setting in database lookup.
36713         * nss/nsswitch.conf: Add initgroups entry.
36714
36715 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
36716
36717         [BZ #12685]
36718         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
36719         mode string.
36720         Patch by Eric Blake <eblake@redhat.com>.
36721
36722 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
36723
36724         * sunrpc/Makefile (need-export-routines): Add svc_run.
36725         (routines): Remove svc_run.
36726         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
36727         * sunrpc/clnt_perr.c (clnt_perrno): Export.
36728         * sunrpc/svc_run.c (svc_run): Likewise.
36729         * sunrpc/svc_udp.c (svcudp_create): Likewise.
36730
36731 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
36732
36733         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
36734         problem in reallocation in last patch.
36735
36736 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
36737
36738         * sunrpc/Makefile: Move inclusion of Rules.
36739
36740 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36741
36742         * nss/nss_files/files-initgroups.c: New file.
36743         * nss/Makefile (libnss_files-routines): Add files-initgroups.
36744         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
36745         _nss_files_initgroups_dyn.
36746
36747 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
36748
36749         * elf/elf.h (R_ARM_IRELATIVE): Define.
36750
36751 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
36752
36753         * po/ru.po: Update from translation team.
36754
36755 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36756
36757         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
36758         dependencies.
36759
36760 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
36761
36762         [BZ #12653]
36763         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
36764         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
36765         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
36766         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
36767         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
36768
36769 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
36770
36771         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
36772         differing bytes.
36773         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
36774         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
36775         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
36776
36777 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
36778
36779         [BZ #12420]
36780         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
36781         storing it.
36782         * stdlib/bug-getcontext.c: New file.
36783         * stdlib/Makefile: Add rules to build and run bug-getcontext.
36784
36785 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36786
36787         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
36788         instructions into .machine "z9-109".
36789         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
36790         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
36791
36792 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36793
36794         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
36795         between environment variables and auxiliary vector.
36796
36797 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
36798
36799         * Makefile: Add rules to build linkobj/libc.so.
36800         * include/libc-symbols.h: Define libc_hidden_nolink.
36801         * include/rpc/auth.h: Mark functions which are to be hidden.
36802         * include/rpc/auth_des.h: Likewise.
36803         * include/rpc/auth_unix.h: Likewise.
36804         * include/rpc/clnt.h: Likewise.
36805         * include/rpc/des_crypt.h: Likewise.
36806         * include/rpc/key_prot.h: Likewise.
36807         * include/rpc/pmap_clnt.h: Likewise.
36808         * include/rpc/pmap_prot.h: Likewise.
36809         * include/rpc/pmap_rmt.h: Likewise.
36810         * include/rpc/rpc_msg.h: Likewise.
36811         * include/rpc/svc.h: Likewise.
36812         * include/rpc/svc_auth.h: Likewise.
36813         * include/rpc/xdr.h: Likewise.
36814         * nis/Makefile: Link all DSOs against linkobj/libc.so.
36815         * nss/Makefile: Likewise.
36816         * sunrpc/Makefile: Don't install headers.  Build library with normal
36817         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
36818         * sunrpc/auth_des.c: Hide exported symbols by default, export some
36819         for the compat linking library.  Remove use of INTDEF/INTUSE.
36820         * sunrpc/auth_none.c: Likewise.
36821         * sunrpc/auth_unix.c: Likewise.
36822         * sunrpc/authdes_prot.c: Likewise.
36823         * sunrpc/authuxprot.c: Likewise.
36824         * sunrpc/clnt_gen.c: Likewise.
36825         * sunrpc/clnt_perr.c: Likewise.
36826         * sunrpc/clnt_raw.c: Likewise.
36827         * sunrpc/clnt_simp.c: Likewise.
36828         * sunrpc/clnt_tcp.c: Likewise.
36829         * sunrpc/clnt_udp.c: Likewise.
36830         * sunrpc/clnt_unix.c: Likewise.
36831         * sunrpc/des_crypt.c: Likewise.
36832         * sunrpc/des_soft.c: Likewise.
36833         * sunrpc/get_myaddr.c: Likewise.
36834         * sunrpc/key_call.c: Likewise.
36835         * sunrpc/key_prot.c: Likewise.
36836         * sunrpc/netname.c: Likewise.
36837         * sunrpc/pm_getmaps.c: Likewise.
36838         * sunrpc/pm_getport.c: Likewise.
36839         * sunrpc/pmap_clnt.c: Likewise.
36840         * sunrpc/pmap_prot.c: Likewise.
36841         * sunrpc/pmap_prot2.c: Likewise.
36842         * sunrpc/pmap_rmt.c: Likewise.
36843         * sunrpc/publickey.c: Likewise.
36844         * sunrpc/rpc_cmsg.c: Likewise.
36845         * sunrpc/rpc_common.c: Likewise.
36846         * sunrpc/rpc_dtable.c: Likewise.
36847         * sunrpc/rpc_prot.c: Likewise.
36848         * sunrpc/rpc_thread.c: Likewise.
36849         * sunrpc/rtime.c: Likewise.
36850         * sunrpc/svc.c: Likewise.
36851         * sunrpc/svc_auth.c: Likewise.
36852         * sunrpc/svc_authux.c: Likewise.
36853         * sunrpc/svc_raw.c: Likewise.
36854         * sunrpc/svc_run.c: Likewise.
36855         * sunrpc/svc_simple.c: Likewise.
36856         * sunrpc/svc_tcp.c: Likewise.
36857         * sunrpc/svc_udp.c: Likewise.
36858         * sunrpc/svc_unix.c: Likewise.
36859         * sunrpc/svcauth_des.c: Likewise.
36860         * sunrpc/xcrypt.c: Likewise.
36861         * sunrpc/xdr.c: Likewise.
36862         * sunrpc/xdr_array.c: Likewise.
36863         * sunrpc/xdr_float.c: Likewise.
36864         * sunrpc/xdr_intXX_t.c: Likewise.
36865         * sunrpc/xdr_mem.c: Likewise.
36866         * sunrpc/xdr_rec.c: Likewise.
36867         * sunrpc/xdr_ref.c: Likewise.
36868         * sunrpc/xdr_sizeof.c: Likewise.
36869         * sunrpc/xdr_stdio.c: Likewise.
36870
36871 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
36872
36873         [BZ #12650]
36874         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
36875         * sysdeps/ia64/dl-tls.h: Likewise.
36876         * sysdeps/powerpc/dl-tls.h: Likewise.
36877         * sysdeps/s390/dl-tls.h: Likewise.
36878         * sysdeps/sh/dl-tls.h: Likewise.
36879         * sysdeps/sparc/dl-tls.h: Likewise.
36880         * sysdeps/x86_64/dl-tls.h: Likewise.
36881         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
36882
36883 2011-03-14  Andreas Schwab  <schwab@redhat.com>
36884
36885         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
36886         rpath element also skip the following colon.
36887         (expand_dynamic_string_token): Add is_path parameter and pass
36888         down to DL_DST_REQUIRED and _dl_dst_substitute.
36889         (decompose_rpath): Call expand_dynamic_string_token with
36890         non-zero is_path.  Ignore empty rpaths.
36891         (_dl_map_object_from_fd): Call expand_dynamic_string_token
36892         with zero is_path.
36893
36894 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
36895
36896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
36897         Make cancelable.
36898
36899 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
36900
36901         [BZ #12655]
36902         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
36903         Patch by Filipe David Manana <fdmanana@apache.org>.
36904
36905 2011-04-07  Andreas Schwab  <schwab@redhat.com>
36906
36907         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
36908         Maintain aligned stack.
36909         (CHECK_RSP): Remove unused macro.
36910
36911 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
36912
36913         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
36914         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
36915
36916 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
36917
36918         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
36919
36920         * include/features.h: Mention __USE_XOPEN2K8 in comment.
36921
36922 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
36923
36924         [BZ #12518]
36925         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
36926         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
36927         * sysdeps/x86_64/memmove.c: New file.
36928         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
36929         (memcpy): Renamed to ...
36930         (__new_memcpy): This.
36931         (memcpy): Provide GLIBC_2_14 memcpy.
36932         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
36933         (memcpy): Provide GLIBC_2_2_5 memcpy.
36934
36935 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36936
36937         [BZ #12631]
36938         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
36939
36940 2011-03-30  Andreas Schwab  <schwab@redhat.com>
36941
36942         * misc/syncfs.c: New file.
36943         * misc/Makefile (routines): Add syncfs.
36944         * posix/unistd.h: Declare syncfs.
36945         * sysdeps/unix/syscalls.list: Add syncfs.
36946
36947 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36948
36949         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
36950         open_by_handle_at.
36951         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
36952         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36953         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36954         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36955         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36956         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
36957         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36958
36959 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36960
36961         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
36962         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
36963         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
36964         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
36965         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
36966         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
36967         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
36968
36969         * io/Makefile: Compile fallocate.c, fallocate64.c, and
36970         sync_file_range.c with -fexceptions.
36971         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
36972         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
36973         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
36974         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
36975         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
36976         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
36977         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
36978         sync_file_range as cancellation point
36979         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
36980         now a wrapper around __call_sync_file_range with cancellation handling.
36981         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
36982         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
36983         function name to __call_sync_file_range.
36984         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
36985         Add call_sync_file_range.
36986
36987 2011-04-01  Andreas Schwab  <schwab@redhat.com>
36988
36989         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36990         bits/timex.h.
36991
36992 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
36993
36994         * iconv/iconv.h: Fix typo in comment.
36995         * io/fcntl.h: Likewise.
36996         * libio/stdio.h: Likewise.
36997         * posix/spawn.h: Likewise.
36998         * posix/unistd.h: Likewise.
36999         * stdlib/stdlib.h: Likewise.
37000         * time/time.h: Likewise.
37001         * wcsmbs/wchar.h: Likewise.
37002
37003         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
37004         open_by_handle): Add.
37005         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
37006         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
37007         Augment a few comments.
37008         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
37009         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
37010         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
37011         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
37012         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
37013         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
37014         open_by_handle.
37015
37016         * io/fcntl.h (AT_EMPTY_PATH): Define.
37017
37018 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
37019
37020         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
37021         * sysdeps/unix/sysv/linux/bits/time.h: New file.
37022         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
37023         to...
37024         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
37025         * Versions.def: Add GLIBC_2.14.
37026         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
37027         Export.
37028
37029 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
37030
37031         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
37032         round counter.
37033         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
37034
37035 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37036
37037         [BZ #12597]
37038         * string/test-strncmp.c (do_page_test): New function.
37039         (check2): Likewise.
37040         (test_main): Call check2.
37041         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
37042
37043 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
37044
37045         [BZ #12587]
37046         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
37047         Handle cache information in CPU leaf 4.
37048         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
37049
37050 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
37051
37052         [BZ #12583]
37053         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
37054         character representation.
37055         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
37056
37057 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
37058
37059         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
37060         END(__isnan) to END(__isnanf) to match function entry point/label
37061         EALIGN(__isnanf,...).
37062
37063 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
37064
37065         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
37066
37067 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
37068
37069         [BZ #12510]
37070         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
37071         copy from the symbol referenced in the relocation to initialize the
37072         used variable.
37073         Patch by Piotr Bury <pbury@goahead.com>.
37074         * elf/Makefile: Add rules to build and tst-unique3.
37075         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
37076         * elf/tst-unique3.cc: New file.
37077         * elf/tst-unique3.h: New file.
37078         * elf/tst-unique3lib.cc: New file.
37079         * elf/tst-unique3lib2.cc: New file.
37080
37081         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
37082
37083 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
37084
37085         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
37086         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
37087         to _start.
37088
37089 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
37090
37091         * elf/dl-load.c (_dl_map_object): If we are looking for the first
37092         to-be-loaded object along a path to loader is ld.so.
37093
37094 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
37095             Ulrich Drepper  <drepper@gmail.com>
37096
37097         * sysdeps/x86_64/memset.S: After aligning destination, code
37098         branches to different locations depending on the value of
37099         misalignment, when multiarch is enabled. Fix this.
37100
37101 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
37102
37103         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
37104         Set _x86_64_preferred_memory_instruction for AMD processsors.
37105         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37106         Set bit_Prefer_SSE_for_memop for AMD processors.
37107
37108 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
37109
37110         * libio/fmemopen.c (fmemopen): Optimize a bit.
37111
37112 2011-03-03  Andreas Schwab  <schwab@redhat.com>
37113
37114         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
37115
37116 2011-03-03  Roland McGrath  <roland@redhat.com>
37117
37118         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
37119
37120 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
37121
37122         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
37123         __bzero_ultra1 instead of __memset_ultra1.
37124
37125 2011-02-23  Andreas Schwab  <schwab@redhat.com>
37126             Ulrich Drepper  <drepper@gmail.com>
37127
37128         [BZ #12509]
37129         * include/link.h (struct link_map): Add l_orig_initfini.
37130         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
37131         returning unsuccessfully.
37132         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
37133         close of a file loaded at startup, restore the original l_initfini
37134         list.
37135         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
37136         list, store the pointer.
37137         * elf/Makefile ($(objpfx)noload-mem): New rule.
37138         (noload-ENV): Define.
37139         (tests): Add $(objpfx)noload-mem.
37140         * elf/noload.c: Include <memcheck.h>.
37141         (main): Call mtrace.  Close all opened handles.
37142
37143 2011-02-17  Andreas Schwab  <schwab@redhat.com>
37144
37145         [BZ #12454]
37146         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
37147         dependencies are missing.
37148
37149 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37150
37151         Fix __if_freereq crash: Unlike the generic version which uses free,
37152         Hurd needs munmap.
37153         * sysdeps/mach/hurd/ifreq.h: New file.
37154
37155 2011-01-27  Petr Baudis  <pasky@suse.cz>
37156             Ulrich Drepper  <drepper@gmail.com>
37157
37158         [BZ 12445]#
37159         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
37160         to extend_alloca().
37161         * stdio-common/bug23.c: New file.
37162         * stdio-common/Makefile (tests): Add bug23.
37163
37164 2010-09-28  Andreas Schwab  <schwab@redhat.com>
37165             Ulrich Drepper  <drepper@gmail.com>
37166
37167         [BZ #12489]
37168         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
37169         before performing relro protection.  At old place add assertion
37170         to make sure nothing changed.
37171
37172 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
37173             Glauber de Oliveira Costa  <glommer@gmail.com>
37174
37175         * elf/elf.h: Add new ARM TLS relocs.
37176
37177 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
37178
37179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
37180         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
37181         cast from r3.
37182         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
37183         'tests' variable.
37184         * sysdeps/wordsize-64/tst-writev.c: New file.
37185
37186 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
37187
37188         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
37189         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
37190         insns in _dl_start to prevent a TOC reference before relocs are
37191         resolved.
37192
37193 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
37194
37195         [BZ #12469]
37196         * Makeconfig: Remove RANLIB definition.
37197         * Makerules: Don't use RANLIB.
37198         * aclocal.m4: Remove ranlib test.
37199         * configure.in: No need to check for ranlib.
37200         * elf/rtld-Rules: Don't use RANLIB.
37201
37202 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37203
37204         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
37205         protection macro.
37206         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
37207         inclusion protection macro.
37208
37209         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
37210         SIGRTMIN and SIGRTMAX and print information in that case only when
37211         SIGRTMIN is defined.
37212
37213 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
37214
37215         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
37216         arginfo fn returning -1.
37217
37218         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
37219         and thousands string is zero terminated.
37220
37221 2011-02-03  Andreas Schwab  <schwab@redhat.com>
37222
37223         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
37224         sysdeps/unix/sysv/linux/bits/socket.h.
37225
37226 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37227
37228         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
37229         (__CPU_COUNT): Remove old macros.
37230         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
37231         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
37232         (__CPU_ALLOC, __CPU_FREE): Add macros.
37233         (__sched_cpualloc, __sched_cpufree): Add declarations.
37234
37235 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
37236
37237         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
37238         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
37239         * nscd/aicache.c (addhstaiX): Return timeout of added value.
37240         (readdhstai): Return value of addhstaiX call.
37241         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
37242         (addgrbyX): Return value returned by cache_addgr.
37243         (readdgrbyname): Return value returned by addgrbyX.
37244         (readdgrbygid): Likewise.
37245         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
37246         (addpwbyX): Return value returned by cache_addpw.
37247         (readdpwbyname): Return value returned by addhstbyX.
37248         (readdpwbyuid): Likewise.
37249         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
37250         (addservbyX): Return value returned by cache_addserv.
37251         (readdservbyname): Return value returned by addservbyX:
37252         (readdservbyport): Likewise.
37253         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
37254         (addhstbyX): Return value returned by cache_addhst.
37255         (readdhstbyname): Return value returned by addhstbyX.
37256         (readdhstbyaddr): Likewise.
37257         (readdhstbynamev6): Likewise.
37258         (readdhstbyaddrv6): Likewise.
37259         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
37260         (readdinitgroups): Return value returned by addinitgroupsX.
37261         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
37262         (prune_cache): Keep track of timeout value of re-added entries.
37263         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
37264         * nscd/nscd.h: Adjust prototypes of readd* functions.
37265
37266 2011-02-04  Roland McGrath  <roland@redhat.com>
37267
37268         * nis/nis_server.c (nis_servstate): Use the right name for 0.
37269         (nis_stats): Likewise.
37270         * nis/nis_modify.c (nis_modify): Likewise.
37271         * nis/nis_remove.c (nis_remove): Likewise.
37272         * nis/nis_add.c (nis_add): Likewise.
37273
37274         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
37275
37276         * posix/fnmatch_loop.c: Add some consts.
37277
37278         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
37279
37280 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
37281
37282         [BZ #12460]
37283         * config.make.in (config-cflags-novzeroupper): Define.
37284         * configure.in: Substitute libc_cv_cc_novzeroupper.
37285         * elf/Makefile (AVX-CFLAGS): Define.
37286         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
37287         (CFLAGS-tst-auditmod4a.c): Likewise.
37288         (CFLAGS-tst-auditmod4b.c): Likewise.
37289         (CFLAGS-tst-auditmod6b.c): Likewise.
37290         (CFLAGS-tst-auditmod6c.c): Likewise.
37291         (CFLAGS-tst-auditmod7b.c): Likewise.
37292         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
37293
37294 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
37295
37296         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
37297         function to the callback.
37298         Patch partly by Jiri Olsa <jolsa@redhat.com>.
37299
37300 2011-02-02  Andreas Schwab  <schwab@redhat.com>
37301
37302         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
37303         of errno.
37304
37305 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
37306
37307         [BZ #11724]
37308         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
37309         of constructors.
37310         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
37311         of destructors.
37312         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
37313
37314         [BZ #11724]
37315         * elf/Makefile: Add rules to build and run new test.
37316         * elf/tst-initorder.c: New file.
37317         * elf/tst-initorder.exp: New file.
37318         * elf/tst-initordera1.c: New file.
37319         * elf/tst-initordera2.c: New file.
37320         * elf/tst-initordera3.c: New file.
37321         * elf/tst-initordera4.c: New file.
37322         * elf/tst-initorderb1.c: New file.
37323         * elf/tst-initorderb2.c: New file.
37324         * elf/tst-order-a1.c: New file.
37325         * elf/tst-order-a2.c: New file.
37326         * elf/tst-order-a3.c: New file.
37327         * elf/tst-order-a4.c: New file.
37328         * elf/tst-order-b1.c: New file.
37329         * elf/tst-order-b2.c: New file.
37330         * elf/tst-order-main.c: New file.
37331         New test case by George Gensure <werkt0@gmail.com>.
37332
37333 2010-10-01  Andreas Schwab  <schwab@redhat.com>
37334
37335         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
37336         decoding ACE if AI_CANONIDN.
37337
37338 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
37339
37340         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
37341
37342 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
37343
37344         * version.h (RELEASE): Bump for 2.13 release.
37345         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
37346
37347         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
37348
37349         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
37350         MADV_NOHUGEPAGE.
37351         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
37352         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
37353         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37354         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37355         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37356         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37357
37358         * posix/getconf.c: Update copyright year.
37359         * catgets/gencat.c: Likewise.
37360         * csu/version.c: Likewise.
37361         * debug/catchsegv.sh: Likewise.
37362         * debug/xtrace.sh: Likewise.
37363         * elf/ldconfig.c: Likewise.
37364         * elf/ldd.bash.in: Likewise.
37365         * elf/sprof.c (print_version): Likewise.
37366         * iconv/iconv_prog.c: Likewise.
37367         * iconv/iconvconfig.c: Likewise.
37368         * locale/programs/locale.c: Likewise.
37369         * locale/programs/localedef.c: Likewise.
37370         * malloc/memusage.sh: Likewise.
37371         * malloc/mtrace.pl: Likewise.
37372         * nscd/nscd.c (print_version): Likewise.
37373         * nss/getent.c: Likewise.
37374
37375         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
37376         PF_CAIF, and PF_ALG.
37377         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37378
37379 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
37380
37381         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
37382         (modules-names): Use them.
37383         (ifunc-test-modules, ifunc-pie-tests): Define.
37384         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
37385         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
37386         (test-extras): Likewise.
37387         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
37388         $(compile-command.c).
37389         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
37390         (all-built-dso): Define.
37391         (check-textrel.out, check-execstack.out): Depend on it.
37392
37393         * configure.in: Don't override --enable-multi-arch.
37394
37395 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
37396
37397         [BZ #6812]
37398         * nscd/hstcache.c (tryagain): Define.
37399         (cache_addhst): Return tryagain not notfound for temporary errors.
37400         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
37401         failed.
37402
37403 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
37404
37405         [BZ #10563]
37406         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
37407         to make the syscall.
37408         * sysdeps/unix/sysv/linux/setgroups.c: New file.
37409
37410         [BZ #12378]
37411         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
37412         and fall back to matching as normal character if the string ends before
37413         the matching ']' is found.  This is what POSIX requires.
37414         * posix/testfnm.c: Adjust test result.
37415         * posix/globtest.sh: Adjust test result.  Add new test.
37416         * posix/tst-fnmatch.input: Likewise.
37417         * posix/tst-fnmatch2.c: Add new test.
37418
37419 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
37420
37421         * elf/Makefile (check-execstack): Revert last change.  Depend on
37422         check-execstack.h.
37423         (check-execstack.h): New target.
37424         (generated): Add check-execstack.h.
37425         * elf/check-execstack.c: Include "check-execstack.h".
37426         (main): Revert last change.
37427         (handle_file): Return zero if GNU_STACK is absent and
37428         DEFAULT_STACK_PERMS doesn't include PF_X.
37429
37430 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
37431
37432         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
37433         in child fails because the descriptor is already closed.
37434         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
37435         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
37436         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
37437
37438         [BZ #12397]
37439         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
37440         syscall.
37441
37442         [BZ #10484]
37443         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
37444         temporary buffer used to handle multi lookups locally.
37445         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
37446
37447 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37448
37449         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
37450         loader is ld.so.
37451
37452 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
37453
37454         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
37455         alignment for SSE2.
37456
37457 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
37458
37459         [BZ #12394]
37460         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
37461         characters.  When rounding increased number of integer digits recompute
37462         number of groups.
37463         * stdio-common/tst-grouping.c: New file.
37464         * stdio-common/Makefile: Add rules to build and run tst-grouping.
37465
37466 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
37467
37468         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
37469         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
37470
37471         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
37472         void.
37473         * bits/select.h: Likewise.
37474
37475 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
37476
37477         * po/ja.po: Update from translation team.
37478
37479 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
37480
37481         [BZ #11155]
37482         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
37483         implementation just like for lxstat, fxstatat, et al.
37484
37485 2010-12-27  Jim Meyering  <meyering@redhat.com>
37486
37487         [BZ #12348]
37488         * posix/regexec.c (build_trtable): Return failure indication upon
37489         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37490
37491 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
37492
37493         [BZ #12201]
37494         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
37495         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
37496         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
37497         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
37498
37499         [BZ #12207]
37500         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
37501
37502         [BZ #12204]
37503         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
37504         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
37505
37506 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
37507
37508         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
37509         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
37510         script has SORT_BY_INIT_PRIORITY.
37511         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
37512         NO_CTORS_DTORS_SECTIONS is defined.
37513         * elf/soinit.c: Likewise.
37514         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
37515         NO_CTORS_DTORS_SECTIONS is defined.
37516         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
37517         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
37518         * sysdeps/sh/init-first.c: Likewise.
37519         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
37520
37521 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
37522
37523         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
37524         always use the slow path.
37525
37526 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
37527
37528         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
37529         similar rule which adds the sysdep directories to the header search in
37530         order to pick up the correct platform stackinfo.h.
37531         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
37532         perform test if it is, otherwise return successfully without testing.
37533         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
37534         DEFAULT_STACK_PERMS define in stackinfo.h.
37535         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
37536         defined in stackinfo.h.
37537         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
37538         DEFAULT_STACK_PERMS defined in stackinfo.h.
37539         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
37540         * sysdeps/ia64/stackinfo.h: Likewise.
37541         * sysdeps/s390/stackinfo.h: Likewise.
37542         * sysdeps/sh/stackinfo.h: Likewise.
37543         * sysdeps/sparc/stackinfo.h: Likewise.
37544         * sysdeps/x86_64/stackinfo.h: Likewise.
37545         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
37546         PF_X for powerpc64.  Retain PF_X for powerpc32.
37547
37548 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
37549
37550         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
37551         accurately.
37552         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
37553         GETDENTS_64BIT_ALIGNED.
37554
37555 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
37556
37557         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
37558
37559 2010-12-10  Andreas Schwab  <schwab@redhat.com>
37560
37561         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
37562         _GNU_SOURCE.
37563
37564         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
37565         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
37566         Remove __restrict.
37567         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
37568         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
37569
37570 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
37571
37572         [BZ #11655]
37573         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
37574         are initialized.
37575
37576 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
37577
37578         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
37579
37580 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
37581
37582         * po/it.po: Update from translation team.
37583
37584 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
37585
37586         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
37587         unused codes.
37588
37589 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
37590
37591         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
37592
37593 2010-11-24  Andreas Schwab  <schwab@redhat.com>
37594
37595         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
37596         specially.
37597         (gaih_getanswer_slice): Likewise.
37598
37599 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
37600
37601         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
37602
37603 2010-05-31  Petr Baudis  <pasky@suse.cz>
37604
37605         [BZ #11149]
37606         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
37607         silently even in the chroot mode.
37608
37609 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
37610
37611         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
37612         last patch a bit.  Pretty printing
37613
37614 2010-05-31  Petr Baudis <pasky@suse.cz>
37615
37616         [BZ #10085]
37617         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
37618         initialization of skip_initgroups_dyn.
37619
37620 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
37621
37622         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
37623         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
37624
37625 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
37626
37627         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
37628
37629 2010-11-11  Andreas Schwab  <schwab@redhat.com>
37630
37631         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
37632         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
37633         (tst-fnmatch-ENV): Set MALLOC_TRACE.
37634         ($(objpfx)tst-fnmatch-mem): New rule.
37635         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
37636         * posix/tst-fnmatch.c (main): Call mtrace.
37637
37638 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
37639
37640         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37641         Support Intel processor model 6 and model 0x2c.
37642
37643 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
37644
37645         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
37646           signed comparison.
37647
37648 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
37649
37650         [BZ #12205]
37651         * string/test-strncasecmp.c (check_result): New function.
37652         (do_one_test): Use it.
37653         (check1): New function.
37654         (test_main): Use it.
37655         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
37656         Support strcasecmp and strncasecmp.
37657
37658 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
37659
37660         [BZ #12194]
37661         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
37662         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37663
37664 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
37665
37666         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
37667         IFUNC support.
37668         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37669         memset-x86-64.
37670         * sysdeps/x86_64/multiarch/bzero.S: New file.
37671         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
37672         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
37673         * sysdeps/x86_64/multiarch/memset.S: New file.
37674         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
37675         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37676         Set bit_Prefer_SSE_for_memop for Intel processors.
37677         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
37678         Define.
37679         (index_Prefer_SSE_for_memop): Define.
37680         (HAS_PREFER_SSE_FOR_MEMOP): Define.
37681
37682 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
37683
37684         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
37685         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
37686
37687 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
37688
37689         [BZ #12191]
37690         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37691         (__x86_64_raw_data_cache_size_half): Likewise.
37692         (__x86_64_raw_shared_cache_size): Likewise.
37693         (__x86_64_raw_shared_cache_size_half): Likewise.
37694
37695         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
37696         (__x86_64_raw_data_cache_size_half): Likewise.
37697         (__x86_64_raw_shared_cache_size): Likewise.
37698         (__x86_64_raw_shared_cache_size_half): Likewise.
37699         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
37700         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
37701         and __x86_64_raw_shared_cache_size_half.  Round
37702         __x86_64_data_cache_size_half, __x86_64_data_cache_size
37703         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
37704         to multiple of 256 bytes.
37705
37706 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
37707
37708         [BZ #12167]
37709         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
37710         of inacessible symlinks.  Verify result of symlink before returning it.
37711         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37712         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
37713
37714 2010-10-28  Erich Ritz  <erichritz@gmail.com>
37715
37716         * math/math.h (isinf): Fix typo in comment.
37717
37718 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
37719
37720         * po/da.po: Update from translation team.
37721
37722 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
37723
37724         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
37725         is added to the list.
37726
37727 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37728             Ulrich Drepper  <drepper@gmail.com>
37729
37730         * elf/dl-object.c (_dl_new_object): Don't append the new object to
37731         the global list here.  Move code to...
37732         (_dl_add_to_namespace_list): ...here.  New function.
37733         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
37734         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
37735         * elf/dl-load.c (lose): Don't remove the element from the list.
37736         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
37737         (_dl_map_object): Likewise.
37738
37739 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
37740
37741         [BZ #12159]
37742         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
37743         into all bytes of SSE register.
37744         Patch by Richard Li <richardpku@gmail.com>.
37745
37746 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
37747
37748         [BZ #12140]
37749         * malloc/malloc.c (_int_free): Fill correct number of bytes when
37750         perturbing.
37751
37752 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
37753
37754         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
37755         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
37756         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
37757         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
37758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
37759         submachine.
37760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
37761
37762 2010-10-22  Andreas Schwab  <schwab@redhat.com>
37763
37764         * include/dlfcn.h (__RTLD_SECURE): Define.
37765         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
37766         mode & __RTLD_SECURE instead.
37767         (open_path): Rename preloaded parameter to secure.
37768         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
37769         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
37770         * elf/dl-deps.c (openaux): Likewise.
37771         * elf/rtld.c (struct map_args): Remove is_preloaded.
37772         (map_doit): Don't use it.
37773         (dl_main): Likewise.
37774         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
37775         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
37776
37777 2010-09-09  Andreas Schwab  <schwab@redhat.com>
37778
37779         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
37780         (sysd-rules-targets): Remove duplicates.
37781         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
37782         rtld-%.$o dependency.
37783
37784 2010-10-18  Andreas Schwab  <schwab@redhat.com>
37785
37786         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
37787         _dl_map_object do it.
37788
37789 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
37790
37791         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
37792         fast fma builtins, define the macros in the C99 standard.
37793         (FP_FAST_FMAF): Likewise.
37794         (FP_FAST_FMAL): Likewise.
37795         * sysdeps/x86_64/bits/mathdef.h: Likewise.
37796
37797         * bits/mathdef.h: Update copyright year.
37798         * sysdeps/powerpc/bits/mathdef.h: Likewise.
37799
37800 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
37801
37802         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
37803         builtins, define the macros in the C99 standard.
37804         (FP_FAST_FMAF): Likewise.
37805         (FP_FAST_FMAL): Likewise.
37806         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
37807         multiply/add.
37808         (FP_FAST_FMAF): Likewise.
37809
37810 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
37811
37812         [BZ #3268]
37813         * math/libm-test.inc (fma_test): Some new testcases.
37814         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
37815         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
37816         y and infinite z.  Do multiplication by C already in long double.
37817         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
37818         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
37819         y and infinite z.  Do bitwise or of inexact bit into u.d.
37820         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
37821         * sysdeps/i386/fpu/s_fmaf.S: Removed.
37822         * sysdeps/i386/fpu/s_fma.S: Removed.
37823         * sysdeps/i386/fpu/s_fmal.S: Removed.
37824
37825 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
37826
37827         [BZ #3268]
37828         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
37829         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
37830         computation is not scheduled after fetestexcept.  Fix value
37831         of minimum denormal long double.
37832
37833 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
37834
37835         [BZ #3268]
37836         * math/libm-test.inc (fma_test): Add some more tests.
37837         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
37838         correctly.
37839
37840 2010-10-15  Andreas Schwab  <schwab@redhat.com>
37841
37842         * scripts/data/localplt-s390-linux-gnu.data: New file.
37843         * scripts/data/localplt-s390x-linux-gnu.data: New file.
37844
37845 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
37846
37847         [BZ #3268]
37848         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
37849         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
37850         instead of dbl-64.
37851         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
37852         inlines.
37853         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
37854         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
37855         if one of x and y is very large and the other is subnormal.
37856         * sysdeps/s390/fpu/s_fmaf.c: New file.
37857         * sysdeps/s390/fpu/s_fma.c: New file.
37858         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
37859         * sysdeps/powerpc/fpu/s_fma.S: New file.
37860         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
37861         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
37862         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
37863
37864 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
37865
37866         [BZ #3268]
37867         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
37868         fma tests.
37869         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
37870         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
37871         * sysdeps/i386/i686/multiarch/s_fma.c: Include
37872         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
37873         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
37874         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
37875         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
37876
37877 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
37878
37879         [BZ #12078]
37880         * posix/regcomp.c (parse_branch): One more memory leak plugged.
37881         * posix/bug-regex31.input: Add test case.
37882
37883 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37884
37885         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
37886         * posix/bug-regex31.input: New file.
37887
37888         [BZ #12078]
37889         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
37890         (parse_sub_exp): Fix last change, use postorder.
37891
37892         * posix/bug-regex31.c: New file.
37893         * posix/Makefile: Add rules to build and run bug-regex31.
37894
37895         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
37896
37897         [BZ #12078]
37898         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
37899
37900         [BZ #12108]
37901         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
37902         to have entries in sys_siglist.
37903
37904         [BZ #12093]
37905         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
37906         be NULL.
37907
37908 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
37909
37910         [BZ #3268]
37911         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
37912         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
37913         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
37914         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
37915         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
37916         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
37917         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
37918         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
37919         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
37920         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
37921         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
37922         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
37923         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
37924         * math/ftestexcept.c (fetestexcept): Likewise.
37925         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
37926         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
37927         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
37928         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
37929         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
37930         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
37931         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37932
37933 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
37934
37935         [BZ #12107]
37936         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
37937         newline.
37938
37939 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
37940
37941         * string/bug-strstr1.c: New file.
37942         * string/Makefile: Add rules to build and run bug-strstr1.
37943
37944 2010-10-05  Eric Blake  <eblake@redhat.com>
37945
37946         [BZ #12092]
37947         * string/str-two-way.h (two_way_long_needle): Always clear memory
37948         when skipping input due to the shift table.
37949
37950 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
37951
37952         [BZ #12005]
37953         * malloc/mcheck.c: Handle large requests.
37954
37955         [BZ #12077]
37956         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
37957         for strncmp and strncasecmp.
37958         * string/stratcliff.c: Add tests for strcmp and strncmp.
37959         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
37960
37961 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37962
37963         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
37964         __set_fpscr.
37965
37966 2010-09-30  Andreas Jaeger  <aj@suse.de>
37967
37968         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
37969         (CGROUP_SUPER_MAGIC): Define.
37970         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37971         Handle btrfs and cgroup file systems.
37972         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
37973         Likewise.
37974
37975 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
37976
37977         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
37978         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
37979
37980 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37981
37982         [BZ #12067]
37983         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
37984         trying to locate the ELF header.
37985
37986 2010-09-27  Andreas Schwab  <schwab@redhat.com>
37987
37988         [BZ #11611]
37989         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
37990         Mask out sign-bit copies when constructing f_fsid.
37991
37992 2010-09-24  Petr Baudis <pasky@suse.cz>
37993
37994         * debug/stack_chk_fail_local.c: Add missing licence exception.
37995         * debug/warning-nop.c: Likewise.
37996
37997 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
37998
37999         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
38000         implementing getdents64 using getdents syscall, set d_type if
38001         __ASSUME_GETDENTS32_D_TYPE.
38002
38003 2010-09-16  Andreas Schwab  <schwab@redhat.com>
38004
38005         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
38006         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
38007
38008 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
38009
38010         [BZ #12037]
38011         * posix/unistd.h: Undo change of feature selection for ftruncate from
38012         2010-01-11.
38013
38014 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
38015
38016         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
38017         detection.
38018
38019 2010-09-20  Andreas Schwab  <schwab@redhat.com>
38020
38021         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
38022         fanotify_mark.
38023         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38024
38025 2010-09-14  Andreas Schwab  <schwab@redhat.com>
38026
38027         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
38028         variables after CHECK_SP call.
38029         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
38030
38031 2010-09-13  Andreas Schwab  <schwab@redhat.com>
38032             Ulrich Drepper  <drepper@redhat.com>
38033
38034         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
38035         re-relocationg ld.so.
38036         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
38037         _dl_init_paths call.
38038         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
38039         here anymore.
38040
38041 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
38042
38043         * resolv/res_init.c (__res_vinit): Count the default server we added.
38044
38045 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
38046             Ulrich Drepper  <drepper@redhat.com>
38047
38048         [BZ #11968]
38049         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
38050         (____longjmp_chk): Use %ebx for saving value across system call.
38051         Add unwind info.
38052
38053 2010-09-06  Andreas Schwab  <schwab@redhat.com>
38054
38055         * manual/Makefile: Don't mix pattern rules with normal rules.
38056
38057 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
38058
38059         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
38060         operation.
38061         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
38062         * libio/iofopncook.c (_IO_cookie_init): Likewise.
38063         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
38064         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
38065         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
38066         Likewise.
38067
38068 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
38069
38070         [BZ #11979]
38071         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
38072         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
38073
38074 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
38075
38076         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
38077         * sysdeps/x86_64/addmul_1.S: Likewise.
38078         * sysdeps/x86_64/lshift.S: Likewise.
38079         * sysdeps/x86_64/mul_1.S: Likewise.
38080         * sysdeps/x86_64/rshift.S: Likewise.
38081         * sysdeps/x86_64/sub_n.S: Likewise.
38082         * sysdeps/x86_64/submul_1.S: Likewise.
38083
38084 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38085
38086         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
38087         Define __sched_param instead of SCHED_* and sched_param when
38088         <bits/sched.h> is included with __need_schedparam defined.
38089         * bits/sched.h [__need_schedparam]
38090         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
38091         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
38092         (__defined_schedparam): Define to 1.
38093         (__sched_param): New structure, identical to sched_param.
38094         (__need_schedparam): Undefine.
38095
38096 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
38097
38098         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
38099         (epoll_create1): Declare.
38100
38101         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
38102
38103 2010-08-31  Andreas Schwab  <schwab@redhat.com>
38104
38105         [BZ #7066]
38106         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
38107         shifting retval into place.
38108
38109 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
38110
38111         * nis/rpcsvc/nis.h: Update copyright notice.
38112         * nis/rpcsvc/nis.x: Likewise.
38113         * nis/rpcsvc/nis_callback.h: Likewise.
38114         * nis/rpcsvc/nis_callback.x: Likewise.
38115         * nis/rpcsvc/nis_object.x: Likewise.
38116         * nis/rpcsvc/nis_tags.h: Likewise.
38117         * nis/rpcsvc/yp.h: Likewise.
38118         * nis/rpcsvc/yp.x: Likewise.
38119         * nis/rpcsvc/ypupd.h: Likewise.
38120         * nis/yp_xdr.c: Likewise.
38121         * nis/ypupdate_xdr.c: Likewise.
38122
38123         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
38124         mainly the body of pmap_getport.  Add parameters to specify timeouts.
38125         (pmap_getport): Use __libc_rpc_getport.
38126         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
38127         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
38128         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
38129
38130 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
38131
38132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
38133         fanotify_mark.
38134
38135 2010-08-27  Roland McGrath  <roland@redhat.com>
38136
38137         * sysdeps/i386/i686/multiarch/Makefile
38138         (CFLAGS-varshift.c): New variable.
38139
38140 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
38141
38142         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
38143         * sysdeps/i386/i686/multiarch/varshift.c: New file.
38144
38145         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
38146
38147         * sysdeps/x86_64/strlen.S: Minimal code improvement.
38148
38149 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
38150
38151         * sysdeps/x86_64/strlen.S: Unroll the loop.
38152         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38153         strlen-sse2 strlen-sse2-bsf.
38154         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
38155         __strlen_no_bsf if bit_Slow_BSF is set.
38156         (__strlen_sse42): Removed.
38157         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
38158         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
38159
38160 2010-08-25  Roland McGrath  <roland@redhat.com>
38161
38162         * sysdeps/x86_64/multiarch/varshift.S: File removed.
38163         * sysdeps/x86_64/multiarch/varshift.c: New file.
38164         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
38165         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
38166         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
38167         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
38168
38169 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
38170
38171         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38172         strlen-sse2 strlen-sse2-bsf.
38173         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
38174         __strlen_sse2_bsf if bit_Slow_BSF is unset.
38175         (__strlen_sse2): Removed.
38176         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
38177         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
38178         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
38179         bit_Slow_BSF for Atom.
38180         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
38181         (index_Slow_BSF): Define.
38182         (HAS_SLOW_BSF): Define.
38183
38184 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
38185
38186         [BZ #10851]
38187         * resolv/res_init.c (__res_vinit): When no server address at all
38188         is given default to loopback.
38189
38190 2010-08-24  Roland McGrath  <roland@redhat.com>
38191
38192         * configure.in: Remove config-name.h generation.
38193         * configure: Regenerated.
38194         * config-name.in: File removed.
38195         * scripts/config-uname.sh: New file.
38196         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
38197         ($(objdir)config-name.h): New target.
38198
38199         * sunrpc/rpc_parse.h: Avoid nested comment.
38200
38201 2010-08-24  Richard Henderson  <rth@redhat.com>
38202             Ulrich Drepper  <drepper@redhat.com>
38203             H.J. Lu  <hongjiu.lu@intel.com>
38204
38205         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
38206         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
38207         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
38208         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
38209         _mm_alignr_epi8 with _mm_loadu_si128.
38210         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
38211         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
38212         (__m128i_shift_right): Removed.
38213         * sysdeps/i386/i686/multiarch/varshift.h: New file.
38214         * sysdeps/i386/i686/multiarch/varshift.S: New file.
38215         * sysdeps/x86_64/multiarch/varshift.h: New file.
38216         * sysdeps/x86_64/multiarch/varshift.S: New file.
38217
38218 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
38219
38220         * configure.in: Move assembler checks to before sysdep dir checking.
38221
38222 2010-08-20  Petr Baudis  <pasky@suse.cz>
38223
38224         * LICENSES: Sync the sunrpc license.
38225
38226 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
38227
38228         * sunrpc/auth_des.c: Update copyright notice once again.
38229         * sunrpc/auth_none.c: Likewise.
38230         * sunrpc/auth_unix.c: Likewise.
38231         * sunrpc/authdes_prot.c: Likewise.
38232         * sunrpc/authuxprot.c: Likewise.
38233         * sunrpc/bindrsvprt.c: Likewise.
38234         * sunrpc/clnt_gen.c: Likewise.
38235         * sunrpc/clnt_perr.c: Likewise.
38236         * sunrpc/clnt_raw.c: Likewise.
38237         * sunrpc/clnt_simp.c: Likewise.
38238         * sunrpc/clnt_tcp.c: Likewise.
38239         * sunrpc/clnt_udp.c: Likewise.
38240         * sunrpc/clnt_unix.c: Likewise.
38241         * sunrpc/des_crypt.c: Likewise.
38242         * sunrpc/des_soft.c: Likewise.
38243         * sunrpc/get_myaddr.c: Likewise.
38244         * sunrpc/getrpcport.c: Likewise.
38245         * sunrpc/key_call.c: Likewise.
38246         * sunrpc/key_prot.c: Likewise.
38247         * sunrpc/openchild.c: Likewise.
38248         * sunrpc/pm_getmaps.c: Likewise.
38249         * sunrpc/pm_getport.c: Likewise.
38250         * sunrpc/pmap_clnt.c: Likewise.
38251         * sunrpc/pmap_prot.c: Likewise.
38252         * sunrpc/pmap_prot2.c: Likewise.
38253         * sunrpc/pmap_rmt.c: Likewise.
38254         * sunrpc/rpc/auth.h: Likewise.
38255         * sunrpc/rpc/auth_unix.h: Likewise.
38256         * sunrpc/rpc/clnt.h: Likewise.
38257         * sunrpc/rpc/des_crypt.h: Likewise.
38258         * sunrpc/rpc/key_prot.h: Likewise.
38259         * sunrpc/rpc/netdb.h: Likewise.
38260         * sunrpc/rpc/pmap_clnt.h: Likewise.
38261         * sunrpc/rpc/pmap_prot.h: Likewise.
38262         * sunrpc/rpc/pmap_rmt.h: Likewise.
38263         * sunrpc/rpc/rpc.h: Likewise.
38264         * sunrpc/rpc/rpc_des.h: Likewise.
38265         * sunrpc/rpc/rpc_msg.h: Likewise.
38266         * sunrpc/rpc/svc.h: Likewise.
38267         * sunrpc/rpc/svc_auth.h: Likewise.
38268         * sunrpc/rpc/types.h: Likewise.
38269         * sunrpc/rpc/xdr.h: Likewise.
38270         * sunrpc/rpc_clntout.c: Likewise.
38271         * sunrpc/rpc_cmsg.c: Likewise.
38272         * sunrpc/rpc_common.c: Likewise.
38273         * sunrpc/rpc_cout.c: Likewise.
38274         * sunrpc/rpc_dtable.c: Likewise.
38275         * sunrpc/rpc_hout.c: Likewise.
38276         * sunrpc/rpc_main.c: Likewise.
38277         * sunrpc/rpc_parse.c: Likewise.
38278         * sunrpc/rpc_parse.h: Likewise.
38279         * sunrpc/rpc_prot.c: Likewise.
38280         * sunrpc/rpc_sample.c: Likewise.
38281         * sunrpc/rpc_scan.c: Likewise.
38282         * sunrpc/rpc_scan.h: Likewise.
38283         * sunrpc/rpc_svcout.c: Likewise.
38284         * sunrpc/rpc_tblout.c: Likewise.
38285         * sunrpc/rpc_util.c: Likewise.
38286         * sunrpc/rpc_util.h: Likewise.
38287         * sunrpc/rpcinfo.c: Likewise.
38288         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
38289         * sunrpc/rpcsvc/key_prot.x: Likewise.
38290         * sunrpc/rpcsvc/klm_prot.x: Likewise.
38291         * sunrpc/rpcsvc/mount.x: Likewise.
38292         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
38293         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
38294         * sunrpc/rpcsvc/rex.x: Likewise.
38295         * sunrpc/rpcsvc/rstat.x: Likewise.
38296         * sunrpc/rpcsvc/rusers.x: Likewise.
38297         * sunrpc/rpcsvc/sm_inter.x: Likewise.
38298         * sunrpc/rpcsvc/spray.x: Likewise.
38299         * sunrpc/rpcsvc/yppasswd.x: Likewise.
38300         * sunrpc/rtime.c: Likewise.
38301         * sunrpc/svc.c: Likewise.
38302         * sunrpc/svc_auth.c: Likewise.
38303         * sunrpc/svc_authux.c: Likewise.
38304         * sunrpc/svc_raw.c: Likewise.
38305         * sunrpc/svc_run.c: Likewise.
38306         * sunrpc/svc_simple.c: Likewise.
38307         * sunrpc/svc_tcp.c: Likewise.
38308         * sunrpc/svc_udp.c: Likewise.
38309         * sunrpc/svc_unix.c: Likewise.
38310         * sunrpc/svcauth_des.c: Likewise.
38311         * sunrpc/xcrypt.c: Likewise.
38312         * sunrpc/xdr.c: Likewise.
38313         * sunrpc/xdr_array.c: Likewise.
38314         * sunrpc/xdr_float.c: Likewise.
38315         * sunrpc/xdr_mem.c: Likewise.
38316         * sunrpc/xdr_rec.c: Likewise.
38317         * sunrpc/xdr_ref.c: Likewise.
38318         * sunrpc/xdr_sizeof.c: Likewise.
38319         * sunrpc/xdr_stdio.c: Likewise.
38320
38321         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
38322         handling.
38323
38324 2010-08-19  Andreas Schwab  <schwab@redhat.com>
38325
38326         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
38327
38328 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
38329
38330         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
38331         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
38332         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
38333         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
38334         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
38335         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
38336         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
38337         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
38338         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
38339         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
38340         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
38341         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
38342         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
38343         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
38344
38345 2010-07-26  Anton Blanchard  <anton@samba.org>
38346
38347         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
38348         * malloc/arena.c (heap_trim): Likewise.
38349
38350 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
38351
38352         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
38353         here.  Not...
38354         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
38355         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
38356
38357 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
38358
38359         * sysdeps/i386/elf/Makefile: New file.
38360
38361 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38362
38363         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
38364         from fanotify_init.
38365         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
38366         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38367
38368 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
38369
38370         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
38371         of strncasecmp_l.
38372         * sysdeps/multiarch/strcmp.S: Likewise.
38373
38374 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
38375
38376         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38377         strncase_l-nonascii.
38378         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38379         Add strncase_l-ssse3.
38380         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
38381         * sysdeps/x86_64/strcmp.S: Likewise.
38382         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
38383         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
38384         * sysdeps/x86_64/strncase.S: New file.
38385         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
38386         * sysdeps/x86_64/strncase_l.S: New file.
38387         * string/Makefile (strop-tests): Add strncasecmp.
38388         * string/test-strncasecmp.c: New file.
38389
38390         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
38391         warning.
38392
38393         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
38394         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
38395
38396 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
38397
38398         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
38399
38400 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
38401
38402         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
38403         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
38404         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
38405
38406 2010-05-01  Alan Modra  <amodra@gmail.com>
38407
38408         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
38409         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
38410         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
38411         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
38412         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
38413         tidying.  Don't tail-call __sigjmp_save for static lib.
38414         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
38415         save location.
38416         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
38417         (CALL_MCOUNT): Add eh info, and nop after bl.
38418         (TAIL_CALL_SYSCALL_ERROR): New macro.
38419         (PSEUDO_RET): Use it.
38420         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
38421         Correct save location of integer regs and cr.
38422         (_dl_profile_resolve): Correct cr save location.  Delete nops
38423         after bl when SHARED.  Reduce cfi size a little by better
38424         placement of cfi directives.
38425         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
38426         make a stack frame.  Instead use parm save area as a temp.
38427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
38428         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
38429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
38430         Don't make a stack frame for parent, use parm save area.
38431         Increase child stack frame to 112 bytes.  Don't save unused reg,
38432         and adjust reg usage.  Set up cfi on error recovery and
38433         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
38434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
38435         (__makecontext): Add dummy nop after jump to exit.
38436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
38437         Use correct parm save area and cr save, reduce stack frame.
38438         Correct cfi for possible PSEUDO_RET frame setup.
38439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
38440         Branch to local label emitted by PSEUDO_RET rather than
38441         __syscall_error.
38442
38443 2010-08-12  Andreas Schwab  <schwab@redhat.com>
38444
38445         [BZ #11904]
38446         * locale/programs/locale.c (print_assignment): New function.
38447         (show_locale_vars): Use it.
38448
38449 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
38450
38451         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
38452         field.
38453         (struct statfs64): Likewise.
38454         (_STATFS_F_FLAGS): Define.
38455         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
38456         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38457         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
38458         (ST_VALID): Define locally.
38459         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
38460         __statvfs_getflags, use the provided value.
38461         * sysdeps/unix/sysv/linux/kernel-features.h: Define
38462         __ASSUME_STATFS_F_FLAGS.
38463
38464         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
38465
38466         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
38467         Add sys/fanotify.h.
38468         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
38469         fanotify_mask for GLIBC_2.13.
38470         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
38471         fanotify_init and fanotify_mark.
38472         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
38473         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
38474
38475         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
38476         Add prlimit.
38477         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
38478         prlimit64 for GLIBC_2.13.
38479         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
38480         prlimit64.
38481         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
38482         syscall.
38483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
38484         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
38485         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
38486         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
38487         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
38488         add prlimit alias.
38489         * sysdeps/unix/sysv/linux/prlimit.c: New file.
38490
38491         [BZ #11903]
38492         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
38493         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
38494
38495         * nss/Makefile: Add rules to build and run tst-nss-test1.
38496         * shlib-versions: Add entry for libnss_test1.
38497         * nss/nss_test1.c: New file.
38498         * nss/tst-nss-test1.c: New file.
38499
38500         * nss/nsswitch.c (__nss_database_custom): Define new variable.
38501         (__nss_configure_lookup): Set appropriate entry in
38502         __nss_configure_lookup to true.
38503         * nss/nsswitch.h: Define enum with indeces of databases in
38504         databases and __nss_database_custom arrays.  Declare
38505         __nss_database_custom.
38506         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
38507         to avoid using nscd when custom rules are installed.
38508         * nss/getXXbyYY_r.c: Likewise.
38509         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
38510
38511         * nss/nss_files/files-parse.c: Whitespace fixes.
38512
38513 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
38514
38515         [BZ #11883]
38516         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
38517         * posix/fnmatch_loop.c: Likewise.
38518
38519 2010-07-17  Andi Kleen  <ak@linux.intel.com>
38520
38521         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
38522         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
38523         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
38524         * Versions.def [GLIBC_2.13]: Add.
38525
38526 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
38527
38528         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38529         Also fail if tpwd after pwuid call is NULL.
38530
38531 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38532
38533         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
38534         when converting to ms.
38535
38536 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38537
38538         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
38539         EOPNOTSUPP errors with ENOTTY.
38540         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
38541         EOPNOTSUPP errors with ENOTTY.
38542
38543 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
38544
38545         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
38546         Add strcasecmp_l-ssse3.
38547         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
38548         strcasecmp.
38549         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
38550         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
38551         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
38552
38553 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
38554
38555         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
38556
38557         * string/Makefile (strop-tests): Add strcasecmp.
38558         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
38559         strcasecmp_l-nonascii.
38560         (gen-as-const-headers): Add locale-defines.sym.
38561         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
38562         * sysdeps/x86_64/strcasecmp.S: New file.
38563         * sysdeps/x86_64/strcasecmp_l.S: New file.
38564         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
38565         * sysdeps/x86_64/locale-defines.sym: New file.
38566         * string/test-strcasecmp.c: New file.
38567
38568         * string/test-strcasestr.c: Test both ends of the range of characters.
38569         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
38570
38571 2010-07-29  Roland McGrath  <roland@redhat.com>
38572
38573         [BZ #11856]
38574         * manual/locale.texi (Yes-or-No Questions): Fix example code.
38575
38576 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
38577
38578         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
38579         for ld.so.
38580
38581 2010-07-27  Andreas Schwab  <schwab@redhat.com>
38582
38583         * manual/memory.texi (Malloc Tunable Parameters): Document
38584         M_PERTURB.
38585
38586 2010-07-26  Roland McGrath  <roland@redhat.com>
38587
38588         [BZ #11840]
38589         * configure.in (-fgnu89-inline check): Set and substitute
38590         gnu89_inline, not libc_cv_gnu89_inline.
38591         * configure: Regenerated.
38592         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
38593
38594 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
38595
38596         * string/test-strnlen.c: New file.
38597         * string/Makefile (strop-tests): Add strnlen.
38598         * string/tester.c (test_strnlen): Add a few more test cases.
38599         * string/tst-strlen.c: Better error reporting.
38600
38601         * sysdeps/x86_64/strnlen.S: New file.
38602
38603 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
38604
38605         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
38606         lower-latency instructions.
38607
38608 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
38609
38610         * string/test-strcasestr.c: New file.
38611         * string/test-strstr.c: New file.
38612         * string/Makefile (strop-tests): Add strstr and strcasestr.
38613         * string/str-two-way.h: Don't undefine MAX.
38614         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
38615
38616 2010-07-21  Andreas Schwab  <schwab@redhat.com>
38617
38618         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38619         strcasestr-nonascii.
38620         (CFLAGS-strcasestr-nonascii.c): Define.
38621         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
38622         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
38623         Remove unused attribute.
38624
38625 2010-07-20  Roland McGrath  <roland@redhat.com>
38626
38627         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
38628         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
38629         ld.so.cache was broken.  With it, there is no way to disable dsocaps
38630         like LD_HWCAP_MASK can disable hwcaps.
38631
38632 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38633
38634         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
38635
38636 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
38637
38638         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
38639         call in strcasestr.
38640         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
38641         __strcasestr_sse42_nonascii.
38642         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
38643         strcasestr-nonascii.c.
38644         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
38645
38646 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
38647
38648         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
38649         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
38650         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
38651         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
38652
38653 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
38654
38655         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
38656         fcntl.
38657
38658 2010-07-06  Andreas Schwab  <schwab@redhat.com>
38659
38660         [BZ #11577]
38661         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
38662         dl_signal_cerror.
38663
38664 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
38665
38666         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
38667         _PC_PIPE_BUF using F_GETPIPE_SZ.
38668
38669 2010-07-05  Roland McGrath  <roland@redhat.com>
38670
38671         * manual/arith.texi (Rounding Functions): Fix rint description
38672         implicit in round description.
38673
38674 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
38675
38676         * elf/Makefile: Fix linking for a few tests to make recent linker
38677         happy.
38678
38679 2010-06-30  Andreas Schwab  <schwab@redhat.com>
38680
38681         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
38682         $(common-objpfx)libc_nonshared.a.
38683
38684 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
38685
38686         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
38687         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
38688         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38689         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38690         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
38691         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
38692         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38693         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
38695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
38696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
38697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
38698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
38699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
38700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
38701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
38702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
38703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
38704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
38705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
38706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
38707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
38708         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
38709         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
38710         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
38711         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
38712         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
38713         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
38714         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
38715         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
38716         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
38717         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
38718         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
38719         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
38720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
38721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
38722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
38723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
38724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
38725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
38726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
38727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
38728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
38729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
38730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
38731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
38732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
38733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
38734
38735 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
38736
38737         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
38738         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
38739         * string/memmove.c (memmove): Renamed to ...
38740         (MEMMOVE): ...this.  Default to memmove.
38741         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
38742         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
38743         (END_CHK): Define.
38744         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
38745         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
38746         mempcpy-ssse3-back memmove-ssse3-back.
38747         * sysdeps/x86_64/multiarch/bcopy.S: New file .
38748         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
38749         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
38750         * sysdeps/x86_64/multiarch/memcpy.S: New file.
38751         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
38752         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
38753         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
38754         * sysdeps/x86_64/multiarch/memmove.c: New file.
38755         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
38756         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
38757         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
38758         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
38759         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
38760         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
38761         Define.
38762         (index_Fast_Copy_Backward): Define.
38763         (HAS_ARCH_FEATURE): Define.
38764         (HAS_FAST_REP_STRING): Define.
38765         (HAS_FAST_COPY_BACKWARD): Define.
38766
38767 2010-06-21  Andreas Schwab  <schwab@redhat.com>
38768
38769         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
38770         Restore proper fallback handling.
38771
38772 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
38773
38774         [BZ #11701]
38775         * posix/group_member.c (__group_member): Correct checking loop.
38776
38777         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
38778         OOM in getpwuid_r correctly.  Return error number when the caller
38779         should return, otherwise -1.
38780         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
38781         call returning > 0 value.
38782         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
38783
38784 2010-06-07  Andreas Schwab  <schwab@redhat.com>
38785
38786         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
38787         libc_nonshared.a from targets in modules-names.
38788
38789 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
38790
38791         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
38792         requires it.
38793
38794 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
38795
38796         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
38797         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
38798         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
38799         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
38800
38801 2010-06-02  Andreas Schwab  <schwab@redhat.com>
38802
38803         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
38804
38805 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
38806
38807         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
38808         and F_GETPIPE_SZ.
38809         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
38810         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
38811         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
38812         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
38813         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
38814         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
38815
38816 2010-06-14  Roland McGrath  <roland@redhat.com>
38817
38818         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
38819
38820 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
38821
38822         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
38823         __REDIRECT followed by __THROW.
38824         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
38825         * posix/getopt.h (getopt): Likewise.
38826
38827 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
38828
38829         * hurd/lookup-at.c (__file_name_lookup_at): Accept
38830         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
38831         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
38832         in AT_FLAGS.
38833         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
38834         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
38835
38836 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
38837
38838         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
38839
38840 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
38841
38842         [BZ #11640]
38843         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
38844         Properly check family and model.
38845
38846 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
38847
38848         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
38849
38850 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
38851
38852         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
38853
38854 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
38855
38856         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
38857         symbol reference.
38858
38859 2010-05-19  Andreas Schwab  <schwab@redhat.com>
38860
38861         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
38862         symbol reference.
38863
38864 2010-05-21  Andreas Schwab  <schwab@redhat.com>
38865
38866         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
38867         and internal_recvmmsg.
38868         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
38869         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
38870         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
38871         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
38872
38873         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
38874         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
38875         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
38876
38877 2010-05-20  Andreas Schwab  <schwab@redhat.com>
38878
38879         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
38880
38881 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
38882
38883         POWER7 optimizations.
38884         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
38885         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
38886
38887 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
38888
38889         * version.h: Update for 2.13 development version.
38890
38891 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
38892
38893         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
38894         exceptions.  Return 0.
38895
38896 2010-05-07  Roland McGrath  <roland@redhat.com>
38897
38898         * elf/ldconfig.c (main): Add a const.
38899
38900 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
38901
38902         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
38903         (args_options): Add no-idn option.
38904         (ahosts_keys_int): Add idn_flags to ai_flags.
38905         (parse_option): Handle 'i' option to clear idn_flags.
38906
38907         * malloc/malloc.c (_int_free): Possible race in the most recently
38908         added check.  Only act on the data if no current modification
38909         happened.
38910
38911 See ChangeLog.17 for earlier changes.